x86/cpuid: fix generation of auto cpuid header
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 27 Jun 2018 14:33:00 +0000 (16:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2018 07:27:03 +0000 (09:27 +0200)
The makefile rule to generate the cpuid-autogen.h header passes the
whole list of dependencies to gen-cpuid.py but only the first
dependency is actually needed.

So far this seems to be harmless.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
xen/include/Makefile

index 8762ab3334825da18817f689db6af5d47937958e..7c5034e6e0ce7caf4af8c1078b71844f6a46d831 100644 (file)
@@ -143,7 +143,7 @@ endif
 ifeq ($(XEN_TARGET_ARCH),x86_64)
 
 $(BASEDIR)/include/asm-x86/cpuid-autogen.h: $(BASEDIR)/include/public/arch-x86/cpufeatureset.h $(BASEDIR)/tools/gen-cpuid.py FORCE
-       $(PYTHON) $(BASEDIR)/tools/gen-cpuid.py -i $^ -o $@.new
+       $(PYTHON) $(BASEDIR)/tools/gen-cpuid.py -i $< -o $@.new
        $(call move-if-changed,$@.new,$@)
 
 all: $(BASEDIR)/include/asm-x86/cpuid-autogen.h