support installing headers for linux 4.x, 3.x and 2.6 kernels
This commit is contained in:
parent
e84b1bd1fc
commit
ec0f9f1d28
4
Makefile
4
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 $@
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
4fc189bd50b734c08985c61bd16cc91cd3fc4e04 linux-2.6.35.tar.xz
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue