diff options
author | Thiago A. CorrĂȘa <thiago.correa@gmail.com> | 2009-02-06 17:38:05 +0000 |
---|---|---|
committer | Thiago A. CorrĂȘa <thiago.correa@gmail.com> | 2009-02-06 17:38:05 +0000 |
commit | d16f8bf2cdf1b39cce2e44a317954d139f3258f4 (patch) | |
tree | ec9188990b5c8de50e4381870cfbf99c519fa2da /target/linux | |
parent | 2f72570992fa3765ea21ebde75a76edfc4a60261 (diff) | |
download | buildroot-novena-d16f8bf2cdf1b39cce2e44a317954d139f3258f4.tar.gz buildroot-novena-d16f8bf2cdf1b39cce2e44a317954d139f3258f4.zip |
Simplify kernel naming scheme. Only use kernel name plus the rootfs suffix if one is provided
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/Makefile.in | 14 | ||||
-rw-r--r-- | target/linux/Makefile.in.advanced | 8 |
2 files changed, 10 insertions, 12 deletions
diff --git a/target/linux/Makefile.in b/target/linux/Makefile.in index 30ef3b92a..1a9aea3a4 100644 --- a/target/linux/Makefile.in +++ b/target/linux/Makefile.in @@ -67,9 +67,11 @@ endif endif endif +ROOTFS_STRIPPED_SUFFIX=$(strip $(subst ",,$(ROOTFS_SUFFIX))) +#")) # File name for the Linux kernel binary ifndef LINUX26_KERNEL -LINUX26_KERNEL=$(BINARIES_DIR)/linux-kernel-$(LINUX26_VERSION)-$(KERNEL_ARCH) +LINUX26_KERNEL_NAME=$(BINARIES_DIR)/$(LINUX26_FORMAT)$(ROOTFS_STRIPPED_SUFFIX) endif # Version of Linux AFTER patches @@ -78,7 +80,7 @@ LINUX26_DIR=$(PROJECT_BUILD_DIR)/linux-$(LINUX26_VERSION) # for packages that need it LINUX_VERSION:=$(LINUX26_VERSION) LINUX_DIR=$(LINUX26_DIR) -LINUX_KERNEL=$(LINUX26_KERNEL) +LINUX_KERNEL=$(LINUX26_KERNEL_NAME) # kernel patches ifeq ($(strip $(LINUX26_PATCH_DIR)),) @@ -192,11 +194,11 @@ $(LINUX26_DIR)/.depend_done: $(LINUX26_DIR)/.configured $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) prepare touch $@ -$(LINUX26_KERNEL): $(INITRAMFS_TARGET) $(BB_INITRAMFS_TARGET) \ +$(LINUX26_KERNEL_NAME): $(INITRAMFS_TARGET) $(BB_INITRAMFS_TARGET) \ $(LINUX26_DIR)/.depend_done $(MAKE) $(LINUX26_MAKE_FLAGS) \ -C $(LINUX26_DIR) $(LINUX26_FORMAT) - cp -pf $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_KERNEL) + cp -pf $(LINUX26_DIR)/$(LINUX26_BINLOC) $(LINUX26_KERNEL_NAME) touch -c $@ $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_DIR)/.configured @@ -227,7 +229,7 @@ linux26-xconfig: $(LINUX26_DIR)/.patched host-sed $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) xconfig -[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured -linux26: $(LINUX26_KERNEL) +linux26: $(LINUX26_KERNEL_NAME) $(LINUX26_DIR)/.modules_installed: $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep touch $@ @@ -249,7 +251,7 @@ linux26-force: # This has been renamed so we do _NOT_ by default run this on 'make clean' linux26clean: - rm -f $(LINUX26_KERNEL) $(LINUX26_DIR)/.configured + rm -f $(LINUX26_KERNEL_NAME) $(LINUX26_DIR)/.configured -$(MAKE) PATH=$(TARGET_PATH) -C $(LINUX26_DIR) clean linux26-dirclean: diff --git a/target/linux/Makefile.in.advanced b/target/linux/Makefile.in.advanced index 83c692edd..240a251e3 100644 --- a/target/linux/Makefile.in.advanced +++ b/target/linux/Makefile.in.advanced @@ -138,7 +138,6 @@ ifeq ($(LINUX26_FORMAT),vmlinux) ifeq ($(LINUX26_BINLOC),) LINUX26_BINLOC:=$(LINUX26_FORMAT) endif -KERNEL_EXT:= endif # -------------- @@ -149,7 +148,6 @@ LINUX26_MKIMAGE_DEP:=$(LINUX26_MKIMAGE_DIR)/mkimage ifeq ($(LINUX26_BINLOC),) LINUX26_BINLOC:=arch/$(KERNEL_ARCH)/boot/$(LINUX26_FORMAT) endif -KERNEL_EXT:=.gz endif # -------------- @@ -158,7 +156,6 @@ ifeq ($(LINUX26_FORMAT),zImage) ifeq ($(LINUX26_BINLOC),) LINUX26_BINLOC:=arch/$(KERNEL_ARCH)/boot/$(LINUX26_FORMAT) endif -KERNEL_EXT:=.z endif # -------------- @@ -167,14 +164,13 @@ ifeq ($(LINUX26_FORMAT),bzImage) ifeq ($(LINUX26_BINLOC),) LINUX26_BINLOC:=arch/$(KERNEL_ARCH)/boot/bzImage endif -KERNEL_EXT:=.bz endif ROOTFS_STRIPPED_SUFFIX=$(strip $(subst ",,$(ROOTFS_SUFFIX))) #")) # ----------------------------------------------------------------------------- # File name for the Linux kernel binary -LINUX26_KERNEL_NAME:=$(BOARD_NAME)-linux-$(LINUX26_VERSION)$(ROOTFS_STRIPPED_SUFFIX)$(KERNEL_EXT) +LINUX26_KERNEL_NAME:=$(LINUX26_FORMAT)$(ROOTFS_STRIPPED_SUFFIX) ifeq ($(BOARD_NAME),) @@ -182,7 +178,7 @@ BOARD_NAME=$(ARCH) endif ifndef LINUX26_KERNEL -LINUX26_KERNEL:=$(BINARIES_DIR)/$(BOARD_NAME)-linux-$(LINUX26_VERSION)-$(DATE)$(KERNEL_EXT) +LINUX26_KERNEL:=$(BINARIES_DIR)/$(LINUX26_KERNEL_NAME) endif # for packages that need it |