genheader.sh: export SEED variable

Signed-off-by: John McMaster <johndmcmaster@gmail.com>
This commit is contained in:
John McMaster 2018-10-22 19:46:53 -07:00
parent 43c797dea2
commit a920efa071
1 changed files with 6 additions and 0 deletions

View File

@ -13,3 +13,9 @@ test ! -e "$1"
mkdir "$1"
cd "$1"
export SEED="$(echo $1 | md5sum | cut -c1-8)"
function seed_vh () {
echo '`define SEED 32'"'h${SEED}" > setseed.vh
}