Commit 07aea3a71fc6b07744691eec2dfea705a7b30280
Committed by
Sam Ravnborg
1 parent
14a036d2dc
Exists in
master
and in
20 other branches
kbuild: use in-kernel unifdef
Let headers_install use in-kernel unifdef Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Showing 3 changed files with 6 additions and 3 deletions Side-by-side Diff
Makefile
... | ... | @@ -893,8 +893,8 @@ |
893 | 893 | export INSTALL_HDR_PATH |
894 | 894 | |
895 | 895 | PHONY += headers_install |
896 | -headers_install: include/linux/version.h | |
897 | - $(Q)unifdef -Ux /dev/null | |
896 | +headers_install: include/linux/version.h scripts_basic FORCE | |
897 | + $(Q)$(MAKE) $(build)=scripts scripts/unifdef | |
898 | 898 | $(Q)rm -rf $(INSTALL_HDR_PATH)/include |
899 | 899 | $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.headersinst obj=include |
900 | 900 |
scripts/Makefile
scripts/Makefile.headersinst
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | # |
8 | 8 | # ========================================================================== |
9 | 9 | |
10 | -UNIFDEF := unifdef -U__KERNEL__ | |
10 | +UNIFDEF := scripts/unifdef -U__KERNEL__ | |
11 | 11 | |
12 | 12 | # Eliminate the contents of (and inclusions of) compiler.h |
13 | 13 | HDRSED := sed -e "s/ inline / __inline__ /g" \ |