Skip to content
Commit ec247044 authored by Jerome Marchand's avatar Jerome Marchand Committed by Andrii Nakryiko
Browse files

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: 384b6b3b

 ("samples: bpf: Add vmlinux.h generation support")
Reported-by: default avatarCKI Project <cki-project@redhat.com>
Reported-by: default avatarVeronika Kabatova <vkabatov@redhat.com>
Signed-off-by: default avatarJerome Marchand <jmarchan@redhat.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220507161635.2219052-1-jmarchan@redhat.com
parent bfa92e0b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment