install a local elf2tab binary within the repo itself
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
bin/
|
||||||
target/
|
target/
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
|
||||||
|
|||||||
@@ -404,7 +404,8 @@ 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(["elf2tab", "--version"]).split(
|
elf2tab_ver = self.checked_command_output(["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(
|
||||||
@@ -414,8 +415,8 @@ 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 = [
|
||||||
"elf2tab", "--deterministic", "--package-name", self.args.application,
|
"bin/elf2tab", "--deterministic", "--package-name",
|
||||||
"-o", tab_filename
|
self.args.application, "-o", tab_filename
|
||||||
]
|
]
|
||||||
if self.args.verbose_build:
|
if self.args.verbose_build:
|
||||||
elf2tab_args.append("--verbose")
|
elf2tab_args.append("--verbose")
|
||||||
|
|||||||
2
setup.sh
2
setup.sh
@@ -42,4 +42,4 @@ 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
|
cargo install elf2tab --version 0.6.0 --root .
|
||||||
|
|||||||
Reference in New Issue
Block a user