[meta-freescale] [meta-fsl-arm][PATCH 1/2] image_types_fsl: Use explit task dependency to boost build

Daiane.Angolini at freescale.com Daiane.Angolini at freescale.com
Thu Mar 6 04:44:34 PST 2014



> -----Original Message-----
> From: meta-freescale-bounces at yoctoproject.org [mailto:meta-freescale-
> bounces at yoctoproject.org] On Behalf Of Otavio Salvador
> Sent: Wednesday, March 05, 2014 6:09 PM
> To: meta-freescale Mailing List
> Cc: Otavio Salvador
> Subject: [meta-freescale] [meta-fsl-arm][PATCH 1/2] image_types_fsl: Use
> explit task dependency to boost build
> 
> Instead of depending of all tasks of recipes, we should depend on the
> required task so we can start building the rootfs earlier in the build
> process and earn some build time gain.

Cool!

Do you need help to test this?


Daiane
> 
> Change-Id: I770afe79edba0320ae697f9bcdaf340fbcb09eeb
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
> ---
>  classes/image_types_fsl.bbclass | 18 +++++++++++++-----
>  1 file changed, 13 insertions(+), 5 deletions(-)
> 
> diff --git a/classes/image_types_fsl.bbclass
> b/classes/image_types_fsl.bbclass index 47e8338..39ceb7a 100644
> --- a/classes/image_types_fsl.bbclass
> +++ b/classes/image_types_fsl.bbclass
> @@ -12,7 +12,9 @@ UBOOT_SUFFIX_SDCARD ?= "${UBOOT_SUFFIX}"
>  #
> 
>  # IMX Bootlets Linux bootstream
> -IMAGE_DEPENDS_linux.sb = "elftosb-native imx-bootlets virtual/kernel"
> +IMAGE_DEPENDS_linux.sb = "elftosb-native:do_populate_sysroot \
> +                          imx-bootlets:do_deploy \
> +                          virtual/kernel:do_deploy"
>  IMAGE_LINK_NAME_linux.sb = ""
>  IMAGE_CMD_linux.sb () {
>  	kernel_bin="`readlink ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-
> ${MACHINE}.bin`"
> @@ -37,7 +39,10 @@ IMAGE_CMD_linux.sb () {  }
> 
>  # IMX Bootlets barebox bootstream
> -IMAGE_DEPENDS_barebox.mxsboot-sdcard = "elftosb-native u-boot-mxsboot-
> native imx-bootlets barebox"
> +IMAGE_DEPENDS_barebox.mxsboot-sdcard = "elftosb-native:do_populate_sysroot
> \
> +                                        u-boot-mxsboot-
> native:do_populate_sysroot \
> +                                        imx-bootlets:do_deploy \
> +                                        barebox:do_deploy"
>  IMAGE_CMD_barebox.mxsboot-sdcard () {
>  	barebox_bd_file=imx-bootlets-barebox_ivt.bd-${MACHINE}
> 
> @@ -49,7 +54,8 @@ IMAGE_CMD_barebox.mxsboot-sdcard () {
> 
>  # U-Boot mxsboot generation to SD-Card
>  UBOOT_SUFFIX_SDCARD_mxs ?= "mxsboot-sdcard"
> -IMAGE_DEPENDS_uboot.mxsboot-sdcard = "u-boot-mxsboot-native u-boot"
> +IMAGE_DEPENDS_uboot.mxsboot-sdcard = "u-boot-mxsboot-
> native:do_populate_sysroot \
> +                                      u-boot:do_deploy"
>  IMAGE_CMD_uboot.mxsboot-sdcard = "mxsboot sd ${DEPLOY_DIR_IMAGE}/u-boot-
> ${MACHINE}.${UBOOT_SUFFIX} \
> 
> ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.uboot.mxsboot-sdcard"
> 
> @@ -65,8 +71,10 @@ BAREBOX_ENV_SPACE ?= "512"
>  # Set alignment to 4MB [in KiB]
>  IMAGE_ROOTFS_ALIGNMENT = "4096"
> 
> -IMAGE_DEPENDS_sdcard = "parted-native dosfstools-native mtools-native \
> -                        virtual/kernel ${IMAGE_BOOTLOADER}"
> +IMAGE_DEPENDS_sdcard = "parted-native:do_populate_sysroot \
> +                        dosfstools-native:do_populate_sysroot \
> +                        mtools-native:do_populate_sysroot \
> +                        virtual/kernel:do_deploy
> ${IMAGE_BOOTLOADER}:do_deploy"
> 
>  SDCARD = "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.sdcard"
> 
> --
> 1.9.0
> 
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
> 



More information about the meta-freescale mailing list