[Buildroot] [PATCH 08/15] board/imx6ulevk: Leverage the new genimage infra
Ezequiel Garcia
ezequiel at vanguardiasur.com.ar
Wed Apr 13 20:03:33 UTC 2016
Let's rework the board and config files to use the
recently added genimage infra, which generates the
SD card image directly.
Signed-off-by: Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>
---
board/freescale/imx6ulevk/post-image.sh | 15 ---------------
configs/freescale_imx6ulevk_defconfig | 4 ++--
2 files changed, 2 insertions(+), 17 deletions(-)
delete mode 100755 board/freescale/imx6ulevk/post-image.sh
diff --git a/board/freescale/imx6ulevk/post-image.sh b/board/freescale/imx6ulevk/post-image.sh
deleted file mode 100755
index cb75a47de64d..000000000000
--- a/board/freescale/imx6ulevk/post-image.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env bash
-
-GENIMAGE_CFG="board/freescale/imx6ulevk/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 $?
diff --git a/configs/freescale_imx6ulevk_defconfig b/configs/freescale_imx6ulevk_defconfig
index b8a1f867b48b..55b3fa5e085d 100644
--- a/configs/freescale_imx6ulevk_defconfig
+++ b/configs/freescale_imx6ulevk_defconfig
@@ -27,9 +27,9 @@ BR2_TARGET_UBOOT_FORMAT_IMX=y
# required tools to create the microSD image
BR2_PACKAGE_HOST_DOSFSTOOLS=y
-BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_MTOOLS=y
# filesystem / image
-BR2_ROOTFS_POST_IMAGE_SCRIPT="board/freescale/imx6ulevk/post-image.sh"
BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_GENIMAGE=y
+BR2_TARGET_ROOTFS_GENIMAGE_CFG="board/freescale/imx6ulevk/genimage.cfg"
--
2.7.0
More information about the buildroot
mailing list