Skip to content

Commit

Permalink
Moving migen and misoc to submodules.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Aug 19, 2015
1 parent 36acfc1 commit 62f8b93
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Expand Up @@ -7,9 +7,6 @@ firmware/lm32/firmware.elf
firmware/lm32/version.h
test/dump.png
build
misoc
makestuff
migen
misoc
*.pyc
*.pnm
6 changes: 6 additions & 0 deletions .gitmodules
@@ -1,3 +1,9 @@
[submodule "firmware/fx2/fx2lib"]
path = firmware/fx2/fx2lib
url = https://github.com/timvideos/fx2lib
[submodule "build/misoc"]
path = build/misoc
url = https://github.com/m-labs/misoc.git
[submodule "build/migen"]
path = build/migen
url = https://github.com/m-labs/migen.git
8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -15,6 +15,14 @@ else
FLTERM = $(MSCDIR)/tools/flterm
endif

build/misoc:
git submodule init build/misoc
git submodule update build/misoc

build/migen:
git submodule init build/migen
git submodule update build/misoc

help:
@echo "Targets avaliable:"
@echo " make gateware"
Expand Down
1 change: 1 addition & 0 deletions build/migen
Submodule migen added at 646667
1 change: 1 addition & 0 deletions build/misoc
Submodule misoc added at 668348
27 changes: 27 additions & 0 deletions scripts/update-submodules.sh
@@ -0,0 +1,27 @@


(
cd build/migen
git fetch origin
git checkout origin/master
)
MIGEN_VERSION=$(cd build/migen; git describe --always --dirty)
git add build/migen

(
cd build/misoc
git fetch origin
git checkout origin/master
)
MISOC_VERSION=$(cd build/misoc; git describe --always --dirty)
git add build/misoc

echo "migen now $MIGEN_VERSION"
echo "misoc now $MISOC_VERSION"

cat << EOF
git commit -F- <<EOF
Updating migen+misoc submodules
* migen to $MIGEN_VERSION
* misoc to $MISOC_VERSION
EOF

0 comments on commit 62f8b93

Please sign in to comment.