File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change 19
19
# ##############################################################################
20
20
21
21
if (CONFIG_EXAMPLES_SOTEST )
22
- nuttx_add_application (NAME sotest )
22
+
23
+ # FIXME: fix all empty a after the kernel build is implemented
24
+ add_custom_command (
25
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /sotest_symtab.c
26
+ COMMAND
27
+ ${NUTTX_APPS_DIR} /tools/mksymtab.sh ${CMAKE_CURRENT_BINARY_DIR} /empty
28
+ g_sot > ${CMAKE_CURRENT_BINARY_DIR} /sotest_symtab.c )
29
+
30
+ add_custom_target (
31
+ sotest_romfs
32
+ COMMAND genromfs -f sotest_romfs.img -d empty
33
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
34
+
35
+ add_custom_command (
36
+ OUTPUT sotest_romfs.c
37
+ COMMAND xxd -i sotest_romfs.img > sotest_romfs.c
38
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
39
+ DEPENDS sotest_romfs )
40
+
41
+ nuttx_add_application (
42
+ NAME sotest SRCS sotest_main.c ${CMAKE_CURRENT_BINARY_DIR} /sotest_symtab.c
43
+ ${CMAKE_CURRENT_BINARY_DIR} /sotest_romfs.c )
44
+
23
45
endif ()
You can’t perform that action at this time.
0 commit comments