[Cryptech-Commits] [user/sra/novena-releng] 04/04: Tweak XiLinx build to work on both 32-bit and 64-bit VMs.

git at cryptech.is git at cryptech.is
Wed Sep 23 03:46:39 UTC 2015


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository user/sra/novena-releng.

commit 9da77fca6cc08e56f5c2330b15653a427e4978f9
Author: Rob Austein <sra at hactrn.net>
Date:   Tue Sep 22 22:40:08 2015 -0400

    Tweak XiLinx build to work on both 32-bit and 64-bit VMs.
---
 Makefile      | 5 ++++-
 core/Makefile | 6 +++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 142e45c..962b209 100644
--- a/Makefile
+++ b/Makefile
@@ -104,6 +104,9 @@ clean:
 	git clean -dfx
 	git submodule foreach --recursive 'git clean -dfx'
 
+sandblast: clean
+	git submodule deinit -f .
+
 sw:
 	cd sw; $(call DCH, -sw, software tools)
 	cd sw; debuild -S -uc -us
@@ -132,4 +135,4 @@ upload:
 	${RSYNC} --ignore-existing       ${REPOSITORY}/ ${UPLOAD_URI}
 	${RSYNC} --delete --delete-delay ${REPOSITORY}/ ${UPLOAD_URI}
 
-.PHONY: all init clean sw rtl meta reprepro upload enchilada
+.PHONY: all init clean sw rtl meta reprepro upload enchilada sandblast
diff --git a/core/Makefile b/core/Makefile
index 55ce0ea..b6dc3ff 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -33,6 +33,10 @@
 
 BUILD_DIR := platform/novena/eim/build
 
+# Build scripts need to know the build host's word size, sigh.
+
+WORD_SIZE := $(shell python -c 'from struct import pack; print len(pack("L", 0)) * 8')
+
 # This business of patching files that are under revision control
 # because we can't be bothered to generate a proper configuration file
 # is kind of nasty.
@@ -40,7 +44,7 @@ BUILD_DIR := platform/novena/eim/build
 all:
 	patch -p1 --forward <patches/01-config-cores.patch
 	touch platform/novena/common/rtl/ipcore/clkmgr_dcm.v
-	cd ${BUILD_DIR}; $(MAKE)
+	cd ${BUILD_DIR}; $(MAKE) xil_env='. $$(isedir)/settings${WORD_SIZE}.sh'
 	patch -p1 --reverse <patches/01-config-cores.patch
 
 clean:



More information about the Commits mailing list