From 43fa4cb3bf62e158d6f3b2678fd744c51080dada Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Fri, 6 Sep 2024 07:43:09 +0200 Subject: [PATCH] Fix r7800 image compilation on kernel 6.6 --- build.sh | 2 +- config-r7800 | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index d34a54306..ad957b336 100755 --- a/build.sh +++ b/build.sh @@ -848,7 +848,7 @@ if [ "$OMR_KERNEL" = "6.6" ]; then #echo "# CONFIG_PACKAGE_kmod-r8168 is not set" >> ".config" #echo "# CONFIG_PACKAGE_kmod-button-hotplug is not set" >> ".config" #echo "# CONFIG_PACKAGE_kmod-cryptodev is not set" >> ".config" - if [ "$OMR_TARGET" != "ubnt-erx" ]; then + if [ "$OMR_TARGET" != "ubnt-erx" ] && [ "$OMR_TARGET" != "r7800" ]; then echo "CONFIG_BPF_TOOLCHAIN=y" >> ".config" echo "CONFIG_BPF_TOOLCHAIN_HOST=y" >> ".config" echo "CONFIG_KERNEL_BPF_EVENTS=y" >> ".config" diff --git a/config-r7800 b/config-r7800 index 961800013..1cecaa903 100644 --- a/config-r7800 +++ b/config-r7800 @@ -11,3 +11,11 @@ CONFIG_CRYPTO_SHA2_ARM_CE=y CONFIG_CRYPTO_GHASH_ARM_CE=y CONFIG_CRYPTO_AES_ARM=y CONFIG_CRYPTO_AES_ARM_CE=y +# CONFIG_KERNEL_CC_OPTIMIZE_FOR_PERFORMANCE is not set +CONFIG_KERNEL_CC_OPTIMIZE_FOR_SIZE=y +CONFIG_KERNEL_GPIO_SYSFS=y +# CONFIG_KERNEL_IPV6_SEG6_LWTUNNEL is not set +# CONFIG_KERNEL_CGROUP_BPF is not set +# CONFIG_KERNEL_KPROBES is not set +# CONFIG_KERNEL_FTRACE is not set +# CONFIG_KERNEL_KALLSYMS is not set