Commit a19ed07
committed
samples/bpf: fix build
JIRA: https://issues.redhat.com/browse/RHEL-70466
Upstream Status: RHEL Only
commit 9ea5b2d945e7d5fe6daffd766520dfb1fb6b5974
Author: Gregory Bell <grbell@redhat.com>
Date: Wed Apr 2 12:21:58 2025 -0400
samples/bpf: fix build
Moving bootstrap bpftool build into a function then pass bootstrap bpftool to
samples/bpf Makefile instead of rebuilding during the samples/bpf make process.
If bpftool is not already built then build right before samples/bpf build and
pass to samples/bpf.
Always pass vmlinux.h to samples/bpf by setting RPM_VMLINUX_H variable
depending on current build. If the kernel is built with debuginfo it is
located at RPM_BUILD_ROOT/DevelDir/vmlinux.h. In the case of tools only build
it is at DevelDir/vmlinux.h
Signed-off-by: Gregory Bell <grbell@redhat.com>
Signed-off-by: Gregory Bell <grbell@redhat.com>1 parent 554dcad commit a19ed07
1 file changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2220 | 2220 | | |
2221 | 2221 | | |
2222 | 2222 | | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
2223 | 2230 | | |
2224 | 2231 | | |
2225 | 2232 | | |
| |||
2953 | 2960 | | |
2954 | 2961 | | |
2955 | 2962 | | |
2956 | | - | |
2957 | | - | |
2958 | | - | |
2959 | | - | |
| 2963 | + | |
2960 | 2964 | | |
2961 | 2965 | | |
2962 | 2966 | | |
| |||
3201 | 3205 | | |
3202 | 3206 | | |
3203 | 3207 | | |
3204 | | - | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
3205 | 3212 | | |
3206 | 3213 | | |
3207 | 3214 | | |
| |||
3222 | 3229 | | |
3223 | 3230 | | |
3224 | 3231 | | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
3225 | 3237 | | |
3226 | | - | |
| 3238 | + | |
3227 | 3239 | | |
3228 | 3240 | | |
3229 | 3241 | | |
| |||
0 commit comments