diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-08-08 21:51:00 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-08-08 21:51:00 +0000 |
commit | d1e20e7b57b386e6fd0e6a0b0c0493377c0cdca4 (patch) | |
tree | 3f9ecf79c01c043e9bbef7a279b5645cbb00100a /target/linux/mcs814x | |
parent | df804c6333795ac20278b601b6a99525a7d50bde (diff) |
[mcs814x] build a Devolo dLAN USB Extender specific image
The kernel has to be rounded up to the nearest 1MB, then we append
the root filesystem at its end.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33066 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/mcs814x')
-rw-r--r-- | target/linux/mcs814x/image/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/mcs814x/image/Makefile b/target/linux/mcs814x/image/Makefile index 89772c98ef..f0642e3f9d 100644 --- a/target/linux/mcs814x/image/Makefile +++ b/target/linux/mcs814x/image/Makefile @@ -32,14 +32,21 @@ define Image/Prepare cp $(LINUX_DIR)/arch/$(ARCH)/boot/zImage $(KDIR)/zImage endef +define Image/Build/dlan + dd if=$(KDIR)/uImage-dlan-usb-extender bs=1M conv=sync of=$(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade.bin + cat $(KDIR)/root.$(1) >> $(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade.bin + cp $(KDIR)/$(IMG_PREFIX)-dlan-usb-extender-upgrade.bin $(BIN_DIR)/ +endef + define Image/BuildKernel $(foreach dtb,$(TARGET_DTBS),$(call Image/Build/DTB,$(dtb))) $(call Image/Build/Initramfs) endef define Image/Build - $(call Image/Build/$(1)) dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync + $(call Image/Build/$(1)) + $(call Image/Build/dlan,$(1)) endef $(eval $(call BuildImage)) |