80.13. dtc-1.8.1
The device tree compiler, and libfdt — what qemu needs for arm and riscv
1.8.1-2 · GPL-2.0-or-later AND (GPL-2.0-or-later OR BSD-2-Clause) · 0.1 SBU · 576.5 KiB, 18 files · 41_system, 231 of 1047 · ports/core/boot/dtc
Homepage: https://git.kernel.org/pub/scm/utils/dtc/dtc.git
Why it is in KDOS. The comment above dtc and acpica in script/phases/41_system/packages.d/boot.txt:
qemu's aarch64 and riscv64 targets require libfdt, and --disable-download means its own submodule copy is never fetched. acpica's iasl compiles the ACPI tables of the UEFI firmware qemu's recipe builds from its roms/ tree.
Depends on: meson, flex, bison, yaml.
Required by (1): qemu.
Sources: dtc-1.8.1.tar.gz (222.5 KiB). 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.
-Dpython=disabled, line 13: python3
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install dtc'
build.sh:
meson setup build --prefix=/usr --libdir=lib --buildtype=release \
-Dpython=disabled -Dtools=true -Dtests=false \
-Dyaml=enabled -Dvalgrind=disabled
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build
install -Dm644 -t "$PKG/usr/share/licenses/$name" README.license GPL BSD-2-Clause
Programs: convert-dtsv0, dtc, dtdiff, fdtdump, fdtget, fdtoverlay, fdtput.
Libraries: libfdt.a, libfdt.so.
Directories: /usr/share/licenses/dtc.