2023-08-28 13:12:15 +02:00
|
|
|
# Description: Device Tree Compiler and libfdt
|
|
|
|
# URL: https://github.com/dgibson/dtc
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
|
|
|
|
name=dtc
|
2024-09-13 16:43:18 +02:00
|
|
|
version=1.7.1
|
|
|
|
release=1
|
|
|
|
source=(https://www.kernel.org/pub/software/utils/$name/$name-$version.tar.xz)
|
2023-08-28 13:12:15 +02:00
|
|
|
|
|
|
|
build() {
|
|
|
|
CFLAGS+=" -ffat-lto-objects"
|
|
|
|
|
|
|
|
meson setup build $name-$version \
|
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true
|
|
|
|
|
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
|
|
|
}
|