Skip to content

[FEAT] Kindle building documentation #2657

Open

Description

@james-beans

Description

Hi, I managed to get Fastfetch to build natively for a Kindle Paperwhite using a wrapper I made for Clang called fclang. It would be interesting if you could add documentation for how to build Fastfetch using CMake and fclang with clang to the Wiki or README or whereever.

Motivation

Because I'm not really a fan of the alternative (KindleFetch) program. I just prefer the amount of tools that are in fastfetch instead.

Additional context

I managed to build it using:

mkdir -p build && cd build
cmake .. \
  -DCMAKE_C_COMPILER=fclang \
  -DCMAKE_SYSTEM_NAME=Linux \
  -DCMAKE_SYSTEM_PROCESSOR=arm \
  -DENABLE_VULKAN=OFF \
  -DENABLE_OPENCL=OFF \
  -DENABLE_SQLITE3=OFF \
  -DENABLE_CHAFA=OFF \
  -DENABLE_DBUS=OFF \
  -DBUILD_TESTS=OFF
make -j$(nproc)

On my Debian machine. As mentioned in fclang, I did have to do some package installing to get it working on my Kindle Paperwhite 1 (specifically installing the libc armel architecture packages from apt on Debian latest).

And this is only possible using a jailbroken Kindle. Otherwise, it's impossible to run programs on a Kindle natively.

I don't think it's possible without changes to the CMake configuration to build this without my Clang wrapper fclang. This is because it changes the compiler --target variable which I'm mostly sure CMake doesn't do properly. fclang also has presets specifically for different versions of Kindle devices, so it may be possible to get fastfetch to work properly on other Kindles as well.

Activity

  1. added
    enhancement
    on Oct 17, 2026
  2. CarterLi commented on Oct 17, 2026

    @CarterLi
    Member

    how to build Fastfetch using CMake and fclang

    Well it's just an ad then...

  3. james-beans commented on Oct 18, 2026

    @james-beans
    Author

    Sorry for making it sound like an ad. I just mean it's simpler to do it with fclang, but it's not required. The main thing I'm asking is if you could add documentation on how to build fastfetch for Kindle environments?

    Underneath fclang is literally a wrapper for this command: clang USERINPUT --target TARGET -static, so it is possible to get it working without fclang. Just would require more changes to the CMake configuration.

    I have a table full of the different Kindle device ARM targets taken from the fclang README as well if it helps:

    fclang Custom alias --target=... Target Kindle device Underlying LLVM triple
    legacy or kindle-legacy Kindle Paperwhite 1-2, Voyage, Oasis 1 armv7-unknown-linux-gnueabi
    pw3 or kindle-pw3 Kindle Paperwhite 3, Oasis 1 (i.MX6) armv7-unknown-linux-gnueabihf
    modern or kindle-modern Kindle Paperwhite 4-5, 10-11 armv7-unknown-linux-gnueabi
    scribe or kindle-scribe Kindle Scribe (2022/2024), Colorsoft aarch64-unknown-linux-gnu
    old or kindle-old Kindle Keyboard, Touch, 4-5 arm-unknown-linux-gnueabi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions