You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2023/01/26 23:08:17 UTC
[nuttx-apps] branch master updated: build: Generate a staging folder like kernel side
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new b94c26fef build: Generate a staging folder like kernel side
b94c26fef is described below
commit b94c26fefc01e355b2a9f68a54df5fc19872ed77
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Jan 25 19:53:16 2023 +0800
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 <xi...@xiaomi.com>
---
.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