From: Nicolas Thill Date: Wed, 18 Oct 2006 13:16:44 +0000 (+0000) Subject: fix uml-2.6 build, move KERNELNAME to kernel-build.mk X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=6c156d069b6e231a289e3eba1df7d4ed0c3249ff fix uml-2.6 build, move KERNELNAME to kernel-build.mk SVN-Revision: 5204 --- diff --git a/include/kernel-build.mk b/include/kernel-build.mk index 06f4ce7726..a3c714c688 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -18,13 +18,25 @@ KERNEL_IPKG:=$(KERNEL_BUILD_DIR)/kernel_$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEAS TARGETS += $(KERNEL_IPKG) INSTALL_TARGETS += $(KERNEL_IPKG) -LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \ +ifneq (,$(findstring uml,$(BOARD))) + LINUX_KARCH:=um +else + LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \ -e 's/mipsel/mips/' \ -e 's/mipseb/mips/' \ -e 's/powerpc/ppc/' \ -e 's/sh[234]/sh/' \ -e 's/armeb/arm/' \ -) + ) +endif + +KERNELNAME= +ifneq (,$(findstring x86,$(BOARD))) + KERNELNAME="bzImage" +endif +ifneq (,$(findstring ppc,$(BOARD))) + KERNELNAME="uImage" +endif $(TARGETS): $(PACKAGE_DIR) diff --git a/include/kernel.mk b/include/kernel.mk index 7c0ba6d7dd..7a36cee1a5 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -31,16 +31,7 @@ else LINUX_KMOD_SUFFIX=o endif - KERNELNAME= - ifneq (,$(findstring x86,$(BOARD))) - KERNELNAME="bzImage" - endif - ifneq (,$(findstring ppc,$(BOARD))) - KERNELNAME="uImage" - endif - ifneq (,$(findstring uml,$(BOARD))) - LINUX_KARCH:=um KERNEL_CC:=$(HOSTCC) KERNEL_CROSS:= else