Skip to content

Commit

Permalink
Fix: petalinux build script now runs petalinux-config after transferr…
Browse files Browse the repository at this point in the history
…ing config files - this makes sure that the rootfs_config file is registered by the tools
  • Loading branch information
fpgadeveloper committed Nov 23, 2017
1 parent 18173d8 commit 8d1c9e3
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions PetaLinux/build-petalinux
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,18 @@ do
board=${proj%%_*}

# Copy PetaLinux config files
cp -R ../src/$cpu_type/* .
if [ -d "../src/$board" ]; then
cp -R ../src/$board/* .
if [[ -f "configdone.txt" ]]; then
echo "> PetaLinux config files already transferred"
else
echo "> Transferring PetaLinux config files"
cp -R ../src/$cpu_type/* .
if [ -d "../src/$board" ]; then
cp -R ../src/$board/* .
fi
# File to indicate that config files have been transferred
touch configdone.txt
# Run petalinux-config again to register the config files
petalinux-config --oldconfig
fi

# Build PetaLinux project if not built already
Expand Down

0 comments on commit 8d1c9e3

Please sign in to comment.