diff options
author | Matteo Croce <mcroce@microsoft.com> | 2021-02-18 16:13:15 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-02-27 07:21:29 -0800 |
commit | e80d14dc55f909a60d4bee810c0b9b0377bbf59e (patch) | |
tree | cedfec259364927cac40c1be4f4c1cfa9c533151 /meta-oe/recipes-kernel/libbpf/libbpf/0001-install-don-t-preserve-file-owner.patch | |
parent | 6eecd37b8c88741ead46ba571887b064c7aea2ad (diff) | |
download | meta-openembedded-contrib-e80d14dc55f909a60d4bee810c0b9b0377bbf59e.tar.gz |
recipes-kernel: add libbpf
Add a recipe to build libbpf from https://github.com/libbpf/libbpf
The only patch fixes a build issue, and it's already merged upstream.
Signed-off-by: Matteo Croce <mcroce@microsoft.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel/libbpf/libbpf/0001-install-don-t-preserve-file-owner.patch')
-rw-r--r-- | meta-oe/recipes-kernel/libbpf/libbpf/0001-install-don-t-preserve-file-owner.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/libbpf/libbpf/0001-install-don-t-preserve-file-owner.patch b/meta-oe/recipes-kernel/libbpf/libbpf/0001-install-don-t-preserve-file-owner.patch new file mode 100644 index 0000000000..9423141962 --- /dev/null +++ b/meta-oe/recipes-kernel/libbpf/libbpf/0001-install-don-t-preserve-file-owner.patch @@ -0,0 +1,31 @@ +From 7df10d91db6f533cc0f6c09f4ae8ad92918c6160 Mon Sep 17 00:00:00 2001 +From: Matteo Croce <mcroce@microsoft.com> +Date: Tue, 26 Jan 2021 12:41:47 +0100 +Subject: [PATCH] install: don't preserve file owner + +'cp -p' preserve file ownership, this may leave files owned by the +current in user in /lib . + +Upstream-status: Submitted (0.4 release) [https://github.com/libbpf/libbpf/commit/767d82caab7e54238f2fc6f40ab1e4af285f2abe] + +Signed-off-by: Matteo Croce <mcroce@microsoft.com> +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index da33613..ab66edc 100644 +--- a/Makefile ++++ b/Makefile +@@ -130,7 +130,7 @@ define do_s_install + $(Q)if [ ! -d '$(DESTDIR)$2' ]; then \ + $(INSTALL) -d -m 755 '$(DESTDIR)$2'; \ + fi; +- $(Q)cp -fpR $1 '$(DESTDIR)$2' ++ $(Q)cp -fR $1 '$(DESTDIR)$2' + endef + + install: all install_headers install_pkgconfig +-- +2.29.2 + |