Skip to content

Commit 8b62650

Browse files
committed
Replace the submodule with an explicit repository clone
1 parent db8ad95 commit 8b62650

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22
[._]*.sw[a-p]
33
Cargo.lock
44
target
5+
6+
# generate-tests.sh related ignores
7+
cmsis-svd-data
8+
tests/cmsis.rs
9+
tests/cmsis_tests

generate-tests.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ main() {
2424
rm -rf tests/cmsis_tests
2525
mkdir -p tests/cmsis_tests
2626

27+
local svd_source=cmsis-svd-data
28+
if [ ! -d $svd_source ]
29+
then
30+
git clone https://github.com/cmsis-svd/cmsis-svd-data.git
31+
fi
32+
2733
local vendor_dir
28-
for vendor_dir in $(echo cmsis-svd/data/*); do
34+
for vendor_dir in $(echo $svd_source/data/*); do
2935
local vendor=$(basename $vendor_dir)
3036
cat >"$cmsis_dir/$vendor.rs" <<EOF
3137
#![allow(non_snake_case)]

0 commit comments

Comments
 (0)