aboutsummaryrefslogtreecommitdiffstats
path: root/package/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-05-03 13:32:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-05-03 13:32:09 +0000
commit179929471383d05661848673fe84a3941a68ff18 (patch)
tree3e5f95b730ddc172f97f320125927247e6c1542c /package/linux
parent4731058d0d7ca5a9e587f1bbb5ec93c717ae13b7 (diff)
downloadupstream-179929471383d05661848673fe84a3941a68ff18.tar.gz
upstream-179929471383d05661848673fe84a3941a68ff18.tar.bz2
upstream-179929471383d05661848673fe84a3941a68ff18.zip
disable delayed branch optimization for kernel - seems to improve stability on v1 hardware
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@792 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/linux')
-rw-r--r--package/linux/linux.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/linux/linux.mk b/package/linux/linux.mk
index 5160ec119a..5e68bd5373 100644
--- a/package/linux/linux.mk
+++ b/package/linux/linux.mk
@@ -77,7 +77,7 @@ $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.configured
touch $(LINUX_DIR)/.depend_done
$(LINUX_DIR)/$(LINUX_BINLOC): $(LINUX_DIR)/.depend_done
- $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) $(LINUX_FORMAT)
+ $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) CFLAGS_KERNEL="-fno-delayed-branch " $(LINUX_FORMAT)
$(LINUX_KERNEL): $(LINUX_DIR)/$(LINUX_BINLOC)
cp -fa $< $@
@@ -88,7 +88,7 @@ $(LINUX_IMAGE): $(LINUX_KERNEL)
$(LINUX_DIR)/.modules_done: $(LINUX_KERNEL) $(LINUX_IMAGE)
rm -rf $(BUILD_DIR)/modules
- $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) modules
+ $(MAKE) -C $(LINUX_DIR) ARCH=$(LINUX_KARCH) PATH=$(TARGET_PATH) CFLAGS_KERNEL="-fno-delayed-branch " modules
$(MAKE) -C $(LINUX_DIR) DEPMOD=true INSTALL_MOD_PATH=$(BUILD_DIR)/modules modules_install
touch $(LINUX_DIR)/.modules_done