Skip to content

Commit

Permalink
Use our cmsis-svd fork
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Sep 30, 2024
1 parent 9c22aa7 commit 9a61bb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion r2svd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ BINDIR=$(shell r2pm -H R2PM_BINDIR)
all: cmsis-svd

cmsis-svd:
git clone https://github.com/brainstorm/cmsis-svd && cd cmsis-svd && git checkout regex_fix
git clone --depth=1 https://github.com/brainstorm/cmsis-svd && cd cmsis-svd && git checkout regex_fix
cd cmsis-svd/python && python3 setup.py build
cd cmsis-svd/python && python3 setup.py install

clean:
rm -rf cmsis-svd

install:
cp -f r2svd.py $(BINDIR)/r2svd
Expand Down
5 changes: 5 additions & 0 deletions r2svd/r2svd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
import math
import os.path
import importlib

script_dir = os.path.dirname(os.path.realpath(__file__))
newpypath = script_dir + "/cmsis-svd/python"
sys.path.append(newpypath)

from cmsis_svd.parser import SVDParser

argc = len(sys.argv)
Expand Down

0 comments on commit 9a61bb6

Please sign in to comment.