summaryrefslogtreecommitdiff
path: root/target/linux26.mk
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-22 08:47:09 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-22 08:47:09 +0000
commit4a175d23197948c6cd5e9870e66fb636c5daeb35 (patch)
tree950cb8a022e636bbb6f7d3b490dd96c1634de1e3 /target/linux26.mk
parent0848d01d385b9043c0994d146382c9c96f64209e (diff)
- add a sample (pseudo-)board for a mips malta box
Diffstat (limited to 'target/linux26.mk')
-rw-r--r--target/linux26.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/target/linux26.mk b/target/linux26.mk
index 679a07874..0db0d1eac 100644
--- a/target/linux26.mk
+++ b/target/linux26.mk
@@ -29,7 +29,11 @@ LINUX26_SITE=http://ftp.kernel.org/pub/linux/kernel/v2.6
ifndef LINUX26_FORMAT
LINUX26_FORMAT=zImage
endif
+# Has to be set by the target/device
+ifndef LINUX26_BINLOC
+# default:
LINUX26_BINLOC=arch/$(KERNEL_ARCH)/boot/$(LINUX26_FORMAT)
+endif
# Linux kernel configuration file
# Has to be set by the target/device
@@ -107,7 +111,7 @@ $(LINUX26_KERNEL): $(LINUX26_DIR)/.depend_done
$(TARGET_DIR)/boot/$(LINUX26_FORMAT): $(LINUX26_KERNEL)
[ -d $(TARGET_DIR)/boot/ ] || mkdir $(TARGET_DIR)/boot
- cp -a $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_DIR)/System.map $(TARGET_DIR)/boot/
+ cp -dpf $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_DIR)/System.map $(TARGET_DIR)/boot/
touch -c $@
$(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_KERNEL)
@@ -130,7 +134,7 @@ linux26-source: $(DL_DIR)/$(LINUX26_SOURCE)
# This has been renamed so we do _NOT_ by default run this on 'make clean'
linux26clean:
- rm -f $(LINUX26_KERNEL)
+ rm -f $(LINUX26_KERNEL) $(LINUX26_DIR)/.configured
-$(MAKE) PATH=$(TARGET_PATH) -C $(LINUX26_DIR) clean
linux26-dirclean: