Skip to content

Commit

Permalink
added an option to generate sysroot (Xilinx#6766)
Browse files Browse the repository at this point in the history
  • Loading branch information
chvamshi-xilinx authored Jun 14, 2022
1 parent c316ee0 commit 9042637
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/build_edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ XRT_REPO_DIR=`readlink -f ${THIS_SCRIPT_DIR}/..`
clean=0
full=0
archiver=0
gen_sysroot=0
SSTATE_CACHE=""
SETTINGS_FILE="petalinux.build"
while [ $# -gt 0 ]; do
Expand All @@ -216,6 +217,9 @@ while [ $# -gt 0 ]; do
-archiver | archiver )
archiver=1
;;
-sysroot | sysroot )
gen_sysroot=1
;;
-cache )
shift
SSTATE_CACHE=$1
Expand Down Expand Up @@ -350,6 +354,9 @@ if [[ $full == 1 ]]; then
$PETA_BIN/petalinux-config -c rootfs --silentconfig
echo "[CMD]: petalinux-build"
$PETA_BIN/petalinux-build
if [[ $gen_sysroot == 1 ]]; then
$PETA_BIN/petalinux-build --sdk
fi
else
#Run just xrt build if -full option is not provided
echo "[CMD]: petalinux-build -c zocl"
Expand Down

0 comments on commit 9042637

Please sign in to comment.