Skip to content

Commit

Permalink
Merge pull request #44 from slaclab/pre-release
Browse files Browse the repository at this point in the history
Release Candidate 4.2.1
  • Loading branch information
ruck314 authored Jul 22, 2024
2 parents a616767 + a7d4f04 commit 3fb54ce
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions CreatePetalinuxProject.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
## the terms contained in the LICENSE.txt file.
##############################################################################

while getopts p:n:h:x:l:d:t:r:s: flag
# Set default values
rfdc=1

while getopts p:n:h:x:l:d:t:r:s:f: flag
do
case "${flag}" in
p) path=${OPTARG};;
Expand All @@ -21,6 +24,7 @@ do
t) dmaTxBuffCount=${OPTARG};;
r) dmaRxBuffCount=${OPTARG};;
s) dmaBuffSize=${OPTARG};;
f) rfdc=${OPTARG};;
esac
done

Expand Down Expand Up @@ -55,6 +59,7 @@ echo "Number of DEST per lane: $numDest";
echo "Number of DMA TX Buffers: $dmaTxBuffCount";
echo "Number of DMA RX Buffers: $dmaRxBuffCount";
echo "DMA Buffer Size: $dmaBuffSize Bytes";
echo "Include RFDC utility: $rfdc";
echo "$axi_soc_ultra_plus_core"
echo "$aes_stream_drivers"

Expand Down Expand Up @@ -159,11 +164,15 @@ echo IMAGE_INSTALL:append = \" axiversiondump\" >> build/conf/local.conf

##############################################################################

# Add RFDC selftest application
petalinux-create -t apps --template install -n rfdc-test
echo CONFIG_rfdc-test=y >> project-spec/configs/rootfs_config
cp -rf $axi_soc_ultra_plus_core/petalinux-apps/rfdc-test project-spec/meta-user/recipes-apps/.
echo IMAGE_INSTALL:append = \" rfdc-test\" >> build/conf/local.conf
# Check if including RFDC utility
if [ "$rfdc" -eq 1 ]
then
# Add RFDC selftest application
petalinux-create -t apps --template install -n rfdc-test
echo CONFIG_rfdc-test=y >> project-spec/configs/rootfs_config
cp -rf $axi_soc_ultra_plus_core/petalinux-apps/rfdc-test project-spec/meta-user/recipes-apps/.
echo IMAGE_INSTALL:append = \" rfdc-test\" >> build/conf/local.conf
fi

##############################################################################

Expand Down

0 comments on commit 3fb54ce

Please sign in to comment.