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 2020/06/10 13:32:06 UTC

[incubator-nuttx-apps] 02/02: tools/mksymtab.sh: remove the quotes in varlist entry coming from *-thunk.S

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-apps.git

commit 68c89e84852a26d54d6850be87dfcd48fff09f49
Author: liuhaitao <li...@xiaomi.com>
AuthorDate: Wed Jun 10 19:36:59 2020 +0800

    tools/mksymtab.sh: remove the quotes in varlist entry coming from *-thunk.S
    
    Signed-off-by: liuhaitao <li...@xiaomi.com>
---
 tools/mksymtab.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/tools/mksymtab.sh b/tools/mksymtab.sh
index 811a886..064907b 100755
--- a/tools/mksymtab.sh
+++ b/tools/mksymtab.sh
@@ -72,7 +72,8 @@ echo "#include <nuttx/compiler.h>"
 echo "#include <nuttx/symtab.h>"
 echo ""
 
-for var in $varlist; do
+for string in $varlist; do
+  var=`echo $string | sed -e "s/\"//g"`
   echo "extern void *${var};"
 done
 
@@ -90,7 +91,8 @@ else
 fi
 echo "{"
 
-for var in $varlist; do
+for string in $varlist; do
+  var=`echo $string | sed -e "s/\"//g"`
   echo "  {\"${var}\", &${var}},"
 done