be politically correct
[openwrt.git] / package / kernel.mk
1 ifneq ($(DUMP),1)
2 include $(BUILD_DIR)/kernel.mk
3
4 KERNEL:=unknown
5 ifneq (,$(findstring 2.4.,$(LINUX_VERSION)))
6 KERNEL:=2.4
7 LINUX_KMOD_SUFFIX=o
8 endif
9 ifneq (,$(findstring 2.6.,$(LINUX_VERSION)))
10 KERNEL:=2.6
11 LINUX_KMOD_SUFFIX=ko
12 endif
13
14 LINUX_KARCH:=$(shell echo $(ARCH) | sed -e 's/i[3-9]86/i386/' \
15 -e 's/mipsel/mips/' \
16 -e 's/mipseb/mips/' \
17 -e 's/powerpc/ppc/' \
18 -e 's/sh[234]/sh/' \
19 -e 's/armeb/arm/' \
20 )
21
22 KERNEL_BUILD_DIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
23 ifeq ($(LINUX_NAME),)
24 LINUX_NAME:=linux-$(LINUX_VERSION)
25 endif
26 LINUX_DIR := $(KERNEL_BUILD_DIR)/$(LINUX_NAME)
27
28 KMOD_BUILD_DIR := $(KERNEL_BUILD_DIR)/linux-modules
29 MODULES_DIR := $(KERNEL_BUILD_DIR)/modules/$(MODULES_SUBDIR)
30 TARGET_MODULES_DIR := $(LINUX_TARGET_DIR)/$(MODULES_SUBDIR)
31 endif
This page took 0.038836 seconds and 5 git commands to generate.