X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fimage%2FMakefile;h=4ae9ca4f2b8db5583d0b23964ec62aec10de4d59;hb=1e10c2290697bbe3e168e4b451c63d7b1640a6ac;hp=422366c09855609adb0a3d0b8408a54c984d3f79;hpb=bc2037b2fdce8d20c92e949895a9594656dc0a88;p=openwrt.git diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 422366c098..4ae9ca4f2b 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -62,7 +62,7 @@ endef define Build/relocate-kernel ( \ - dd if=$(KDIR)/relocate/loader.bin bs=32 conv=sync && \ + dd if=$(KDIR)/loader.bin bs=32 conv=sync && \ perl -e '@s = stat("$@"); print pack("V", @s[7])' && \ cat $@ \ ) > $@.new @@ -989,10 +989,12 @@ endef endif ifeq ($(SUBTARGET),mt7621) -define Build/Compile +define Image/Prepare +#define Build/Compile rm -rf $(KDIR)/relocate $(CP) ../../generic/image/relocate $(KDIR) $(MAKE) -C $(KDIR)/relocate KERNEL_ADDR=$(KERNEL_LOADADDR) CROSS_COMPILE=$(TARGET_CROSS) + $(CP) $(KDIR)/relocate/loader.bin $(KDIR)/loader.bin endef endif