Commit 07aea3a71fc6b07744691eec2dfea705a7b30280

Authored by Sam Ravnborg
Committed by Sam Ravnborg
1 parent 14a036d2dc

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

... ... @@ -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  
... ... @@ -15,6 +15,9 @@
15 15  
16 16 always := $(hostprogs-y)
17 17  
  18 +# The following hostprogs-y programs are only build on demand
  19 +hostprogs-y += unifdef
  20 +
18 21 subdir-$(CONFIG_MODVERSIONS) += genksyms
19 22 subdir-$(CONFIG_MODULES) += mod
20 23  
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" \