boot/xilinx-embeddedsw: rename toolchain vendor to buildroot
PATCH v4 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 seriesV3->V4:
- rebase patch
--- boot/xilinx-embeddedsw/Config.in | 3 ++- boot/xilinx-embeddedsw/xilinx-embeddedsw.mk | 26 ++++++++++++++------- 2 files changed, 19 insertions(+), 10 deletions(-)
boot/xilinx-embeddedsw/Config.in +2 -1
@@ -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 +17 -9
@@ -12,6 +12,14 @@ 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)","") +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 +31,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 +46,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 +61,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
PATCH v4 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 V3V3->V4:
- 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
@@ -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
PATCH v4 3/3 configs/versal|zynqmp: migrate to microblazeel-buildroot-elf tuple
In reply to Neal Frager via buildrootThis 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 V3V3->V4:
- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Hi Neal,
Quoted 12 lines · On Thu, 27 Mar 2025 11:16:43 +0000 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:
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.
Signed-off-by Neal Frager <[email protected]>
I don't have a strong opinion about this series. Definitely the "buildroot" vendor name is more appropriate than "xilinx", and the patches look clean enough, but I'll let the maintainers decide whether it's worth the extra effort.
If this is accepted, however, I think we should remove the "xilinx" vendor support after 1y~1.5y and not carry the maintenance burden indefinitely. Do you think this can be handled by Config.in.legacy, so in the transition phase users of the old tuple are notified?
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
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Luca,
Quoted 24 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.
Signed-off-by Neal Frager <[email protected]>I don't have a strong opinion about this series. Definitely the "buildroot" vendor name is more appropriate than "xilinx", and the patches look clean enough, but I'll let the maintainers decide whether it's worth the extra effort.
Quoted 4 lines
If this is accepted, however, I think we should remove the "xilinx" vendor support after 1y~1.5y and not carry the maintenance burden indefinitely. Do you think this can be handled by Config.in.legacy, so in the transition phase users of the old tuple are notified?
Yes, I agree with this. Probably the sooner we transition over the better, in order to limit the number of users of the xilinx vendor name.
Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 28 lines · Neal
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Luca,
Quoted 23 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.
Signed-off-by Neal Frager <[email protected]>I don't have a strong opinion about this series. Definitely the "buildroot" vendor name is more appropriate than "xilinx", and the patches look clean enough, but I'll let the maintainers decide whether it's worth the extra effort.
Quoted 7 lines
Quoted 4 lines
If this is accepted, however, I think we should remove the "xilinx" vendor support after 1y~1.5y and not carry the maintenance burden indefinitely. Do you think this can be handled by Config.in.legacy, so in the transition phase users of the old tuple are notified?
Yes, I agree with this. Probably the sooner we transition over the better, in order to limit the number of users of the xilinx vendor name.
I don't think the number of users is very relevant, and we cannot control or even know that anyway. If a kconfig value was valid in a Buildroot release, then we need to handle the transition before it is made invalid.
Config.in.legacy is the primary tool for this, but I'm not sure it will work for this specific change which is not removing a kconfig symbol but rather one of the possible entries within its value.
Maybe you could emit a warning in case the old vendor string is used, suggesting to switch to the new vendor string, and after 1y+ make it an error.
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
[AMD Official Use Only - AMD Internal Distribution Only]
Hi Luca,
Quoted 35 lines
Hi Luca,
Quoted 24 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.
Signed-off-by Neal Frager <[email protected]>I don't have a strong opinion about this series. Definitely the "buildroot" vendor name is more appropriate than "xilinx", and the patches look clean enough, but I'll let the maintainers decide whether it's worth the extra effort.
Quoted 4 lines
If this is accepted, however, I think we should remove the "xilinx" vendor support after 1y~1.5y and not carry the maintenance burden indefinitely. Do you think this can be handled by Config.in.legacy, so in the transition phase users of the old tuple are notified?
Yes, I agree with this. Probably the sooner we transition over the better, in order to limit the number of users of the xilinx vendor name.
Quoted 8 lines
I don't think the number of users is very relevant, and we cannot control or even know that anyway. If a kconfig value was valid in a Buildroot release, then we need to handle the transition before it is made invalid.
Config.in.legacy is the primary tool for this, but I'm not sure it will work for this specific change which is not removing a kconfig symbol but rather one of the possible entries within its value.
Good point. Yes, I agree.
Quoted 3 lines
Maybe you could emit a warning in case the old vendor string is used, suggesting to switch to the new vendor string, and after 1y+ make it an error.
Yes, I could already add a build time warning message with v5 that emits whenever someone uses the xilinx vendor name. This is a good idea.
Would it be standard practice to add a deprecation date in this warning message?
Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot