diff --git a/tools/recipes/pahole.recipe b/tools/recipes/pahole.recipe new file mode 100644 index 0000000000000000000000000000000000000000..0e1b1c55c050e76f1b4667949d58a7f9efa4e02e --- /dev/null +++ b/tools/recipes/pahole.recipe @@ -0,0 +1,21 @@ +#! /bin/bash + +download() { + git clone -b 'master' --single-branch --depth 1 git://git.kernel.org/pub/scm/devel/pahole/pahole.git pahole_src + cd pahole_src + git checkout d124926baf2366a2ef9db8ac796874cae2b63831 +} + +build() { + cd pahole_src + mkdir build + cd build + cmake -D__LIB=lib -DBUILD_SHARED_LIBS=OFF .. + make +} + +install() { + cp -v pahole_src/build/pahole "$LISA_ARCH_ASSETS/pahole" + source "$LISA_HOME/tools/recipes/utils.sh" + install_readme pahole pahole_src COPYING +}