diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-19 05:01:04 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-19 05:01:04 +0000 |
commit | 87e6a7e4f21ff57ba3ec947614f52967f57a9cbb (patch) | |
tree | 8208ce17578f7f973398d68d3332907c4806fe9c /include/kernel-build.mk | |
parent | edc69c912bb40e98fb96f96c8975a46f3365771f (diff) | |
download | upstream-87e6a7e4f21ff57ba3ec947614f52967f57a9cbb.tar.gz upstream-87e6a7e4f21ff57ba3ec947614f52967f57a9cbb.tar.bz2 upstream-87e6a7e4f21ff57ba3ec947614f52967f57a9cbb.zip |
cleanup
SVN-Revision: 5224
Diffstat (limited to 'include/kernel-build.mk')
-rw-r--r-- | include/kernel-build.mk | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk index 0697b79a53..04c3c7f8e6 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -4,7 +4,10 @@ # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # +KERNEL_BUILD:=1 + include $(INCLUDE_DIR)/host.mk +include $(INCLUDE_DIR)/kernel.mk LINUX_SOURCE:=linux-$(LINUX_VERSION).tar.bz2 LINUX_SITE=http://www.us.kernel.org/pub/linux/kernel/v$(KERNEL) \ @@ -43,7 +46,7 @@ $(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE) touch $@ ifeq ($(KERNEL),2.4) -$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched +$(LINUX_DIR)/.configured: $(LINUX_DIR)/.patched $(LINUX_DIR)/.config $(SED) "s,\-mcpu=,\-mtune=,g;" $(LINUX_DIR)/arch/mips/Makefile $(MAKE) -C $(LINUX_DIR) CROSS_COMPILE="$(KERNEL_CROSS)" CC="$(KERNEL_CC)" ARCH=$(LINUX_KARCH) oldconfig include/linux/compile.h include/linux/version.h touch $@ @@ -73,25 +76,22 @@ else echo 'CONFIG_INITRAMFS_SOURCE=""' >> $(LINUX_DIR)/.config endif -$(LINUX_DIR)/vmlinux: $(LINUX_DIR)/.linux-compile ramdisk-config +$(LINUX_DIR)/vmlinux: ramdisk-config $(MAKE) -j$(CONFIG_JLEVEL) -C $(LINUX_DIR) CROSS_COMPILE="$(KERNEL_CROSS)" CC="$(KERNEL_CC)" ARCH=$(LINUX_KARCH) $(KERNELNAME) $(LINUX_KERNEL): $(LINUX_DIR)/vmlinux $(KERNEL_CROSS)objcopy -O binary -R .reginfo -R .note -R .comment -R .mdebug -S $< $@ touch -c $(LINUX_KERNEL) -$(LINUX_DIR)/.modules_done: +$(LINUX_DIR)/.modules_done: $(LINUX_DIR)/.config rm -rf $(KERNEL_BUILD_DIR)/modules $(MAKE) -j$(CONFIG_JLEVEL) -C "$(LINUX_DIR)" CROSS_COMPILE="$(KERNEL_CROSS)" CC="$(KERNEL_CC)" ARCH=$(LINUX_KARCH) modules $(MAKE) -C "$(LINUX_DIR)" CROSS_COMPILE="$(KERNEL_CROSS)" CC="$(KERNEL_CC)" ARCH=$(LINUX_KARCH) DEPMOD=true INSTALL_MOD_PATH=$(KERNEL_BUILD_DIR)/modules modules_install touch $(LINUX_DIR)/.modules_done -modules: $(LINUX_DIR)/.modules_done - -$(LINUX_DIR)/.linux-compile: +$(LINUX_DIR)/.linux-compile: $(LINUX_DIR)/.modules_done @rm -f $(BUILD_DIR)/linux ln -sf $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION) $(BUILD_DIR)/linux - @$(MAKE) modules touch $@ $(TOPDIR)/.kernel.mk: $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/Makefile @@ -106,7 +106,6 @@ prepare: $(LINUX_DIR)/.configured @mkdir -p $(LINUX_DIR) compile: prepare $(LINUX_DIR)/.linux-compile - install: compile $(LINUX_KERNEL) mostlyclean: FORCE |