diff options
Diffstat (limited to 'repo/pahole/pahole.xibuild')
-rw-r--r-- | repo/pahole/pahole.xibuild | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/repo/pahole/pahole.xibuild b/repo/pahole/pahole.xibuild index 821c4f5..46586dc 100644 --- a/repo/pahole/pahole.xibuild +++ b/repo/pahole/pahole.xibuild @@ -1,22 +1,34 @@ #!/bin/sh -MAKEDEPS="cmake-modules python make " -DEPS="libelf python elfutils libdwarf musl-obstack argp-standalone" +NAME="pahole" +DESC="dwarf manipulation utilities" -PKG_VER=1.22 -SOURCE=https://git.kernel.org/pub/scm/devel/pahole/pahole.git -BRANCH=v$PKG_VER +MAKEDEPS=" cmake elfutils libdwarf zlib libbpf linux-headers musl-obstack argp-standalone samurai" -DESC="Pahole and other DWARF Utils" +PKG_VER=1.24 +SOURCE="https://git.kernel.org/pub/scm/devel/pahole/pahole.git/snapshot/pahole-v$PKG_VER.tar.gz" -build () { - cmake -B build -G Ninja . \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=None \ - -D__LIB=lib - cmake --build build +ADDITIONAL=" +0001-libbpf-Update-libbpf-to-the-latest-git-HEAD.patch +" + +prepare () { + apply_patches } -package () { - DESTDIR="$PKG_DEST" cmake --install build +build() { + export CFLAGS="$CFLAGS -I/usr/include/bpf/uapi" + + cmake -B build -G Ninja . \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=None \ + -D__LIB=lib \ + -DCMAKE_MODULE_PATH=/usr/lib/cmake \ + -DLIBBPF_EMBEDDED=OFF + cmake --build build } + +package() { + DESTDIR="$PKG_DEST" cmake --build build --target install +} + |