summaryrefslogtreecommitdiff
path: root/obsolete-buildroot/make/kernel-headers.mk
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-17 12:24:08 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-17 12:24:08 +0000
commitbf3eda107c10e5d73c716744bfadaee4b4ab0093 (patch)
tree5be4b26ccd509dcc7c91534d9095a6b0141908ce /obsolete-buildroot/make/kernel-headers.mk
parenta14b6eb9921365d5c2ce4e3f9c7cbc73213770e7 (diff)
removed the old directories, too.. cleanup is ready, yay
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2130 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/make/kernel-headers.mk')
-rw-r--r--obsolete-buildroot/make/kernel-headers.mk85
1 files changed, 0 insertions, 85 deletions
diff --git a/obsolete-buildroot/make/kernel-headers.mk b/obsolete-buildroot/make/kernel-headers.mk
deleted file mode 100644
index 2f8f950a67..0000000000
--- a/obsolete-buildroot/make/kernel-headers.mk
+++ /dev/null
@@ -1,85 +0,0 @@
-#############################################################
-#
-# Setup the kernel headers. I include a generic package of
-# kernel headers here, so you shouldn't need to include your
-# own. Be aware these kernel headers _will_ get blown away
-# by a 'make clean' so don't put anything sacred in here...
-#
-#############################################################
-ifneq ($(filter $(TARGETS),kernel-headers),)
-
-VERSION=2
-PATCHLEVEL=4
-SUBLEVEL=25
-LINUX_SITE:=http://www.uclibc.org/downloads/toolchain
-LINUX_SOURCE:=kernel-headers-2.4.25.tar.bz2
-LINUX_UNPACK_DIR:=$(TOOL_BUILD_DIR)/linux
-
-
-# Uncomment this for 2.6.x kernel header files
-#VERSION=2
-#PATCHLEVEL=6
-#SUBLEVEL=5
-#LINUX_SITE:=http://ep09.pld-linux.org/~mmazur/linux-libc-headers/
-#LINUX_SOURCE:=linux-libc-headers-2.6.5.0.tar.bz2
-#LINUX_UNPACK_DIR:=$(TOOL_BUILD_DIR)/linux-libc-headers-2.6.5.0
-
-
-
-LINUX_DIR:=$(TOOL_BUILD_DIR)/linux
-
-$(DL_DIR)/$(LINUX_SOURCE):
- $(WGET) -P $(DL_DIR) $(LINUX_SITE)/$(LINUX_SOURCE)
-
-$(LINUX_DIR)/.unpacked: $(DL_DIR)/$(LINUX_SOURCE)
- mkdir -p $(TOOL_BUILD_DIR)
- bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf -
-ifneq ($(LINUX_UNPACK_DIR),$(LINUX_DIR))
- mv $(LINUX_UNPACK_DIR) $(LINUX_DIR)
-endif
- touch $(LINUX_DIR)/.unpacked
-
-$(LINUX_DIR)/.configured: $(LINUX_DIR)/.unpacked
- rm -f $(LINUX_DIR)/include/asm
- @if [ ! -f $(LINUX_DIR)/Makefile ] ; then \
- echo -e "VERSION = $(VERSION)\nPATCHLEVEL = $(PATCHLEVEL)\n" > \
- $(LINUX_DIR)/Makefile; \
- echo -e "SUBLEVEL = $(SUBLEVEL)\nEXTRAVERSION =\n" > \
- $(LINUX_DIR)/Makefile; \
- echo -e "KERNELRELEASE=\$$(VERSION).\$$(PATCHLEVEL).\$$(SUBLEVEL)\$$(EXTRAVERSION)" >> \
- $(LINUX_DIR)/Makefile; \
- fi;
- @if [ "$(ARCH)" = "powerpc" ];then \
- (cd $(LINUX_DIR)/include; ln -fs asm-ppc$(NOMMU) asm;) \
- elif [ "$(ARCH)" = "mips" ];then \
- (cd $(LINUX_DIR)/include; ln -fs asm-mips$(NOMMU) asm;) \
- elif [ "$(ARCH)" = "mipsel" ];then \
- (cd $(LINUX_DIR)/include; ln -fs asm-mips$(NOMMU) asm;) \
- elif [ "$(ARCH)" = "arm" ];then \
- (cd $(LINUX_DIR)/include; ln -fs asm-arm$(NOMMU) asm; \
- cd asm; \
- if [ ! -L proc ] ; then \
- ln -fs proc-armv proc; \
- ln -fs arch-ebsa285 arch; fi); \
- elif [ "$(ARCH)" = "cris" ];then \
- (cd $(LINUX_DIR)/include; ln -fs asm-cris asm;) \
- else \
- (cd $(LINUX_DIR)/include; ln -fs asm-$(ARCH)$(NOMMU) asm;) \
- fi
- touch $(LINUX_DIR)/include/linux/autoconf.h;
- touch $(LINUX_DIR)/.configured
-
-$(LINUX_KERNEL): $(LINUX_DIR)/.configured
-
-kernel-headers: $(LINUX_DIR)/.configured
-
-kernel-headers-source: $(DL_DIR)/$(LINUX_SOURCE)
-
-kernel-headers-clean: clean
- rm -f $(LINUX_KERNEL)
- rm -rf $(LINUX_DIR)
-
-kernel-headers-dirclean:
- rm -rf $(LINUX_DIR)
-
-endif