Skip to contentSkip to conversation

boot/xilinx-embeddedsw: rename toolchain vendor to buildroot

PATCH Superseded Neal Frager via buildroot 1 participant 10 messages Apr 9, 2025 – May 19, 2025 Arm/Zynq architecture

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v5 1/3 boot/xilinx-embeddedsw: rename toolchain vendor to buildroot

This patch renames the bare-metal toolchain vendor used by the xilinx-embeddedsw package from Xilinx to Buildroot to be consistent with all other toolchains built by Buildroot.

To build the Microblaze applications available with the xilinx-embeddedsw package, the following config is now needed:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"

This change keeps backwards compatibility for users already using the following architecture tuple:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"

Either vendor name is now valid, but the documentation will describe using the Buildroot vendor name.

---
V1->V2:
- xilinx-embeddedsw is now backwards compatible with either vendor name V2->V3:
- split patch into series
V3->V4:
- rebase patch
V4->V5:
- add deprecation warning for microblazeel-xilinx-elf tuple

---
 boot/xilinx-embeddedsw/Config.in            |  3 ++-
 boot/xilinx-embeddedsw/xilinx-embeddedsw.mk | 30 ++++++++++++++-------
 2 files changed, 23 insertions(+), 10 deletions(-)
boot/xilinx-embeddedsw/Config.in +2 -1
index a27253d594..31b12baaf2 100644
@@ -1,4 +1,5 @@
-comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-xilinx-elf"
+comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-buildroot-elf"
+	depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-buildroot-elf"
 	depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-xilinx-elf"
 
 menuconfig BR2_TARGET_XILINX_EMBEDDEDSW
boot/xilinx-embeddedsw/xilinx-embeddedsw.mk +21 -9
index 7d4fcf8b8f..6e37dc48bd 100644
@@ -12,6 +12,18 @@ XILINX_EMBEDDEDSW_INSTALL_TARGET = NO
 XILINX_EMBEDDEDSW_INSTALL_IMAGES = YES
 XILINX_EMBEDDEDSW_DEPENDENCIES = toolchain-bare-metal-buildroot
 
+ifneq ("$(wildcard $(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc)","")
+$(warning BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf" \
+	will soon be deprecated!)
+$(warning Please migrate to new bare-metal toolchain config below)
+$(warning BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf")
+XILINX_EMBEDDEDSW_MICROBLAZE_CC = $(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc
+XILINX_EMBEDDEDSW_MICROBLAZE_AR = $(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc-ar
+else
+XILINX_EMBEDDEDSW_MICROBLAZE_CC = $(HOST_DIR)/bin/microblazeel-buildroot-elf-gcc
+XILINX_EMBEDDEDSW_MICROBLAZE_AR = $(HOST_DIR)/bin/microblazeel-buildroot-elf-gcc-ar
+endif
+
 # ZYNQMP_PMUFW application allows users to add cflags
 XILINX_EMBEDDEDSW_ZYNQMP_PMUFW_USER_CFLAGS = \
 	$(call qstrip,$(BR2_TARGET_XILINX_EMBEDDEDSW_ZYNQMP_PMUFW_USER_CFLAGS))
@@ -23,9 +35,9 @@ XILINX_EMBEDDEDSW_CFLAGS = "-Os -flto -ffat-lto-objects"
 ifeq ($(BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL_PLM),y)
 define XILINX_EMBEDDEDSW_BUILD_VERSAL_PLM
 	$(MAKE) -C $(@D)/lib/sw_apps/versal_plm/src/versal \
-		COMPILER=$(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc \
-		ARCHIVER=$(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc-ar \
-		CC=$(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc \
+		COMPILER=$(XILINX_EMBEDDEDSW_MICROBLAZE_CC) \
+		ARCHIVER=$(XILINX_EMBEDDEDSW_MICROBLAZE_AR) \
+		CC=$(XILINX_EMBEDDEDSW_MICROBLAZE_CC) \
 		CFLAGS=$(XILINX_EMBEDDEDSW_CFLAGS)
 endef
 
@@ -38,9 +50,9 @@ endif # BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL_PLM
 ifeq ($(BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL_PSMFW),y)
 define XILINX_EMBEDDEDSW_BUILD_VERSAL_PSMFW
 	$(MAKE) -C $(@D)/lib/sw_apps/versal_psmfw/src/versal \
-		COMPILER=$(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc \
-		ARCHIVER=$(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc-ar \
-		CC=$(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc \
+		COMPILER=$(XILINX_EMBEDDEDSW_MICROBLAZE_CC) \
+		ARCHIVER=$(XILINX_EMBEDDEDSW_MICROBLAZE_AR) \
+		CC=$(XILINX_EMBEDDEDSW_MICROBLAZE_CC) \
 		CFLAGS=$(XILINX_EMBEDDEDSW_CFLAGS)
 endef
 
@@ -53,9 +65,9 @@ endif # BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL_PSMFW
 ifeq ($(BR2_TARGET_XILINX_EMBEDDEDSW_ZYNQMP_PMUFW),y)
 define XILINX_EMBEDDEDSW_BUILD_ZYNQMP_PMUFW
 	$(MAKE) -C $(@D)/lib/sw_apps/zynqmp_pmufw/src \
-		COMPILER=$(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc \
-		ARCHIVER=$(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc-ar \
-		CC=$(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc \
+		COMPILER=$(XILINX_EMBEDDEDSW_MICROBLAZE_CC) \
+		ARCHIVER=$(XILINX_EMBEDDEDSW_MICROBLAZE_AR) \
+		CC=$(XILINX_EMBEDDEDSW_MICROBLAZE_CC) \
 		CFLAGS=$(XILINX_EMBEDDEDSW_ZYNQMP_PMUFW_CFLAGS)
 endef
 
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH v5 2/3 toolchain/toolchain-bare-metal-buildroot: rename example vendor to buildroot

Now that xilinx-embeddedsw is compatible with the toolchain vendor buildroot, this patch modifies the toolchain-bare-metal-buildroot help example to use the microblazeel-buildroot-elf tuple.

---
V1->V3:
- new to series with V3
V3->V5:
- no changes

---
 toolchain/toolchain-bare-metal-buildroot/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
toolchain/toolchain-bare-metal-buildroot/Config.in +1 -1
index c86c5d725c..19c97410c6 100644
@@ -10,7 +10,7 @@ config BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH
 
 	  For example, to build both a Microblaze and a RISC-V bare
 	  metal toolchain, use the following definition:
-	  "microblazeel-xilinx-elf riscv32-buldroot-elf"
+	  "microblazeel-buildroot-elf riscv32-buildroot-elf"
 
 source "package/newlib-bare-metal/Config.in"
 
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH v5 3/3 configs/versal|zynqmp: migrate to microblazeel-buildroot-elf tuple

In reply to Neal Frager via buildroot

This patch migrates all the versal and zynqmp defconfigs to use the microblazeel-buildroot-elf arch tuple for the toolchain-bare-metal-buildroot toolchain.

---
V1->V3:
- new to series with V3
V3->V5:
- no changes

---
 configs/versal_vck190_defconfig     | 2 +-
 configs/versal_vek280_defconfig     | 2 +-
 configs/versal_vpk180_defconfig     | 2 +-
 configs/zynqmp_kria_kd240_defconfig | 2 +-
 configs/zynqmp_kria_kr260_defconfig | 2 +-
 configs/zynqmp_kria_kv260_defconfig | 2 +-
 configs/zynqmp_zcu102_defconfig     | 2 +-
 configs/zynqmp_zcu104_defconfig     | 2 +-
 configs/zynqmp_zcu106_defconfig     | 2 +-
 9 files changed, 9 insertions(+), 9 deletions(-)
configs/versal_vck190_defconfig +1 -1
index 2f40c210a8..f1b4e15bb5 100644
@@ -2,7 +2,7 @@ BR2_aarch64=y
 BR2_cortex_a72=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y
-BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"
+BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"
 BR2_GLOBAL_PATCH_DIR="board/xilinx/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/versal/post-build.sh"
configs/versal_vek280_defconfig +1 -1
index af8bed884f..0b45bad945 100644
@@ -2,7 +2,7 @@ BR2_aarch64=y
 BR2_cortex_a72=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y
-BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"
+BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"
 BR2_GLOBAL_PATCH_DIR="board/versal/vek280/patches board/xilinx/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/versal/post-build.sh"
configs/versal_vpk180_defconfig +1 -1
index afa606ec8c..acad9516ce 100644
@@ -2,7 +2,7 @@ BR2_aarch64=y
 BR2_cortex_a72=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y
-BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"
+BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"
 BR2_GLOBAL_PATCH_DIR="board/xilinx/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/versal/post-build.sh"
configs/zynqmp_kria_kd240_defconfig +1 -1
index 261b73d6cf..69571a53bd 100644
@@ -1,7 +1,7 @@
 BR2_aarch64=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y
-BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"
+BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"
 BR2_GLOBAL_PATCH_DIR="board/zynqmp/patches board/zynqmp/kria/patches board/xilinx/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/zynqmp/post-build.sh"
configs/zynqmp_kria_kr260_defconfig +1 -1
index 2cf2b98aa5..b7b9691fc7 100644
@@ -1,7 +1,7 @@
 BR2_aarch64=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y
-BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"
+BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"
 BR2_GLOBAL_PATCH_DIR="board/zynqmp/patches board/zynqmp/kria/patches board/xilinx/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/zynqmp/post-build.sh"
configs/zynqmp_kria_kv260_defconfig +1 -1
index ef6a23f2a2..78d4a882c5 100644
@@ -1,7 +1,7 @@
 BR2_aarch64=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y
-BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"
+BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"
 BR2_GLOBAL_PATCH_DIR="board/zynqmp/patches board/zynqmp/kria/patches board/xilinx/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/zynqmp/post-build.sh"
configs/zynqmp_zcu102_defconfig +1 -1
index 762a54d968..5010aee2dc 100644
@@ -1,7 +1,7 @@
 BR2_aarch64=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y
-BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"
+BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"
 BR2_GLOBAL_PATCH_DIR="board/zynqmp/patches board/xilinx/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/zynqmp/post-build.sh"
configs/zynqmp_zcu104_defconfig +1 -1
index 92e0d41736..7352148603 100644
@@ -1,7 +1,7 @@
 BR2_aarch64=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y
-BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"
+BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"
 BR2_GLOBAL_PATCH_DIR="board/zynqmp/patches board/xilinx/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/zynqmp/post-build.sh"
configs/zynqmp_zcu106_defconfig +1 -1
index 51287fdffb..b8ec4c983e 100644
@@ -1,7 +1,7 @@
 BR2_aarch64=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
 BR2_TOOLCHAIN_BARE_METAL_BUILDROOT=y
-BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"
+BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"
 BR2_GLOBAL_PATCH_DIR="board/zynqmp/patches board/xilinx/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/zynqmp/post-build.sh"
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Neal Frager via buildroot

[AMD Official Use Only - AMD Internal Distribution Only]

Hello everyone,

Just a friendly reminder for this patch set.

Quoted 12 lines

This patch renames the bare-metal toolchain vendor used by the xilinx-embeddedsw package from Xilinx to Buildroot to be consistent with all other toolchains built by Buildroot.

To build the Microblaze applications available with the xilinx-embeddedsw package, the following config is now needed:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"

This change keeps backwards compatibility for users already using the following architecture tuple:

Quoted 6 lines

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"

Either vendor name is now valid, but the documentation will describe using the Buildroot vendor name.

Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Neal Frager via buildroot

Hello Neal,

Quoted 48 lines · On Wed, 9 Apr 2025 07:47:09 +0100 Neal Frager <[email protected]> wrote:

This patch renames the bare-metal toolchain vendor used by the xilinx-embeddedsw package from Xilinx to Buildroot to be consistent with all other toolchains built by Buildroot.

To build the Microblaze applications available with the xilinx-embeddedsw package, the following config is now needed:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"

This change keeps backwards compatibility for users already using the following architecture tuple:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"

Either vendor name is now valid, but the documentation will describe using the Buildroot vendor name.

---
V1->V2:
- xilinx-embeddedsw is now backwards compatible with either vendor name V2->V3:
- split patch into series
V3->V4:
- rebase patch
V4->V5:
- add deprecation warning for microblazeel-xilinx-elf tuple

---
 boot/xilinx-embeddedsw/Config.in            |  3 ++-
 boot/xilinx-embeddedsw/xilinx-embeddedsw.mk | 30 ++++++++++++++-------
 2 files changed, 23 insertions(+), 10 deletions(-)
boot/xilinx-embeddedsw/Config.in +2 -1
index a27253d594..31b12baaf2 100644
@@ -1,4 +1,5 @@
-comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-xilinx-elf"
+comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-buildroot-elf"
+	depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-buildroot-elf"
 	depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-xilinx-elf"
 
 menuconfig BR2_TARGET_XILINX_EMBEDDEDSW
boot/xilinx-embeddedsw/xilinx-embeddedsw.mk +0 -0
index 7d4fcf8b8f..6e37dc48bd 100644

boot/xilinx-embeddedsw/xilinx-embeddedsw.mk XILINX_EMBEDDEDSW_INSTALL_TARGET = NO · line 18

Quoted 7 lines
boot/xilinx-embeddedsw/xilinx-embeddedsw.mk +4 -0
@@ -12,6 +12,18 @@ XILINX_EMBEDDEDSW_INSTALL_TARGET = NO
 XILINX_EMBEDDEDSW_INSTALL_IMAGES = YES
 XILINX_EMBEDDEDSW_DEPENDENCIES = toolchain-bare-metal-buildroot
 
+ifneq ("$(wildcard $(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc)","")
+$(warning BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf" \
+	will soon be deprecated!)
+$(warning Please migrate to new bare-metal toolchain config below)

A warning is not very visible, so it won't be very effective. You should really use the same logic that Config.in.legacy uses: error out, and clearly state how to migrate, practically. E.g. (untested):

$(error microblazeel-xilinx-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH is not supported anymore!) $(error Replace microblazeel-xilinx-elf with microblazeel-buildroot-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH)

Moreover, an existing and working defconfig with microblazeel-xilinx-elf hard fails later on with this patch:

Quoted 1 line
Quoted 1 line
Quoted 1 line

xilinx-embeddedsw xilinx_v2024.2 Building

...
make[4]: <...>/output/host/bin/microblazeel-buildroot-elf-gcc: No such file or directory

Steps to reproduce, from a clean Buildroot git clone:

git checkout a4249a20243bb620d095a36e78d3722aa29f8da7 # current master # Apply patch 1 (not 2 and 3)
make zynqmp_kria_kv260_defconfig
make xilinx-embeddedsw

The patch looks good otherwise.

Luca

Signature · 7 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Hi Luca,

Quoted 60 lines

This patch renames the bare-metal toolchain vendor used by the xilinx-embeddedsw package from Xilinx to Buildroot to be consistent with all other toolchains built by Buildroot.

To build the Microblaze applications available with the xilinx-embeddedsw package, the following config is now needed:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"

This change keeps backwards compatibility for users already using the following architecture tuple:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"

Either vendor name is now valid, but the documentation will describe using the Buildroot vendor name.

---
V1->V2:
- xilinx-embeddedsw is now backwards compatible with either vendor name V2->V3:
- split patch into series
V3->V4:
- rebase patch
V4->V5:
- add deprecation warning for microblazeel-xilinx-elf tuple

---
 boot/xilinx-embeddedsw/Config.in            |  3 ++-
 boot/xilinx-embeddedsw/xilinx-embeddedsw.mk | 30 ++++++++++++++-------
 2 files changed, 23 insertions(+), 10 deletions(-)
boot/xilinx-embeddedsw/Config.in +2 -1
index a27253d594..31b12baaf2 100644
@@ -1,4 +1,5 @@
-comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-xilinx-elf"
+comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-buildroot-elf"
+     depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-buildroot-elf"
      depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-xilinx-elf"
 
 menuconfig BR2_TARGET_XILINX_EMBEDDEDSW
boot/xilinx-embeddedsw/xilinx-embeddedsw.mk +4 -0
index 7d4fcf8b8f..6e37dc48bd 100644
@@ -12,6 +12,18 @@ XILINX_EMBEDDEDSW_INSTALL_TARGET = NO
 XILINX_EMBEDDEDSW_INSTALL_IMAGES = YES
 XILINX_EMBEDDEDSW_DEPENDENCIES = toolchain-bare-metal-buildroot
 
+ifneq ("$(wildcard $(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc)","")
+$(warning BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf" \
+     will soon be deprecated!)
+$(warning Please migrate to new bare-metal toolchain config below)
 

A warning is not very visible, so it won't be very effective. You should really use the same logic that Config.in.legacy uses: error out, and clearly state how to migrate, practically. E.g. (untested):

Quoted 2 lines

$(error microblazeel-xilinx-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH is not supported anymore!) $(error Replace microblazeel-xilinx-elf with microblazeel-buildroot-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH)

If I do this, then it means that users must switch immediately to the new microblazeel-buildroot-elf tuple definition. My thought about the warning was that either tuple would be valid for awhile before deprecating the old one.

Quoted 7 lines

Moreover, an existing and working defconfig with microblazeel-xilinx-elf hard fails later on with this patch:

Quoted 1 line
Quoted 1 line
Quoted 1 line

xilinx-embeddedsw xilinx_v2024.2 Building

...
make[4]: <...>/output/host/bin/microblazeel-buildroot-elf-gcc: No such file or directory

Quoted 6 lines

Steps to reproduce, from a clean Buildroot git clone:

git checkout a4249a20243bb620d095a36e78d3722aa29f8da7 # current master # Apply patch 1 (not 2 and 3)
make zynqmp_kria_kv260_defconfig
make xilinx-embeddedsw

This error seems to show that the following dependency from the xilinx-embeddedsw.mk is ignored when building only this package instead of using a generic make. With generic make, it builds correctly.

XILINX_EMBEDDEDSW_DEPENDENCIES = toolchain-bare-metal-buildroot

Should the dependencies still work when specifying a specific package to build?

Quoted 1 line

The patch looks good otherwise.

Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#6 lore raw
Quoted 64 lines · Neal

[AMD Official Use Only - AMD Internal Distribution Only]

Hi Luca,

Quoted 59 lines

This patch renames the bare-metal toolchain vendor used by the xilinx-embeddedsw package from Xilinx to Buildroot to be consistent with all other toolchains built by Buildroot.

To build the Microblaze applications available with the xilinx-embeddedsw package, the following config is now needed:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"

This change keeps backwards compatibility for users already using the following architecture tuple:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"

Either vendor name is now valid, but the documentation will describe using the Buildroot vendor name.

---
V1->V2:
- xilinx-embeddedsw is now backwards compatible with either vendor name V2->V3:
- split patch into series
V3->V4:
- rebase patch
V4->V5:
- add deprecation warning for microblazeel-xilinx-elf tuple

---
 boot/xilinx-embeddedsw/Config.in            |  3 ++-
 boot/xilinx-embeddedsw/xilinx-embeddedsw.mk | 30 ++++++++++++++-------
 2 files changed, 23 insertions(+), 10 deletions(-)
boot/xilinx-embeddedsw/Config.in +2 -1
index a27253d594..31b12baaf2 100644
@@ -1,4 +1,5 @@
-comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-xilinx-elf"
+comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-buildroot-elf"
+     depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-buildroot-elf"
      depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-xilinx-elf"
 
 menuconfig BR2_TARGET_XILINX_EMBEDDEDSW
boot/xilinx-embeddedsw/xilinx-embeddedsw.mk +4 -0
index 7d4fcf8b8f..6e37dc48bd 100644
@@ -12,6 +12,18 @@ XILINX_EMBEDDEDSW_INSTALL_TARGET = NO
 XILINX_EMBEDDEDSW_INSTALL_IMAGES = YES
 XILINX_EMBEDDEDSW_DEPENDENCIES = toolchain-bare-metal-buildroot
 
+ifneq ("$(wildcard $(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc)","")
+$(warning BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf" \
+     will soon be deprecated!)
+$(warning Please migrate to new bare-metal toolchain config below)  
 

A warning is not very visible, so it won't be very effective. You should really use the same logic that Config.in.legacy uses: error out, and clearly state how to migrate, practically. E.g. (untested):

Quoted 6 lines
Quoted 2 lines

$(error microblazeel-xilinx-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH is not supported anymore!) $(error Replace microblazeel-xilinx-elf with microblazeel-buildroot-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH)

If I do this, then it means that users must switch immediately to the new microblazeel-buildroot-elf tuple definition. My thought about the warning was that either tuple would be valid for awhile before deprecating the old one.

I understand your idea, and I'm sorry I didn't realize from the beginning and changed my mind only after testing accurately the series.

However I think a warning will be unnoticed my many users, and others might just be lazy and ignore it for as long as they can. So basically they would never update their defconfigs until forced to do so.

It may look a rough attitude, but it's pragmatic, and it is what happens with Config.in.legacy IIUC: an old symbol is not accepted starting at a given Buildroot release, but an easy upgrade path is provided for at least one year after that release. So users upgrading regularly enough will:

1) upgrade to newer Buildroot release
2) have a build failure with instructions on how to update
3) update their defconfig
4) build successfully
5) be happy

Note the "with instructions on how to update" at step 2. This is a prerequisite to step 5. :-)

Luca

Signature · 7 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Quoted 81 lines
Quoted 61 lines

This patch renames the bare-metal toolchain vendor used by the xilinx-embeddedsw package from Xilinx to Buildroot to be consistent with all other toolchains built by Buildroot.

To build the Microblaze applications available with the xilinx-embeddedsw package, the following config is now needed:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"

This change keeps backwards compatibility for users already using the following architecture tuple:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"

Either vendor name is now valid, but the documentation will describe using the Buildroot vendor name.

---
V1->V2:
- xilinx-embeddedsw is now backwards compatible with either vendor name V2->V3:
- split patch into series
V3->V4:
- rebase patch
V4->V5:
- add deprecation warning for microblazeel-xilinx-elf tuple

---
 boot/xilinx-embeddedsw/Config.in            |  3 ++-
 boot/xilinx-embeddedsw/xilinx-embeddedsw.mk | 30 ++++++++++++++-------
 2 files changed, 23 insertions(+), 10 deletions(-)
boot/xilinx-embeddedsw/Config.in +2 -1
index a27253d594..31b12baaf2 100644
@@ -1,4 +1,5 @@
-comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-xilinx-elf"
+comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-buildroot-elf"
+     depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-buildroot-elf"
      depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-xilinx-elf"
 
 menuconfig BR2_TARGET_XILINX_EMBEDDEDSW
boot/xilinx-embeddedsw/xilinx-embeddedsw.mk +4 -0
index 7d4fcf8b8f..6e37dc48bd 100644
@@ -12,6 +12,18 @@ XILINX_EMBEDDEDSW_INSTALL_TARGET = NO
 XILINX_EMBEDDEDSW_INSTALL_IMAGES = YES
 XILINX_EMBEDDEDSW_DEPENDENCIES = toolchain-bare-metal-buildroot
 
+ifneq ("$(wildcard $(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc)","")
+$(warning BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf" \
+     will soon be deprecated!)
+$(warning Please migrate to new bare-metal toolchain config below)
 

A warning is not very visible, so it won't be very effective. You should really use the same logic that Config.in.legacy uses: error out, and clearly state how to migrate, practically. E.g. (untested):

Quoted 2 lines

$(error microblazeel-xilinx-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH is not supported anymore!) $(error Replace microblazeel-xilinx-elf with microblazeel-buildroot-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH)

If I do this, then it means that users must switch immediately to the new microblazeel-buildroot-elf tuple definition. My thought about the warning was that either tuple would be valid for awhile before deprecating the old one.

I understand your idea, and I'm sorry I didn't realize from the beginning and changed my mind only after testing accurately the series.

However I think a warning will be unnoticed my many users, and others might just be lazy and ignore it for as long as they can. So basically they would never update their defconfigs until forced to do so.

It may look a rough attitude, but it's pragmatic, and it is what happens with Config.in.legacy IIUC: an old symbol is not accepted starting at a given Buildroot release, but an easy upgrade path is provided for at least one year after that release. So users upgrading regularly enough will:

Quoted 8 lines

1) upgrade to newer Buildroot release
2) have a build failure with instructions on how to update
3) update their defconfig
4) build successfully
5) be happy

Note the "with instructions on how to update" at step 2. This is a prerequisite to step 5. :-)

Hi Luca,

I agree with your strategy of #2 leading to #5, so I will go ahead with deprecating the xilinx vendor name with this patch set.

However, to add the new buildroot vendor name, I have a chicken and egg issue. If I deprecate the xilinx vendor name while adding the buildroot vendor name, it will cause all the zynqmp defconfigs to have build failures.

Would you be ok of my patch set doing the following?

Patch 1: Add buildroot vendor name with warning messages. Patch 2: Update toolchain-bare-metal help details. Patch 3: Migrate zynqmp defconfigs to new buildroot vendor. Patch 4: Change warning messages to error messages.

Basically, the dual-vendor name support will only exist after applying the first 3 patches. So you could say, the warning period will be really short!

What do you think of this solution?

Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#8 lore raw
Quoted 101 lines · Neal

[AMD Official Use Only - AMD Internal Distribution Only]

Quoted 81 lines
Quoted 61 lines

This patch renames the bare-metal toolchain vendor used by the xilinx-embeddedsw package from Xilinx to Buildroot to be consistent with all other toolchains built by Buildroot.

To build the Microblaze applications available with the xilinx-embeddedsw package, the following config is now needed:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"

This change keeps backwards compatibility for users already using the following architecture tuple:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"

Either vendor name is now valid, but the documentation will describe using the Buildroot vendor name.

---
V1->V2:
- xilinx-embeddedsw is now backwards compatible with either vendor name V2->V3:
- split patch into series
V3->V4:
- rebase patch
V4->V5:
- add deprecation warning for microblazeel-xilinx-elf tuple

---
 boot/xilinx-embeddedsw/Config.in            |  3 ++-
 boot/xilinx-embeddedsw/xilinx-embeddedsw.mk | 30 ++++++++++++++-------
 2 files changed, 23 insertions(+), 10 deletions(-)
boot/xilinx-embeddedsw/Config.in +2 -1
index a27253d594..31b12baaf2 100644
@@ -1,4 +1,5 @@
-comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-xilinx-elf"
+comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-buildroot-elf"
+     depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-buildroot-elf"
      depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-xilinx-elf"
 
 menuconfig BR2_TARGET_XILINX_EMBEDDEDSW
boot/xilinx-embeddedsw/xilinx-embeddedsw.mk +4 -0
index 7d4fcf8b8f..6e37dc48bd 100644
@@ -12,6 +12,18 @@ XILINX_EMBEDDEDSW_INSTALL_TARGET = NO
 XILINX_EMBEDDEDSW_INSTALL_IMAGES = YES
 XILINX_EMBEDDEDSW_DEPENDENCIES = toolchain-bare-metal-buildroot
 
+ifneq ("$(wildcard $(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc)","")
+$(warning BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf" \
+     will soon be deprecated!)
+$(warning Please migrate to new bare-metal toolchain config below)  
 

A warning is not very visible, so it won't be very effective. You should really use the same logic that Config.in.legacy uses: error out, and clearly state how to migrate, practically. E.g. (untested):

Quoted 2 lines

$(error microblazeel-xilinx-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH is not supported anymore!) $(error Replace microblazeel-xilinx-elf with microblazeel-buildroot-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH)

If I do this, then it means that users must switch immediately to the new microblazeel-buildroot-elf tuple definition. My thought about the warning was that either tuple would be valid for awhile before deprecating the old one.

I understand your idea, and I'm sorry I didn't realize from the beginning and changed my mind only after testing accurately the series.

However I think a warning will be unnoticed my many users, and others might just be lazy and ignore it for as long as they can. So basically they would never update their defconfigs until forced to do so.

It may look a rough attitude, but it's pragmatic, and it is what happens with Config.in.legacy IIUC: an old symbol is not accepted starting at a given Buildroot release, but an easy upgrade path is provided for at least one year after that release. So users upgrading regularly enough will:

Quoted 8 lines

1) upgrade to newer Buildroot release
2) have a build failure with instructions on how to update
3) update their defconfig
4) build successfully
5) be happy

Note the "with instructions on how to update" at step 2. This is a prerequisite to step 5. :-)

Hi Luca,

I agree with your strategy of #2 leading to #5, so I will go ahead with deprecating the xilinx vendor name with this patch set.

However, to add the new buildroot vendor name, I have a chicken and egg issue. If I deprecate the xilinx vendor name while adding the buildroot vendor name, it will cause all the zynqmp defconfigs to have build failures.

Quoted 6 lines

Would you be ok of my patch set doing the following?

Patch 1: Add buildroot vendor name with warning messages. Patch 2: Update toolchain-bare-metal help details. Patch 3: Migrate zynqmp defconfigs to new buildroot vendor. Patch 4: Change warning messages to error messages.

That would work. But if it makes your life simpler, I guess for this specific case it would make sense to have a single commit doing everything. I.e. squash all the 4 patches into a single patch.

Luca

Signature · 7 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#9 lore raw
In reply to Luca Ceresoli via buildroot

[AMD Official Use Only - AMD Internal Distribution Only]

Hello Luca,

Quoted 70 lines

This patch renames the bare-metal toolchain vendor used by the xilinx-embeddedsw package from Xilinx to Buildroot to be consistent with all other toolchains built by Buildroot.

To build the Microblaze applications available with the xilinx-embeddedsw package, the following config is now needed:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-buildroot-elf"

This change keeps backwards compatibility for users already using the following architecture tuple:

BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf"

Either vendor name is now valid, but the documentation will describe using the Buildroot vendor name.

---
V1->V2:
- xilinx-embeddedsw is now backwards compatible with either vendor name V2->V3:
- split patch into series
V3->V4:
- rebase patch
V4->V5:
- add deprecation warning for microblazeel-xilinx-elf tuple

---
 boot/xilinx-embeddedsw/Config.in            |  3 ++-
 boot/xilinx-embeddedsw/xilinx-embeddedsw.mk | 30 ++++++++++++++-------
 2 files changed, 23 insertions(+), 10 deletions(-)
boot/xilinx-embeddedsw/Config.in +2 -1
index a27253d594..31b12baaf2 100644
@@ -1,4 +1,5 @@
-comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-xilinx-elf"
+comment "xilinx-embeddedsw needs a bare metal toolchain for tuple microblazeel-buildroot-elf"
+     depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-buildroot-elf"
      depends on BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH != "microblazeel-xilinx-elf"
 
 menuconfig BR2_TARGET_XILINX_EMBEDDEDSW
boot/xilinx-embeddedsw/xilinx-embeddedsw.mk +4 -0
index 7d4fcf8b8f..6e37dc48bd 100644
@@ -12,6 +12,18 @@ XILINX_EMBEDDEDSW_INSTALL_TARGET = NO
 XILINX_EMBEDDEDSW_INSTALL_IMAGES = YES
 XILINX_EMBEDDEDSW_DEPENDENCIES = toolchain-bare-metal-buildroot
 
+ifneq ("$(wildcard $(HOST_DIR)/bin/microblazeel-xilinx-elf-gcc)","")
+$(warning BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH="microblazeel-xilinx-elf" \
+     will soon be deprecated!)
+$(warning Please migrate to new bare-metal toolchain config below)
 

A warning is not very visible, so it won't be very effective. You should really use the same logic that Config.in.legacy uses: error out, and clearly state how to migrate, practically. E.g. (untested):

$(error microblazeel-xilinx-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH is not supported anymore!) $(error Replace microblazeel-xilinx-elf with microblazeel-buildroot-elf in BR2_TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH)

Moreover, an existing and working defconfig with microblazeel-xilinx-elf hard fails later on with this patch:

Quoted 1 line
Quoted 1 line
Quoted 1 line

xilinx-embeddedsw xilinx_v2024.2 Building

...
make[4]: <...>/output/host/bin/microblazeel-buildroot-elf-gcc: No such file or directory

Quoted 6 lines

Steps to reproduce, from a clean Buildroot git clone:

git checkout a4249a20243bb620d095a36e78d3722aa29f8da7 # current master # Apply patch 1 (not 2 and 3)
make zynqmp_kria_kv260_defconfig
make xilinx-embeddedsw

I re-checked this, and you are right. $(HOST_DIR) is not available in time for the wildcard function in the current version of the patch. I need to put this in a script to make sure that $(HOST_DIR) exists before the wildcard function is evaluated. I will fix this with the next version.

Quoted 1 line

The patch looks good otherwise.

Thanks for your review as always!

Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot