Feeding the kernel zero optimization -O0 breaks the kernel build at least on x86...
authorNigel Kukard <nkukard@lbsd.net>
Sat, 29 Mar 2008 17:47:36 +0000 (17:47 -0000)
committerNigel Kukard <nkukard@lbsd.net>
Sat, 29 Mar 2008 17:47:36 +0000 (17:47 -0000)
target/linux/Makefile.in

index 8cbb9520ef6db06ecd5c34372d253d342a0fb343..bd9f203092313aacb891197cd5218c3f8931ab96 100644 (file)
@@ -84,9 +84,10 @@ LINUX26_PATCH_DIR:=$(BOARD_PATH)/kernel-patches/
 endif
 endif
 __LINUX26_NO_PIC=-fPIC -fpic -DPIC -fwrapv -ftrapv
+__LINUX26_ZERO_OPTIMIZATION=-O0
 LINUX26_MAKE_FLAGS = HOSTCC="$(HOSTCC)" HOSTCFLAGS="$(HOSTCFLAGS)" \
        ARCH=$(KERNEL_ARCH) \
-       CFLAGS_KERNEL="$(filter-out $(__LINUX26_NO_PIC),$(TARGET_CFLAGS))" \
+       CFLAGS_KERNEL="$(filter-out $(__LINUX26_NO_PIC) $(__LINUX26_ZERO_OPTIMIZATION),$(TARGET_CFLAGS))" \
        INSTALL_MOD_PATH=$(TARGET_DIR) \
        CROSS_COMPILE=$(KERNEL_CROSS) \
        LDFLAGS="$(TARGET_LDFLAGS)" \