summaryrefslogtreecommitdiff
path: root/target/mipsel/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-01-02 15:00:05 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-01-02 15:00:05 +0100
commit3186006ccfc22fb075296bee0305d4a0803f46f6 (patch)
tree128935319e4372baec92b97c941531ee933c732c /target/mipsel/Makefile
parent2b38e5af3eb58c27cc646fed11ac1a24805fa05d (diff)
fix kernel install problem
Diffstat (limited to 'target/mipsel/Makefile')
-rw-r--r--target/mipsel/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/target/mipsel/Makefile b/target/mipsel/Makefile
index 63c52bc13..e58e907ee 100644
--- a/target/mipsel/Makefile
+++ b/target/mipsel/Makefile
@@ -37,13 +37,12 @@ endif
ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y)
kernel-install:
- $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) \
- $(TARGET_DIR)/boot/kernel
+ $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
endif
ifeq ($(ADK_TARGET_FS),cf)
imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSUSERTARBALL)
- @cp $(TARGET_DIR)/boot/kernel $(BIN_DIR)/$(TARGET_KERNEL)
+ @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
@echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
@echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSUSERTARBALL)"
@echo "Boot the board via network (tftp+nfsroot) and use adkinstall."
@@ -64,7 +63,7 @@ imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSSQUASHFS)
endif
ifeq ($(ADK_TARGET_FS),nfsroot)
imageinstall: kernel-install $(BIN_DIR)/$(ROOTFSUSERTARBALL)
- @cp $(TARGET_DIR)/boot/kernel $(TARGET_KERNEL)
+ @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
@echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
@echo 'The nfs root tarball is: ${BIN_DIR}/${ROOTFSUSERTARBALL}'
ifeq ($(ADK_TARGET_SYSTEM_LINKSYS_AG241),y)
@@ -80,7 +79,7 @@ endif
endif
ifeq ($(ADK_TARGET_FS),archive)
imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL)
- @cp $(KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
+ @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(BIN_DIR)/$(TARGET_KERNEL)
@echo 'The kernel file is: $(BIN_DIR)/${TARGET_KERNEL}'
@echo "The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL)"
@echo "Use following command to create a QEMU Image:"