Skip to content

Commit 9b3c11a

Browse files
theihorhtejun
authored andcommitted
selftests/sched_ext: add order-only dependency of runner.o on BPFOBJ
The runner.o may start building before libbpf headers are installed, and as a result build fails. This happened a couple of times on libbpf/ci test jobs: * https://github.com/libbpf/ci/actions/runs/11447667257/job/31849533100 * https://github.com/theihor/libbpf-ci/actions/runs/11445162764/job/31841649552 Headers are installed in a recipe for $(BPFOBJ) target, and adding an order-only dependency should ensure this doesn't happen. Signed-off-by: Ihor Solodrai <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 60e339b commit 9b3c11a

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/sched_ext

1 file changed

+1
-1
lines changed

tools/testing/selftests/sched_ext/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ auto-test-targets := \
184184

185185
testcase-targets := $(addsuffix .o,$(addprefix $(SCXOBJ_DIR)/,$(auto-test-targets)))
186186

187-
$(SCXOBJ_DIR)/runner.o: runner.c | $(SCXOBJ_DIR)
187+
$(SCXOBJ_DIR)/runner.o: runner.c | $(SCXOBJ_DIR) $(BPFOBJ)
188188
$(CC) $(CFLAGS) -c $< -o $@
189189

190190
# Create all of the test targets object files, whose testcase objects will be

0 commit comments

Comments
 (0)