提交 07aea3a7 编写于 作者: S Sam Ravnborg 提交者: Sam Ravnborg

kbuild: use in-kernel unifdef

Let headers_install use in-kernel unifdef
Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
上级 14a036d2
...@@ -893,8 +893,8 @@ INSTALL_HDR_PATH=$(objtree)/usr ...@@ -893,8 +893,8 @@ INSTALL_HDR_PATH=$(objtree)/usr
export INSTALL_HDR_PATH export INSTALL_HDR_PATH
PHONY += headers_install PHONY += headers_install
headers_install: include/linux/version.h headers_install: include/linux/version.h scripts_basic FORCE
$(Q)unifdef -Ux /dev/null $(Q)$(MAKE) $(build)=scripts scripts/unifdef
$(Q)rm -rf $(INSTALL_HDR_PATH)/include $(Q)rm -rf $(INSTALL_HDR_PATH)/include
$(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.headersinst obj=include $(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.headersinst obj=include
......
...@@ -15,6 +15,9 @@ hostprogs-$(CONFIG_IKCONFIG) += bin2c ...@@ -15,6 +15,9 @@ hostprogs-$(CONFIG_IKCONFIG) += bin2c
always := $(hostprogs-y) always := $(hostprogs-y)
# The following hostprogs-y programs are only build on demand
hostprogs-y += unifdef
subdir-$(CONFIG_MODVERSIONS) += genksyms subdir-$(CONFIG_MODVERSIONS) += genksyms
subdir-$(CONFIG_MODULES) += mod subdir-$(CONFIG_MODULES) += mod
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
# #
# ========================================================================== # ==========================================================================
UNIFDEF := unifdef -U__KERNEL__ UNIFDEF := scripts/unifdef -U__KERNEL__
# Eliminate the contents of (and inclusions of) compiler.h # Eliminate the contents of (and inclusions of) compiler.h
HDRSED := sed -e "s/ inline / __inline__ /g" \ HDRSED := sed -e "s/ inline / __inline__ /g" \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册