Skip to content

Commit

Permalink
_targets/sparcv8leon/gr712rc/build.project: correct style
Browse files Browse the repository at this point in the history
JIRA: RTOS-883
  • Loading branch information
lukileczo committed Nov 5, 2024
1 parent fc47c68 commit 52e2d7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions _targets/sparcv8leon/gr712rc/build.project
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ b_image_target() {
mv "$ROOTFS.tmp" "$ROOTFS"
fi

local FS_OFFS=$(image_builder.py query --nvm "$NVM_CONFIG" '{{ nvm.flash0.rootfs.offs }}')
local FS_SZ=$(image_builder.py query --nvm "$NVM_CONFIG" '{{ nvm.flash0.rootfs.size }}')
local FS_OFFS
FS_OFFS=$(image_builder.py query --nvm "$NVM_CONFIG" '{{ nvm.flash0.rootfs.offs }}')

local FS_SZ
FS_SZ=$(image_builder.py query --nvm "$NVM_CONFIG" '{{ nvm.flash0.rootfs.size }}')
sz=$(du -k "$ROOTFS" | awk '{ print $1 }')
echo "rootfs size: ${sz} kB / $((FS_SZ / 1024)) kB"
[ "$sz" -gt "$FS_SZ" ] && b_die "rootfs size exceeds the target partition!"
Expand Down

0 comments on commit 52e2d7a

Please sign in to comment.