epfl-archive/cs309-psoc/lab_4_0/create_hw_headers.sh

15 lines
382 B
Bash
Raw Permalink Normal View History

2022-04-07 18:54:11 +02:00
#!/bin/bash -x
# make sure to be in the same directory as this script
script_dir_abs=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd "${script_dir_abs}"
rm -rf sw/hps/application/hw_headers
# create target directory if not present
mkdir -p sw/hps/application/hw_headers
sopc-create-header-files \
hw/quartus/soc_system.sopcinfo \
--output-dir sw/hps/application/hw_headers