summaryrefslogtreecommitdiff
path: root/openwrt
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
commitd5fbd28ccd84b96328c35ca54aac05a16b3122f5 (patch)
tree385a7672d17f42f15e48b8231c9bdc5119cea4b2 /openwrt
parent5c72aa0a95ad1560d88ee224486c49c8db0941b8 (diff)
downloadmtk-20170518-d5fbd28ccd84b96328c35ca54aac05a16b3122f5.zip
mtk-20170518-d5fbd28ccd84b96328c35ca54aac05a16b3122f5.tar.gz
mtk-20170518-d5fbd28ccd84b96328c35ca54aac05a16b3122f5.tar.bz2
disable delayed branch optimization for kernel - seems to improve stability on v1 hardware
SVN-Revision: 792
Diffstat (limited to 'openwrt')
-rw-r--r--openwrt/package/linux/linux.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/openwrt/package/linux/linux.mk b/openwrt/package/linux/linux.mk
index 5160ec1..5e68bd5 100644
--- a/openwrt/package/linux/linux.mk
+++ b/openwrt/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