X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fimage%2FMakefile;h=56e07d82f3338d2fe2b05a495a2297818372b80e;hb=0d1fb7224196d1e4c829687550b343546829d760;hp=bce5cd3774457f65c5379a968df447d12b4a2383;hpb=fce0b5d8938ae900057766679139e6eb8b0f8c54;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index bce5cd3774..56e07d82f3 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -78,6 +78,15 @@ define Build/loader-okli mv "$@.new" "$@" endef +define Build/relocate-kernel + ( \ + dd if=$(KDIR)/relocate.bin bs=32 conv=sync && \ + perl -e '@s = stat("$@"); print pack("N", @s[7])' && \ + cat "$@" \ + ) > "$@.new" + mv "$@.new" "$@" +endef + define Build/copy-file cat "$(1)" > "$@" endef