litex_setup: nMigen has been renamed to Amaranth HDL.
This commit is contained in:
parent
230ba5f7ba
commit
9329d3f092
|
@ -19,7 +19,7 @@ jobs:
|
||||||
pip3 install requests
|
pip3 install requests
|
||||||
pip3 install pexpect
|
pip3 install pexpect
|
||||||
pip3 install meson
|
pip3 install meson
|
||||||
pip3 install nmigen-yosys
|
pip3 install amaranth-yosys
|
||||||
|
|
||||||
# Install (n)Migen / LiteX / Cores
|
# Install (n)Migen / LiteX / Cores
|
||||||
- name: Install LiteX
|
- name: Install LiteX
|
||||||
|
|
|
@ -16,17 +16,18 @@ current_path = os.path.abspath(os.curdir)
|
||||||
# Get SHA1: git rev-parse --short=7 HEAD
|
# Get SHA1: git rev-parse --short=7 HEAD
|
||||||
|
|
||||||
class GitRepo:
|
class GitRepo:
|
||||||
def __init__(self, url, clone="regular", develop=True, sha1=None):
|
def __init__(self, url, clone="regular", develop=True, sha1=None, branch="master"):
|
||||||
assert clone in ["regular", "recursive"]
|
assert clone in ["regular", "recursive"]
|
||||||
self.url = url
|
self.url = url
|
||||||
self.clone = clone
|
self.clone = clone
|
||||||
self.develop = develop
|
self.develop = develop
|
||||||
self.sha1 = sha1
|
self.sha1 = sha1
|
||||||
|
self.branch = branch
|
||||||
|
|
||||||
git_repos = {
|
git_repos = {
|
||||||
# HDL.
|
# HDL.
|
||||||
"migen": GitRepo(url="https://github.com/m-labs/", clone="recursive"),
|
"migen": GitRepo(url="https://github.com/m-labs/", clone="recursive"),
|
||||||
"nmigen": GitRepo(url="https://github.com/nmigen/", clone="recursive"),
|
"amaranth": GitRepo(url="https://github.com/amaranth-lang/", branch="main"),
|
||||||
|
|
||||||
# LiteX SoC builder
|
# LiteX SoC builder
|
||||||
"pythondata-software-picolibc": GitRepo(url="https://github.com/litex-hub/", clone="recursive"),
|
"pythondata-software-picolibc": GitRepo(url="https://github.com/litex-hub/", clone="recursive"),
|
||||||
|
@ -119,7 +120,7 @@ def litex_setup_update_repos():
|
||||||
# Update Repo.
|
# Update Repo.
|
||||||
print(f"[Updating {name}]...")
|
print(f"[Updating {name}]...")
|
||||||
os.chdir(os.path.join(current_path, name))
|
os.chdir(os.path.join(current_path, name))
|
||||||
subprocess.check_call("git checkout master", shell=True)
|
subprocess.check_call("git checkout " + repo.branch, shell=True)
|
||||||
subprocess.check_call("git pull --ff-only", shell=True)
|
subprocess.check_call("git pull --ff-only", shell=True)
|
||||||
# Recursive Update (Optional).
|
# Recursive Update (Optional).
|
||||||
if repo.clone == "recursive":
|
if repo.clone == "recursive":
|
||||||
|
|
Loading…
Reference in New Issue