Allow madwifi devices to be set in monitor mode
[openwrt.git] / toolchain / kernel-headers / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 KERNEL_BUILD_DIR := $(BUILD_DIR_TOOLCHAIN)
10 BUILD_DIR := $(KERNEL_BUILD_DIR)
11
12 STAGING_DIR_HOST:=$(TOOLCHAIN_DIR)
13 BUILD_DIR_HOST:=$(BUILD_DIR_TOOLCHAIN)
14 override QUILT:=
15
16 include $(INCLUDE_DIR)/kernel.mk
17
18 PKG_NAME:=linux
19 PKG_VERSION:=$(LINUX_VERSION)
20 PKG_SOURCE:=$(LINUX_SOURCE)
21 PKG_SOURCE_URL:=$(LINUX_SITE)
22 PKG_BUILD_DIR := $(KERNEL_BUILD_DIR)/linux-$(LINUX_VERSION)
23 PKG_MD5SUM:=$(LINUX_KERNEL_MD5SUM)
24 LINUX_DIR := $(PKG_BUILD_DIR)
25
26 include $(INCLUDE_DIR)/host-build.mk
27 include $(INCLUDE_DIR)/kernel-defaults.mk
28
29 define Build/Configure/cris
30 ln -sf $(PKG_BUILD_DIR)/include/asm-cris/arch-v10 $(PKG_BUILD_DIR)/include/asm-cris/arch
31 ln -sf $(PKG_BUILD_DIR)/include/asm-cris/arch-v10 $(PKG_BUILD_DIR)/arch/cris/arch
32 endef
33
34 define Build/Configure/powerpc
35 $(CP) $(PKG_BUILD_DIR)/include/asm-ppc/* $(PKG_BUILD_DIR)/include/asm-powerpc/
36 rm -rf $(PKG_BUILD_DIR)/include/asm-ppc
37 ln -s $(PKG_BUILD_DIR)/include/asm-powerpc $(PKG_BUILD_DIR)/include/asm-ppc
38 endef
39
40 ifneq (,$(findstring uml,$(BOARD)))
41 LINUX_KARCH:=$(ARCH)
42 endif
43
44 KMAKE := $(MAKE) -C $(PKG_BUILD_DIR) \
45 ARCH=$(LINUX_KARCH) \
46 KBUILD_HAVE_NLS=no \
47 CONFIG_SHELL=$(BASH)
48
49 define Build/Prepare
50 $(call Kernel/Prepare/Default)
51 $(SED) 's/@expr length/@-expr length/' $(PKG_BUILD_DIR)/Makefile
52 ln -sf linux-$(LINUX_VERSION) $(LINUX_HEADERS_DIR)
53 yes '' | $(KMAKE) oldconfig
54 $(KMAKE) include/linux/version.h include/asm
55 $(call Build/Configure/$(ARCH))
56 endef
57
58 define Build/Configure
59 endef
60
61 define Build/Compile
62 endef
63
64 define Build/Install
65 endef
66
67 $(eval $(call HostBuild))
This page took 0.048625 seconds and 5 git commands to generate.