You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/09/13 00:50:44 UTC
[incubator-nuttx] branch master updated: mkromfsimg: Add optional
rcS file path
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 7a68470 mkromfsimg: Add optional rcS file path
7a68470 is described below
commit 7a68470e895786a0cccd6630149e3c48aaf96bf0
Author: Takayoshi Koizumi <ta...@sony.com>
AuthorDate: Mon Sep 13 06:38:50 2021 +0900
mkromfsimg: Add optional rcS file path
Add an option to mkromfsimg.sh to specify the target rcS file path.
---
tools/mkromfsimg.sh | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/tools/mkromfsimg.sh b/tools/mkromfsimg.sh
index 2092488..ccd8163 100755
--- a/tools/mkromfsimg.sh
+++ b/tools/mkromfsimg.sh
@@ -33,7 +33,8 @@ headerfile=nsh_romfsimg.h
nofat=$1
usefat=true
topdir=$2
-usage="USAGE: $0 [-nofat] <topdir>"
+rcs_fname=$3
+usage="USAGE: $0 [-nofat] <topdir> [<rcsfile>]"
# Verify if we have the optional "-nofat"
@@ -42,6 +43,7 @@ if [ "$nofat" == "-nofat" ]; then
usefat=false
else
topdir=$1
+ rcs_fname=$2
fi
if [ -z "$topdir" -o ! -d "$topdir" ]; then
@@ -50,6 +52,13 @@ if [ -z "$topdir" -o ! -d "$topdir" ]; then
exit 1
fi
+# Verify if we have the optional "rcs_fname"
+
+if [ ! -z "$rcs_fname" ]; then
+ rcstemplate=$rcs_fname
+ echo "Target template is $rcstemplate"
+fi
+
# Extract all values from the .config in the $topdir that contains all of the NuttX
# configuration settings. The .config file was intended to be include-able by makefiles
# and source-able by scripts. Unfortunately,there are too many syntactic difference