From ab7d6c197296dceaa94b24a2347cca93e82cdcf4 Mon Sep 17 00:00:00 2001 From: Alex Zaslavskis Date: Sat, 8 Jan 2022 08:40:40 -0800 Subject: [PATCH] Update post-image.sh --- post_image/post-image.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/post_image/post-image.sh b/post_image/post-image.sh index c345d95c..2dbea826 100644 --- a/post_image/post-image.sh +++ b/post_image/post-image.sh @@ -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 @@ -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 $?