From b94c26fefc01e355b2a9f68a54df5fc19872ed77 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 25 Jan 2023 19:53:16 +0800 Subject: [PATCH] build: Generate a staging folder like kernel side so the user could generate the separate library through BIN. Here is the similar code snippet copied from nuttx/tools/Unix.mk: context: include/nuttx/config.h include/nuttx/version.h .dirlinks $(CONTEXTDIRS_DEPS) | staging staging: $(Q) mkdir -p $@ Signed-off-by: Xiang Xiao --- .gitignore | 1 + Makefile | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 5988d370e..23bd48c86 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ /external /Kconfig /romfs.img +/staging /symtab_apps.c cscope.out Make.dep diff --git a/Makefile b/Makefile index 1e432a99b..c4519c588 100644 --- a/Makefile +++ b/Makefile @@ -158,7 +158,10 @@ dirlinks: context_all: $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_context) register_all: $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_register) -context: +staging: + $(Q) mkdir -p $@ + +context: | staging $(Q) $(MAKE) context_all $(Q) $(MAKE) register_all