Skip to content

Commit

Permalink
Merge branch 'x653-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Jul 20, 2022
2 parents f9d932c + 4b48e2f commit f8fa1e3
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions default/rules/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
'iverilog',
'ecpdap',
'fujprog',
'iceprogduino',
'python-programmers',
'openocd',
'icesprog',
Expand Down
17 changes: 17 additions & 0 deletions default/rules/programmers.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,23 @@
package = 'programmers',
)

# iceprogduino

SourceLocation(
name = 'iceprogduino',
vcs = 'git',
location = 'https://github.com/OLIMEX/iCE40HX1K-EVB',
revision = 'origin/master',
license_file = 'LICENSE',
)

Target(
name = 'iceprogduino',
sources = [ 'iceprogduino' ],
gitrev = [ ('iceprogduino', 'programmer'), ('iceprogduino', 'windows') ],
package = 'programmers',
)

# openfpgaloader

SourceLocation(
Expand Down
10 changes: 10 additions & 0 deletions default/scripts/iceprogduino.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
mkdir -p ${OUTPUT_DIR}${INSTALL_PREFIX}/bin/
if [ ${ARCH} == 'windows-x64' ]; then
cd iceprogduino/windows/winiceprogduino
sed -i 's,usleep,usleep2,g' main.c
${CC} main.c -o iceprogduino.exe
else
cd iceprogduino/programmer/iceprogduino
${CC} iceprogduino.c -o iceprogduino
fi
cp iceprogduino${EXE} ${OUTPUT_DIR}${INSTALL_PREFIX}/bin/.

0 comments on commit f8fa1e3

Please sign in to comment.