Let headers_install use in-kernel unifdef
Unified · Split
| @@ -893,8 +893,8 @@ INSTALL_HDR_PATH=$(objtree)/usr · 892 unmodified lines | ||
| 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 @@ hostprogs-$(CONFIG_IKCONFIG) += bin2c · 14 unmodified lines | ||
| 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 | |
| @@ -7,7 +7,7 @@ · 6 unmodified lines | ||
| 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" \ |