mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
cmake: format Nordic boards
This commit is contained in:
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf52/common/CMakeLists.txt
|
# boards/arm/nrf52/common/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
target_include_directories(board PRIVATE include)
|
target_include_directories(board PRIVATE include)
|
||||||
|
|||||||
@@ -1,37 +1,37 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf52/common/src/CMakeLists.txt
|
# boards/arm/nrf52/common/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
|
|
||||||
if(CONFIG_NRF52_TIMER)
|
if(CONFIG_NRF52_TIMER)
|
||||||
list(APPEND SRCS nrf52_timer.c)
|
list(APPEND SRCS nrf52_timer.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_BOARDCTL_BOOT_IMAGE)
|
if(CONFIG_BOARDCTL_BOOT_IMAGE)
|
||||||
list(APPEND SRCS nrf52_boot_image.c)
|
list(APPEND SRCS nrf52_boot_image.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_NRF52_PROGMEM)
|
if(CONFIG_NRF52_PROGMEM)
|
||||||
list(APPEND SRCS nrf52_progmem.c)
|
list(APPEND SRCS nrf52_progmem.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf52/nrf52-feather/src/CMakeLists.txt
|
# boards/arm/nrf52/nrf52-feather/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
||||||
|
|
||||||
@@ -37,7 +37,9 @@ endif()
|
|||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf52/nrf52832-dk/src/CMakeLists.txt
|
# boards/arm/nrf52/nrf52832-dk/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
||||||
|
|
||||||
@@ -37,7 +37,9 @@ endif()
|
|||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf52/nrf52832-mdk/src/CMakeLists.txt
|
# boards/arm/nrf52/nrf52832-mdk/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
||||||
|
|
||||||
@@ -31,7 +31,9 @@ endif()
|
|||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf52/nrf52832-sparkfun/src/CMakeLists.txt
|
# boards/arm/nrf52/nrf52832-sparkfun/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
||||||
|
|
||||||
@@ -31,7 +31,9 @@ endif()
|
|||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf52/nrf52840-dk/src/CMakeLists.txt
|
# boards/arm/nrf52/nrf52840-dk/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
||||||
|
|
||||||
@@ -81,7 +81,9 @@ endif()
|
|||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf52/nrf52840-dongle/src/CMakeLists.txt
|
# boards/arm/nrf52/nrf52840-dongle/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
||||||
|
|
||||||
@@ -41,7 +41,9 @@ endif()
|
|||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf52/thingy52/src/CMakeLists.txt
|
# boards/arm/nrf52/thingy52/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
set(SRCS nrf52_boot.c nrf52_bringup.c)
|
||||||
|
|
||||||
@@ -35,7 +35,9 @@ endif()
|
|||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_config.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_config.ld")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf53/common/CMakeLists.txt
|
# boards/arm/nrf53/common/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
target_include_directories(board PRIVATE include)
|
target_include_directories(board PRIVATE include)
|
||||||
|
|||||||
@@ -1,37 +1,37 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf53/common/src/CMakeLists.txt
|
# boards/arm/nrf53/common/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
|
|
||||||
if(CONFIG_NRF53_TIMER)
|
if(CONFIG_NRF53_TIMER)
|
||||||
list(APPEND SRCS nrf53_timer.c)
|
list(APPEND SRCS nrf53_timer.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_BOARDCTL_BOOT_IMAGE)
|
if(CONFIG_BOARDCTL_BOOT_IMAGE)
|
||||||
list(APPEND SRCS nrf53_boot_image.c)
|
list(APPEND SRCS nrf53_boot_image.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_NRF53_PROGMEM)
|
if(CONFIG_NRF53_PROGMEM)
|
||||||
list(APPEND SRCS nrf53_progmem.c)
|
list(APPEND SRCS nrf53_progmem.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf53/nrf5340-audio-dk/src/CMakeLists.txt
|
# boards/arm/nrf53/nrf5340-audio-dk/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf53_boot.c nrf53_bringup.c)
|
set(SRCS nrf53_boot.c nrf53_bringup.c)
|
||||||
|
|
||||||
@@ -34,14 +34,18 @@ target_sources(board PRIVATE ${SRCS})
|
|||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_app.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_app.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_net.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_net.ld")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_app.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_app.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_net.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_net.ld")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf53/nrf5340-dk/src/CMakeLists.txt
|
# boards/arm/nrf53/nrf5340-dk/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf53_boot.c nrf53_bringup.c)
|
set(SRCS nrf53_boot.c nrf53_bringup.c)
|
||||||
|
|
||||||
@@ -62,14 +62,18 @@ target_sources(board PRIVATE ${SRCS})
|
|||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_app.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_app.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_net.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_net.ld")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_app.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_app.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_net.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_net.ld")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf53/thingy53/src/CMakeLists.txt
|
# boards/arm/nrf53/thingy53/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf53_boot.c nrf53_bringup.c)
|
set(SRCS nrf53_boot.c nrf53_bringup.c)
|
||||||
|
|
||||||
@@ -44,14 +44,18 @@ target_sources(board PRIVATE ${SRCS})
|
|||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_app.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_app.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_net.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_net.ld")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
if(CONFIG_ARCH_CHIP_NRF5340_CPUAPP)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_app.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_app.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_net.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_net.ld")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf91/common/CMakeLists.txt
|
# boards/arm/nrf91/common/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
target_include_directories(board PRIVATE include)
|
target_include_directories(board PRIVATE include)
|
||||||
|
|||||||
@@ -1,37 +1,37 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf91/common/src/CMakeLists.txt
|
# boards/arm/nrf91/common/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
|
|
||||||
if(CONFIG_NRF91_TIMER)
|
if(CONFIG_NRF91_TIMER)
|
||||||
list(APPEND SRCS nrf91_timer.c)
|
list(APPEND SRCS nrf91_timer.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_BOARDCTL_BOOT_IMAGE)
|
if(CONFIG_BOARDCTL_BOOT_IMAGE)
|
||||||
list(APPEND SRCS nrf91_boot_image.c)
|
list(APPEND SRCS nrf91_boot_image.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_NRF91_PROGMEM)
|
if(CONFIG_NRF91_PROGMEM)
|
||||||
list(APPEND SRCS nrf91_progmem.c)
|
list(APPEND SRCS nrf91_progmem.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,22 +1,22 @@
|
|||||||
############################################################################
|
# ##############################################################################
|
||||||
# boards/arm/nrf91/nrf9160-dk/src/CMakeLists.txt
|
# boards/arm/nrf91/nrf9160-dk/src/CMakeLists.txt
|
||||||
#
|
#
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
# license agreements. See the NOTICE file distributed with this work for
|
||||||
# this work for additional information regarding copyright ownership. The
|
# additional information regarding copyright ownership. The ASF licenses this
|
||||||
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||||
# "License"); you may not use this file except in compliance with the
|
# use this file except in compliance with the License. You may obtain a copy of
|
||||||
# License. You may obtain a copy of the License at
|
# the License at
|
||||||
#
|
#
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
#
|
#
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations under
|
||||||
# under the License.
|
# the License.
|
||||||
#
|
#
|
||||||
############################################################################
|
# ##############################################################################
|
||||||
|
|
||||||
set(SRCS nrf91_boot.c nrf91_bringup.c)
|
set(SRCS nrf91_boot.c nrf91_bringup.c)
|
||||||
|
|
||||||
@@ -37,7 +37,9 @@ endif()
|
|||||||
target_sources(board PRIVATE ${SRCS})
|
target_sources(board PRIVATE ${SRCS})
|
||||||
|
|
||||||
if(CONFIG_ARCH_BOARD_COMMON)
|
if(CONFIG_ARCH_BOARD_COMMON)
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_COMMON_DIR}/scripts/flash_app.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_COMMON_DIR}/scripts/flash_app.ld")
|
||||||
else()
|
else()
|
||||||
set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash_app.ld")
|
set_property(GLOBAL PROPERTY LD_SCRIPT
|
||||||
|
"${NUTTX_BOARD_DIR}/scripts/flash_app.ld")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user