Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Commit

Permalink
Merge pull request #13 from Obijuan/master
Browse files Browse the repository at this point in the history
Windows crosscompilation and some bug fixed
  • Loading branch information
Obijuan committed Feb 25, 2016
2 parents e26107a + 55760d0 commit eb20876
Show file tree
Hide file tree
Showing 7 changed files with 1,123 additions and 6 deletions.
File renamed without changes.
11 changes: 5 additions & 6 deletions build-toolchain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ cd icestorm
if [ "$1" == "clean" ]; then
make clean
fi
mv Makefile Makefile.bk
cp $WORK/packages/build_x86_64/Makefile.icetools Makefile
cp $WORK/packages/build_x86_64/Makefile.icepack icepack/Makefile
cp $WORK/packages/build_x86_64/Makefile.iceprog iceprog/Makefile
cp $WORK/packages/build_x86_64/Makefile.icetime icetime/Makefile
make -j$(( $(nproc) -1))
make install DESTDIR=$TCDIR PREFIX=""
mv Makefile.bk Makefile

cd ..

# Install Arachne-PNR
Expand All @@ -43,11 +45,9 @@ cd arachne-pnr
if [ "$1" == "clean" ]; then
make clean
fi
mv Makefile Makefile.bk
cp $WORK/packages/build_x86_64/Makefile.arachne Makefile
make -j$(( $(nproc) -1))
make install DESTDIR=$TCDIR PREFIX="" ICEBOX="$TCDIR/share/icebox"
mv Makefile.bk Makefile
cd ..

# Install Yosys
Expand All @@ -56,11 +56,10 @@ cd yosys
if [ "$1" == "clean" ]; then
make clean
fi
mv Makefile Makefile.bk

cp $WORK/packages/build_x86_64/Makefile.yosys Makefile
make -j$nproc$(( $(nproc) -1)) || exit 1
make install DESTDIR=$TCDIR PREFIX=""
mv Makefile.bk Makefile
cd ..

# Package tarball
Expand Down
13 changes: 13 additions & 0 deletions crossbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,16 @@ cp $WORK/packages/windows/*.bin $WORK/windist/$NAME/share/arachne-pnr

mkdir -p $WORK/windist/$NAME/share/icebox
cp $WORK/packages/windows/*.txt $WORK/windist/$NAME/share/icebox

# -- Build yosys
cd ..
git -C yosys pull || git clone https://github.com/cliffordwolf/yosys.git
cd yosys
cp $WORK/packages/windows/Makefile.yosys Makefile

# Apply patches (temporal)
cp $WORK/packages/windows/patches/log.h $WORK/winbuild/yosys/kernel
cp $WORK/packages/windows/patches/blifparse.cc $WORK/winbuild/yosys/frontends/blif

# Compile
make -j$(( $(nproc) -1))
Loading

0 comments on commit eb20876

Please sign in to comment.