Skip to content

Commit

Permalink
updated scripts to generate two apu packages (Xilinx#6955)
Browse files Browse the repository at this point in the history
  • Loading branch information
chvamshi-xilinx authored Aug 24, 2022
1 parent 23657d1 commit 95b0eb1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/build_edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,8 @@ cp $ORIGINAL_DIR/$PETALINUX_NAME/reinstall_xrt.sh $ORIGINAL_DIR/$PETALINUX_NAME/
if [[ $full == 1 ]]; then
mkdir -p $ORIGINAL_DIR/$PETALINUX_NAME/apu_packages
export PATH=$PETALINUX/../../tool/petalinux-v$PETALINUX_VER-final/components/yocto/buildtools/sysroots/x86_64-petalinux-linux/usr/bin:$PATH
$XRT_REPO_DIR/src/runtime_src/tools/scripts/pkgapu.sh -output $ORIGINAL_DIR/$PETALINUX_NAME/apu_packages -images $ORIGINAL_DIR/$PETALINUX_NAME/images/linux/ -idcode "0x14ca8093"
$XRT_REPO_DIR/src/runtime_src/tools/scripts/pkgapu.sh -output $ORIGINAL_DIR/$PETALINUX_NAME/apu_packages -images $ORIGINAL_DIR/$PETALINUX_NAME/images/linux/ -idcode "0x14ca8093" -package-name xrt-apu-vck5000
$XRT_REPO_DIR/src/runtime_src/tools/scripts/pkgapu.sh -output $ORIGINAL_DIR/$PETALINUX_NAME/apu_packages -images $ORIGINAL_DIR/$PETALINUX_NAME/images/linux/ -idcode "0x04cd0093" -package-name xrt-apu

fi

Expand Down
9 changes: 8 additions & 1 deletion src/runtime_src/tools/scripts/pkgapu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ usage()
echo " -clean Remove build files"
echo " -output output path"
echo " -idcode id code of the part"
echo " -package-name package name"
echo "This script requires tools: mkimage, xclbinutil, bootgen, rpmbuild, dpkg-deb. "
echo "There is mkimage in petalinux build, e.g."
echo "/proj/petalinux/2021.2/petalinux-v2021.2_daily_latest/tool/petalinux-v2021.2-final/components/yocto/buildtools/sysroots/x86_64-petalinux-linux/usr/bin/mkimage"
Expand Down Expand Up @@ -118,6 +119,9 @@ METADATA_BUFFER_LEN=131072
# default id code is for vck5000 part
ID_CODE="0x14ca8093"

# default package name is xrt-apu
PKG_NAME="xrt-apu"

clean=0
while [ $# -gt 0 ]; do
case $1 in
Expand All @@ -136,6 +140,10 @@ while [ $# -gt 0 ]; do
shift
ID_CODE=$1
;;
-package-name )
shift
PKG_NAME=$1
;;
-clean )
clean=1
;;
Expand All @@ -155,7 +163,6 @@ BUILD_DIR="$OUTPUT_DIR/apu_build"
PACKAGE_DIR="$BUILD_DIR"
FW_FILE="$BUILD_DIR/lib/firmware/xilinx/xrt-versal-apu.xsabin"
INSTALL_ROOT="$BUILD_DIR/lib"
PKG_NAME="xrt-apu"

if [[ $clean == 1 ]]; then
echo $PWD
Expand Down

0 comments on commit 95b0eb1

Please sign in to comment.