]> git.baikalelectronics.ru Git - kernel.git/commit
samples: bpf: Don't fail for a missing VMLINUX_BTF when VMLINUX_H is provided
authorJerome Marchand <jmarchan@redhat.com>
Sat, 7 May 2022 16:16:35 +0000 (18:16 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 10 May 2022 00:40:43 +0000 (17:40 -0700)
commit23203a7b966414595c1750de4ebbaec54491cf35
tree03eeef08d25a805578c1ffbd7f61bb675f6b7354
parent216e7ede361041740ee6a53953c5eef722caa315
samples: bpf: Don't fail for a missing VMLINUX_BTF when VMLINUX_H is provided

samples/bpf build currently always fails if it can't generate
vmlinux.h from vmlinux, even when vmlinux.h is directly provided by
VMLINUX_H variable, which makes VMLINUX_H pointless.
Only fails when neither method works.

Fixes: 6e349be567fe ("samples: bpf: Add vmlinux.h generation support")
Reported-by: CKI Project <cki-project@redhat.com>
Reported-by: Veronika Kabatova <vkabatov@redhat.com>
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220507161635.2219052-1-jmarchan@redhat.com
samples/bpf/Makefile