Skip to content

Commit

Permalink
Add pahole package.
Browse files Browse the repository at this point in the history
This package is needed to build the kernel when using CONFIG_DEBUG_INFO_BTF.

Signed-off-by: Francis Laniel <[email protected]>
  • Loading branch information
eiffel-fl committed Jun 10, 2022
1 parent d59034e commit 5a9a4b1
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/iso/minikube-iso/package/Config.in
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
7 changes: 7 additions & 0 deletions deploy/iso/minikube-iso/package/pahole/Config.in.host
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions deploy/iso/minikube-iso/package/pahole/pahole.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Locally computed
sha256 cde85af68b368f50a913be387f94f6b43612a04af6c92387b4dcabb712a668fe pahole-v1.23-br1.tar.gz
22 changes: 22 additions & 0 deletions deploy/iso/minikube-iso/package/pahole/pahole.mk
Original file line number Diff line number Diff line change
@@ -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))

0 comments on commit 5a9a4b1

Please sign in to comment.