aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Howells2012-10-02 12:01:56 -0500
committerDavid Howells2012-10-02 12:01:56 -0500
commitd183e6f570f3c0c23d253fd262c90244e72d7ffd (patch)
treee2e59f80ba034f5c4eb4767c764be3f44d1bf086 /Makefile
parent494b3e1c492c29f01eec69f5492aedba6c0ae577 (diff)
downloadkernel-common-d183e6f570f3c0c23d253fd262c90244e72d7ffd.tar.gz
kernel-common-d183e6f570f3c0c23d253fd262c90244e72d7ffd.tar.xz
kernel-common-d183e6f570f3c0c23d253fd262c90244e72d7ffd.zip
UAPI: Move linux/version.h
Move include/linux/version.h to the include/generated/ header directory. A later patch will move it to include/uapi/generated/. This allows us to get rid of the objhdr-y list. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index da1707c3904..1a5d315e284 100644
--- a/Makefile
+++ b/Makefile
@@ -447,9 +447,11 @@ asm-generic:
447# Detect when mixed targets is specified, and make a second invocation 447# Detect when mixed targets is specified, and make a second invocation
448# of make so .config is not included in this case either (for *config). 448# of make so .config is not included in this case either (for *config).
449 449
450version_h := include/generated/linux/version.h
451
450no-dot-config-targets := clean mrproper distclean \ 452no-dot-config-targets := clean mrproper distclean \
451 cscope gtags TAGS tags help %docs check% coccicheck \ 453 cscope gtags TAGS tags help %docs check% coccicheck \
452 include/linux/version.h headers_% archheaders archscripts \ 454 $(version_h) headers_% archheaders archscripts \
453 kernelversion %src-pkg 455 kernelversion %src-pkg
454 456
455config-targets := 0 457config-targets := 0
@@ -819,7 +821,7 @@ endif
819# prepare2 creates a makefile if using a separate output directory 821# prepare2 creates a makefile if using a separate output directory
820prepare2: prepare3 outputmakefile asm-generic 822prepare2: prepare3 outputmakefile asm-generic
821 823
822prepare1: prepare2 include/linux/version.h include/generated/utsrelease.h \ 824prepare1: prepare2 $(version_h) include/generated/utsrelease.h \
823 include/config/auto.conf 825 include/config/auto.conf
824 $(cmd_crmodverdir) 826 $(cmd_crmodverdir)
825 827
@@ -852,7 +854,7 @@ define filechk_version.h
852 echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) 854 echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';)
853endef 855endef
854 856
855include/linux/version.h: $(srctree)/Makefile FORCE 857$(version_h): $(srctree)/Makefile FORCE
856 $(call filechk,version.h) 858 $(call filechk,version.h)
857 859
858include/generated/utsrelease.h: include/config/kernel.release FORCE 860include/generated/utsrelease.h: include/config/kernel.release FORCE
@@ -897,7 +899,7 @@ PHONY += archscripts
897archscripts: 899archscripts:
898 900
899PHONY += __headers 901PHONY += __headers
900__headers: include/linux/version.h scripts_basic asm-generic archheaders archscripts FORCE 902__headers: $(version_h) scripts_basic asm-generic archheaders archscripts FORCE
901 $(Q)$(MAKE) $(build)=scripts build_unifdef 903 $(Q)$(MAKE) $(build)=scripts build_unifdef
902 904
903PHONY += headers_install_all 905PHONY += headers_install_all
@@ -1007,8 +1009,7 @@ CLEAN_DIRS += $(MODVERDIR)
1007# Directories & files removed with 'make mrproper' 1009# Directories & files removed with 'make mrproper'
1008MRPROPER_DIRS += include/config usr/include include/generated \ 1010MRPROPER_DIRS += include/config usr/include include/generated \
1009 arch/*/include/generated 1011 arch/*/include/generated
1010MRPROPER_FILES += .config .config.old .version .old_version \ 1012MRPROPER_FILES += .config .config.old .version .old_version $(version_h) \
1011 include/linux/version.h \
1012 Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS 1013 Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS
1013 1014
1014# clean - Delete most, but leave enough to build external modules 1015# clean - Delete most, but leave enough to build external modules