[PATCH v6 1/6] config.mk: support vendor generic includes
Casey Connolly
casey.connolly at linaro.org
Tue May 5 17:48:41 CEST 2026
Currently only board/vendor/$(BOARD)/config.mk is supported, add the
additional usecase of having a vendor generic config.mk which will be
used to add a Qualcomm specific make target.
Additionally, fix the ifdef to correctly check for $(BOARDDIR) rather
than $(BOARD) since that's what is actually used in the fragment path.
Signed-off-by: Casey Connolly <casey.connolly at linaro.org>
---
config.mk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/config.mk b/config.mk
index abed9cb65c6f..28a4228b8fa5 100644
--- a/config.mk
+++ b/config.mk
@@ -53,10 +53,14 @@ ENVDIR=${vendor}/env
else
BOARDDIR = $(BOARD)
ENVDIR=${board}/env
endif
+else
+ifdef VENDOR
+BOARDDIR = $(VENDOR)
endif
-ifdef BOARD
+endif
+ifdef BOARDDIR
sinclude $(srctree)/board/$(BOARDDIR)/config.mk # include board specific rules
endif
ifdef FTRACE
--
2.53.0
More information about the U-Boot
mailing list