mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
fix uml-2.6 build, move KERNELNAME to kernel-build.mk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5204 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -18,13 +18,25 @@ KERNEL_IPKG:=$(KERNEL_BUILD_DIR)/kernel_$(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEAS
|
|||||||
TARGETS += $(KERNEL_IPKG)
|
TARGETS += $(KERNEL_IPKG)
|
||||||
INSTALL_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/mipsel/mips/' \
|
||||||
-e 's/mipseb/mips/' \
|
-e 's/mipseb/mips/' \
|
||||||
-e 's/powerpc/ppc/' \
|
-e 's/powerpc/ppc/' \
|
||||||
-e 's/sh[234]/sh/' \
|
-e 's/sh[234]/sh/' \
|
||||||
-e 's/armeb/arm/' \
|
-e 's/armeb/arm/' \
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
|
KERNELNAME=
|
||||||
|
ifneq (,$(findstring x86,$(BOARD)))
|
||||||
|
KERNELNAME="bzImage"
|
||||||
|
endif
|
||||||
|
ifneq (,$(findstring ppc,$(BOARD)))
|
||||||
|
KERNELNAME="uImage"
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
$(TARGETS): $(PACKAGE_DIR)
|
$(TARGETS): $(PACKAGE_DIR)
|
||||||
|
|||||||
@@ -31,16 +31,7 @@ else
|
|||||||
LINUX_KMOD_SUFFIX=o
|
LINUX_KMOD_SUFFIX=o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
KERNELNAME=
|
|
||||||
ifneq (,$(findstring x86,$(BOARD)))
|
|
||||||
KERNELNAME="bzImage"
|
|
||||||
endif
|
|
||||||
ifneq (,$(findstring ppc,$(BOARD)))
|
|
||||||
KERNELNAME="uImage"
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq (,$(findstring uml,$(BOARD)))
|
ifneq (,$(findstring uml,$(BOARD)))
|
||||||
LINUX_KARCH:=um
|
|
||||||
KERNEL_CC:=$(HOSTCC)
|
KERNEL_CC:=$(HOSTCC)
|
||||||
KERNEL_CROSS:=
|
KERNEL_CROSS:=
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user