[OpenWrt-Devel] [PATCH] build: Add append-uboot-spl command
Petr Štetiar
ynezz at true.cz
Fri Nov 23 04:52:57 EST 2018
Example usage:
Define Device/apalis
...
UBOOT_PATH := $$(STAGING_DIR_IMAGE)/$$(UBOOT)-u-boot.img
UBOOT_SPL_PATH := $$(STAGING_DIR_IMAGE)/$$(UBOOT)-SPL
ARTIFACTS := spl-uboot.bin
ARTIFACT/spl-uboot.bin := append-uboot-spl | pad-to 68k | append-uboot
endef
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
include/image-commands.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/image-commands.mk b/include/image-commands.mk
index 05d3609..c324bc2 100644
--- a/include/image-commands.mk
+++ b/include/image-commands.mk
@@ -221,6 +221,10 @@ define Build/append-uboot
dd if=$(UBOOT_PATH) >> $@
endef
+define Build/append-uboot-spl
+ dd if=$(UBOOT_SPL_PATH) >> $@
+endef
+
define Build/pad-to
dd if=$@ of=$@.new bs=$(1) conv=sync
mv $@.new $@
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list