161.16. binutils-avr-2.47
The assembler, linker and object tools for avr
2.47-1 · GPL-3.0-or-later · 2.1 SBU · 30.4 MiB, 186 files · 41_system, 474 of 1047 · ports/core/embedded/binutils-avr
Homepage: https://www.gnu.org/software/binutils/
Why it is in KDOS. The comment above the 3 ports from binutils-avr to avr-libc in script/phases/41_system/packages.d/embedded.txt:
The spare-parts drawer. avr-libc rather than picolibc: AVR is a Harvard machine with its own address spaces and picolibc does not target it.
Depends on: zlib, zstd, xxhash, pkgconf, texinfo, bison, flex.
Required by (2): avr-libc, gcc-avr.
Sources: binutils-avr-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-avr'
build.sh:
mkdir -p build && cd build
../configure \
--target=avr \
--prefix=/usr \
--with-sysroot=/usr/avr \
--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/avr-{dlltool,windmc,windres}.1
Programs: avr-addr2line, avr-ar, avr-as, avr-c++filt, avr-elfedit, avr-gprof, avr-ld, avr-ld.bfd, avr-nm, avr-objcopy, avr-objdump, avr-ranlib, avr-readelf, avr-size, avr-strings, avr-strip.
Directories: /usr/avr/bin, /usr/avr/lib/ldscripts, /usr/share/licenses/binutils-avr.