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

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

commit c036d230510ec2704c6b6778e85d3d801cf632b1
Author: simbit18 <[email protected]>
AuthorDate: Fri Feb 20 17:08:40 2026 +0100

    boards/arm/stm32wb: CMake added boards
    
    CMake added boards:
    
     - flipperzero
    
     - nucleo-wb55rg
    
    Signed-off-by: simbit18 <[email protected]>
---
 boards/arm/stm32wb/flipperzero/CMakeLists.txt      | 23 +++++++++++++
 boards/arm/stm32wb/flipperzero/src/CMakeLists.txt  | 40 ++++++++++++++++++++++
 boards/arm/stm32wb/nucleo-wb55rg/CMakeLists.txt    | 23 +++++++++++++
 .../arm/stm32wb/nucleo-wb55rg/src/CMakeLists.txt   | 37 ++++++++++++++++++++
 4 files changed, 123 insertions(+)

diff --git a/boards/arm/stm32wb/flipperzero/CMakeLists.txt 
b/boards/arm/stm32wb/flipperzero/CMakeLists.txt
new file mode 100644
index 00000000000..fc602b43bb2
--- /dev/null
+++ b/boards/arm/stm32wb/flipperzero/CMakeLists.txt
@@ -0,0 +1,23 @@
+# 
##############################################################################
+# boards/arm/stm32wb/flipperzero/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/stm32wb/flipperzero/src/CMakeLists.txt 
b/boards/arm/stm32wb/flipperzero/src/CMakeLists.txt
new file mode 100644
index 00000000000..b38341f1522
--- /dev/null
+++ b/boards/arm/stm32wb/flipperzero/src/CMakeLists.txt
@@ -0,0 +1,40 @@
+# 
##############################################################################
+# boards/arm/stm32wb/flipperzero/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 stm32_boot.c)
+
+if(CONFIG_BOARDCTL)
+  list(APPEND SRCS stm32_appinit.c)
+endif()
+
+if(CONFIG_SPI)
+  list(APPEND SRCS stm32_spi.c)
+endif()
+
+if(CONFIG_LCD_ST7565)
+  list(APPEND SRCS stm32_lcd_st7565.c)
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT
+                             "${NUTTX_BOARD_DIR}/scripts/flipperzero.ld")
diff --git a/boards/arm/stm32wb/nucleo-wb55rg/CMakeLists.txt 
b/boards/arm/stm32wb/nucleo-wb55rg/CMakeLists.txt
new file mode 100644
index 00000000000..6ba453daa7e
--- /dev/null
+++ b/boards/arm/stm32wb/nucleo-wb55rg/CMakeLists.txt
@@ -0,0 +1,23 @@
+# 
##############################################################################
+# boards/arm/stm32wb/nucleo-wb55rg/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/stm32wb/nucleo-wb55rg/src/CMakeLists.txt 
b/boards/arm/stm32wb/nucleo-wb55rg/src/CMakeLists.txt
new file mode 100644
index 00000000000..8c5df0a5587
--- /dev/null
+++ b/boards/arm/stm32wb/nucleo-wb55rg/src/CMakeLists.txt
@@ -0,0 +1,37 @@
+# 
##############################################################################
+# boards/arm/stm32wb/nucleo-wb55rg/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 stm32_boot.c)
+
+if(CONFIG_ARCH_LEDS)
+  list(APPEND SRCS stm32_autoleds.c)
+else()
+  list(APPEND SRCS stm32_userleds.c)
+endif()
+
+if(CONFIG_BOARDCTL)
+  list(APPEND SRCS stm32_appinit.c)
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/wb55rg.ld")

Reply via email to