From bca94fce5aafdb2a01962975c8435cf92688b51a Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Fri, 14 Oct 2022 09:59:49 +0300 Subject: [PATCH] CONFIG_BUILD_KERNEL/libapps.a: Allow creation of libapps.a separately Add rule to create libapps.a for CONFIG_BUILD_KERNEL=y, there is no reason to disallow this. The behavior of make import remains the same, so no regression is expected. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3f3d002bb..6344a513c 100644 --- a/Makefile +++ b/Makefile @@ -62,10 +62,12 @@ ifeq ($(CONFIG_BUILD_KERNEL),y) install: $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_install) -.import: $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_all) +$(BIN): $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_all) $(Q) for app in ${CONFIGURED_APPS}; do \ $(MAKE) -C "$${app}" archive ; \ done + +.import: $(BIN) $(Q) install libapps.a $(APPDIR)$(DELIM)import$(DELIM)libs $(Q) $(MAKE) install