Skip to content

Commit

Permalink
Merge pull request #367 from ucb-bar/dev
Browse files Browse the repository at this point in the history
Chipyard 1.1.0 dev to master PR
  • Loading branch information
sagark authored Jan 26, 2020
2 parents 61ca6fa + e89a0c3 commit 7a6124d
Show file tree
Hide file tree
Showing 117 changed files with 2,592 additions and 3,297 deletions.
76 changes: 58 additions & 18 deletions .circleci/check-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,55 +23,94 @@ status=$(git submodule status)

all_names=()

search () {
for submodule in "${submodules[@]}"

search_submodule() {
echo "Running check on submodule $submodule in $dir"
hash=$(echo "$status" | grep "$dir.*$submodule " | awk '{print$1}' | grep -o "[[:alnum:]]*")
for branch in "${branches[@]}"
do
echo "Running check on submodule $submodule in $dir"
hash=$(echo "$status" | grep "$dir.*$submodule " | awk '{print$1}' | grep -o "[[:alnum:]]*")
echo "Searching for $hash in origin/$branch of $submodule"
(git -C $dir/$submodule branch -r --contains "$hash" | grep "origin/$branch") && true # needs init'ed submodules
all_names+=("$dir/$submodule $hash $?")
if [ $? -eq 0 ]
then
all_names+=("$dir/$submodule $hash 0")
return
fi
done
all_names+=("$dir/$submodule $hash 1")
return
}

submodules=("boom" "hwacha" "icenet" "rocket-chip" "sifive-blocks" "sifive-cache" "testchipip")
dir="generators"
branch="master"
search () {
for submodule in "${submodules[@]}"
do
search_submodule
done
}

submodules=("boom" "hwacha" "icenet" "sha3" "rocket-chip" "sifive-blocks" "sifive-cache" "testchipip" "gemmini")
dir="generators"
if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ]
then
branches=("master")
else
branches=("master" "dev")
fi
search

submodules=("riscv-gnu-toolchain" "riscv-isa-sim" "riscv-pk" "riscv-tests")
dir="toolchains/esp-tools"
branch="master"

branches=("master")
search


submodules=("riscv-gnu-toolchain" "riscv-isa-sim" "riscv-pk" "riscv-tests" "riscv-gnu-toolchain-prebuilt")
submodules=("riscv-gnu-toolchain" "riscv-isa-sim" "riscv-pk" "riscv-tests")
dir="toolchains/riscv-tools"
branch="master"

branches=("master")
search

# riscv-openocd doesn't use its master branch
submodules=("riscv-openocd")
dir="toolchains/riscv-tools"
branch="riscv"
branches=("riscv")
search

submodules=("qemu" "libgloss")
dir="toolchains"
branches=("master")
search

submodules=("barstools" "chisel3" "firrtl" "torture")
dir="tools"
branch="master"
submodules=("spec2017" "coremark")
dir="software"
branches=("master")
search

submodules=("axe" "barstools" "torture" "dsptools" "chisel-testers" "treadle" "firrtl-interpreter")
dir="tools"
if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ]
then
branches=("master")
else
branches=("master" "dev")
fi
search

submodules=("firesim")
dir="sims"
branch="master"
if [ "$CIRCLE_BRANCH" == "master" ] || [ "$CIRCLE_BRANCH" == "dev" ]
then
branches=("master")
else
branches=("master" "dev")
fi
search

submodules=("hammer")
dir="vlsi"
branches=("master")
search


# turn off verbose printing to make this easier to read
set +x

Expand All @@ -90,3 +129,4 @@ do
done

echo "Done checking all submodules"

Loading

0 comments on commit 7a6124d

Please sign in to comment.