mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
New 'make headers_install_all' target.
Install headers for _all_ architectures, suitable for making a tarball release or extracting them for use in a separate package. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
de78912582
commit
6d71627581
1 changed files with 9 additions and 0 deletions
9
Makefile
9
Makefile
|
@ -892,6 +892,15 @@ depend dep:
|
||||||
INSTALL_HDR_PATH=$(objtree)/usr
|
INSTALL_HDR_PATH=$(objtree)/usr
|
||||||
export INSTALL_HDR_PATH
|
export INSTALL_HDR_PATH
|
||||||
|
|
||||||
|
HDRARCHES=$(filter-out generic,$(patsubst $(srctree)/include/asm-%/Kbuild,%,$(wildcard $(srctree)/include/asm-*/Kbuild)))
|
||||||
|
|
||||||
|
PHONY += headers_install_all
|
||||||
|
headers_install_all: include/linux/version.h
|
||||||
|
$(Q)unifdef -Ux /dev/null
|
||||||
|
$(Q)for arch in $(HDRARCHES); do \
|
||||||
|
$(MAKE) ARCH=$$arch -rR -f $(srctree)/scripts/Makefile.headersinst obj=include BIASMDIR=-bi-$$arch ;\
|
||||||
|
done
|
||||||
|
|
||||||
PHONY += headers_install
|
PHONY += headers_install
|
||||||
headers_install: include/linux/version.h
|
headers_install: include/linux/version.h
|
||||||
@if [ ! -r include/asm-$(ARCH)/Kbuild ]; then \
|
@if [ ! -r include/asm-$(ARCH)/Kbuild ]; then \
|
||||||
|
|
Loading…
Reference in a new issue