summaryrefslogtreecommitdiff
path: root/target/linux/Makefile.in.advanced
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-11 20:43:24 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-11 20:43:24 +0000
commit06b9e7abe73fa0fa2db1bc990ff590313b711586 (patch)
tree884ee037e2d07432c9672c3267f683a5cc4e20cc /target/linux/Makefile.in.advanced
parent6b054c3b90f922a447ee8560682561a66eb5009e (diff)
Move kernel localversion files to TARGET_DIR/boot
to allow packages which assumes that LINUX26_DIR and the /lib/modules/LINUX_VERSION use the consistent version numbering to build. Create a file ".linux-version" containing the real linux version in $(PROJECT_B UILD_DIR) to allow packages to read the correct linux version
Diffstat (limited to 'target/linux/Makefile.in.advanced')
-rw-r--r--target/linux/Makefile.in.advanced9
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/Makefile.in.advanced b/target/linux/Makefile.in.advanced
index 51ddf4113..15dff261e 100644
--- a/target/linux/Makefile.in.advanced
+++ b/target/linux/Makefile.in.advanced
@@ -223,7 +223,7 @@ endif
# -----------------------------------------------------------------------------
-LINUX26_TARGETS+=$(LINUX26_KERNEL)
+LINUX26_TARGETS+=$(LINUX26_KERNEL) linux26-version
ifeq ($(BR2_LINUX_COPYTO_ROOTFS),y)
LINUX26_TARGETS+=$(TARGET_DIR)/boot/$(LINUX26_KERNEL_NAME)
@@ -386,6 +386,7 @@ endif
# -----------------------------------------------------------------------------
$(LINUX26_DIR)/.depend_done: $(LINUX26_DIR)/.configured $(LINUX26_MKIMAGE_DEP)
+ -mv $(LINUX26_DIR)/localversion* $(TARGET_DIR)/boot
$(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) prepare
touch $@
@@ -457,12 +458,18 @@ $(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME): $(LINUX26_KERNEL)
cp -dpf $(LINUX26_KERNEL) $(LINUX_COPYTO)/$(LINUX26_KERNEL_NAME)
endif
+$(PROJECT_BUILD_DIR)/.linux-version:
+ echo $(LINUX26_VERSION_PROBED) > $(PROJECT_BUILD_DIR)/.linux-version
+ echo LINUX_MODULES=$(LINUX26_VERSION_PROBED)
+
linux26-mkimage: u-boot
mkdir -p $(LINUX26_MKIMAGE_DIR)
cp $(MKIMAGE) $(LINUX26_MKIMAGE_DIR)
linux26: $(LINUX26_TARGETS)
+linux26-version: $(PROJECT_BUILD_DIR)/.linux-version
+
linux26-modules: cross-depmod26 $(PROJECT_BUILD_DIR)/autotools-stamps/linux_modules_target_installed
linux26-source: $(DL_DIR)/$(LINUX26_SOURCE)