build: move append-file to image-commands.mk
Move it append-file to image-commands.mk so that it can used by other targets as well. Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
This commit is contained in:
parent
99eb6f97e5
commit
aeba0fe466
2 changed files with 4 additions and 4 deletions
|
@ -110,6 +110,10 @@ define Build/append-rootfs
|
||||||
dd if=$(IMAGE_ROOTFS) >> $@
|
dd if=$(IMAGE_ROOTFS) >> $@
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/append-file
|
||||||
|
cat "$(1)" >> "$@"
|
||||||
|
endef
|
||||||
|
|
||||||
define Build/append-ubi
|
define Build/append-ubi
|
||||||
sh $(TOPDIR)/scripts/ubinize-image.sh \
|
sh $(TOPDIR)/scripts/ubinize-image.sh \
|
||||||
$(if $(UBOOTENV_IN_UBI),--uboot-env) \
|
$(if $(UBOOTENV_IN_UBI),--uboot-env) \
|
||||||
|
|
|
@ -31,10 +31,6 @@ define Image/Build
|
||||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1)-root.img bs=2k conv=sync
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1)-root.img bs=2k conv=sync
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/append-file
|
|
||||||
cat $(1) >> $@
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Device/Default
|
define Device/Default
|
||||||
PROFILES := Default
|
PROFILES := Default
|
||||||
KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
|
KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
|
||||||
|
|
Loading…
Reference in a new issue