diff options
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | scripts/Makefile | 3 | ||||
| -rw-r--r-- | scripts/Makefile.headersinst | 2 |
3 files changed, 6 insertions, 3 deletions
| @@ -893,8 +893,8 @@ INSTALL_HDR_PATH=$(objtree)/usr | |||
| 893 | export INSTALL_HDR_PATH | 893 | export INSTALL_HDR_PATH |
| 894 | 894 | ||
| 895 | PHONY += headers_install | 895 | PHONY += headers_install |
| 896 | headers_install: include/linux/version.h | 896 | headers_install: include/linux/version.h scripts_basic FORCE |
| 897 | $(Q)unifdef -Ux /dev/null | 897 | $(Q)$(MAKE) $(build)=scripts scripts/unifdef |
| 898 | $(Q)rm -rf $(INSTALL_HDR_PATH)/include | 898 | $(Q)rm -rf $(INSTALL_HDR_PATH)/include |
| 899 | $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.headersinst obj=include | 899 | $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.headersinst obj=include |
| 900 | 900 | ||
diff --git a/scripts/Makefile b/scripts/Makefile index 6f6b48f39f0a..d531a1fcef0c 100644 --- a/scripts/Makefile +++ b/scripts/Makefile | |||
| @@ -15,6 +15,9 @@ hostprogs-$(CONFIG_IKCONFIG) += bin2c | |||
| 15 | 15 | ||
| 16 | always := $(hostprogs-y) | 16 | always := $(hostprogs-y) |
| 17 | 17 | ||
| 18 | # The following hostprogs-y programs are only build on demand | ||
| 19 | hostprogs-y += unifdef | ||
| 20 | |||
| 18 | subdir-$(CONFIG_MODVERSIONS) += genksyms | 21 | subdir-$(CONFIG_MODVERSIONS) += genksyms |
| 19 | subdir-$(CONFIG_MODULES) += mod | 22 | subdir-$(CONFIG_MODULES) += mod |
| 20 | 23 | ||
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index 12e1daf875c8..8c02d2df4278 100644 --- a/scripts/Makefile.headersinst +++ b/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 | # Eliminate the contents of (and inclusions of) compiler.h | 12 | # Eliminate the contents of (and inclusions of) compiler.h |
| 13 | HDRSED := sed -e "s/ inline / __inline__ /g" \ | 13 | HDRSED := sed -e "s/ inline / __inline__ /g" \ |
