Skip to content

Commit

Permalink
CONFIG_BUILD_KERNEL/libapps.a: Allow creation of libapps.a separately
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pussuw authored and xiaoxiang781216 committed Oct 18, 2022
1 parent c908661 commit bca94fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bca94fc

Please sign in to comment.