From 8ae6ece99dfadb8d3dd25acc3549a975e3c40bbc Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Sat, 5 Mar 2016 20:27:04 -0800 Subject: Fix the stanza wrapper for Travis The printf call you're making doesn't appear to be standard, so I've replaced it with something else. --- Makefile | 4 +++- utils/stanza-wrapper | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 utils/stanza-wrapper diff --git a/Makefile b/Makefile index 75520b73..827211fb 100644 --- a/Makefile +++ b/Makefile @@ -26,8 +26,10 @@ $(root_dir)/src/lib/stanza/stamp: src/lib/stanza-$(stanza_zip_name).zip cd src/lib && unzip stanza-$(stanza_zip_name).zip touch $@ -$(stanza): $(root_dir)/src/lib/stanza/stamp +utils/bin/stanza: $(stanza) +$(stanza): $(root_dir)/src/lib/stanza/stamp $(root_dir)/utils/stanza-wrapper cd src/lib/stanza && ./stanza -platform $(stanza_target_name) -install $(stanza) + cat $(root_dir)/utils/stanza-wrapper | sed 's!@@TOP@@!$(root_dir)!g' > $@ $(stanza_bin): $(stanza) $(stanza_src) cd $(firrtl_dir) && $(stanza) -i firrtl-test-main.stanza -o $@ diff --git a/utils/stanza-wrapper b/utils/stanza-wrapper new file mode 100755 index 00000000..10c8b204 --- /dev/null +++ b/utils/stanza-wrapper @@ -0,0 +1,3 @@ +#!/bin/bash + +eval '@@TOP@@/src/lib/stanza/stanza' -platform linux "$@" -- cgit v1.2.3