diff --git a/target/linux/ath79/image/Makefile b/target/linux/ath79/image/Makefile index 38c623bf27..f6eefd76be 100644 --- a/target/linux/ath79/image/Makefile +++ b/target/linux/ath79/image/Makefile @@ -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