Changeset 16727 in niluje


Ignore:
Timestamp:
Nov 24, 2019, 6:55:33 PM (2 weeks ago)
Author:
NiLuJe
Message:

Kindle Hacks:

  • X-TC:
    • Fix fuse utils on Kobo
File:
1 edited

Legend:

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

    r16726 r16727  
    39743974cd fuse-3.8.0
    39753975update_title_info
     3976
     3977if [[ "${KINDLE_TC}" == "KOBO" ]] ; then
     3978        # NOTE: This was introduced in Linux 3.5, so it's not in our TC's headers, but will work at runtime on *some* of our target devices (i.e., >= Mk. 7).
     3979        #       Older devices can still use umount as root ;).
     3980        export CPPFLAGS="${BASE_CPPFLAGS} -DPR_SET_NO_NEW_PRIVS=38"
     3981fi
    39763982# NOTE: Can't use LTO (https://github.com/libfuse/libfuse/issues/198)
    39773983export CFLAGS="${NOLTO_CFLAGS}"
     
    40104016#               make -j8 CROSS_COMPILE=${CROSS_PREFIX} ARCH=arm INSTALL_MOD_PATH=/var/tmp/niluje/kobo/modules modules_install
    40114017if [[ "${KINDLE_TC}" == "KOBO" ]] ; then
    4012         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
     4018        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 -Duseroot=false
    40134019else
    40144020        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=false
    40154021fi
    40164022ninja -v -C builddir
     4023# Make sure it won't attempt to install the init script to the live, rootfs...
     4024sed -e 's#${DESTDIR}/etc#${DESTDIR}${sysconfdir}#' -i util/install_helper.sh
    40174025ninja -v -C builddir install
    40184026
    40194027export CFLAGS="${BASE_CFLAGS}"
     4028export CPPFLAGS="${BASE_CPPFLAGS}"
     4029
     4030# Install the utils on Kobo
     4031if [[ "${KINDLE_TC}" == "KOBO" ]] ; then
     4032        ${CROSS_TC}-strip --strip-unneeded ../bin/fusermount3
     4033        cp ../bin/fusermount3 ${BASE_HACKDIR}/USBNetwork/src/usbnet/bin/fusermount3
     4034        ${CROSS_TC}-strip --strip-unneeded ../sbin/mount.fuse3
     4035        cp ../sbin/mount.fuse3 ${BASE_HACKDIR}/USBNetwork/src/usbnet/sbin/mount.fuse3
     4036fi
    40204037
    40214038# And finally sshfs
Note: See TracChangeset for help on using the changeset viewer.