-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from mithro/submodules
Changing to using submodules for core dependencies
- Loading branch information
Showing
18 changed files
with
124 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,5 @@ firmware/lm32/firmware.elf | |
firmware/lm32/version.h | ||
test/dump.png | ||
build | ||
misoc | ||
makestuff | ||
migen | ||
misoc | ||
*.pyc | ||
*.pnm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
[submodule "firmware/fx2/fx2lib"] | ||
path = firmware/fx2/fx2lib | ||
[submodule "third_party/fx2lib"] | ||
path = third_party/fx2lib | ||
url = https://github.com/timvideos/fx2lib | ||
[submodule "third_party/misoc"] | ||
path = third_party/misoc | ||
url = https://github.com/m-labs/misoc.git | ||
[submodule "third_party/migen"] | ||
path = third_party/migen | ||
url = https://github.com/m-labs/migen.git | ||
[submodule "third_party/liteeth"] | ||
path = third_party/liteeth | ||
url = https://github.com/enjoy-digital/liteeth.git | ||
[submodule "third_party/litescope"] | ||
path = third_party/litescope | ||
url = https://github.com/enjoy-digital/litescope.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule fx2lib
updated
from 000000 to 4c06a2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
TARGETS=${@-$(find * -maxdepth 0 -type d)} | ||
|
||
COMMIT_MSG=$(tempfile) || exit | ||
trap "rm -f -- '$COMMIT_MSG'" EXIT | ||
|
||
cat > $COMMIT_MSG <<EOF | ||
Updating submodules. | ||
EOF | ||
|
||
DIRTY=0 | ||
for TARGET in $TARGETS; do | ||
pushd $TARGET > /dev/null | ||
VERSION=$(git describe --always --dirty) | ||
echo -n "$TARGET version ($VERSION) " | grep --color -E "dirty|$" | ||
if echo $VERSION | grep -q "dirty"; then | ||
DIRTY=1 | ||
fi | ||
popd > /dev/null | ||
done | ||
|
||
if [ $DIRTY -eq 0 ]; then | ||
echo "All targets clean, good to update." | ||
else | ||
echo "Some target are dirty, can't update." | ||
exit 1 | ||
fi | ||
|
||
for TARGET in $TARGETS; do | ||
( | ||
cd $TARGET | ||
echo | ||
echo "$TARGET checking for updates.." | ||
BEFORE_VER=$(git describe --always --dirty) | ||
git fetch origin | sed -e's/^/ /' | ||
git checkout origin/master | sed -e's/^/ /' | ||
AFTER_VER=$(git describe --always --dirty) | ||
if [ x"$BEFORE_VER" = x"$AFTER_VER" ]; then | ||
echo "$TARGET is unchanged" | ||
else | ||
echo "Move $TARGET from $BEFORE_VER to $AFTER_VER" | ||
cat >> $COMMIT_MSG <<EOF | ||
* $TARGET changed from $BEFORE_VER to $AFTER_VER | ||
EOF | ||
fi | ||
echo | ||
) | ||
git add $TARGET | ||
done | ||
|
||
cat >> $COMMIT_MSG <<EOF | ||
Full submodule status | ||
-- | ||
EOF | ||
git submodule status >> $COMMIT_MSG | ||
echo "" >> $COMMIT_MSG | ||
|
||
git commit -F- < $COMMIT_MSG |