Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
meta-mender-tegra: update tegraflash function hooks
Browse files Browse the repository at this point in the history
The latest update to meta-tegra reworks the way the
flash.xml file is handled, so hook in the modifications
we need for the data partition in the appropriate places.

Signed-off-by: Matt Madison <matt@madison.systems>
  • Loading branch information
madisongh committed May 24, 2020
1 parent b3a268f commit e1226d0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions meta-mender-tegra/classes/image_types_mender_tegra.bbclass
Expand Up @@ -7,10 +7,10 @@ tegraflash_custom_pre() {
ln -s ${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.dataimg ./${DATAFILE}
}

tegraflash_create_flash_config_append() {
if [ -n "$bupgen" ]; then
sed -i -e'/DATAFILE/d' $destdir/flash.xml.in
else
sed -i -e"s,DATAFILE,${DATAFILE}," $destdir/flash.xml.in
fi
tegraflash_generate_bupgen_script_append() {
sed -i -e"1a sed -i -e'/DATAFILE/d' ./flash.xml.in" $outfile
}

tegraflash_custom_post_append() {
sed -i -e"s,DATAFILE,${DATAFILE}," ${WORKDIR}/tegraflash/flash.xml.in
}

0 comments on commit e1226d0

Please sign in to comment.