Skip to contentSkip to conversation

xen/build: silence make warnings about missing auto.conf*

PATCH In review Anthony PERARD 2 participants 2 messages Apr 24, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/build: silence make warnings about missing auto.conf*

In a clean tree, both files include/config/auto.conf{,.cmd} are missing and older version of GNU Make complain about it:
Makefile:103: include/config/auto.conf: No such file or directory Makefile:106: include/config/auto.conf.cmd: No such file or directory

Those warnings are harmless, make will create the files and start over. But to avoid confusion, we'll use "-include" to silence the warning.

Those warning started to appear with commit 6c122d3984a5 ("xen/build:
include include/config/auto.conf in main Makefile").

---
 xen/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
xen/Makefile +2 -2
index fc8eef6a2817..eedfef26b245 100644
@@ -154,10 +154,10 @@ config: FORCE
 else # !config-build
 
 ifeq ($(need-config),y)
-include include/config/auto.conf
+-include include/config/auto.conf
 # Read in dependencies to all Kconfig* files, make sure to run syncconfig if
 # changes are detected.
-include include/config/auto.conf.cmd
+-include include/config/auto.conf.cmd
 
 # Allow people to just run `make` as before and not force them to configure
 $(KCONFIG_CONFIG):
Signature · 1 line
Anthony PERARD
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Anthony PERARD

In a clean tree, both files include/config/auto.conf{,.cmd} are missing and older version of GNU Make complain about it:
Makefile:103: include/config/auto.conf: No such file or directory Makefile:106: include/config/auto.conf.cmd: No such file or directory

Quoted 7 lines

Those warnings are harmless, make will create the files and start over. But to avoid confusion, we'll use "-include" to silence the warning.

Those warning started to appear with commit 6c122d3984a5 ("xen/build:
include include/config/auto.conf in main Makefile").