From b0ea05a8530d33a8ae3fdea863b99244c5945933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Teichgr=C3=A4ber?= Date: Mon, 23 Feb 2026 16:35:07 +0100 Subject: [PATCH] targets/swan: rename group build tag stm32l4x5 => stm32l4y5 to avoid clash with stm32 device name Previously, there was no specific stm32f4r5.svd in lib/stm32-svd, just stm32f4x5.svd was used; now, both files are present. This means that the existing build-tag stm32f4r5 will include the device/stm32/stm32f4r5.go file, and the additional build-tag stm32f4x5 would include the device/stm32/stm32f4x5.go file as well, resulting in build conflicts. Renaming just the tag, which is used in src/machine, and src/runtime, into stm32f4y5 solves this issue. --- src/machine/machine_stm32l4x5.go | 2 +- src/runtime/runtime_stm32l4x5.go | 2 +- targets/swan.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/machine/machine_stm32l4x5.go b/src/machine/machine_stm32l4x5.go index c8c550c3d..28fb5da33 100644 --- a/src/machine/machine_stm32l4x5.go +++ b/src/machine/machine_stm32l4x5.go @@ -1,4 +1,4 @@ -//go:build stm32l4x5 +//go:build stm32l4y5 package machine diff --git a/src/runtime/runtime_stm32l4x5.go b/src/runtime/runtime_stm32l4x5.go index 273eb726f..c7c242975 100644 --- a/src/runtime/runtime_stm32l4x5.go +++ b/src/runtime/runtime_stm32l4x5.go @@ -1,4 +1,4 @@ -//go:build stm32 && stm32l4x5 +//go:build stm32 && stm32l4y5 package runtime diff --git a/targets/swan.json b/targets/swan.json index fbb46a556..92587690e 100644 --- a/targets/swan.json +++ b/targets/swan.json @@ -1,6 +1,6 @@ { "inherits": ["cortex-m4"], - "build-tags": ["swan", "stm32l4r5", "stm32l4x5", "stm32l4", "stm32"], + "build-tags": ["swan", "stm32l4r5", "stm32l4y5", "stm32l4", "stm32"], "serial": "uart", "linkerscript": "targets/stm32l4x5.ld", "extra-files": [