diff options
| author | Matteo Croce <mcroce@microsoft.com> | 2021-09-22 02:03:55 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-09-29 07:23:40 -0700 |
| commit | 5a31083b612eaa52b2c2e7c70cdf01d1a8f8b71f (patch) | |
| tree | 76aa912df351fa41fc17cd8a1d7ebfab2e79f15b | |
| parent | ae1705aad57a80a1122ebef117ea689d7307171f (diff) | |
| download | meta-openembedded-5a31083b612eaa52b2c2e7c70cdf01d1a8f8b71f.tar.gz | |
pahole: don't download vendored libbpf
Just use the system libbpf.
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-devtools/pahole/files/0003-CMakeList.txt-don-t-download-libbpf-source-when-syst.patch | 34 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/pahole/pahole_1.22.bb | 3 |
2 files changed, 36 insertions, 1 deletions
diff --git a/meta-oe/recipes-devtools/pahole/files/0003-CMakeList.txt-don-t-download-libbpf-source-when-syst.patch b/meta-oe/recipes-devtools/pahole/files/0003-CMakeList.txt-don-t-download-libbpf-source-when-syst.patch new file mode 100644 index 0000000000..3d491e2ef2 --- /dev/null +++ b/meta-oe/recipes-devtools/pahole/files/0003-CMakeList.txt-don-t-download-libbpf-source-when-syst.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 3d20210d84f61ee2189927e2d9de9ce3e5a0a9c5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Matteo Croce <mcroce@microsoft.com> | ||
| 3 | Date: Mon, 20 Sep 2021 18:44:52 +0200 | ||
| 4 | Subject: [PATCH] CMakeList.txt: Don't download libbpf source when system | ||
| 5 | library is used | ||
| 6 | |||
| 7 | Upstream-Status: Backport [https://git.kernel.org/pub/scm/devel/pahole/pahole.git/commit/?id=3d20210d84f61ee2189927e2d9de9ce3e5a0a9c5] | ||
| 8 | |||
| 9 | The build system always download the libbpf submodule, regardless if | ||
| 10 | we're using the embedded or the system version. | ||
| 11 | Download the libbpf source only if we're using the embedded one. | ||
| 12 | |||
| 13 | Signed-off-by: Matteo Croce <mcroce@microsoft.com> | ||
| 14 | Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> | ||
| 15 | --- | ||
| 16 | CMakeLists.txt | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 20 | index 8523bce..2ab66e4 100644 | ||
| 21 | --- a/CMakeLists.txt | ||
| 22 | +++ b/CMakeLists.txt | ||
| 23 | @@ -65,7 +65,7 @@ find_package(Python3 QUIET) | ||
| 24 | |||
| 25 | # make sure git submodule(s) are checked out | ||
| 26 | find_package(Git QUIET) | ||
| 27 | -if(GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git") | ||
| 28 | +if(LIBBPF_EMBEDDED AND GIT_FOUND AND EXISTS "${PROJECT_SOURCE_DIR}/.git") | ||
| 29 | # Update submodules as needed | ||
| 30 | option(GIT_SUBMODULE "Check submodules during build" ON) | ||
| 31 | if(GIT_SUBMODULE) | ||
| 32 | -- | ||
| 33 | 2.31.1 | ||
| 34 | |||
diff --git a/meta-oe/recipes-devtools/pahole/pahole_1.22.bb b/meta-oe/recipes-devtools/pahole/pahole_1.22.bb index 0fdde93e0e..a56c5f728f 100644 --- a/meta-oe/recipes-devtools/pahole/pahole_1.22.bb +++ b/meta-oe/recipes-devtools/pahole/pahole_1.22.bb | |||
| @@ -10,7 +10,8 @@ COMPATIBLE_HOST = "(x86_64|i.86|aarch64).*-linux" | |||
| 10 | SRCREV = "f02af2553ea58ae1186226af0d0ec835a248358f" | 10 | SRCREV = "f02af2553ea58ae1186226af0d0ec835a248358f" |
| 11 | SRC_URI = "git://git.kernel.org/pub/scm/devel/pahole/pahole.git \ | 11 | SRC_URI = "git://git.kernel.org/pub/scm/devel/pahole/pahole.git \ |
| 12 | file://0001-CMakeList.txt-make-python-optional.patch \ | 12 | file://0001-CMakeList.txt-make-python-optional.patch \ |
| 13 | file://0002-Use-usr-bin-env-python3-instead-of-just-usr-bin-pyth.patch" | 13 | file://0002-Use-usr-bin-env-python3-instead-of-just-usr-bin-pyth.patch \ |
| 14 | file://0003-CMakeList.txt-don-t-download-libbpf-source-when-syst.patch" | ||
| 14 | 15 | ||
| 15 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
| 16 | 17 | ||
