2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/kernel.mk
10 PKG_NAME
=kernel-headers
11 PKG_VERSION
=$(LINUX_VERSION
)
13 PKG_SOURCE
=$(LINUX_SOURCE
)
14 PKG_SOURCE_URL
=$(LINUX_SITE
)
16 PKG_BUILD_DIR
:=$(TOOLCHAIN_BUILD_DIR
)/linux-
$(PKG_VERSION
)
18 LINUX_DIR
:=$(PKG_BUILD_DIR
)
19 KERNEL_BUILD_DIR
:=$(TOOLCHAIN_BUILD_DIR
)
22 include $(INCLUDE_DIR
)/host-build.mk
23 include $(INCLUDE_DIR
)/kernel-defaults.mk
26 define Build
/Prepare
/cris
27 mkdir
-p
$(TOOLCHAIN_BUILD_DIR
)
28 bzcat
$(DL_DIR
)/$(PKG_SOURCE
) |
$(HOST_TAR
) -C
$(TOOLCHAIN_BUILD_DIR
) $(TAR_OPTIONS
)
29 $(PATCH
) $(PKG_BUILD_DIR
) $(TOPDIR
)/target
/linux
/etrax-2.6
/patches
/generic_2.6
30 $(PATCH
) $(PKG_BUILD_DIR
) $(TOPDIR
)/target
/linux
/etrax-2.6
/patches
/cris
31 ln
-sf
$(PKG_BUILD_DIR
)/include/asm-cris
/arch-v10
$(PKG_BUILD_DIR
)/include/asm-cris
/arch
32 ln
-sf
$(PKG_BUILD_DIR
)/arch
/cris
/arch-v10
$(PKG_BUILD_DIR
)/arch
/cris
/arch
33 $(SED
) 's/@expr length/@-expr length/' $(PKG_BUILD_DIR
)/Makefile
34 ln
-sf
$(PKG_BUILD_DIR
) $(LINUX_HEADERS_DIR
)
37 define Build
/Configure
/powerpc
38 $(CP
) $(PKG_BUILD_DIR
)/include/asm-ppc
/* $(PKG_BUILD_DIR
)/include/asm-powerpc
/
39 rm -rf
$(PKG_BUILD_DIR
)/include/asm-ppc
40 mv
$(PKG_BUILD_DIR
)/include/asm-powerpc
$(PKG_BUILD_DIR
)/include/asm-ppc
43 ifneq (,$(findstring uml
,$(BOARD
)))
47 KMAKE
:= $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 define Build
/Prepare
/Default
52 $(call Kernel
/Prepare
/Default
)
53 $(SED
) 's/@expr length/@-expr length/' $(PKG_BUILD_DIR
)/Makefile
54 ln
-sf
$(PKG_BUILD_DIR
) $(LINUX_HEADERS_DIR
)
58 $(if
$(Build
/Prepare
/$(ARCH
)),$(Build
/Prepare
/$(ARCH
)),$(Build
/Prepare
/Default
))
59 yes
'' |
$(KMAKE
) oldconfig
60 $(KMAKE
) include/linux
/version.h
include/asm
61 $(call Build
/Configure
/$(ARCH
))
64 define Build
/Configure
73 $(eval
$(call HostBuild
))
This page took 0.040133 seconds and 5 git commands to generate.