diff options
| author | Peter Morrow <pemorrow@linux.microsoft.com> | 2021-09-06 13:07:53 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-09-07 10:03:49 -0700 |
| commit | 4c21b6633821ddba4fde2707dfe0a05683fe18ec (patch) | |
| tree | be55c3bfc9d63ef485b75f9f97586827380737ad | |
| parent | 549ff5368e874081c00abe738cba63683456b9c4 (diff) | |
| download | meta-openembedded-4c21b6633821ddba4fde2707dfe0a05683fe18ec.tar.gz | |
libbpf: remove kernel configuration dependency
This dependency introduces a cycle with pahole:
```
kernel --> pahole --> libbpf
^ /
\ /
`------------------<
```
pahole is a build time dependency of the kernel which is required to
generate BTF symbols. The dependency on the kernel configuration is nice
to have but makes using pahole during kernel compile time impossible.
Furthermore this dependency doesn't make sense when building libbpf
purely to ship it via a SDK.
Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-kernel/libbpf/libbpf_0.4.bb | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/meta-oe/recipes-kernel/libbpf/libbpf_0.4.bb b/meta-oe/recipes-kernel/libbpf/libbpf_0.4.bb index 27559ba297..92fc83d0b6 100644 --- a/meta-oe/recipes-kernel/libbpf/libbpf_0.4.bb +++ b/meta-oe/recipes-kernel/libbpf/libbpf_0.4.bb | |||
| @@ -8,8 +8,6 @@ LIC_FILES_CHKSUM = "file://../LICENSE.LGPL-2.1;md5=b370887980db5dd40659b50909238 | |||
| 8 | 8 | ||
| 9 | DEPENDS = "zlib elfutils" | 9 | DEPENDS = "zlib elfutils" |
| 10 | 10 | ||
| 11 | do_compile[depends] += "virtual/kernel:do_shared_workdir" | ||
| 12 | |||
| 13 | SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https" | 11 | SRC_URI = "git://github.com/libbpf/libbpf.git;protocol=https" |
| 14 | SRCREV = "db9614b6bd69746809d506c2786f914b0f812c37" | 12 | SRCREV = "db9614b6bd69746809d506c2786f914b0f812c37" |
| 15 | 13 | ||
| @@ -23,19 +21,9 @@ EXTRA_OEMAKE += "DESTDIR=${D} LIBDIR=${libdir} INCLUDEDIR=${includedir}" | |||
| 23 | inherit pkgconfig | 21 | inherit pkgconfig |
| 24 | 22 | ||
| 25 | do_compile() { | 23 | do_compile() { |
| 26 | if grep -q "CONFIG_BPF_SYSCALL=y" ${STAGING_KERNEL_BUILDDIR}/.config | 24 | oe_runmake |
| 27 | then | ||
| 28 | oe_runmake | ||
| 29 | else | ||
| 30 | bbnote "BFP syscall is not enabled" | ||
| 31 | fi | ||
| 32 | } | 25 | } |
| 33 | 26 | ||
| 34 | do_install() { | 27 | do_install() { |
| 35 | if grep -q "CONFIG_BPF_SYSCALL=y" ${STAGING_KERNEL_BUILDDIR}/.config | 28 | oe_runmake install |
| 36 | then | ||
| 37 | oe_runmake install | ||
| 38 | else | ||
| 39 | bbnote "no files to install" | ||
| 40 | fi | ||
| 41 | } | 29 | } |
