diff mbox series

[v8,1/4] bootconfig: Make the bootconfig.o as a normal object file

Message ID 164921225875.1090670.15565363126983098971.stgit@devnote2 (mailing list archive)
State New, archived
Headers show
Series bootconfig: Support embedding a bootconfig in kernel for non initrd boot | expand

Commit Message

Masami Hiramatsu (Google) April 6, 2022, 2:30 a.m. UTC
Since the APIs defined in the bootconfig.o are not individually used,
it is meaningless to build it as library by lib-y. Use obj-y for that.

Reported-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
---
 Changes in v6:
  - Newly added.
---
 lib/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/Makefile b/lib/Makefile
index 353bc09ce38d..4fc48543dc8f 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -276,7 +276,7 @@  $(foreach file, $(libfdt_files), \
 	$(eval CFLAGS_$(file) = -I $(srctree)/scripts/dtc/libfdt))
 lib-$(CONFIG_LIBFDT) += $(libfdt_files)
 
-lib-$(CONFIG_BOOT_CONFIG) += bootconfig.o
+obj-$(CONFIG_BOOT_CONFIG) += bootconfig.o
 
 obj-$(CONFIG_RBTREE_TEST) += rbtree_test.o
 obj-$(CONFIG_INTERVAL_TREE_TEST) += interval_tree_test.o