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
The following commit(s) were added to refs/heads/master by this push:
new c47911ffa10 boards/arm/stm32l4: CMake added boards Part1
c47911ffa10 is described below
commit c47911ffa10788d8df018c63549c2b3756e62786
Author: simbit18 <[email protected]>
AuthorDate: Thu Dec 4 18:51:13 2025 +0100
boards/arm/stm32l4: CMake added boards Part1
CMake added boards:
- b-l475e-iot01a
- nucleo-l432kc
- nucleo-l452re
- nucleo-l496zg
- steval-stlcs01v1
- stm32l476-mdk
Signed-off-by: simbit18 <[email protected]>
---
boards/arm/stm32l4/b-l475e-iot01a/CMakeLists.txt | 23 +++++
.../arm/stm32l4/b-l475e-iot01a/src/CMakeLists.txt | 41 ++++++++
boards/arm/stm32l4/nucleo-l432kc/CMakeLists.txt | 23 +++++
.../arm/stm32l4/nucleo-l432kc/src/CMakeLists.txt | 106 +++++++++++++++++++++
boards/arm/stm32l4/nucleo-l452re/CMakeLists.txt | 23 +++++
.../arm/stm32l4/nucleo-l452re/src/CMakeLists.txt | 50 ++++++++++
boards/arm/stm32l4/nucleo-l496zg/CMakeLists.txt | 23 +++++
.../arm/stm32l4/nucleo-l496zg/src/CMakeLists.txt | 78 +++++++++++++++
boards/arm/stm32l4/steval-stlcs01v1/CMakeLists.txt | 23 +++++
.../stm32l4/steval-stlcs01v1/src/CMakeLists.txt | 39 ++++++++
boards/arm/stm32l4/stm32l476-mdk/CMakeLists.txt | 23 +++++
.../arm/stm32l4/stm32l476-mdk/src/CMakeLists.txt | 44 +++++++++
12 files changed, 496 insertions(+)
diff --git a/boards/arm/stm32l4/b-l475e-iot01a/CMakeLists.txt
b/boards/arm/stm32l4/b-l475e-iot01a/CMakeLists.txt
new file mode 100644
index 00000000000..4553a717c26
--- /dev/null
+++ b/boards/arm/stm32l4/b-l475e-iot01a/CMakeLists.txt
@@ -0,0 +1,23 @@
+#
##############################################################################
+# boards/arm/stm32l4/b-l475e-iot01a/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/stm32l4/b-l475e-iot01a/src/CMakeLists.txt
b/boards/arm/stm32l4/b-l475e-iot01a/src/CMakeLists.txt
new file mode 100644
index 00000000000..ac7a4dfa8ab
--- /dev/null
+++ b/boards/arm/stm32l4/b-l475e-iot01a/src/CMakeLists.txt
@@ -0,0 +1,41 @@
+#
##############################################################################
+# boards/arm/stm32l4/b-l475e-iot01a/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 stm32_bringup.c stm32_spi.c stm32_timer.c)
+
+if(CONFIG_BOARDCTL)
+ list(APPEND SRCS stm32_appinit.c)
+endif()
+
+if(CONFIG_ARCH_LEDS)
+ list(APPEND SRCS stm32_autoleds.c)
+else()
+ list(APPEND SRCS stm32_userleds.c)
+endif()
+
+if(CONFIG_SPIRIT_NETDEV)
+ list(APPEND SRCS stm32_spirit.c)
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/flash.ld")
diff --git a/boards/arm/stm32l4/nucleo-l432kc/CMakeLists.txt
b/boards/arm/stm32l4/nucleo-l432kc/CMakeLists.txt
new file mode 100644
index 00000000000..7f1d5448ec3
--- /dev/null
+++ b/boards/arm/stm32l4/nucleo-l432kc/CMakeLists.txt
@@ -0,0 +1,23 @@
+#
##############################################################################
+# boards/arm/stm32l4/nucleo-l432kc/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/stm32l4/nucleo-l432kc/src/CMakeLists.txt
b/boards/arm/stm32l4/nucleo-l432kc/src/CMakeLists.txt
new file mode 100644
index 00000000000..988c57acf4d
--- /dev/null
+++ b/boards/arm/stm32l4/nucleo-l432kc/src/CMakeLists.txt
@@ -0,0 +1,106 @@
+#
##############################################################################
+# boards/arm/stm32l4/nucleo-l432kc/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 stm32_bringup.c stm32_spi.c)
+
+if(CONFIG_ARCH_LEDS)
+ list(APPEND SRCS stm32_autoleds.c)
+else()
+ list(APPEND SRCS stm32_userleds.c)
+endif()
+
+if(CONFIG_ARCH_BUTTONS)
+ list(APPEND SRCS stm32_buttons.c)
+endif()
+
+if(CONFIG_DEV_GPIO)
+ list(APPEND SRCS stm32_gpio.c)
+endif()
+
+if(CONFIG_STM32L4_ADC)
+ list(APPEND SRCS stm32_adc.c)
+endif()
+
+if(CONFIG_STM32L4_DAC)
+ list(APPEND SRCS stm32_dac.c)
+endif()
+
+if(CONFIG_DAC7571)
+ list(APPEND SRCS stm32_dac7571.c)
+endif()
+
+if(CONFIG_MTD_AT45DB)
+ list(APPEND SRCS stm32_at45db.c)
+endif()
+
+if(CONFIG_SENSORS_INA226)
+ list(APPEND SRCS stm32_ina226.c)
+endif()
+
+if(CONFIG_SENSORS_INA219)
+ list(APPEND SRCS stm32_ina219.c)
+endif()
+
+if(CONFIG_SENSORS_QENCODER)
+ list(APPEND SRCS stm32_qencoder.c)
+endif()
+
+if(CONFIG_PWM)
+ list(APPEND SRCS stm32_pwm.c)
+endif()
+
+if(CONFIG_SENSORS_ZEROCROSS)
+ list(APPEND SRCS stm32_zerocross.c)
+endif()
+
+if(CONFIG_TIMER)
+ list(APPEND SRCS stm32_timer.c)
+endif()
+
+if(CONFIG_BOARDCTL)
+ list(APPEND SRCS stm32_appinit.c)
+ if(CONFIG_BOARDCTL_IOCTL)
+ list(APPEND SRCS stm32_ioctl.c)
+ endif()
+endif()
+
+if(CONFIG_BOARDCTL_UNIQUEID)
+ list(APPEND SRCS stm32_uid.c)
+endif()
+
+if(CONFIG_NUCLEOL432KC_SPWM)
+ list(APPEND SRCS stm32_spwm.c)
+endif()
+
+if(CONFIG_NUCLEOL432KC_DAC_WGEN)
+ list(APPEND SRCS stm32_dac_wgen.c)
+endif()
+
+if(NOT CONFIG_STM32_ETHMAC)
+ if(CONFIG_NETDEVICES)
+ list(APPEND SRCS stm32_netinit.c)
+ endif()
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/l432kc.ld")
diff --git a/boards/arm/stm32l4/nucleo-l452re/CMakeLists.txt
b/boards/arm/stm32l4/nucleo-l452re/CMakeLists.txt
new file mode 100644
index 00000000000..4edc85bf8df
--- /dev/null
+++ b/boards/arm/stm32l4/nucleo-l452re/CMakeLists.txt
@@ -0,0 +1,23 @@
+#
##############################################################################
+# boards/arm/stm32l4/nucleo-l452re/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/stm32l4/nucleo-l452re/src/CMakeLists.txt
b/boards/arm/stm32l4/nucleo-l452re/src/CMakeLists.txt
new file mode 100644
index 00000000000..8e9e677d887
--- /dev/null
+++ b/boards/arm/stm32l4/nucleo-l452re/src/CMakeLists.txt
@@ -0,0 +1,50 @@
+#
##############################################################################
+# boards/arm/stm32l4/nucleo-l452re/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 stm32_bringup.c stm32_spi.c)
+
+if(CONFIG_ARCH_LEDS)
+ list(APPEND SRCS stm32_autoleds.c)
+else()
+ list(APPEND SRCS stm32_userleds.c)
+endif()
+
+if(CONFIG_ARCH_BUTTONS)
+ list(APPEND SRCS stm32_buttons.c)
+endif()
+
+if(CONFIG_ADC)
+ list(APPEND SRCS stm32_adc.c)
+endif()
+
+if(CONFIG_DAC)
+ list(APPEND SRCS stm32_dac.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/l452re-flash.ld")
diff --git a/boards/arm/stm32l4/nucleo-l496zg/CMakeLists.txt
b/boards/arm/stm32l4/nucleo-l496zg/CMakeLists.txt
new file mode 100644
index 00000000000..8e680ade9bc
--- /dev/null
+++ b/boards/arm/stm32l4/nucleo-l496zg/CMakeLists.txt
@@ -0,0 +1,23 @@
+#
##############################################################################
+# boards/arm/stm32l4/nucleo-l496zg/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/stm32l4/nucleo-l496zg/src/CMakeLists.txt
b/boards/arm/stm32l4/nucleo-l496zg/src/CMakeLists.txt
new file mode 100644
index 00000000000..32ff2a428fc
--- /dev/null
+++ b/boards/arm/stm32l4/nucleo-l496zg/src/CMakeLists.txt
@@ -0,0 +1,78 @@
+#
##############################################################################
+# boards/arm/stm32l4/nucleo-l496zg/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 stm32_bringup.c)
+
+if(CONFIG_ARCH_LEDS)
+ list(APPEND SRCS stm32_autoleds.c)
+else()
+ list(APPEND SRCS stm32_userleds.c)
+endif()
+
+if(CONFIG_ARCH_BUTTONS)
+ list(APPEND SRCS stm32_buttons.c)
+endif()
+
+if(CONFIG_BOARDCTL)
+ list(APPEND SRCS stm32_appinitialize.c)
+ if(CONFIG_BOARDCTL_IOCTL)
+ list(APPEND SRCS stm32_ioctl.c)
+ endif()
+endif()
+
+if(CONFIG_SPI)
+ list(APPEND SRCS stm32_spi.c)
+endif()
+
+if(CONFIG_ADC)
+ list(APPEND SRCS stm32_adc.c)
+ if(CONFIG_STM32L4_DFSDM)
+ list(APPEND SRCS stm32_dfsdm.c)
+ endif()
+endif()
+
+if(CONFIG_DAC)
+ list(APPEND SRCS stm32_dac.c)
+endif()
+
+if(CONFIG_MMCSD)
+ list(APPEND SRCS stm32_sdio.c)
+endif()
+
+if(CONFIG_STM32L4_OTGFS)
+ list(APPEND SRCS stm32_usb.c)
+endif()
+
+if(CONFIG_BOARDCTL_UNIQUEID)
+ list(APPEND SRCS stm32_uid.c)
+endif()
+
+if(NOT CONFIG_STM32_ETHMAC)
+ if(CONFIG_NETDEVICES)
+ list(APPEND SRCS stm32_netinit.c)
+ endif()
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT
+ "${NUTTX_BOARD_DIR}/scripts/l496zg-flash.ld")
diff --git a/boards/arm/stm32l4/steval-stlcs01v1/CMakeLists.txt
b/boards/arm/stm32l4/steval-stlcs01v1/CMakeLists.txt
new file mode 100644
index 00000000000..289260c3dfa
--- /dev/null
+++ b/boards/arm/stm32l4/steval-stlcs01v1/CMakeLists.txt
@@ -0,0 +1,23 @@
+#
##############################################################################
+# boards/arm/stm32l4/steval-stlcs01v1/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/stm32l4/steval-stlcs01v1/src/CMakeLists.txt
b/boards/arm/stm32l4/steval-stlcs01v1/src/CMakeLists.txt
new file mode 100644
index 00000000000..5724bb7d50f
--- /dev/null
+++ b/boards/arm/stm32l4/steval-stlcs01v1/src/CMakeLists.txt
@@ -0,0 +1,39 @@
+#
##############################################################################
+# boards/arm/stm32l4/steval-stlcs01v1/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 stm32_bringup.c)
+
+if(CONFIG_ARCH_LEDS)
+ list(APPEND SRCS stm32_autoleds.c)
+endif()
+
+if(CONFIG_BOARDCTL)
+ list(APPEND SRCS stm32_appinit.c)
+endif()
+
+if(CONFIG_STM32L4_OTGFS)
+ list(APPEND SRCS stm32_usb.c)
+endif()
+
+target_sources(board PRIVATE ${SRCS})
+
+set_property(GLOBAL PROPERTY LD_SCRIPT "${NUTTX_BOARD_DIR}/scripts/ld.script")
diff --git a/boards/arm/stm32l4/stm32l476-mdk/CMakeLists.txt
b/boards/arm/stm32l4/stm32l476-mdk/CMakeLists.txt
new file mode 100644
index 00000000000..bf57441a21a
--- /dev/null
+++ b/boards/arm/stm32l4/stm32l476-mdk/CMakeLists.txt
@@ -0,0 +1,23 @@
+#
##############################################################################
+# boards/arm/stm32l4/stm32l476-mdk/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/stm32l4/stm32l476-mdk/src/CMakeLists.txt
b/boards/arm/stm32l4/stm32l476-mdk/src/CMakeLists.txt
new file mode 100644
index 00000000000..9deebb0f0b6
--- /dev/null
+++ b/boards/arm/stm32l4/stm32l476-mdk/src/CMakeLists.txt
@@ -0,0 +1,44 @@
+#
##############################################################################
+# boards/arm/stm32l4/stm32l476-mdk/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 stm32_bringup.c stm32_spi.c stm32_userleds.c)
+
+if(CONFIG_ARCH_BOARD_STM32L4_CUSTOM_CLOCKCONFIG)
+ list(APPEND SRCS stm32_clockconfig.c)
+endif()
+
+if(CONFIG_ARCH_LEDS)
+ list(APPEND SRCS stm32_autoleds.c)
+endif()
+
+if(CONFIG_ARCH_BUTTONS)
+ list(APPEND SRCS stm32_buttons.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/stm32l476-mdk.ld")