diff options
author | Nigel Kukard <nkukard@lbsd.net> | 2008-03-29 17:47:36 +0000 |
---|---|---|
committer | Nigel Kukard <nkukard@lbsd.net> | 2008-03-29 17:47:36 +0000 |
commit | 0bda43bec96a9589dd5dfaeb26f5edce342a3651 (patch) | |
tree | 7c29d778f6c23c59898eb78e7489dddc30a45bac /target | |
parent | 0c0096201737734b33bee5bc5f5ef45f55cf7884 (diff) | |
download | buildroot-novena-0bda43bec96a9589dd5dfaeb26f5edce342a3651.tar.gz buildroot-novena-0bda43bec96a9589dd5dfaeb26f5edce342a3651.zip |
Feeding the kernel zero optimization -O0 breaks the kernel build at least on x86 with asm errors, remove -O0 when building the kernel
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/Makefile.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/Makefile.in b/target/linux/Makefile.in index 8cbb9520e..bd9f20309 100644 --- a/target/linux/Makefile.in +++ b/target/linux/Makefile.in @@ -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)" \ |