build: fix auto defconfig rule
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 25 Feb 2022 14:54:08 +0000 (14:54 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 25 Feb 2022 16:23:09 +0000 (16:23 +0000)
commit10f1f7b010a22d6d4ee67b018412d5f7ea386fc6
tree9600fd360c21a3ac6362cbd15e2b95c6b5f48872
parent7d9589239ec068c944190408b9838774d5ec1f8f
build: fix auto defconfig rule

We should only run "defconfig" if ".config" is missing. Commit
317c98cb91 have added a dependency on "tools/fixdep", so make would
start runnning "defconfig" also when "tools/fixdep" is newer than
".config" and thus overwrite any changes made by a developer.
Reintroduce intended behavior of the rule to only generate a default
Kconfig when ".config" is missing.

Fixes: 317c98cb91 ("build: hook kconfig into xen build system")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/Makefile