Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

161.5. avrdude-8.3

Programmer for AVR microcontrollers — flash, EEPROM and fuse bytes

8.3-1 · GPL-2.0-or-later · 0.5 SBU · 26.6 MiB, 9 files · 41_system, 463 of 1047 · ports/core/embedded/avrdude

Homepage: https://github.com/avrdudes/avrdude

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/embedded.txt:

The only thing that writes a FUSE byte, which bricks a chip when it goes wrong and cannot be undone from software after.

Depends on: cmake, ninja, pkgconf, flex, bison, libusb, libusb-compat, libftdi, hidapi, libserialport, readline, elfutils, libgpiod.

Required by: no port names it.

Sources: avrdude-8.3.tar.gz (6.3 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.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install avrdude'

build.sh:

mkdir -p build && cd build
cmake .. -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_SYSCONFDIR=/etc \
	-DHAVE_LINUXGPIO=ON \
	-DHAVE_LINUXSPI=ON \
	-DHAVE_PARPORT=OFF \
	-DHAVE_LIBUSB_WIN32=OFF \
	-DHAVE_LIBFTDI=OFF \
	-DBUILD_DOC=OFF \
	-DFORCE_DISABLE_PYTHON_SUPPORT=ON
ninja
DESTDIR=$PKG ninja install
install -Dm644 ../src/elf2tag.1 -t "$PKG/usr/share/man/man1"

Programs: avrdude, elf2tag.

Libraries: libavrdude.a.

Directories: /usr/share/licenses/avrdude.