From c229c14dedd32dd959be774e8ae92091c67727dd Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Fri, 7 Sep 2018 11:23:31 +0000 Subject: [PATCH] Merged in masayuki2009/nuttx.apps/fix_mksymtab (pull request #154) apps/tools: Fix to generate CONFIG_SYSTEM_NSH_SYMTAB_COUNTNAME in mksymtab.sh Signed-off-by: Masayuki Ishikawa Approved-by: GregoryN --- tools/mksymtab.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mksymtab.sh b/tools/mksymtab.sh index 54262f5d3..18a1d1dca 100755 --- a/tools/mksymtab.sh +++ b/tools/mksymtab.sh @@ -110,7 +110,7 @@ echo "" >>$outfile echo "#if defined(CONFIG_EXECFUNCS_HAVE_SYMTAB)" >>$outfile echo "const int CONFIG_EXECFUNCS_NSYMBOLS_VAR = sizeof(CONFIG_EXECFUNCS_SYMTAB_ARRAY) / sizeof(struct symtab_s);" >>$outfile echo "#elif defined(CONFIG_SYSTEM_NSH_SYMTAB)" >>$outfile -echo "const int CONFIG_SYSTEM_NSH_SYMTAB_COUNTNAME = sizeof(CONFIG_SYSTEM_NSH_SYMTAB_COUNTNAME) / sizeof(struct symtab_s);" >>$outfile +echo "const int CONFIG_SYSTEM_NSH_SYMTAB_COUNTNAME = sizeof(CONFIG_SYSTEM_NSH_SYMTAB_ARRAYNAME) / sizeof(struct symtab_s);" >>$outfile echo "#else" >>$outfile echo "const int dummy_nsymtabs = sizeof(dummy_symtab) / sizeof(struct symtab_s);" >>$outfile echo "#endif" >>$outfile