[Buildroot] [PATCH v3] configs/warpboard: Generate an sdcard image

Peter Korsgaard peter at korsgaard.com
Wed Jul 27 13:02:30 UTC 2016


>>>>> "Fabio" == Fabio Estevam <festevam at gmail.com> writes:

 > From: Fabio Estevam <fabio.estevam at nxp.com>
 > Generate an sdcard.img image to make it easier the deployment of a
 > Buildroot image.

 > Signed-off-by: Fabio Estevam <fabio.estevam at nxp.com>
 > ---
 > Changes since v2:
 > - Fix post-image.sh permission
 > Changes since v1:
 > - Adjust the prefix in the Subject
 > - Adjust the README file to include the eMMC sdcard.img flashing procedure
 > and the new files (rootfs.ext4 and sdcard.img)


 > +++ b/board/freescale/warpboard/post-image.sh
 > @@ -0,0 +1,16 @@
 > +#!/usr/bin/env bash
 > +
 > +BOARD_DIR="$(dirname $0)"
 > +GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
 > +GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
 > +
 > +rm -rf "${GENIMAGE_TMP}"
 > +
 > +genimage \
 > +  --rootpath "${TARGET_DIR}" \
 > +  --tmppath "${GENIMAGE_TMP}" \
 > +  --inputpath "${BINARIES_DIR}" \
 > +  --outputpath "${BINARIES_DIR}" \
 > +  --config "${GENIMAGE_CFG}"
 > +
 > +exit $?

The exit statement isn't needed. Committed after removing it, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list