From cc5a65723c33f0458562a890692b41436ac7e837 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Fri, 27 May 2016 11:54:56 +0100 Subject: Add NOOBS export support --- build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 9a889f2..fe8214a 100755 --- a/build.sh +++ b/build.sh @@ -163,13 +163,16 @@ for STAGE_DIR in ${BASE_DIR}/stage*; do run_stage done -STAGE_DIR=${BASE_DIR}/export-image - CLEAN=1 for EXPORT_DIR in ${EXPORT_DIRS}; do + STAGE_DIR=${BASE_DIR}/export-image IMG_SUFFIX=$(cat ${EXPORT_DIR}/EXPORT_IMAGE) EXPORT_ROOTFS_DIR=${WORK_DIR}/$(basename ${EXPORT_DIR})/rootfs run_stage + if [ -e ${EXPORT_DIR}/EXPORT_NOOBS ]; then + STAGE_DIR=${BASE_DIR}/export-noobs + run_stage + fi done log "End ${BASE_DIR}" -- cgit v1.2.3