Skip to contentSkip to conversation

daemon: fix parallel build

PATCH New Baruch Siach 2 participants 2 messages May 8, 2017 – May 9, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 daemon: fix parallel build

The 'ready' target creates a symlink in the libslack/ subdirectory to make up the path to header files. Unfortunately, the target building sources files that need on that symlink, does not depend on the 'ready' target. This might break highly parallel builds. As a workaround make the 'ready' target before making 'all'.

Should fix:
http://autobuild.buildroot.net/results/ed2/ed21ac166f2151aa69a7790a17ff05f05afa512d/
http://autobuild.buildroot.net/results/333/3338539743c8b0399c6b0fcbbb7c28b58bf3f387/

---
 package/daemon/daemon.mk | 1 +
 1 file changed, 1 insertion(+)
package/daemon/daemon.mk +1 -0
index dfa573f42652..79cf3f7aab74 100644
@@ -14,6 +14,7 @@ define DAEMON_CONFIGURE_CMDS
 endef
 
 define DAEMON_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) ready
 	$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
 endef
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 daemon: fix parallel build

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Baruch" == Baruch Siach <[email protected]> writes:

The 'ready' target creates a symlink in the libslack/ subdirectory to make up the path to header files. Unfortunately, the target building sources files that need on that symlink, does not depend on the 'ready' target. This might

Dropped 'on' from 'need on that' and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard