diff --git a/boards/arm/nrf52/common/CMakeLists.txt b/boards/arm/nrf52/common/CMakeLists.txt index 764af45a410..9f56781e40a 100644 --- a/boards/arm/nrf52/common/CMakeLists.txt +++ b/boards/arm/nrf52/common/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf52/common/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## add_subdirectory(src) target_include_directories(board PRIVATE include) diff --git a/boards/arm/nrf52/common/src/CMakeLists.txt b/boards/arm/nrf52/common/src/CMakeLists.txt index ffd7a58e4b7..5a2844de3e4 100644 --- a/boards/arm/nrf52/common/src/CMakeLists.txt +++ b/boards/arm/nrf52/common/src/CMakeLists.txt @@ -1,37 +1,37 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf52/common/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## if(CONFIG_ARCH_BOARD_COMMON) -if(CONFIG_NRF52_TIMER) - list(APPEND SRCS nrf52_timer.c) -endif() + if(CONFIG_NRF52_TIMER) + list(APPEND SRCS nrf52_timer.c) + endif() -if(CONFIG_BOARDCTL_BOOT_IMAGE) - list(APPEND SRCS nrf52_boot_image.c) -endif() + if(CONFIG_BOARDCTL_BOOT_IMAGE) + list(APPEND SRCS nrf52_boot_image.c) + endif() -if(CONFIG_NRF52_PROGMEM) - list(APPEND SRCS nrf52_progmem.c) -endif() + if(CONFIG_NRF52_PROGMEM) + list(APPEND SRCS nrf52_progmem.c) + endif() -target_sources(board PRIVATE ${SRCS}) + target_sources(board PRIVATE ${SRCS}) endif() diff --git a/boards/arm/nrf52/nrf52-feather/src/CMakeLists.txt b/boards/arm/nrf52/nrf52-feather/src/CMakeLists.txt index 50dd8a1976c..e9e1b859aad 100644 --- a/boards/arm/nrf52/nrf52-feather/src/CMakeLists.txt +++ b/boards/arm/nrf52/nrf52-feather/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf52/nrf52-feather/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## set(SRCS nrf52_boot.c nrf52_bringup.c) @@ -37,7 +37,9 @@ endif() target_sources(board PRIVATE ${SRCS}) 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() - 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() diff --git a/boards/arm/nrf52/nrf52832-dk/src/CMakeLists.txt b/boards/arm/nrf52/nrf52832-dk/src/CMakeLists.txt index 01ede843bef..7e61a0d0a9e 100644 --- a/boards/arm/nrf52/nrf52832-dk/src/CMakeLists.txt +++ b/boards/arm/nrf52/nrf52832-dk/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf52/nrf52832-dk/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## set(SRCS nrf52_boot.c nrf52_bringup.c) @@ -37,7 +37,9 @@ endif() target_sources(board PRIVATE ${SRCS}) 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() - 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() diff --git a/boards/arm/nrf52/nrf52832-mdk/src/CMakeLists.txt b/boards/arm/nrf52/nrf52832-mdk/src/CMakeLists.txt index b361612bfe1..7d55afff33b 100644 --- a/boards/arm/nrf52/nrf52832-mdk/src/CMakeLists.txt +++ b/boards/arm/nrf52/nrf52832-mdk/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf52/nrf52832-mdk/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## set(SRCS nrf52_boot.c nrf52_bringup.c) @@ -31,7 +31,9 @@ endif() target_sources(board PRIVATE ${SRCS}) 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() - 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() diff --git a/boards/arm/nrf52/nrf52832-sparkfun/src/CMakeLists.txt b/boards/arm/nrf52/nrf52832-sparkfun/src/CMakeLists.txt index d5729e45b6b..33d11db5c0d 100644 --- a/boards/arm/nrf52/nrf52832-sparkfun/src/CMakeLists.txt +++ b/boards/arm/nrf52/nrf52832-sparkfun/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf52/nrf52832-sparkfun/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## set(SRCS nrf52_boot.c nrf52_bringup.c) @@ -31,7 +31,9 @@ endif() target_sources(board PRIVATE ${SRCS}) 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() - 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() diff --git a/boards/arm/nrf52/nrf52840-dk/src/CMakeLists.txt b/boards/arm/nrf52/nrf52840-dk/src/CMakeLists.txt index 175cdfa05ee..a027f1f7edc 100644 --- a/boards/arm/nrf52/nrf52840-dk/src/CMakeLists.txt +++ b/boards/arm/nrf52/nrf52840-dk/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf52/nrf52840-dk/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## set(SRCS nrf52_boot.c nrf52_bringup.c) @@ -81,7 +81,9 @@ endif() target_sources(board PRIVATE ${SRCS}) 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() - 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() diff --git a/boards/arm/nrf52/nrf52840-dongle/src/CMakeLists.txt b/boards/arm/nrf52/nrf52840-dongle/src/CMakeLists.txt index c633cf92354..08ea0cdd76c 100644 --- a/boards/arm/nrf52/nrf52840-dongle/src/CMakeLists.txt +++ b/boards/arm/nrf52/nrf52840-dongle/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf52/nrf52840-dongle/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## set(SRCS nrf52_boot.c nrf52_bringup.c) @@ -41,7 +41,9 @@ endif() target_sources(board PRIVATE ${SRCS}) 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() - 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() diff --git a/boards/arm/nrf52/thingy52/src/CMakeLists.txt b/boards/arm/nrf52/thingy52/src/CMakeLists.txt index acc49b5a397..fb36f68cc0c 100644 --- a/boards/arm/nrf52/thingy52/src/CMakeLists.txt +++ b/boards/arm/nrf52/thingy52/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf52/thingy52/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## set(SRCS nrf52_boot.c nrf52_bringup.c) @@ -35,7 +35,9 @@ endif() target_sources(board PRIVATE ${SRCS}) 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() - 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() diff --git a/boards/arm/nrf53/common/CMakeLists.txt b/boards/arm/nrf53/common/CMakeLists.txt index b42be3bbd80..51350838c9c 100644 --- a/boards/arm/nrf53/common/CMakeLists.txt +++ b/boards/arm/nrf53/common/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf53/common/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## add_subdirectory(src) target_include_directories(board PRIVATE include) diff --git a/boards/arm/nrf53/common/src/CMakeLists.txt b/boards/arm/nrf53/common/src/CMakeLists.txt index e8dfce1417f..b09c2107008 100644 --- a/boards/arm/nrf53/common/src/CMakeLists.txt +++ b/boards/arm/nrf53/common/src/CMakeLists.txt @@ -1,37 +1,37 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf53/common/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## if(CONFIG_ARCH_BOARD_COMMON) -if(CONFIG_NRF53_TIMER) - list(APPEND SRCS nrf53_timer.c) -endif() + if(CONFIG_NRF53_TIMER) + list(APPEND SRCS nrf53_timer.c) + endif() -if(CONFIG_BOARDCTL_BOOT_IMAGE) - list(APPEND SRCS nrf53_boot_image.c) -endif() + if(CONFIG_BOARDCTL_BOOT_IMAGE) + list(APPEND SRCS nrf53_boot_image.c) + endif() -if(CONFIG_NRF53_PROGMEM) - list(APPEND SRCS nrf53_progmem.c) -endif() + if(CONFIG_NRF53_PROGMEM) + list(APPEND SRCS nrf53_progmem.c) + endif() -target_sources(board PRIVATE ${SRCS}) + target_sources(board PRIVATE ${SRCS}) endif() diff --git a/boards/arm/nrf53/nrf5340-audio-dk/src/CMakeLists.txt b/boards/arm/nrf53/nrf5340-audio-dk/src/CMakeLists.txt index b33c3fec5e2..c9d1f4f8123 100644 --- a/boards/arm/nrf53/nrf5340-audio-dk/src/CMakeLists.txt +++ b/boards/arm/nrf53/nrf5340-audio-dk/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf53/nrf5340-audio-dk/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## 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_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() - 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() else() 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() - 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() diff --git a/boards/arm/nrf53/nrf5340-dk/src/CMakeLists.txt b/boards/arm/nrf53/nrf5340-dk/src/CMakeLists.txt index f4844fad4ba..7c733d635a6 100644 --- a/boards/arm/nrf53/nrf5340-dk/src/CMakeLists.txt +++ b/boards/arm/nrf53/nrf5340-dk/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf53/nrf5340-dk/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## 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_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() - 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() else() 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() - 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() diff --git a/boards/arm/nrf53/thingy53/src/CMakeLists.txt b/boards/arm/nrf53/thingy53/src/CMakeLists.txt index 788259ed2e3..f9c66a43721 100644 --- a/boards/arm/nrf53/thingy53/src/CMakeLists.txt +++ b/boards/arm/nrf53/thingy53/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf53/thingy53/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## 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_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() - 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() else() 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() - 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() diff --git a/boards/arm/nrf91/common/CMakeLists.txt b/boards/arm/nrf91/common/CMakeLists.txt index 9f9b95e1c61..b4555d0140c 100644 --- a/boards/arm/nrf91/common/CMakeLists.txt +++ b/boards/arm/nrf91/common/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf91/common/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## add_subdirectory(src) target_include_directories(board PRIVATE include) diff --git a/boards/arm/nrf91/common/src/CMakeLists.txt b/boards/arm/nrf91/common/src/CMakeLists.txt index 2c21fb05af7..9492508ab4b 100644 --- a/boards/arm/nrf91/common/src/CMakeLists.txt +++ b/boards/arm/nrf91/common/src/CMakeLists.txt @@ -1,37 +1,37 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf91/common/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## if(CONFIG_ARCH_BOARD_COMMON) -if(CONFIG_NRF91_TIMER) - list(APPEND SRCS nrf91_timer.c) -endif() + if(CONFIG_NRF91_TIMER) + list(APPEND SRCS nrf91_timer.c) + endif() -if(CONFIG_BOARDCTL_BOOT_IMAGE) - list(APPEND SRCS nrf91_boot_image.c) -endif() + if(CONFIG_BOARDCTL_BOOT_IMAGE) + list(APPEND SRCS nrf91_boot_image.c) + endif() -if(CONFIG_NRF91_PROGMEM) - list(APPEND SRCS nrf91_progmem.c) -endif() + if(CONFIG_NRF91_PROGMEM) + list(APPEND SRCS nrf91_progmem.c) + endif() -target_sources(board PRIVATE ${SRCS}) + target_sources(board PRIVATE ${SRCS}) endif() diff --git a/boards/arm/nrf91/nrf9160-dk/src/CMakeLists.txt b/boards/arm/nrf91/nrf9160-dk/src/CMakeLists.txt index 752ff5e10f1..89969288533 100644 --- a/boards/arm/nrf91/nrf9160-dk/src/CMakeLists.txt +++ b/boards/arm/nrf91/nrf9160-dk/src/CMakeLists.txt @@ -1,22 +1,22 @@ -############################################################################ +# ############################################################################## # boards/arm/nrf91/nrf9160-dk/src/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 +# 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 +# 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. +# License for the specific language governing permissions and limitations under +# the License. # -############################################################################ +# ############################################################################## set(SRCS nrf91_boot.c nrf91_bringup.c) @@ -37,7 +37,9 @@ endif() target_sources(board PRIVATE ${SRCS}) 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() - 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()