Skip to content

Commit

Permalink
Update post-image.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslavskis authored Jan 8, 2022
1 parent d106bb2 commit ab7d6c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions post_image/post-image.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
set -e


BOARD_DIR="$(dirname $0)"
BOARD_NAME="$(basename ${BOARD_DIR})"
GENIMAGE_CFG="${BOARD_DIR}/genimage-${BOARD_NAME}.cfg"
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"



CONFIG_TXT=./output/images/rpi-firmware/config.txt
FAT_PARTITION=./output/images/rpi-firmware
OVERLAYS_PARTION=./output/images/rpi-firmware
Expand Down Expand Up @@ -61,13 +63,14 @@ cp bootcode.bin $boot_bin

trap 'rm -rf "${ROOTPATH_TMP}"' EXIT
ROOTPATH_TMP="$(mktemp -d)"

rm -rf "${GENIMAGE_TMP}"
genimage \

genimage \
--rootpath "${ROOTPATH_TMP}" \
--tmppath "${GENIMAGE_TMP}" \
--inputpath "${BINARIES_DIR}" \
--outputpath "${BINARIES_DIR}" \
--config "${GENIMAGE_CFG}"
exit $?

exit $?

0 comments on commit ab7d6c1

Please sign in to comment.