aboutsummaryrefslogtreecommitdiff
path: root/Build-Xilinx.sh
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-05-03 23:15:33 -0400
committerRob Austein <sra@hactrn.net>2015-05-03 23:18:55 -0400
commit5206bcd72f52bece3ff35268a2284ec4e84c6109 (patch)
tree5c067dd6d63f30da22ca0915e30f6548888efa85 /Build-Xilinx.sh
Initial commit of my silly build script collection.
Diffstat (limited to 'Build-Xilinx.sh')
-rwxr-xr-xBuild-Xilinx.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/Build-Xilinx.sh b/Build-Xilinx.sh
new file mode 100755
index 0000000..c9ac7f3
--- /dev/null
+++ b/Build-Xilinx.sh
@@ -0,0 +1,28 @@
+#!/bin/sh -
+
+# Wrapper script for building Xilinx images on Caerbannog (32-bit Debian Wheezy VM).
+
+# Pick a target:
+
+#TARGET=core/platform/novena/i2c/build
+TARGET=core/platform/novena/eim/build
+
+# Pull fresh copies of all the repositories
+
+$HOME/http-sync-repos.py
+
+# Move to the target's build area
+
+cd $HOME/Cryptech/$TARGET
+
+# Run command line version of the Xilinx build environment (thanks, Paul!)
+#
+# Since Paul was developing this on a 64-bit VM and I'm using a 32-bit
+# VM, I need to override a few settings on the make command line.
+
+make isedir='/opt/Xilinx/14.7/ISE_DS' xil_env='. $(isedir)/settings32.sh'
+
+# At this point, if all went well, there should be a .bit file, which
+# I can now move to my Novena board.
+
+scp -p novena_eim.bit tym: