History

kbuild: use in-kernel unifdef

Let headers_install use in-kernel unifdef

Sam Ravnborg committed 20 years ago

Commit 07aea3a1 parent 14a036d3 files · +6 −3Browse files

Unified · Split

3 files
  1. Makefile +2 −2
  2. scripts/Makefile +3 −0
  3. scripts/Makefile.headersinst +1 −1
Makefile+2−2
@@ -893,8 +893,8 @@ INSTALL_HDR_PATH=$(objtree)/usr · 892 unmodified lines
893893 export INSTALL_HDR_PATH
894894
895895 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
898898 $(Q)rm -rf $(INSTALL_HDR_PATH)/include
899899 $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.headersinst obj=include
900900
scripts/Makefile+3−0
@@ -15,6 +15,9 @@ hostprogs-$(CONFIG_IKCONFIG) += bin2c · 14 unmodified lines
1515
1616 always := $(hostprogs-y)
1717
18+# The following hostprogs-y programs are only build on demand
19+hostprogs-y += unifdef
20+
1821 subdir-$(CONFIG_MODVERSIONS) += genksyms
1922 subdir-$(CONFIG_MODULES) += mod
2023
scripts/Makefile.headersinst+1−1
@@ -7,7 +7,7 @@ · 6 unmodified lines
77 #
88 # ==========================================================================
99
10−UNIFDEF := unifdef -U__KERNEL__
10+UNIFDEF := scripts/unifdef -U__KERNEL__
1111
1212 # Eliminate the contents of (and inclusions of) compiler.h
1313 HDRSED := sed -e "s/ inline / __inline__ /g" \