diff options
Diffstat (limited to 'target/linux/ramips/image/Makefile')
-rw-r--r-- | target/linux/ramips/image/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 9cf64361a4..b4ff9a7492 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -74,12 +74,16 @@ define Build/loader-kernel endef define Build/relocate-kernel + rm -rf $@.relocate + $(CP) ../../generic/image/relocate $@.relocate + $(MAKE) -C $@.relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS) ( \ - dd if=$(KDIR)/loader.bin bs=32 conv=sync && \ + dd if=$@.relocate/loader.bin bs=32 conv=sync && \ perl -e '@s = stat("$@"); print pack("V", @s[7])' && \ cat $@ \ ) > $@.new mv $@.new $@ + rm -rf $@.relocate endef define MkCombineduImage |