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.
This commit is contained in:
Christian Helmuth 2017-09-05 11:08:18 +02:00
parent 5c4f0e1340
commit 555ebe1ffe
1 changed files with 2 additions and 1 deletions

View File

@ -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 $@