diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-08-04 09:57:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-08-04 09:57:32 -0400 |
commit | ed8bbba0f617aca2c219a236019012784b22cf1f (patch) | |
tree | 47246ec3445714f891f988f1edd16fd8ecc09ae7 /Makefile | |
parent | c2f3ba745d1c2013811cac6308c4abf9527c478e (diff) | |
parent | 3d1450d54a4fc277fc4598acf2335f74b66b08fc (diff) |
Merge branch 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild fixes from Michal Marek:
"Two fixes for kbuild:
- The new ARCH_{CPP,A,C}FLAGS variables are reset before including
the arch Makefile
- Fix calling make modules_install twice when module compression is
enabled"
* 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
Makefile: Force gzip and xz on module install
kbuild: Do not pick up ARCH_{CPP,A,C}FLAGS from the environment
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -597,6 +597,11 @@ endif # $(dot-config) | |||
597 | # Defaults to vmlinux, but the arch makefile usually adds further targets | 597 | # Defaults to vmlinux, but the arch makefile usually adds further targets |
598 | all: vmlinux | 598 | all: vmlinux |
599 | 599 | ||
600 | # The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default | ||
601 | # values of the respective KBUILD_* variables | ||
602 | ARCH_CPPFLAGS := | ||
603 | ARCH_AFLAGS := | ||
604 | ARCH_CFLAGS := | ||
600 | include arch/$(SRCARCH)/Makefile | 605 | include arch/$(SRCARCH)/Makefile |
601 | 606 | ||
602 | KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) | 607 | KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) |
@@ -848,10 +853,10 @@ export mod_strip_cmd | |||
848 | mod_compress_cmd = true | 853 | mod_compress_cmd = true |
849 | ifdef CONFIG_MODULE_COMPRESS | 854 | ifdef CONFIG_MODULE_COMPRESS |
850 | ifdef CONFIG_MODULE_COMPRESS_GZIP | 855 | ifdef CONFIG_MODULE_COMPRESS_GZIP |
851 | mod_compress_cmd = gzip -n | 856 | mod_compress_cmd = gzip -n -f |
852 | endif # CONFIG_MODULE_COMPRESS_GZIP | 857 | endif # CONFIG_MODULE_COMPRESS_GZIP |
853 | ifdef CONFIG_MODULE_COMPRESS_XZ | 858 | ifdef CONFIG_MODULE_COMPRESS_XZ |
854 | mod_compress_cmd = xz | 859 | mod_compress_cmd = xz -f |
855 | endif # CONFIG_MODULE_COMPRESS_XZ | 860 | endif # CONFIG_MODULE_COMPRESS_XZ |
856 | endif # CONFIG_MODULE_COMPRESS | 861 | endif # CONFIG_MODULE_COMPRESS |
857 | export mod_compress_cmd | 862 | export mod_compress_cmd |