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. SVN-Revision: 33066
This commit is contained in:
parent
f8386ecbc6
commit
798cc28d73
1 changed files with 8 additions and 1 deletions
|
@ -32,14 +32,21 @@ define Image/Prepare
|
||||||
cp $(LINUX_DIR)/arch/$(ARCH)/boot/zImage $(KDIR)/zImage
|
cp $(LINUX_DIR)/arch/$(ARCH)/boot/zImage $(KDIR)/zImage
|
||||||
endef
|
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
|
define Image/BuildKernel
|
||||||
$(foreach dtb,$(TARGET_DTBS),$(call Image/Build/DTB,$(dtb)))
|
$(foreach dtb,$(TARGET_DTBS),$(call Image/Build/DTB,$(dtb)))
|
||||||
$(call Image/Build/Initramfs)
|
$(call Image/Build/Initramfs)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(call Image/Build/$(1))
|
|
||||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
|
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
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
|
Loading…
Reference in a new issue