From: nbd Date: Wed, 6 Jan 2016 18:39:13 +0000 (+0000) Subject: ramips: do not rely on $(BIN_DIR) installed files during image build (for ubnt-erx) X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=13a47c7381d42efa4ecdcba4cf7c6cf5cc260611;p=openwrt.git ramips: do not rely on $(BIN_DIR) installed files during image build (for ubnt-erx) Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48147 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index 05d979573a..2427ac6d0f 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -77,10 +77,10 @@ define Build/ubnt-erx-factory-compat endef define Build/ubnt-erx-factory-kernel - if [ -e $(BIN_DIR)/$(KERNEL_INITRAMFS_IMAGE) ]; then \ - $(TAR) -rf $@ --transform='s/^.*/vmlinux.tmp/' $(BIN_DIR)/$(KERNEL_INITRAMFS_IMAGE); \ + if [ -e $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) ]; then \ + $(TAR) -rf $@ --transform='s/^.*/vmlinux.tmp/' $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE); \ \ - md5sum --binary $(BIN_DIR)/$(KERNEL_INITRAMFS_IMAGE) | awk '{print $$1}'> $@.md5; \ + md5sum --binary $(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE) | awk '{print $$1}'> $@.md5; \ $(TAR) -rf $@ --transform='s/^.*/vmlinux.tmp.md5/' $@.md5; \ $(RM) $@.md5; \ fi