X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/93a81f3d60c3217a6750321db5903df9a5b5ed6f..4abdc14d85b3e447fa56b1d8c60f0cfffa93455f:/openwrt/package/linux/linux.mk?ds=sidebyside diff --git a/openwrt/package/linux/linux.mk b/openwrt/package/linux/linux.mk index 5160ec119..1cfd69988 100644 --- a/openwrt/package/linux/linux.mk +++ b/openwrt/package/linux/linux.mk @@ -52,7 +52,6 @@ $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE) $(DL_DIR)/$(LINUX_BINARY_WL_DR touch $(LINUX_DIR)/.unpacked $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked - $(PATCH) $(LINUX_DIR) $(LINUX_PATCHES) # copy kernel source which is maintained in openwrt via cvs cp -a $(LINUX_KERNEL_SOURCE)/* $(LINUX_DIR) # copy binary wlan driver @@ -60,6 +59,7 @@ $(LINUX_DIR)/.patched: $(LINUX_DIR)/.unpacked # copy proprietary et source cp -a $(BUILD_DIR)/et/* $(LINUX_DIR)/drivers/net/et cp -a $(BUILD_DIR)/et/*.h $(LINUX_DIR)/include/ + $(PATCH) $(LINUX_DIR) $(LINUX_PATCHES) $(SED) 's/@expr length/@-expr length/' $(LINUX_DIR)/Makefile touch $(LINUX_DIR)/.patched @@ -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