From 737a29b16a99358d0f52490c97cdbad44558561c Mon Sep 17 00:00:00 2001 From: Deepak Kumar Mishra Date: Thu, 18 Mar 2021 23:56:38 +0530 Subject: [PATCH 1/2] recipe: add pahole v1.20 recipe add pahole v1.20 recipe to generate pahole binary file to be used while building sched_tp kernel module --- tools/recipes/pahole.recipe | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tools/recipes/pahole.recipe diff --git a/tools/recipes/pahole.recipe b/tools/recipes/pahole.recipe new file mode 100644 index 000000000..f03b3f236 --- /dev/null +++ b/tools/recipes/pahole.recipe @@ -0,0 +1,20 @@ +#! /bin/bash + +download() { + git clone -b 'v1.20' --single-branch --depth 1 git://git.kernel.org/pub/scm/devel/pahole/pahole.git pahole_src + echo "Pahole download completed" +} + +build() { + cd pahole_src + mkdir build + cd build + cmake -D__LIB=lib .. + make + echo "Pahole build completed" +} + +install() { + cp -v pahole_src/build/pahole "$LISA_ARCH_ASSETS/pahole" + echo "Pahole install completed" +} -- GitLab From 5a61a542b734743f6519727c3520e7ca95108b30 Mon Sep 17 00:00:00 2001 From: Deepak Kumar Mishra Date: Thu, 18 Mar 2021 23:56:38 +0530 Subject: [PATCH 2/2] recipe: add pahole recipe add pahole recipe to generate pahole binary file to be used while building sched_tp kernel module This recipe generates pahole and links the libraries statically. The recipe copies pahole binary along with COPYING file to $LISA_ARCH_ASSETS folder. As updated version of pahole is not relesed yet, at present it uses d124926baf2366a2ef9db8ac796874cae2b63831 commit from master branch. --- tools/recipes/pahole.recipe | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/recipes/pahole.recipe b/tools/recipes/pahole.recipe index f03b3f236..0e1b1c55c 100644 --- a/tools/recipes/pahole.recipe +++ b/tools/recipes/pahole.recipe @@ -1,20 +1,21 @@ #! /bin/bash download() { - git clone -b 'v1.20' --single-branch --depth 1 git://git.kernel.org/pub/scm/devel/pahole/pahole.git pahole_src - echo "Pahole download completed" + 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 .. + cmake -D__LIB=lib -DBUILD_SHARED_LIBS=OFF .. make - echo "Pahole build completed" } install() { cp -v pahole_src/build/pahole "$LISA_ARCH_ASSETS/pahole" - echo "Pahole install completed" + source "$LISA_HOME/tools/recipes/utils.sh" + install_readme pahole pahole_src COPYING } -- GitLab