Merge pull request #6898 from HiassofT/le11-kodi-no-ccache

fix ccache handling of kodi and gcc:bootstrap
This commit is contained in:
Rudi Heitbaum 2022-09-18 18:42:17 +10:00 committed by GitHub
commit bb49fdc74c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 1 deletions

View File

@ -78,6 +78,28 @@ PKG_CONFIGURE_OPTS_HOST="${GCC_COMMON_CONFIGURE_OPTS} \
--enable-clocale=gnu \
${TARGET_ARCH_GCC_OPTS}"
post_makeinstall_bootstrap() {
GCC_VERSION=$(${TOOLCHAIN}/bin/${TARGET_NAME}-gcc -dumpversion)
DATE="0401$(echo ${GCC_VERSION} | sed 's/\./0/g')"
CROSS_CC=${TARGET_PREFIX}gcc-${GCC_VERSION}
rm -f ${TARGET_PREFIX}gcc
cat > ${TARGET_PREFIX}gcc <<EOF
#!/bin/sh
${TOOLCHAIN}/bin/ccache ${CROSS_CC} "\$@"
EOF
chmod +x ${TARGET_PREFIX}gcc
# To avoid cache trashing
touch -c -t ${DATE} ${CROSS_CC}
# install lto plugin for binutils
mkdir -p ${TOOLCHAIN}/lib/bfd-plugins
ln -sf ../gcc/${TARGET_NAME}/${GCC_VERSION}/liblto_plugin.so ${TOOLCHAIN}/lib/bfd-plugins
}
pre_configure_host() {
unset CPP
}

View File

@ -229,7 +229,7 @@ configure_package() {
-DENABLE_UDEV=ON \
-DENABLE_DBUS=ON \
-DENABLE_XSLT=ON \
-DENABLE_CCACHE=ON \
-DENABLE_CCACHE=OFF \
-DENABLE_LIRCCLIENT=ON \
-DENABLE_EVENTCLIENTS=ON \
-DENABLE_LDGOLD=ON \