nuttx-apps/tools
wangjianyu3 c9223afe7e tools/mksymtab.sh: Support multiple additional symbols` file
Test
```
  $ cat basic.txt
  test_a
  test_b
  test_c

  $ cat math.txt
  acosf
  asinf
  atan2f
  ceilf
  cosf
  expf

  $ ./mksymtab.sh ./ g_TEST basic.txt
  #include <nuttx/compiler.h>
  #include <nuttx/symtab.h>

  extern void *test_a;
  extern void *test_b;
  extern void *test_c;

  const struct symtab_s g_TEST_exports[] =
  {
    {"test_a", &test_a},
    {"test_b", &test_b},
    {"test_c", &test_c},
  };

  const int g_TEST_nexports = sizeof(g_TEST_exports) / sizeof(struct symtab_s);

  $ ./mksymtab.sh ./ g_TEST basic.txt math.txt
  #include <nuttx/compiler.h>
  #include <nuttx/symtab.h>

  extern void *acosf;
  extern void *asinf;
  extern void *atan2f;
  extern void *ceilf;
  extern void *cosf;
  extern void *expf;
  extern void *test_a;
  extern void *test_b;
  extern void *test_c;

  const struct symtab_s g_TEST_exports[] =
  {
    {"acosf", &acosf},
    {"asinf", &asinf},
    {"atan2f", &atan2f},
    {"ceilf", &ceilf},
    {"cosf", &cosf},
    {"expf", &expf},
    {"test_a", &test_a},
    {"test_b", &test_b},
    {"test_c", &test_c},
  };

  const int g_TEST_nexports = sizeof(g_TEST_exports) / sizeof(struct symtab_s);
```

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2024-09-29 22:20:30 +02:00
..
Wasm tools: New CMake based Wasm build system 2024-03-15 11:15:25 -03:00
bitmap_converter.py Remove unneeded semicolons and parentheses from Python files 2020-12-12 19:20:38 +01:00
check-hash.sh Fix the minor style issue 2022-10-16 19:07:16 +02:00
CMakeLists.txt tools: New CMake based Wasm build system 2024-03-15 11:15:25 -03:00
host_sysinfo.py system/nxdiag: Add Espressif's HAL version 2023-06-29 00:57:53 +08:00
Kconfig Fix Kconfig style 2024-04-09 08:16:40 +02:00
mkimport.sh tools/mkimport.sh: enrich help message 2024-05-09 17:29:39 +08:00
mkkconfig.bat tools: update licenses to Apache 2021-06-10 08:49:24 -05:00
mkkconfig.sh apps/tools:fix build warning. 2023-08-09 13:52:22 +08:00
mkromfsimg.sh add const for romfs_img_len 2024-01-04 09:12:48 -08:00
mksymtab.sh tools/mksymtab.sh: Support multiple additional symbols` file 2024-09-29 22:20:30 +02:00
pre-commit tools: add git pre-commit hook for apps 2022-08-14 14:06:10 +03:00
WASI-SDK.defs fix nxstyle 2024-05-15 23:53:05 +08:00
Wasm.mk Wasm.mk: disable by default 2024-01-13 02:16:16 -08:00