diff mbox

[OpenWrt-Devel,1/5] image.mk: add Build step combined-image

Message ID 1433680038-27070-2-git-send-email-lynxis@fe80.eu
State Accepted
Headers show

Commit Message

Alexander Couzens June 7, 2015, 12:27 p.m. UTC
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
---
 include/image.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Yaroslav Syrytsia June 7, 2015, 12:50 p.m. UTC | #1
Hi,

I think, you can replace the following line:
> "$(word 1,$^)"

By:
$<

07.06.2015, 15:29, "Alexander Couzens" <lynxis@fe80.eu>:
> Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
> ---
>  include/image.mk | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/include/image.mk b/include/image.mk
> index 020418d..287c679 100644
> --- a/include/image.mk
> +++ b/include/image.mk
> @@ -326,6 +326,13 @@ define Build/check-size
>          }
>  endef
>
> +define Build/combined-image
> + -sh $(TOPDIR)/scripts/combined-image.sh \
> + "$(word 1,$^)" \
> + "$@" \
> + "$@.new"
> + @mv $@.new $@
> +endef
>
>  define Device/Init
>    PROFILES := $(PROFILE)
> --
> 2.4.2
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

-- 
Regards,
Yaroslav
diff mbox

Patch

diff --git a/include/image.mk b/include/image.mk
index 020418d..287c679 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -326,6 +326,13 @@  define Build/check-size
 	}
 endef
 
+define Build/combined-image
+	-sh $(TOPDIR)/scripts/combined-image.sh \
+		"$(word 1,$^)" \
+		"$@" \
+		"$@.new"
+	@mv $@.new $@
+endef
 
 define Device/Init
   PROFILES := $(PROFILE)