[openwrt/openwrt] build: add image command for CE images
LEDE Commits
lede-commits at lists.infradead.org
Fri Jan 12 23:01:45 PST 2018
mkresin pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/a28bf67c2643a9fe19f561d08002e0e30ed52a17
commit a28bf67c2643a9fe19f561d08002e0e30ed52a17
Author: Sven Eckelmann <sven.eckelmann at open-mesh.com>
AuthorDate: Thu Nov 30 14:30:06 2017 +0100
build: add image command for CE images
Combined Extended Images V1 can be created easily via the new image
commands using
IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | combined-ext-image
Signed-off-by: Sven Eckelmann <sven.eckelmann at open-mesh.com>
---
include/image-commands.mk | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/include/image-commands.mk b/include/image-commands.mk
index 5f0ac61..bcc1256 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -229,6 +229,19 @@ define Build/combined-image
@mv $@.new $@
endef
+define Build/openmesh-image
+ $(TOPDIR)/scripts/om-fwupgradecfg-gen.sh \
+ "$(call param_get_default,ce_type,$(1),$(DEVICE_NAME))" \
+ "$@-fwupgrade.cfg" \
+ "$(call param_get_default,kernel,$(1),$(IMAGE_KERNEL))" \
+ "$(call param_get_default,rootfs,$(1),$@)"
+ $(TOPDIR)/scripts/combined-ext-image.sh \
+ "$(call param_get_default,ce_type,$(1),$(DEVICE_NAME))" "$@" \
+ "$@-fwupgrade.cfg" "fwupgrade.cfg" \
+ "$(call param_get_default,kernel,$(1),$(IMAGE_KERNEL))" "kernel" \
+ "$(call param_get_default,rootfs,$(1),$@)" "rootfs"
+endef
+
define Build/sysupgrade-tar
sh $(TOPDIR)/scripts/sysupgrade-tar.sh \
--board $(if $(BOARD_NAME),$(BOARD_NAME),$(DEVICE_NAME)) \
More information about the lede-commits
mailing list