atheros switch support: add missing commit statements
[openwrt.git] / target / linux / gemini / image / Makefile
index 6fb7750..add004e 100644 (file)
@@ -14,7 +14,9 @@ define Image/Prepare
 endef
 
 define Image/BuildKernel
-       cp $(KDIR)/openwrt-$(BOARD)-wbd111-zImage $(BIN_DIR)/openwrt-$(BOARD)-wbd111-zImage
+# workaround the bootloader's bug with extra nops
+       echo -en "\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1\x00\x00\xa0\xe1" > $(BIN_DIR)/openwrt-$(BOARD)-wbd111-zImage
+       cat $(KDIR)/openwrt-$(BOARD)-wbd111-zImage >> $(BIN_DIR)/openwrt-$(BOARD)-wbd111-zImage
 endef
 
 define Image/Build/jffs2-64k
@@ -27,6 +29,7 @@ endef
 
 define Image/Build/squashfs
        $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
+       dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=128k conv=sync
 endef
 
 define Image/Build
This page took 0.037365 seconds and 4 git commands to generate.