Skip to content

Commit f54c767

Browse files
committed
lkl: fix hijack and zpoline parallel builds
This is a follow up change for commit 3c97822 ("lkl: add tests build barrier") tracked via #558. The hijack and zpoline libraries also share object files, so need a barrier to avoid parallel build failures. Signed-off-by: David Disseldorp <[email protected]>
1 parent 46f599b commit f54c767

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tools/lkl/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ headers_install: $(TARGETS)
176176
include/lkl_config.h $(DESTDIR)$(INCDIR) ; \
177177
cp -r $(OUTPUT)include/lkl $(DESTDIR)$(INCDIR)
178178

179-
libraries_install: $(libs-y:%=$(OUTPUT)%$(SOSUF)) $(OUTPUT)liblkl.a
179+
libraries_install: $(call expand-targets,$(libs-y),$(SOSUF)) $(OUTPUT)liblkl.a
180180
$(call QUIET_INSTALL, libraries) \
181181
install -d $(DESTDIR)$(LIBDIR) ; \
182182
install -m 644 $^ $(DESTDIR)$(LIBDIR)

tools/lkl/Targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ libs-y += lib/liblkl
22

33
ifneq ($(LKL_HOST_CONFIG_BSD),y)
44
libs-$(LKL_HOST_CONFIG_POSIX) += lib/hijack/liblkl-hijack
5+
# hijack and zpoline targets share object files, breaking parallel builds
6+
libs-$(LKL_HOST_CONFIG_POSIX) += .WAIT
57
libs-$(LKL_HOST_CONFIG_POSIX) += lib/hijack/liblkl-zpoline
68
endif
79
LDFLAGS_lib/hijack/liblkl-hijack-y += -shared -nodefaultlibs

0 commit comments

Comments
 (0)