cmake:support system apps CMake build
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
c7072b45bb
commit
2e133feb09
107
system/adb/CMakeLists.txt
Normal file
107
system/adb/CMakeLists.txt
Normal file
@ -0,0 +1,107 @@
|
||||
# ##############################################################################
|
||||
# apps/system/adb/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_ADBD)
|
||||
|
||||
if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/microADB)
|
||||
|
||||
if(NOT ADBD_URL)
|
||||
set(ADBD_URL "https://github.com/spiriou/microADB/archive")
|
||||
endif()
|
||||
|
||||
if(NOT ADBD_VERSION)
|
||||
set(ADBD_VERSION "b0bc09a7612000186df723f2fe55705b1c2fe873")
|
||||
endif()
|
||||
|
||||
FetchContent_Declare(
|
||||
microADB
|
||||
URL "${ADBD_URL}/${ADBD_VERSION}.zip"
|
||||
SOURCE_DIR
|
||||
${CMAKE_CURRENT_LIST_DIR}/microADB
|
||||
BINARY_DIR
|
||||
${CMAKE_BINARY_DIR}/apps/system/microADB/microADB
|
||||
CONFIGURE_COMMAND
|
||||
""
|
||||
BUILD_COMMAND
|
||||
""
|
||||
INSTALL_COMMAND
|
||||
""
|
||||
TEST_COMMAND
|
||||
""
|
||||
DOWNLOAD_NO_PROGRESS true
|
||||
TIMEOUT 30)
|
||||
|
||||
FetchContent_GetProperties(microADB)
|
||||
|
||||
if(NOT microADB_POPULATED)
|
||||
FetchContent_Populate(microADB)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(CSRCS adb_main.c adb_banner.c microADB/adb_client.c microADB/adb_frame.c
|
||||
microADB/hal/hal_uv.c microADB/hal/hal_uv_packet.c)
|
||||
|
||||
if(CONFIG_ADBD_TCP_SERVER)
|
||||
list(APPEND CSRCS microADB/hal/hal_uv_client_tcp.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ADBD_USB_SERVER)
|
||||
list(APPEND CSRCS microADB/hal/hal_uv_client_usb.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ADBD_QEMU_SERVER)
|
||||
list(APPEND CSRCS microADB/hal/hal_uv_client_qemu.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ADBD_AUTHENTICATION)
|
||||
list(APPEND CSRCS microADB/adb_auth_key.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ADBD_FILE_SERVICE)
|
||||
list(APPEND CSRCS microADB/file_sync_service.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ADBD_LOGCAT_SERVICE)
|
||||
list(APPEND CSRCS logcat_service.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ADBD_SHELL_SERVICE)
|
||||
list(APPEND CSRCS microADB/hal/shell_service_uv.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_ADBD_SOCKET_SERVICE)
|
||||
list(APPEND CSRCS microADB/tcp_service.c microADB/hal/hal_uv_socket.c)
|
||||
endif()
|
||||
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_ADB_SERVER}
|
||||
NAME
|
||||
${CONFIG_ADBD_PROGNAME}
|
||||
SRCS
|
||||
${CSRCS}
|
||||
INCLUDE_DIRECTORIES
|
||||
${CMAKE_CURRENT_LIST_DIR}/microADB
|
||||
STACKSIZE
|
||||
${CONFIG_ADBD_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_ADBD_PRIORITY})
|
||||
|
||||
endif()
|
34
system/batterydump/CMakeLists.txt
Normal file
34
system/batterydump/CMakeLists.txt
Normal file
@ -0,0 +1,34 @@
|
||||
# ##############################################################################
|
||||
# apps/system/batterydump/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_BATTERYDUMP)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_BATTERYDUMP}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_BATTERYDUMP_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_BATTERYDUMP_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_BATTERYDUMP_PRIORITY}
|
||||
SRCS
|
||||
batterydump.c)
|
||||
|
||||
endif()
|
34
system/cfgdata/CMakeLists.txt
Normal file
34
system/cfgdata/CMakeLists.txt
Normal file
@ -0,0 +1,34 @@
|
||||
# ##############################################################################
|
||||
# apps/system/cfgdata/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_CFGDATA)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_CFGDATA}
|
||||
NAME
|
||||
cfgdata
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_CFGDATA_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_CFGDATA_PRIORITY}
|
||||
SRCS
|
||||
cfgdata_main.c)
|
||||
|
||||
endif()
|
34
system/conntrack/CMakeLists.txt
Normal file
34
system/conntrack/CMakeLists.txt
Normal file
@ -0,0 +1,34 @@
|
||||
# ##############################################################################
|
||||
# apps/system/conntrack/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_CONNTRACK)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_CONNTRACK}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_CONNTRACK_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_CONNTRACK_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_CONNTRACK_PRIORITY}
|
||||
SRCS
|
||||
conntrack.c)
|
||||
|
||||
endif()
|
34
system/coredump/CMakeLists.txt
Normal file
34
system/coredump/CMakeLists.txt
Normal file
@ -0,0 +1,34 @@
|
||||
# ##############################################################################
|
||||
# apps/system/coredump/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_COREDUMP)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_COREDUMP}
|
||||
NAME
|
||||
coredump
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_COREDUMP_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_COREDUMP_PRIORITY}
|
||||
SRCS
|
||||
coredump.c)
|
||||
|
||||
endif()
|
34
system/dd/CMakeLists.txt
Normal file
34
system/dd/CMakeLists.txt
Normal file
@ -0,0 +1,34 @@
|
||||
# ##############################################################################
|
||||
# apps/system/dd/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_DD)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_DD}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_DD_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_DD_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_DD_PRIORITY}
|
||||
SRCS
|
||||
dd_main.c)
|
||||
|
||||
endif()
|
34
system/fastboot/CMakeLists.txt
Normal file
34
system/fastboot/CMakeLists.txt
Normal file
@ -0,0 +1,34 @@
|
||||
# ##############################################################################
|
||||
# apps/system/fastboot/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_FASTBOOTD)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_FASTBOOTD}
|
||||
NAME
|
||||
fastbootd
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_FASTBOOTD_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_FASTBOOTD_PRIORITY}
|
||||
SRCS
|
||||
fastboot.c)
|
||||
|
||||
endif()
|
@ -19,5 +19,6 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_FLASH_ERASEALL)
|
||||
nuttx_add_application(NAME flash_eraseall)
|
||||
nuttx_add_application(MODULE ${CONFIG_SYSTEM_FLASH_ERASEALL} NAME
|
||||
flash_eraseall SRCS flash_eraseall_main.c)
|
||||
endif()
|
||||
|
34
system/gcov/CMakeLists.txt
Normal file
34
system/gcov/CMakeLists.txt
Normal file
@ -0,0 +1,34 @@
|
||||
# ##############################################################################
|
||||
# apps/system/gcov/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_GCOV)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_GCOV}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_GCOV_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_GCOV_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_GCOV_PRIORITY}
|
||||
SRCS
|
||||
gcov.c)
|
||||
|
||||
endif()
|
33
system/gdbstub/CMakeLists.txt
Normal file
33
system/gdbstub/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/system/gdbstub/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_GDBSTUB)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_GDBSTUB}
|
||||
NAME
|
||||
gdbstub
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_GDBSTUB_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_GDBSTUB_PRIORITY}
|
||||
SRCS
|
||||
gdbstub.c)
|
||||
endif()
|
@ -19,5 +19,32 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_HEX2BIN)
|
||||
nuttx_add_application(NAME hex2bin)
|
||||
if(CONFIG_SYSTEM_HEX2BIN_BUILTIN)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_HEX2BIN}
|
||||
NAME
|
||||
hex2bin
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_HEX2BIN_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_HEX2BIN_PRIORITY}
|
||||
SRCS
|
||||
hex2bin_main.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_SYSTEM_HEX2MEM_BUILTIN)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_HEX2BIN}
|
||||
NAME
|
||||
hex2mem
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_HEX2MEM_PRIORITY}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_HEX2MEM_STACKSIZE}
|
||||
SRCS
|
||||
hex2mem_main.c)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
@ -19,5 +19,27 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_HEXED)
|
||||
nuttx_add_application(NAME hexed)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_HEXED}
|
||||
NAME
|
||||
hexed
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_HEXED_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_HEXED_PRIORITY}
|
||||
SRCS
|
||||
src/hexed.c
|
||||
src/bfile.c
|
||||
src/cmdargs.c
|
||||
src/hexcopy.c
|
||||
src/hexdump.c
|
||||
src/hexenter.c
|
||||
src/hexhelp.c
|
||||
src/hexinsert.c
|
||||
src/hexmove.c
|
||||
src/hexremove.c
|
||||
src/hexword.c
|
||||
INCLUDE_DIRECTORIES
|
||||
${CMAKE_CURRENT_LIST_DIR}/include)
|
||||
endif()
|
||||
|
@ -18,6 +18,7 @@
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_EXAMPLES_MM)
|
||||
nuttx_add_application(NAME mm)
|
||||
if(CONFIG_SYSTEM_HOSTNAME)
|
||||
nuttx_add_application(MODULE ${CONFIG_SYSTEM_HOSTNAME} NAME hostname SRCS
|
||||
hostname_main.c)
|
||||
endif()
|
||||
|
33
system/input/CMakeLists.txt
Normal file
33
system/input/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/system/input/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_INPUT)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_INPUT}
|
||||
NAME
|
||||
input
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_INPUT_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_INPUT_PRIORITY}
|
||||
SRCS
|
||||
input.c)
|
||||
endif()
|
33
system/iptables/CMakeLists.txt
Normal file
33
system/iptables/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/system/iptables/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_IPTABLES)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_IPTABLES}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_IPTABLES_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_IPTABLES_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_IPTABLES_PRIORITY}
|
||||
SRCS
|
||||
iptables.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_LM75)
|
||||
nuttx_add_application(NAME lm75)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_LM75}
|
||||
NAME
|
||||
lm75
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_LM75_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_LM75_PRIORITY}
|
||||
SRCS
|
||||
lm75.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_LZF)
|
||||
nuttx_add_application(NAME lzf)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_LZF}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_LZF_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_LZF_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_LZF_PRIORITY}
|
||||
SRCS
|
||||
lzf_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,5 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_MDIO)
|
||||
nuttx_add_application(NAME mdio)
|
||||
nuttx_add_application(MODULE ${CONFIG_SYSTEM_MDIO} NAME mdio SRCS mdio_main.c)
|
||||
endif()
|
||||
|
@ -19,8 +19,28 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_NSH)
|
||||
nuttx_add_application(NAME nsh SRCS nsh_main.c)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_NSH}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_NSH_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_NSH_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_NSH_PRIORITY}
|
||||
SRCS
|
||||
nsh_main.c)
|
||||
|
||||
nuttx_add_application(NAME sh SRCS sh_main.c)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_NSH}
|
||||
NAME
|
||||
sh
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_NSH_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_NSH_PRIORITY}
|
||||
SRCS
|
||||
sh_main.c)
|
||||
|
||||
endif()
|
||||
|
32
system/ofloader/CMakeLists.txt
Normal file
32
system/ofloader/CMakeLists.txt
Normal file
@ -0,0 +1,32 @@
|
||||
# ##############################################################################
|
||||
# apps/system/ofloader/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_OFLOADER)
|
||||
nuttx_add_application(
|
||||
NAME
|
||||
${CONFIG_SYSTEM_OFLOADER_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_OFLOADER_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_OFLOADER_PRIORITY}
|
||||
SRCS
|
||||
ofloader.c
|
||||
segger.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_PING6)
|
||||
nuttx_add_application(NAME ping6)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_PING6}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_PING6_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_PING6_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_PING6_PRIORITY}
|
||||
SRCS
|
||||
ping6.c)
|
||||
endif()
|
||||
|
33
system/ptpd/CMakeLists.txt
Normal file
33
system/ptpd/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/system/ptpd/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_PTPD)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_PTPD}
|
||||
NAME
|
||||
ptpd
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_PTPD_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_PTPD_PRIORITY}
|
||||
SRCS
|
||||
ptpd_main.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_NOTE)
|
||||
nuttx_add_application(NAME sched_note)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_NOTE}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_NOTE_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_NOTE_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_NOTE_PRIORITY}
|
||||
SRCS
|
||||
note_main.c)
|
||||
endif()
|
||||
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_TASKSET)
|
||||
nuttx_add_application(NAME taskset)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_TASKSET}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_TASKSET_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_TASKSET_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_TASKSET_PRIORITY}
|
||||
SRCS
|
||||
taskset.c)
|
||||
endif()
|
||||
|
33
system/tcpdump/CMakeLists.txt
Normal file
33
system/tcpdump/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
||||
# ##############################################################################
|
||||
# apps/system/tcpdump/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_TCPDUMP)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_TCPDUMP}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_TCPDUMP_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_TCPDUMP_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_TCPDUMP_PRIORITY}
|
||||
SRCS
|
||||
tcpdump.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_TEE)
|
||||
nuttx_add_application(NAME tee)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_TEE}
|
||||
NAME
|
||||
tee
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_TEE_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_TEE_PRIORITY}
|
||||
SRCS
|
||||
tee.c)
|
||||
endif()
|
||||
|
23
system/termcurses/CMakeLists.txt
Normal file
23
system/termcurses/CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
||||
# ##############################################################################
|
||||
# apps/system/termcurses/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_TERMCURSES)
|
||||
target_sources(apps PRIVATE termcurses.c tcurses_vt100.c)
|
||||
endif()
|
38
system/trace/CMakeLists.txt
Normal file
38
system/trace/CMakeLists.txt
Normal file
@ -0,0 +1,38 @@
|
||||
# ##############################################################################
|
||||
# apps/system/trace/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_TRACE)
|
||||
set(CSRCS trace.c)
|
||||
if(CONFIG_DRIVERS_NOTERAM)
|
||||
list(APPEND CSRCS trace_dump.c)
|
||||
endif()
|
||||
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_TRACE}
|
||||
NAME
|
||||
${CONFIG_SYSTEM_TRACE_PROGNAME}
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_TRACE_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_TRACE_PRIORITY}
|
||||
SRCS
|
||||
${CSRCS})
|
||||
endif()
|
@ -19,5 +19,6 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_UBLOXMODEM)
|
||||
nuttx_add_application(NAME ubloxmodem)
|
||||
nuttx_add_application(MODULE ${CONFIG_SYSTEM_UBLOXMODEM} NAME ubloxmodem SRCS
|
||||
ubloxmodem_main.c)
|
||||
endif()
|
||||
|
31
system/uniqueid/CMakeLists.txt
Normal file
31
system/uniqueid/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# ##############################################################################
|
||||
# apps/system/uniqueid/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_UNIQUEID)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_UNIQUEID}
|
||||
NAME
|
||||
uniqueid
|
||||
STACKSIZE
|
||||
${CONFIG_DEFAULT_TASK_STACKSIZE}
|
||||
SRCS
|
||||
uniqueid_main.c)
|
||||
endif()
|
@ -19,5 +19,15 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_VI)
|
||||
nuttx_add_application(NAME vi)
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_VI}
|
||||
NAME
|
||||
vi
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_VI_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_VI_PRIORITY}
|
||||
SRCS
|
||||
vi.c)
|
||||
endif()
|
||||
|
49
system/ymodem/CMakeLists.txt
Normal file
49
system/ymodem/CMakeLists.txt
Normal file
@ -0,0 +1,49 @@
|
||||
# ##############################################################################
|
||||
# apps/system/ymodem/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_YMODEM)
|
||||
set(CSRCS ymodem.c)
|
||||
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_YMODEM}
|
||||
NAME
|
||||
sb
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_YMODEM_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_YMODEM_PRIORITY}
|
||||
SRCS
|
||||
sb_main.c
|
||||
${CSRCS})
|
||||
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_YMODEM}
|
||||
NAME
|
||||
rb
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_YMODEM_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_YMODEM_PRIORITY}
|
||||
SRCS
|
||||
rb_main.c
|
||||
${CSRCS})
|
||||
endif()
|
@ -19,5 +19,32 @@
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_SYSTEM_ZMODEM)
|
||||
nuttx_add_application(NAME zmodem)
|
||||
set(CSRCS zm_send.c zm_receive.c zm_state.c zm_proto.c zm_watchdog.c
|
||||
zm_utils.c)
|
||||
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_ZMODEM}
|
||||
NAME
|
||||
sz
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_ZMODEM_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_ZMODEM_PRIORITY}
|
||||
SRCS
|
||||
sz_main.c
|
||||
${CSRCS})
|
||||
|
||||
nuttx_add_application(
|
||||
MODULE
|
||||
${CONFIG_SYSTEM_ZMODEM}
|
||||
NAME
|
||||
rz
|
||||
STACKSIZE
|
||||
${CONFIG_SYSTEM_ZMODEM_STACKSIZE}
|
||||
PRIORITY
|
||||
${CONFIG_SYSTEM_ZMODEM_PRIORITY}
|
||||
SRCS
|
||||
rz_main.c
|
||||
${CSRCS})
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user