From 5a9a4b13449f8e292fb4212b3794edd9a56c4b53 Mon Sep 17 00:00:00 2001 From: Francis Laniel Date: Wed, 1 Jun 2022 11:15:40 +0100 Subject: [PATCH] Add pahole package. This package is needed to build the kernel when using CONFIG_DEBUG_INFO_BTF. Signed-off-by: Francis Laniel --- deploy/iso/minikube-iso/package/Config.in | 1 + .../package/pahole/Config.in.host | 7 ++++++ .../minikube-iso/package/pahole/pahole.hash | 2 ++ .../iso/minikube-iso/package/pahole/pahole.mk | 22 +++++++++++++++++++ 4 files changed, 32 insertions(+) create mode 100644 deploy/iso/minikube-iso/package/pahole/Config.in.host create mode 100644 deploy/iso/minikube-iso/package/pahole/pahole.hash create mode 100644 deploy/iso/minikube-iso/package/pahole/pahole.mk diff --git a/deploy/iso/minikube-iso/package/Config.in b/deploy/iso/minikube-iso/package/Config.in index 8fbd6c82f289..ee2036e559fe 100644 --- a/deploy/iso/minikube-iso/package/Config.in +++ b/deploy/iso/minikube-iso/package/Config.in @@ -1,6 +1,7 @@ menu "System tools" source "$BR2_EXTERNAL_MINIKUBE_PATH/package/tbb/Config.in" source "$BR2_EXTERNAL_MINIKUBE_PATH/package/sysdig/Config.in" + source "$BR2_EXTERNAL_MINIKUBE_PATH/package/pahole/Config.in.host" source "$BR2_EXTERNAL_MINIKUBE_PATH/package/crun/Config.in" source "$BR2_EXTERNAL_MINIKUBE_PATH/package/automount/Config.in" source "$BR2_EXTERNAL_MINIKUBE_PATH/package/gluster/Config.in" diff --git a/deploy/iso/minikube-iso/package/pahole/Config.in.host b/deploy/iso/minikube-iso/package/pahole/Config.in.host new file mode 100644 index 000000000000..a3ec9995efea --- /dev/null +++ b/deploy/iso/minikube-iso/package/pahole/Config.in.host @@ -0,0 +1,7 @@ +config BR2_PACKAGE_HOST_PAHOLE + bool "host pahole" + default y + help + Pahole and other DWARF utils. + + https://git.kernel.org/pub/scm/devel/pahole/pahole.git diff --git a/deploy/iso/minikube-iso/package/pahole/pahole.hash b/deploy/iso/minikube-iso/package/pahole/pahole.hash new file mode 100644 index 000000000000..0c6f0faeac50 --- /dev/null +++ b/deploy/iso/minikube-iso/package/pahole/pahole.hash @@ -0,0 +1,2 @@ +# Locally computed +sha256 cde85af68b368f50a913be387f94f6b43612a04af6c92387b4dcabb712a668fe pahole-v1.23-br1.tar.gz diff --git a/deploy/iso/minikube-iso/package/pahole/pahole.mk b/deploy/iso/minikube-iso/package/pahole/pahole.mk new file mode 100644 index 000000000000..2fb3985637ca --- /dev/null +++ b/deploy/iso/minikube-iso/package/pahole/pahole.mk @@ -0,0 +1,22 @@ +######################################################################## +# +# pahole +# +######################################################################## + +PAHOLE_VERSION = v1.23 +PAHOLE_SITE = git://git.kernel.org/pub/scm/devel/pahole/pahole.git +PAHOLE_SITE_METHOD = git +# This guy saved me: +# https://stackoverflow.com/a/50526817 +# Indeed, pahole contains git submodule and relies on them to be built. +# The problem is that buildroot default behavior is to remove .git from archive. +# Thus, it is not possible to use git submodule... +PAHOLE_GIT_SUBMODULES = YES +# We want to have static pahole binary to avoid problem while using it during +# Linux kernel build. +HOST_PAHOLE_CONF_OPTS = -DBUILD_SHARED_LIBS=OFF -D__LIB=lib +PAHOLE_LICENSE = GPL-2.0 +PAHOLE_LICENSE_FILES = COPYING + +$(eval $(host-cmake-package))