projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b2e006
)
kbuild: Simplify builds with CONFIG_OF_ALL_DTBS
author
Viresh Kumar
<viresh.kumar@linaro.org>
Wed, 10 Mar 2021 05:35:29 +0000
(11:05 +0530)
committer
Rob Herring
<robh@kernel.org>
Tue, 23 Mar 2021 21:27:51 +0000
(15:27 -0600)
We update 'always-y' based on CONFIG_OF_ALL_DTBS three times. It would be
far more straight forward if we rather update dtb-y to include all .dtb
files if CONFIG_OF_ALL_DTBS is enabled.
Acked-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Tested-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link:
https://lore.kernel.org/r/7fe7e5ef6ed75450ddf6c224b8adb53059e504e2.1615354376.git.viresh.kumar@linaro.org
scripts/Makefile.lib
patch
|
blob
|
blame
|
history
diff --git
a/scripts/Makefile.lib
b/scripts/Makefile.lib
index 34e5fefa8d9262eae62092f212ddad3dea02ff3b..441a224689f90902c19e7592039aecbf9b03751a 100644
(file)
--- a/
scripts/Makefile.lib
+++ b/
scripts/Makefile.lib
@@
-73,14
+73,13
@@
always-y += $(userprogs-always-y) $(userprogs-always-m)
# DTB
# If CONFIG_OF_ALL_DTBS is enabled, all DT blobs are built
+dtb-$(CONFIG_OF_ALL_DTBS) += $(dtb-)
+
always-y += $(dtb-y)
-always-$(CONFIG_OF_ALL_DTBS) += $(dtb-)
ifneq ($(CHECK_DTBS),)
always-y += $(patsubst %.dtb,%.dt.yaml, $(dtb-y))
always-y += $(patsubst %.dtbo,%.dt.yaml, $(dtb-y))
-always-$(CONFIG_OF_ALL_DTBS) += $(patsubst %.dtb,%.dt.yaml, $(dtb-))
-always-$(CONFIG_OF_ALL_DTBS) += $(patsubst %.dtbo,%.dt.yaml, $(dtb-))
endif
# Add subdir path