fix install of in-tree modules ipkgs
[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 LINUX_DIR := $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)
24
25 KMOD_BUILD_DIR := $(KERNEL_BUILD_DIR)/linux-modules
26 MODULES_DIR := $(KERNEL_BUILD_DIR)/modules/$(MODULES_SUBDIR)
27 TARGET_MODULES_DIR := $(LINUX_TARGET_DIR)/$(MODULES_SUBDIR)
28 endif
This page took 0.045097 seconds and 5 git commands to generate.