kumquat-buildroot/toolchain/kernel-headers/kernel-headers.mk

41 lines
1.3 KiB
Makefile
Raw Normal View History

#############################################################
#
2007-08-22 14:35:41 +02:00
# Setup the kernel headers. I include a generic package of
# kernel headers here, so you shouldn't need to include your
2007-08-22 14:35:41 +02:00
# own. Be aware these kernel headers _will_ get blown away
# by a 'make clean' so don't put anything sacred in here...
#
#############################################################
DEFAULT_KERNEL_HEADERS:=$(call qstrip,$(BR2_DEFAULT_KERNEL_HEADERS))
LINUX_HEADERS_SITE:=127.0.0.1
LINUX_HEADERS_SOURCE:=unspecified-kernel-headers
LINUX_HEADERS_UNPACK_DIR:=$(TOOLCHAIN_DIR)/linux-libc-headers-null
2006-10-11 13:36:57 +02:00
KERNEL_ARCH:=$(shell $(SHELL) -c "echo \"$(ARCH)\" | sed -e \"s/-.*//\" \
-e s/i.86/i386/ -e s/sun4u/sparc64/ \
-e s/arm.*/arm/ -e s/sa110/arm/ \
-e s/parisc64/parisc/ \
-e s/powerpc64/powerpc/ \
2006-12-13 17:56:59 +01:00
-e s/ppc.*/powerpc/ -e s/mips.*/mips/ \
-e s/sh.*/sh/ -e s/nios2.*/nios2nommu/")
include toolchain/kernel-headers/kernel-headers-new.makefile
$(DL_DIR)/$(LINUX_HEADERS_SOURCE):
2009-01-16 12:47:05 +01:00
$(call DOWNLOAD,$(LINUX_HEADERS_SITE),$(LINUX_HEADERS_SOURCE))
2004-10-05 09:10:07 +02:00
kernel-headers: $(LINUX_HEADERS_DIR)/.configured
kernel-headers-source: $(DL_DIR)/$(LINUX_HEADERS_SOURCE)
kernel-headers-clean: clean
2004-10-05 09:10:07 +02:00
rm -rf $(LINUX_HEADERS_DIR)
kernel-headers-dirclean:
2004-10-05 09:10:07 +02:00
rm -rf $(LINUX_HEADERS_DIR)
rm -rf $(LINUX_HEADERS_UNPACK_DIR)
2006-07-19 08:37:58 +02:00
.PHONY: kernel-headers