This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 37226646fc941c3e5f9062ea6bb391785b69277a
Author: simbit18 <[email protected]>
AuthorDate: Fri Feb 13 15:39:49 2026 +0100

    boards/arm/samd2l2: CMake added boards
    
    CMake added boards:
    
     - arduino-m0
    
     - circuit-express
    
     - samd20-xplained
    
     - samd21-xplained
    
     - saml21-xplained
    
     - xiao-seeeduino
    
    Signed-off-by: simbit18 <[email protected]>
---
 boards/arm/samd2l2/arduino-m0/CMakeLists.txt       | 23 +++++++++
 boards/arm/samd2l2/arduino-m0/src/CMakeLists.txt   | 53 +++++++++++++++++++++
 boards/arm/samd2l2/circuit-express/CMakeLists.txt  | 23 +++++++++
 .../arm/samd2l2/circuit-express/src/CMakeLists.txt | 43 +++++++++++++++++
 boards/arm/samd2l2/samd20-xplained/CMakeLists.txt  | 23 +++++++++
 .../arm/samd2l2/samd20-xplained/src/CMakeLists.txt | 55 ++++++++++++++++++++++
 boards/arm/samd2l2/samd21-xplained/CMakeLists.txt  | 23 +++++++++
 .../arm/samd2l2/samd21-xplained/src/CMakeLists.txt | 55 ++++++++++++++++++++++
 boards/arm/samd2l2/saml21-xplained/CMakeLists.txt  | 23 +++++++++
 .../arm/samd2l2/saml21-xplained/src/CMakeLists.txt | 55 ++++++++++++++++++++++
 boards/arm/samd2l2/xiao-seeeduino/CMakeLists.txt   | 23 +++++++++
 .../arm/samd2l2/xiao-seeeduino/src/CMakeLists.txt  | 35 ++++++++++++++
 12 files changed, 434 insertions(+)

diff --git a/boards/arm/samd2l2/arduino-m0/CMakeLists.txt 
b/boards/arm/samd2l2/arduino-m0/CMakeLists.txt
new file mode 100644
index 00000000000..eacbb795e4c
--- /dev/null
+++ b/boards/arm/samd2l2/arduino-m0/CMakeLists.txt
@@ -0,0 +1,23 @@
+# 
##############################################################################
+# boards/arm/samd2l2/arduino-m0/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+add_subdirectory(src)
diff --git a/boards/arm/samd2l2/arduino-m0/src/CMakeLists.txt 
b/boards/arm/samd2l2/arduino-m0/src/CMakeLists.txt
new file mode 100644
index 00000000000..89239331588
--- /dev/null
+++ b/boards/arm/samd2l2/arduino-m0/src/CMakeLists.txt
@@ -0,0 +1,53 @@
+# 
##############################################################################
+# boards/arm/samd2l2/arduino-m0/src/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+set(SRCS sam_boot.c sam_bringup.c)
+
+if(CONFIG_SAMD2L2_SERCOM0)
+  list(APPEND SRCS sam_spi.c)
+endif()
+
+if(CONFIG_ARCH_LEDS)
+  list(APPEND SRCS sam_autoleds.c)
+else()
+  list(APPEND SRCS sam_userleds.c)
+endif()
+
+if(CONFIG_ARCH_BUTTONS)
+  list(APPEND SRCS sam_buttons.c)
+endif()
+
+if(CONFIG_SAMD2L2_ADC)
+  list(APPEND SRCS sam_adc.c)
+endif()
+
+if(CONFIG_BOARDCTL)
+  list(APPEND SRCS sam_appinit.c)
+endif()
+
+if(CONFIG_USBDEV)
+  list(APPEND SRCS sam_usb.c)
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld")
diff --git a/boards/arm/samd2l2/circuit-express/CMakeLists.txt 
b/boards/arm/samd2l2/circuit-express/CMakeLists.txt
new file mode 100644
index 00000000000..57b70f77719
--- /dev/null
+++ b/boards/arm/samd2l2/circuit-express/CMakeLists.txt
@@ -0,0 +1,23 @@
+# 
##############################################################################
+# boards/arm/samd2l2/circuit-express/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+add_subdirectory(src)
diff --git a/boards/arm/samd2l2/circuit-express/src/CMakeLists.txt 
b/boards/arm/samd2l2/circuit-express/src/CMakeLists.txt
new file mode 100644
index 00000000000..9cb752dde4a
--- /dev/null
+++ b/boards/arm/samd2l2/circuit-express/src/CMakeLists.txt
@@ -0,0 +1,43 @@
+# 
##############################################################################
+# boards/arm/samd2l2/circuit-express/src/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+set(SRCS sam_boot.c sam_bringup.c)
+
+if(CONFIG_ARCH_LEDS)
+  list(APPEND SRCS sam_autoleds.c)
+endif()
+
+if(CONFIG_ARCH_BUTTONS)
+  list(APPEND SRCS sam_buttons.c)
+endif()
+
+if(CONFIG_BOARDCTL)
+  list(APPEND SRCS sam_appinit.c)
+endif()
+
+if(CONFIG_USBDEV)
+  list(APPEND SRCS sam_usb.c)
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld")
diff --git a/boards/arm/samd2l2/samd20-xplained/CMakeLists.txt 
b/boards/arm/samd2l2/samd20-xplained/CMakeLists.txt
new file mode 100644
index 00000000000..19626b42764
--- /dev/null
+++ b/boards/arm/samd2l2/samd20-xplained/CMakeLists.txt
@@ -0,0 +1,23 @@
+# 
##############################################################################
+# boards/arm/samd2l2/samd20-xplained/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+add_subdirectory(src)
diff --git a/boards/arm/samd2l2/samd20-xplained/src/CMakeLists.txt 
b/boards/arm/samd2l2/samd20-xplained/src/CMakeLists.txt
new file mode 100644
index 00000000000..a44b6acffab
--- /dev/null
+++ b/boards/arm/samd2l2/samd20-xplained/src/CMakeLists.txt
@@ -0,0 +1,55 @@
+# 
##############################################################################
+# boards/arm/samd2l2/samd20-xplained/src/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+set(SRCS sam_boot.c)
+
+if(CONFIG_SAMD2L2_SERCOM0)
+  list(APPEND SRCS sam_spi.c)
+endif()
+
+if(CONFIG_ARCH_LEDS)
+  list(APPEND SRCS sam_autoleds.c)
+else()
+  list(APPEND SRCS sam_userleds.c)
+endif()
+
+if(CONFIG_ARCH_BUTTONS)
+  list(APPEND SRCS sam_buttons.c)
+endif()
+
+if(CONFIG_BOARDCTL)
+  list(APPEND SRCS sam_appinit.c)
+endif()
+
+if(CONFIG_SAMD20_XPLAINED_IOMODULE)
+  list(APPEND SRCS sam_mmcsd.c)
+endif()
+
+if(CONFIG_SAMD20_XPLAINED_OLED1MODULE)
+  if(CONFIG_LCD_UG2832HSWEG04)
+    list(APPEND SRCS sam_ug2832hsweg04.c)
+  endif()
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld")
diff --git a/boards/arm/samd2l2/samd21-xplained/CMakeLists.txt 
b/boards/arm/samd2l2/samd21-xplained/CMakeLists.txt
new file mode 100644
index 00000000000..78995f85ef5
--- /dev/null
+++ b/boards/arm/samd2l2/samd21-xplained/CMakeLists.txt
@@ -0,0 +1,23 @@
+# 
##############################################################################
+# boards/arm/samd2l2/samd21-xplained/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+add_subdirectory(src)
diff --git a/boards/arm/samd2l2/samd21-xplained/src/CMakeLists.txt 
b/boards/arm/samd2l2/samd21-xplained/src/CMakeLists.txt
new file mode 100644
index 00000000000..9a63d81bbc9
--- /dev/null
+++ b/boards/arm/samd2l2/samd21-xplained/src/CMakeLists.txt
@@ -0,0 +1,55 @@
+# 
##############################################################################
+# boards/arm/samd2l2/samd21-xplained/src/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+set(SRCS sam_boot.c)
+
+if(CONFIG_SAMD2L2_SERCOM0)
+  list(APPEND SRCS sam_spi.c)
+endif()
+
+if(CONFIG_ARCH_LEDS)
+  list(APPEND SRCS sam_autoleds.c)
+else()
+  list(APPEND SRCS sam_userleds.c)
+endif()
+
+if(CONFIG_ARCH_BUTTONS)
+  list(APPEND SRCS sam_buttons.c)
+endif()
+
+if(CONFIG_BOARDCTL)
+  list(APPEND SRCS sam_appinit.c)
+endif()
+
+if(CONFIG_SAMD21_XPLAINED_IOMODULE)
+  list(APPEND SRCS sam_mmcsd.c)
+endif()
+
+if(CONFIG_SAMD21_XPLAINED_OLED1MODULE)
+  if(CONFIG_LCD_UG2832HSWEG04)
+    list(APPEND SRCS sam_ug2832hsweg04.c)
+  endif()
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld")
diff --git a/boards/arm/samd2l2/saml21-xplained/CMakeLists.txt 
b/boards/arm/samd2l2/saml21-xplained/CMakeLists.txt
new file mode 100644
index 00000000000..fe4def87c9e
--- /dev/null
+++ b/boards/arm/samd2l2/saml21-xplained/CMakeLists.txt
@@ -0,0 +1,23 @@
+# 
##############################################################################
+# boards/arm/samd2l2/saml21-xplained/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+add_subdirectory(src)
diff --git a/boards/arm/samd2l2/saml21-xplained/src/CMakeLists.txt 
b/boards/arm/samd2l2/saml21-xplained/src/CMakeLists.txt
new file mode 100644
index 00000000000..7395e6f3a03
--- /dev/null
+++ b/boards/arm/samd2l2/saml21-xplained/src/CMakeLists.txt
@@ -0,0 +1,55 @@
+# 
##############################################################################
+# boards/arm/samd2l2/saml21-xplained/src/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+set(SRCS sam_boot.c)
+
+if(CONFIG_SAMD2L2_SERCOM0)
+  list(APPEND SRCS sam_spi.c)
+endif()
+
+if(CONFIG_ARCH_LEDS)
+  list(APPEND SRCS sam_autoleds.c)
+else()
+  list(APPEND SRCS sam_userleds.c)
+endif()
+
+if(CONFIG_ARCH_BUTTONS)
+  list(APPEND SRCS sam_buttons.c)
+endif()
+
+if(CONFIG_BOARDCTL)
+  list(APPEND SRCS sam_appinit.c)
+endif()
+
+if(CONFIG_SAML21_XPLAINED_IOMODULE)
+  list(APPEND SRCS sam_mmcsd.c)
+endif()
+
+if(CONFIG_SAML21_XPLAINED_OLED1MODULE)
+  if(CONFIG_LCD_UG2832HSWEG04)
+    list(APPEND SRCS sam_ug2832hsweg04.c)
+  endif()
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld")
diff --git a/boards/arm/samd2l2/xiao-seeeduino/CMakeLists.txt 
b/boards/arm/samd2l2/xiao-seeeduino/CMakeLists.txt
new file mode 100644
index 00000000000..885435d35d5
--- /dev/null
+++ b/boards/arm/samd2l2/xiao-seeeduino/CMakeLists.txt
@@ -0,0 +1,23 @@
+# 
##############################################################################
+# boards/arm/samd2l2/xiao-seeeduino/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+add_subdirectory(src)
diff --git a/boards/arm/samd2l2/xiao-seeeduino/src/CMakeLists.txt 
b/boards/arm/samd2l2/xiao-seeeduino/src/CMakeLists.txt
new file mode 100644
index 00000000000..2d255c5acbf
--- /dev/null
+++ b/boards/arm/samd2l2/xiao-seeeduino/src/CMakeLists.txt
@@ -0,0 +1,35 @@
+# 
##############################################################################
+# boards/arm/samd2l2/xiao-seeeduino/src/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# 
##############################################################################
+
+set(SRCS sam_boot.c)
+
+if(CONFIG_ARCH_LEDS)
+  list(APPEND SRCS sam_autoleds.c)
+endif()
+
+if(CONFIG_BOARDCTL)
+  list(APPEND SRCS sam_appinit.c)
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld")

Reply via email to