board/freescale: factorize genimage logic
authorGeorges Savoundararadj <savoundg@gmail.com>
Wed, 7 Sep 2016 22:29:08 +0000 (15:29 -0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 11 Sep 2016 21:24:04 +0000 (23:24 +0200)
commitf645f914ac026504bfe4f966bfe620cc3f91e04c
tree07a25489161e003f79cb96da42a7e6700adb7b61
parenta5033dd7facaec3cd8d0d129b1f457a2f55f6d7e
board/freescale: factorize genimage logic

For the boards imx6ulevk, imx6sabresd, mx25pdk, mx51evk, mx53loco,
warpboard:
* Replace genimage.cfg with a common Freescale genimage template named
  genimage.cfg.template because they all use the same layout.  The only
  difference comes from the device tree blobs.
* Replace each post-image.sh script with a generic post-image.sh script
  which is able to generate the right genimage.cfg depending on:
** the image type (zImage or uImage) from BR2_LINUX_KERNEL_UIMAGE
** the device tree blobs from BR2_LINUX_KERNEL_INTREE_DTS_NAME
** the rootfs type (ext2, ext3 or ext4) from BR2_TARGET_ROOTFS_EXT2
* Fix the readme.txt files accordingly

Signed-off-by: Georges Savoundararadj <savoundg@gmail.com>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Peter Korsgaard <peter@korsgaard.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
[Thomas: remove handling of rootfs type, using rootfs.ext2 in all cases
is fine, rootfs.ext3 and rootfs.ext4 are just symbolic links to it.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
24 files changed:
board/freescale/common/genimage.cfg.template [new file with mode: 0644]
board/freescale/common/post-image.sh [new file with mode: 0755]
board/freescale/imx25pdk/genimage.cfg [deleted file]
board/freescale/imx25pdk/post-image.sh [deleted file]
board/freescale/imx25pdk/readme.txt
board/freescale/imx51evk/genimage.cfg [deleted file]
board/freescale/imx51evk/post-image.sh [deleted file]
board/freescale/imx51evk/readme.txt
board/freescale/imx53loco/genimage.cfg [deleted file]
board/freescale/imx53loco/post-image.sh [deleted file]
board/freescale/imx6ulevk/genimage.cfg [deleted file]
board/freescale/imx6ulevk/post-image.sh [deleted file]
board/freescale/imx6ulevk/readme.txt
board/freescale/imx7dsdb/genimage.cfg [deleted file]
board/freescale/imx7dsdb/post-image.sh [deleted file]
board/freescale/imx7dsdb/readme.txt
board/freescale/warpboard/genimage.cfg [deleted file]
board/freescale/warpboard/post-image.sh [deleted file]
configs/freescale_imx6ulevk_defconfig
configs/freescale_imx7dsabresd_defconfig
configs/mx25pdk_defconfig
configs/mx51evk_defconfig
configs/mx53loco_defconfig
configs/warpboard_defconfig