ath79: append/prepad okli kernel support

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit ce6fd478a3)
This commit is contained in:
Chen Minqiang
2020-12-06 18:37:15 +08:00
committed by Tianling Shen
parent 5062047f8a
commit ff266e929e

View File

@@ -65,6 +65,16 @@ define Build/relocate-kernel
rm -rf $@.relocate
endef
define Build/append-okli-kernel
dd if="$(KDIR)/loader-$(word 1,$(1)).uImage" >> "$@"
endef
define Build/prepad-okli-kernel
-[ -f "$@" ] && \
dd if="$(KDIR)/loader-$(word 1,$(1)).uImage" of="$@".tmp bs=64k conv=sync && \
cat "$@" >>"$@".tmp && \
mv "$@".tmp "$@"
endef
define Device/Default
DEVICE_DTS_DIR := ../dts