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_ROMFS )
22
- nuttx_add_application (NAME romfs )
22
+
23
+ add_custom_command (
24
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR} /romfs_testdir.h
25
+ COMMAND tar zxf ${CMAKE_CURRENT_LIST_DIR} /testdir.tar.gz
26
+ COMMAND genromfs -f testdir.img -d testdir -V "ROMFS_Test"
27
+ COMMAND xxd -i testdir.img romfs_testdir.h
28
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
29
+ DEPENDS ${CMAKE_CURRENT_LIST_DIR} /testdir.tar.gz )
30
+ add_custom_target (testromfs
31
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR} /romfs_testdir.h )
32
+
33
+ nuttx_add_application (
34
+ NAME
35
+ romfs
36
+ MODULE
37
+ ${CONFIG_EXAMPLES_ROMFS}
38
+ INCLUDE_DIRECTORIES
39
+ ${CMAKE_CURRENT_BINARY_DIR}
40
+ DEPENDS
41
+ testromfs
42
+ SRCS
43
+ romfs_main.c )
44
+
23
45
endif ()
You can’t perform that action at this time.
0 commit comments