瀏覽代碼

disable wgt634u image for brcm-2.4

SVN-Revision: 5697
Felix Fietkau 19 年之前
父節點
當前提交
18d2dcdddf
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      target/linux/brcm-2.6/image/Makefile

+ 4 - 2
target/linux/brcm-2.6/image/Makefile

@@ -24,10 +24,12 @@ define Image/Prepare
 	cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
 endef
 
-define Image/Build/wgt634u
+ifneq ($(KERNEL),2.4)
+  define Image/Build/wgt634u
 	dd if=$(KDIR)/loader.elf of=$(BIN_DIR)/openwrt-wgt634u-$(KERNEL)-$(2).bin bs=131072 conv=sync
 	cat $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).trx >> $(BIN_DIR)/openwrt-wgt634u-$(KERNEL)-$(2).bin
-endef
+  endef
+endif
 
 define Image/Build/CyberTAN
 	$(STAGING_DIR)/bin/addpattern -4 -p $(3) -v v$(4) -i $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(1).trx -o $(BIN_DIR)/openwrt-$(2)-$(KERNEL)-$(5).bin