161.8. binutils-arm-none-eabi-2.47
The assembler, linker and object tools for arm-none-eabi
2.47-1 · GPL-3.0-or-later · 2.5 SBU · 35.9 MiB, 77 files · 41_system, 466 of 1047 · ports/core/embedded/binutils-arm-none-eabi
Homepage: https://www.gnu.org/software/binutils/
Why it is in KDOS. The comment above the 4 ports from binutils-arm-none-eabi to libstdcxx-arm-none-eabi in script/phases/41_system/packages.d/embedded.txt:
THE ORDER IS THE DEPENDENCY. binutils first, then a gcc built --without-headers so libgcc can exist before a libc does, then the libc built WITH that gcc. One recipe cannot do the last two: the compiler has to be installed before the library it compiles can configure against it.
Cortex-M and Cortex-R. --with-multilib-list=rmprofile is what keeps this to the profiles a microcontroller actually is, rather than every ARM variant since 1985.
Depends on: zlib, zstd, xxhash, pkgconf, texinfo, bison, flex.
Required by (4): gcc-arm-none-eabi, libstdcxx-arm-none-eabi, picolibc-arm-none-eabi, picotool.
Sources: binutils-arm-none-eabi-2.47.tar.xz (27.7 MiB). Every step kpkg takes applies to this port.
Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
--disable-gdb, line 19: gdb
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install binutils-arm-none-eabi'
build.sh:
mkdir -p build && cd build
../configure \
--target=arm-none-eabi \
--prefix=/usr \
--with-sysroot=/usr/arm-none-eabi \
--disable-nls \
--disable-werror \
--disable-gdb \
--disable-sim \
--enable-multilib \
--with-system-zlib \
--with-zstd \
--with-xxhash \
--without-debuginfod \
--without-msgpack \
--with-pkgversion="KDOS"
make
make DESTDIR=$PKG install
rm -rf "$PKG/usr/share/info" "$PKG/usr/lib/bfd-plugins"
rm -f "$PKG"/usr/share/man/man1/arm-none-eabi-{dlltool,windmc,windres}.1
Programs: arm-none-eabi-addr2line, arm-none-eabi-ar, arm-none-eabi-as, arm-none-eabi-c++filt, arm-none-eabi-elfedit, arm-none-eabi-gprof, arm-none-eabi-ld, arm-none-eabi-ld.bfd, arm-none-eabi-nm, arm-none-eabi-objcopy, arm-none-eabi-objdump, arm-none-eabi-ranlib, arm-none-eabi-readelf, arm-none-eabi-size, arm-none-eabi-strings, arm-none-eabi-strip.
Directories: /usr/arm-none-eabi/bin, /usr/arm-none-eabi/lib/ldscripts, /usr/share/licenses/binutils-arm-none-eabi.