From 8b05ff2630b5ef2a5cc922d3577cec970b4d86bb Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 9 May 2021 19:43:17 -0700 Subject: [PATCH] linux-starfive: Switch back to starfive_vic7100_evb_sd_net_defconfig The real problem is that we can not boot kernel compiled with -Os/gcc-11, once we disable CONFIG_CC_OPTIMIZE_FOR_SIZE, original defconfig boots fine. Since its smaller in size and does not enable ton of modules like the fedora config, lets switch back to this Signed-off-by: Khem Raj --- recipes-kernel/linux/linux-starfive/extra.cfg | 2 ++ recipes-kernel/linux/linux-starfive_5.10.bb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes-kernel/linux/linux-starfive/extra.cfg b/recipes-kernel/linux/linux-starfive/extra.cfg index 52b06ec..823f8a9 100644 --- a/recipes-kernel/linux/linux-starfive/extra.cfg +++ b/recipes-kernel/linux/linux-starfive/extra.cfg @@ -2,3 +2,5 @@ CONFIG_CMDLINE="root=/dev/mmcblk0p2 rootwait console=ttyS0,115200" # CONFIG_INITRAMFS_FORCE is not set # CONFIG_CMDLINE_FALLBACK is not set CONFIG_CMDLINE_FORCE=y + +CONFIG_CC_OPTIMIZE_FOR_SIZE=n diff --git a/recipes-kernel/linux/linux-starfive_5.10.bb b/recipes-kernel/linux/linux-starfive_5.10.bb index 16cad82..3f9d68a 100644 --- a/recipes-kernel/linux/linux-starfive_5.10.bb +++ b/recipes-kernel/linux/linux-starfive_5.10.bb @@ -21,6 +21,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" PV = "${LINUX_VERSION}+git${SRCPV}" KCONFIG_MODE = "--alldefconfig" -KBUILD_DEFCONFIG_beaglev-starlight-jh7100 = "starfive_vic7100_evb_sd_net_fedora_defconfig" +KBUILD_DEFCONFIG_beaglev-starlight-jh7100 = "starfive_vic7100_evb_sd_net_defconfig" COMPATIBLE_MACHINE = "(beaglev-starlight-jh7100)"