Changeset 16722 in niluje


Ignore:
Timestamp:
Nov 24, 2019, 3:54:08 AM (3 weeks ago)
Author:
NiLuJe
Message:

Kindle Hacks:

  • X-TC:
    • Well, that worked out fine ;).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Configs/trunk/Kindle/Misc/x-compile.sh

    r16721 r16722  
    39903990# NOTE: Kobo doesn't ship fusermount, so, we ought to be building utils & bundling it (and possibly mount.fuse3). On the other hand, they don't ship with FUSE in the kernel, either :D.
    39913991#       In which case, it'll probably be worth switching to shared libraries, too...
     3992# NOTE: Random mildly related comment re: building modules. Reading https://github.com/marek-g/kobo-kernel-2.6.35.3-marek/blob/linux/build_instructions is a good start.
     3993#       In practice, on the old H2O kernel, I've also had to:
     3994#         * Fix scripts/kconfig/lxdialog/check-lxdialog.sh to link against libtinfow (i.e., add -ltinfow to the -l${lib} string), too (similar to what I had to do in ct-ng 1.23)
     3995#         * Kill the final defined() call in kernel/timeconst.pl, as per the warning
     3996#         * Because of CONFIG_MODVERSIONS, you need a full kernel build first, otherwise init_module throws a fit (ENOEXEC, invalid module format). So you can't just make modules && make modules_install :/.
     3997#       The H2O kernel appears to have been built with truly ancient MG/CodeSourcery (2010q1-202) GCC 4.4.1 TCs, so I went with my bare 'nickel' GCC 4.9 TC to stay as close as that as possible. That worked out fine. And matches what's used on newer devices.
     3998#       Kobo doesn't do modprobe, so I just threw the modules into /drivers/${PLATFORM}/fs/fuse and called it a day ;).
     3999#       No need to have the u-boot tools installed since I'm not actually planning on flashing a custom kernel ;).
     4000#       The H2O sources ship with the right .config in place, otherwise, simply zcat /proc/config.gz from a live device.
     4001#       TL;DR:
     4002#               make CROSS_COMPILE=${CROSS_PREFIX} ARCH=arm INSTALL_MOD_PATH=/var/tmp/niluje/kobo/modules menuconfig
     4003#               make -j8 CROSS_COMPILE=${CROSS_PREFIX} ARCH=arm INSTALL_MOD_PATH=/var/tmp/niluje/kobo/modules uImage
     4004#               make -j8 CROSS_COMPILE=${CROSS_PREFIX} ARCH=arm INSTALL_MOD_PATH=/var/tmp/niluje/kobo/modules modules
     4005#               make -j8 CROSS_COMPILE=${CROSS_PREFIX} ARCH=arm INSTALL_MOD_PATH=/var/tmp/niluje/kobo/modules modules_install
    39924006if [[ "${KINDLE_TC}" == "KOBO" ]] ; then
    39934007        env -u CPPFLAGS -u CFLAGS -u CXXFLAGS -u LDFLAGS meson . builddir --cross-file MesonCross.txt --buildtype plain -Ddefault_library=static -Dudevrulesdir=${TC_BUILD_DIR}/etc/udev/rules.d -Dexamples=false -Dutils=true
Note: See TracChangeset for help on using the changeset viewer.