kumquat-buildroot/package/binutils-bare-metal/binutils-bare-metal.mk
Neal Frager 11b439ce1b package/binutils-bare-metal: new package
This patch adds a new package for building binutils for a bare-metal toolchain.
The cpu architecture is defined by a toolchain-bare-metal virtual package.
While any cpu architecture could be used, the default configuration will be a
Xilinx microblaze little endian architecture, so that buildroot will be able
to build the microblaze firmware applications for zynqmp and versal.

In order to build the zynqmp pmufw and versal plm applications without error,
binutils version 2.41 or higher is required.

Signed-off-by: Neal Frager <neal.frager@amd.com>
Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@amd.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-02-06 17:57:18 +01:00

34 lines
1.1 KiB
Makefile

################################################################################
#
# binutils-bare-metal
#
################################################################################
HOST_BINUTILS_BARE_METAL_VERSION = 2.42
HOST_BINUTILS_BARE_METAL_SITE = $(BR2_GNU_MIRROR)/binutils
HOST_BINUTILS_BARE_METAL_SOURCE = binutils-$(HOST_BINUTILS_BARE_METAL_VERSION).tar.xz
HOST_BINUTILS_BARE_METAL_LICENSE = GPL-3.0+, libiberty LGPL-2.1+
HOST_BINUTILS_BARE_METAL_LICENSE_FILES = COPYING3 COPYING.LIB
HOST_BINUTILS_BARE_METAL_CPE_ID_VENDOR = gnu
HOST_BINUTILS_BARE_METAL_DEPENDENCIES = host-zlib
# Don't build documentation. It takes up extra space / build time,
# and sometimes needs specific makeinfo versions to work
HOST_BINUTILS_BARE_METAL_CONF_ENV += MAKEINFO=true
HOST_BINUTILS_BARE_METAL_MAKE_OPTS += MAKEINFO=true
HOST_BINUTILS_BARE_METAL_INSTALL_OPTS += MAKEINFO=true install
HOST_BINUTILS_BARE_METAL_CONF_OPTS = \
--target=$(TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH_TUPLE) \
--disable-gprof \
--disable-shared \
--enable-lto \
--enable-static \
--disable-initfini-array \
--disable-multilib \
--disable-werror
$(eval $(host-autotools-package))