ramips: do not rely on $(BIN_DIR) installed files during image build (for ubnt-erx)
authorFelix Fietkau <nbd@openwrt.org>
Wed, 6 Jan 2016 18:39:13 +0000 (18:39 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 6 Jan 2016 18:39:13 +0000 (18:39 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48147

target/linux/ramips/image/Makefile

index 05d979573a0cd62a4ba02b0175ce327c9e4586d2..2427ac6d0f39daf0374a53e3912258c1934dadc8 100644 (file)
@@ -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