From 843dd8fcd71929fecaaf1e9c9cc856b4f2b4246f Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Mon, 5 Jul 2021 13:49:18 +0800 Subject: [PATCH] ath79: fix dw33d nor breed-factory build --- target/linux/ath79/image/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/target/linux/ath79/image/Makefile b/target/linux/ath79/image/Makefile index aa8665fbb..72f924280 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