From 555ebe1ffed8996a2570d5b4b5f8f4a2c8c07fd3 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Tue, 5 Sep 2017 11:08:18 +0200 Subject: [PATCH] okl4: copy elfweaver tool to build directory When using the elfweaver to generate boot images, python stores precompiled modules in the source directory besides the .py files. This changed the contrib source tree with binary files specific to the build host. As a result the depot create tool picked up the changed source tree and produced strange new hashes. Now, the tool sources are copied to the build directory where python can do its optimizations and the depot stays clean. --- repos/base-okl4/lib/mk/syscall-okl4.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repos/base-okl4/lib/mk/syscall-okl4.inc b/repos/base-okl4/lib/mk/syscall-okl4.inc index 2a3e0cc51..39f0bd2fb 100644 --- a/repos/base-okl4/lib/mk/syscall-okl4.inc +++ b/repos/base-okl4/lib/mk/syscall-okl4.inc @@ -59,5 +59,6 @@ HOST_TOOLS += $(BUILD_BASE_DIR)/tool/okl4/elfweaver $(BUILD_BASE_DIR)/tool/okl4/elfweaver: mkdir -p $(dir $@) - ln -sf $(OKL4_DIR)/tools/pyelf/elfweaver $@ + cp -a $(OKL4_DIR)/tools/pyelf $(dir $@)/ + ln -sf pyelf/elfweaver $@