aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/image/Makefile
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-09-26 16:07:44 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-10-02 21:26:12 +0200
commit2d977eb3d53a9fb442bc8847f41b88c5c4128c8a (patch)
treed4b86b58951e35544a8e5d40e92b26e45e5b1387 /target/linux/ath79/image/Makefile
parent53d19bb8cf88483df4fe4557c90cb3d85d9dd086 (diff)
downloadupstream-2d977eb3d53a9fb442bc8847f41b88c5c4128c8a.tar.gz
upstream-2d977eb3d53a9fb442bc8847f41b88c5c4128c8a.tar.bz2
upstream-2d977eb3d53a9fb442bc8847f41b88c5c4128c8a.zip
ath79: add recipe for common setup with loader-okli-compile
These instructions are repeated for a few devices now, let's move them to shared definition so we do not repeat ourselves too often. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ath79/image/Makefile')
-rw-r--r--target/linux/ath79/image/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/ath79/image/Makefile b/target/linux/ath79/image/Makefile
index aee4ddf963..38c623bf27 100644
--- a/target/linux/ath79/image/Makefile
+++ b/target/linux/ath79/image/Makefile
@@ -84,6 +84,14 @@ define Device/Default
append-rootfs | pad-rootfs | check-size | append-metadata
endef
+define Device/loader-okli-uimage
+ LOADER_TYPE := bin
+ COMPILE := loader-$(1).bin loader-$(1).uImage
+ COMPILE/loader-$(1).bin := loader-okli-compile
+ COMPILE/loader-$(1).uImage := append-loader-okli $(1) | pad-to 64k | \
+ lzma | uImage lzma
+endef
+
include $(SUBTARGET).mk
ifeq ($(SUBTARGET),generic)