From ec0f9f1d28b91e7d56ad143d22daea85a38ae16c Mon Sep 17 00:00:00 2001 From: Patrick Oppenlander Date: Tue, 17 May 2016 10:05:13 +1000 Subject: [PATCH] support installing headers for linux 4.x, 3.x and 2.6 kernels --- Makefile | 4 +++- hashes/linux-2.6.35.tar.xz.sha1 | 1 + litecross/Makefile | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 hashes/linux-2.6.35.tar.xz.sha1 diff --git a/Makefile b/Makefile index cf63971..82e4c48 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,9 @@ $(patsubst hashes/%.sha1,$(SOURCES)/%,$(wildcard hashes/mpfr*)): SITE = $(MPFR_S $(patsubst hashes/%.sha1,$(SOURCES)/%,$(wildcard hashes/binutils*)): SITE = $(BINUTILS_SITE) $(patsubst hashes/%.sha1,$(SOURCES)/%,$(wildcard hashes/gcc*)): SITE = $(GCC_SITE)/$(basename $(basename $(notdir $@))) $(patsubst hashes/%.sha1,$(SOURCES)/%,$(wildcard hashes/musl*)): SITE = $(MUSL_SITE) -$(patsubst hashes/%.sha1,$(SOURCES)/%,$(wildcard hashes/linux*)): SITE = $(LINUX_SITE)/v$(patsubst linux-%,%,$(basename $(basename $(basename $(basename $(notdir $@)))))).x +$(patsubst hashes/%.sha1,$(SOURCES)/%,$(wildcard hashes/linux-4*)): SITE = $(LINUX_SITE)/v4.x +$(patsubst hashes/%.sha1,$(SOURCES)/%,$(wildcard hashes/linux-3*)): SITE = $(LINUX_SITE)/v3.x +$(patsubst hashes/%.sha1,$(SOURCES)/%,$(wildcard hashes/linux-2.6*)): SITE = $(LINUX_SITE)/v2.6 $(SOURCES): mkdir -p $@ diff --git a/hashes/linux-2.6.35.tar.xz.sha1 b/hashes/linux-2.6.35.tar.xz.sha1 new file mode 100644 index 0000000..1cdcbfb --- /dev/null +++ b/hashes/linux-2.6.35.tar.xz.sha1 @@ -0,0 +1 @@ +4fc189bd50b734c08985c61bd16cc91cd3fc4e04 linux-2.6.35.tar.xz diff --git a/litecross/Makefile b/litecross/Makefile index 026d805..6bad09f 100644 --- a/litecross/Makefile +++ b/litecross/Makefile @@ -168,6 +168,7 @@ kernel-headers: | obj_kernel_headers/.lc_built src_kernel_headers: | $(LINUX_SRCDIR) ln -sf "$(LINUX_SRCDIR)" $@ obj_kernel_headers/.lc_built: | src_kernel_headers + mkdir -p $(PWD)/obj_kernel_headers/staged cd src_kernel_headers && $(MAKE) ARCH=$(LINUX_ARCH) O=$(PWD)/obj_kernel_headers INSTALL_HDR_PATH=$(PWD)/obj_kernel_headers/staged headers_install touch $@ install-kernel-headers: | obj_kernel_headers/.lc_built