Install elf2tab in its own directory.
This commit is contained in:
12
.gitignore
vendored
12
.gitignore
vendored
@@ -1,11 +1,13 @@
|
|||||||
bin/
|
|
||||||
target/
|
target/
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
|
||||||
|
# Local installation of elf2tab.
|
||||||
|
/elf2tab/
|
||||||
|
|
||||||
# Prevent people from commiting sensitive files.
|
# Prevent people from commiting sensitive files.
|
||||||
crypto_data/
|
/crypto_data/
|
||||||
|
|
||||||
# Temporary files.
|
# Temporary files.
|
||||||
reproducible/binaries.sha256sum
|
/reproducible/binaries.sha256sum
|
||||||
reproducible/elf2tab.txt
|
/reproducible/elf2tab.txt
|
||||||
reproducible/reproduced.tar
|
/reproducible/reproduced.tar
|
||||||
|
|||||||
@@ -404,9 +404,9 @@ class OpenSKInstaller:
|
|||||||
assert self.args.application
|
assert self.args.application
|
||||||
info("Generating Tock TAB file for application/example {}".format(
|
info("Generating Tock TAB file for application/example {}".format(
|
||||||
self.args.application))
|
self.args.application))
|
||||||
elf2tab_ver = self.checked_command_output(["bin/elf2tab",
|
elf2tab_ver = self.checked_command_output(
|
||||||
"--version"]).split(
|
["elf2tab/bin/elf2tab", "--version"]).split(
|
||||||
"\n", maxsplit=1)[0]
|
"\n", maxsplit=1)[0]
|
||||||
if elf2tab_ver != "elf2tab 0.6.0":
|
if elf2tab_ver != "elf2tab 0.6.0":
|
||||||
error(
|
error(
|
||||||
("Detected unsupported elf2tab version {!a}. The following "
|
("Detected unsupported elf2tab version {!a}. The following "
|
||||||
@@ -415,7 +415,7 @@ class OpenSKInstaller:
|
|||||||
tab_filename = os.path.join(self.tab_folder,
|
tab_filename = os.path.join(self.tab_folder,
|
||||||
"{}.tab".format(self.args.application))
|
"{}.tab".format(self.args.application))
|
||||||
elf2tab_args = [
|
elf2tab_args = [
|
||||||
"bin/elf2tab", "--deterministic", "--package-name",
|
"elf2tab/bin/elf2tab", "--deterministic", "--package-name",
|
||||||
self.args.application, "-o", tab_filename
|
self.args.application, "-o", tab_filename
|
||||||
]
|
]
|
||||||
if self.args.verbose_build:
|
if self.args.verbose_build:
|
||||||
|
|||||||
2
reset.sh
2
reset.sh
@@ -26,7 +26,7 @@ while
|
|||||||
# Reset the submodules
|
# Reset the submodules
|
||||||
git submodule foreach 'git reset --hard && git clean -fxd'
|
git submodule foreach 'git reset --hard && git clean -fxd'
|
||||||
# Reset also the main repository
|
# Reset also the main repository
|
||||||
git reset --hard && git clean -fxd
|
git reset --hard && git clean -fxd --exclude elf2tab
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
echo "DONE."
|
echo "DONE."
|
||||||
|
|||||||
3
setup.sh
3
setup.sh
@@ -42,4 +42,5 @@ pip3 install --user --upgrade 'tockloader==1.5' six intelhex
|
|||||||
rustup target add thumbv7em-none-eabi
|
rustup target add thumbv7em-none-eabi
|
||||||
|
|
||||||
# Install dependency to create applications.
|
# Install dependency to create applications.
|
||||||
cargo install elf2tab --version 0.6.0 --root .
|
mkdir -p elf2tab
|
||||||
|
cargo install elf2tab --version 0.6.0 --root elf2tab/
|
||||||
|
|||||||
Reference in New Issue
Block a user