ath79: append/prepad okli kernel support
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit ce6fd478a3)
This commit is contained in:
committed by
Tianling Shen
parent
5062047f8a
commit
ff266e929e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user