Merge pull request #330 from sergachev/fix/libeos_path

quickfeather: fix path to libeos library
This commit is contained in:
enjoy-digital 2022-01-21 08:04:48 +01:00 committed by GitHub
commit 95766915b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

3
.gitignore vendored
View File

@ -94,3 +94,6 @@ ENV/
# VS Code project setting
.vscode
# support library for EOS-S3 (downloaded when needed)
litex_boards/targets/libeos/

View File

@ -99,10 +99,11 @@ def main():
soc = BaseSoC(**soc_core_argdict(args))
builder = Builder(soc)
if args.cpu_type == "eos_s3":
if not os.path.exists("libeos"):
os.system("wget https://github.com/litex-hub/litex-boards/files/7880350/libeos.zip")
os.system("unzip libeos.zip -d libeos")
builder.add_software_package("libeos", src_dir="libeos")
libeos_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "libeos")
if not os.path.exists(libeos_path):
os.system("wget -nc https://github.com/litex-hub/litex-boards/files/7880350/libeos.zip")
os.system(f"unzip libeos.zip -d {libeos_path}")
builder.add_software_package("libeos", src_dir=libeos_path)
builder.add_software_library("libeos")
builder.build(run=args.build)