<div dir="ltr">OK, will send a V3 dropping it.<div><br></div><div>//Ming Liu</div></div><br><div class="gmail_quote"><div dir="ltr">Max Krummenacher <<a href="mailto:max.krummenacher@toradex.com">max.krummenacher@toradex.com</a>> æ–¼ 2018å¹´11月20æ—¥ é€±äºŒ ä¸‹åˆ2:04寫道:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ming,<br>
<br>
One more nitpick that I didn't spot in v1 of the patch, sorry.<br>
<br>
PV has now a leading v, "v2016.11..." for both U-Boot and U-Boot-FW-Utils.<br>
That is a change to how it was before and how our non NXP boards get<br>
their U-Boot version. Could we drop the 'v'?<br>
<br>
Otherwise:<br>
Acked-by: Max Krummenacher <<a href="mailto:max.krummenacher@toradex.com" target="_blank">max.krummenacher@toradex.com</a>><br>
<br>
Thank you for the work.<br>
<br>
Regards<br>
Max<br>
<br>
On Mon, 2018-11-19 at 22:25 +0100, <a href="mailto:liu.ming50@gmail.com" target="_blank">liu.ming50@gmail.com</a> wrote:<br>
> From: Ming Liu <<a href="mailto:liu.ming50@gmail.com" target="_blank">liu.ming50@gmail.com</a>><br>
> <br>
> I observed a following build issue:<br>
> > ***<br>
> > *** Can't find default configuration "arch/../configs/colibri_imx7_emmc_defconfig"!<br>
> > ***<br>
> > scripts/kconfig/Makefile:128: recipe for target 'colibri_imx7_emmc_defconfig' failed<br>
> <br>
> it's due to the colibri_imx7_emmc_defconfig does not exist in the<br>
> source, because u-boot-toradex and u-boot-fw-utils are not built from<br>
> same source. so the toradex machine specific uboot configs do not<br>
> present in the default u-boot-fw-utils source.<br>
> <br>
> To fix it, a new u-boot-toradex-fw-utils recipe is added, it uses the<br>
> same source with u-boot-toradex, some common code is split out to<br>
> u-boot-toradex.inc, to be shared by both u-boot-toradex and<br>
> u-boot-toradex-fw-utils.<br>
> <br>
> And we need set PREFERRED_PROVIDER and PREFERRED_RPROVIDER in machine<br>
> configs to u-boot-toradex-fw-utils.<br>
> <br>
> Some files derive from u-boot-toradex-fw-utils recipe of:<br>
> git://<a href="http://git.toradex.com/meta-toradex-nxp.git" rel="noreferrer" target="_blank">git.toradex.com/meta-toradex-nxp.git</a><br>
> <br>
> Signed-off-by: Ming Liu <<a href="mailto:liu.ming50@gmail.com" target="_blank">liu.ming50@gmail.com</a>><br>
> ---<br>
>  conf/machine/apalis-imx6.conf  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  |  3 ++<br>
>  conf/machine/colibri-imx6.conf  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â |  3 ++<br>
>  conf/machine/colibri-imx6ull.conf  Â  Â  Â  Â  Â  Â  Â  Â  |  3 ++<br>
>  conf/machine/colibri-imx7.conf  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â |  2 +<br>
>  conf/machine/colibri-vf.conf  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â |  2 +<br>
>  ...ross-compiling-tools-when-HOSTCC-is-overr.patch | 54 ++++++++++++++++++++++<br>
>  .../colibri-imx6ull/fw_env.config  Â  Â  Â  Â  Â  Â  Â  Â  | 10 ++++<br>
>  .../colibri-imx7/fw_env.config  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â | 10 ++++<br>
>  .../u-boot/u-boot-toradex-fw-utils/fw_env.config  Â | 22 +++++++++<br>
>  .../u-boot-toradex-fw-utils/mx6/fw_env.config  Â  Â  | 17 +++++++<br>
>  .../u-boot-toradex-fw-utils/vf/fw_env.config  Â  Â  Â | 10 ++++<br>
>  .../u-boot/<a href="http://u-boot-toradex-fw-utils_2016.11.bb" rel="noreferrer" target="_blank">u-boot-toradex-fw-utils_2016.11.bb</a>  Â  Â  | 42 +++++++++++++++++<br>
>  recipes-bsp/u-boot/u-boot-toradex.inc  Â  Â  Â  Â  Â  Â  | 21 ---------<br>
>  recipes-bsp/u-boot/<a href="http://u-boot-toradex_2016.11.bb" rel="noreferrer" target="_blank">u-boot-toradex_2016.11.bb</a>  Â  Â  Â | 10 ++--<br>
>  recipes-bsp/u-boot/u-boot-toradex_2016.11.inc  Â  Â  | 20 ++++++++<br>
>  15 files changed, 203 insertions(+), 26 deletions(-)<br>
>  create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch<br>
>  create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.config<br>
>  create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config<br>
>  create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config<br>
>  create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config<br>
>  create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config<br>
>  create mode 100644 recipes-bsp/u-boot/<a href="http://u-boot-toradex-fw-utils_2016.11.bb" rel="noreferrer" target="_blank">u-boot-toradex-fw-utils_2016.11.bb</a><br>
>  delete mode 100644 recipes-bsp/u-boot/u-boot-toradex.inc<br>
>  create mode 100644 recipes-bsp/u-boot/u-boot-toradex_2016.11.inc<br>
> <br>
> diff --git a/conf/machine/apalis-imx6.conf b/conf/machine/apalis-imx6.conf<br>
> index 47a9d87..a9b9af0 100644<br>
> --- a/conf/machine/apalis-imx6.conf<br>
> +++ b/conf/machine/apalis-imx6.conf<br>
> @@ -20,6 +20,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""<br>
>  <br>
>  PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex"<br>
>  PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex"<br>
> +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils"<br>
> +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils"<br>
> +<br>
>  SPL_BINARY = "SPL"<br>
>  # The SPL configures the DDR RAM depending on the module it runs on. Thus there<br>
>  # is no need to distingush between the different module types.<br>
> diff --git a/conf/machine/colibri-imx6.conf b/conf/machine/colibri-imx6.conf<br>
> index d3c2d00..0c6d7cc 100644<br>
> --- a/conf/machine/colibri-imx6.conf<br>
> +++ b/conf/machine/colibri-imx6.conf<br>
> @@ -20,6 +20,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""<br>
>  <br>
>  PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex"<br>
>  PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex"<br>
> +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils"<br>
> +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils"<br>
> +<br>
>  SPL_BINARY = "SPL"<br>
>  UBOOT_CONFIG ??= "spl"<br>
>  UBOOT_CONFIG[spl] = "colibri_imx6_defconfig,,u-boot.img"<br>
> diff --git a/conf/machine/colibri-imx6ull.conf b/conf/machine/colibri-imx6ull.conf<br>
> index 748a12b..a70dd42 100644<br>
> --- a/conf/machine/colibri-imx6ull.conf<br>
> +++ b/conf/machine/colibri-imx6ull.conf<br>
> @@ -17,6 +17,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""<br>
>  <br>
>  PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex"<br>
>  PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex"<br>
> +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils"<br>
> +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils"<br>
> +<br>
>  UBOOT_BINARY = "u-boot-nand.imx"<br>
>  UBOOT_MAKE_TARGET = "u-boot-nand.imx"<br>
>  UBOOT_MACHINE ?= "colibri-imx6ull_defconfig"<br>
> diff --git a/conf/machine/colibri-imx7.conf b/conf/machine/colibri-imx7.conf<br>
> index 51048e4..2ad296b 100644<br>
> --- a/conf/machine/colibri-imx7.conf<br>
> +++ b/conf/machine/colibri-imx7.conf<br>
> @@ -20,6 +20,8 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""<br>
>  <br>
>  PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex"<br>
>  PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex"<br>
> +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils"<br>
> +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils"<br>
>  <br>
>  # U-Boot NAND binary includes 0x400 padding required for NAND boot<br>
>  UBOOT_BINARY = "u-boot-nand.imx"<br>
> diff --git a/conf/machine/colibri-vf.conf b/conf/machine/colibri-vf.conf<br>
> index 2f7a5d8..a03853d 100644<br>
> --- a/conf/machine/colibri-vf.conf<br>
> +++ b/conf/machine/colibri-vf.conf<br>
> @@ -20,6 +20,8 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""<br>
>  <br>
>  PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex"<br>
>  PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex"<br>
> +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils"<br>
> +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils"<br>
>  PREFERRED_PROVIDER_virtual/kernel-module-mcc ?= "kernel-module-mcc-toradex"<br>
>  PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev ?= "kernel-module-mcc-toradex"<br>
>  PREFERRED_VERSION_mqxboot ?= "1.%"<br>
> diff --git a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch<br>
> new file mode 100644<br>
> index 0000000..2c087e8<br>
> --- /dev/null<br>
> +++ b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch<br>
> @@ -0,0 +1,54 @@<br>
> +From 3b0825296aeba69c2cbfd3e179db2e9cbe5e70d7 Mon Sep 17 00:00:00 2001<br>
> +From: Masahiro Yamada <<a href="mailto:yamada.masahiro@socionext.com" target="_blank">yamada.masahiro@socionext.com</a>><br>
> +Date: Mon, 13 Mar 2017 17:43:16 +0900<br>
> +Subject: [PATCH] tools: fix cross-compiling tools when HOSTCC is overridden<br>
> +<br>
> +Upstream-Status: Backport<br>
> +<br>
> +Richard reported U-Boot tools issues in OpenEmbedded/Yocto project.<br>
> +<br>
> +OE needs to be able to change the default compiler. If we pass in<br>
> +HOSTCC through the make command, it overwrites all HOSTCC instances,<br>
> +including ones in tools/Makefile and tools/env/Makefile, which breaks<br>
> +"make cross_tools" and "make env", respectively.<br>
> +<br>
> +Add "override" directives to avoid overriding HOSTCC instances that<br>
> +really need to point to the cross-compiler.<br>
> +<br>
> +Signed-off-by: Masahiro Yamada <<a href="mailto:yamada.masahiro@socionext.com" target="_blank">yamada.masahiro@socionext.com</a>><br>
> +Reported-by: Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>><br>
> +Reviewed-by: Simon Glass <<a href="mailto:sjg@chromium.org" target="_blank">sjg@chromium.org</a>><br>
> +---<br>
> + tools/Makefile  Â  Â | 2 +-<br>
> + tools/env/Makefile | 2 +-<br>
> + 2 files changed, 2 insertions(+), 2 deletions(-)<br>
> +<br>
> +diff --git a/tools/Makefile b/tools/Makefile<br>
> +index 1c840d7..a894b5c 100644<br>
> +--- a/tools/Makefile<br>
> ++++ b/tools/Makefile<br>
> +@@ -262,7 +262,7 @@ $(LOGO_DATA_H):  $(obj)/bmp_logo $(LOGO_BMP)<br>
> + subdir- += env<br>
> + <br>
> + ifneq ($(CROSS_BUILD_TOOLS),)<br>
> +-HOSTCC = $(CC)<br>
> ++override HOSTCC = $(CC)<br>
> + <br>
> + quiet_cmd_crosstools_strip = STRIP  Â $^<br>
> +  Â  Â  Â cmd_crosstools_strip = $(STRIP) $^; touch $@<br>
> +diff --git a/tools/env/Makefile b/tools/env/Makefile<br>
> +index 38ad118..95b28c0 100644<br>
> +--- a/tools/env/Makefile<br>
> ++++ b/tools/env/Makefile<br>
> +@@ -8,7 +8,7 @@<br>
> + # fw_printenv is supposed to run on the target system, which means it should be<br>
> + # built with cross tools. Although it may look weird, we only replace "HOSTCC"<br>
> + # with "CC" here for the maximum code reuse of scripts/Makefile.host.<br>
> +-HOSTCC = $(CC)<br>
> ++override HOSTCC = $(CC)<br>
> + <br>
> + # Compile for a hosted environment on the target<br>
> + HOST_EXTRACFLAGS  = $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \<br>
> +-- <br>
> +2.7.4<br>
> +<br>
> diff --git a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.config b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.config<br>
> new file mode 100644<br>
> index 0000000..930bcee<br>
> --- /dev/null<br>
> +++ b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.config<br>
> @@ -0,0 +1,10 @@<br>
> +# Configuration file for fw_(printenv/setenv) utility.<br>
> +# Up to two entries are valid, in this case the redundant<br>
> +# environment sector is assumed present.<br>
> +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.<br>
> +# Futhermore, if the Flash sector size is ommitted, this value is assumed to<br>
> +# be the same as the Environment size, which is valid for NOR and SPI-dataflash<br>
> +<br>
> +# MTD device name  Â  Device offset  Â Env. size  Â  Â  Â Flash sector size  Â  Â  Â Number of sectors<br>
> +# Colibri iMX6ULL<br>
> +/dev/mtd3  Â  Â  Â  Â  Â  0x00000000  Â  Â  0x00020000  Â  Â  0x20000  Â  Â  Â  Â  Â  Â  Â  Â 4<br>
> diff --git a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config<br>
> new file mode 100644<br>
> index 0000000..b59116d<br>
> --- /dev/null<br>
> +++ b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config<br>
> @@ -0,0 +1,10 @@<br>
> +# Configuration file for fw_(printenv/setenv) utility.<br>
> +# Up to two entries are valid, in this case the redundant<br>
> +# environment sector is assumed present.<br>
> +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.<br>
> +# Futhermore, if the Flash sector size is ommitted, this value is assumed to<br>
> +# be the same as the Environment size, which is valid for NOR and SPI-dataflash<br>
> +<br>
> +# MTD device name  Â  Device offset  Â Env. size  Â  Â  Â Flash sector size  Â  Â  Â Number of sectors<br>
> +# Colibri iMX7<br>
> +/dev/mtd3  Â  Â  Â  Â  Â  0x00000000  Â  Â  0x00020000  Â  Â  0x20000  Â  Â  Â  Â  Â  Â  Â  Â 4<br>
> diff --git a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config<br>
> new file mode 100644<br>
> index 0000000..e054ccb<br>
> --- /dev/null<br>
> +++ b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config<br>
> @@ -0,0 +1,22 @@<br>
> +# Configuration file for fw_(printenv/setenv) utility.<br>
> +# Up to two entries are valid, in this case the redundant<br>
> +# environment sector is assumed present.<br>
> +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.<br>
> +# Futhermore, if the Flash sector size is ommitted, this value is assumed to<br>
> +# be the same as the Environment size, which is valid for NOR and SPI-dataflash<br>
> +<br>
> +# NOR example<br>
> +# MTD device name  Â  Device offset  Â Env. size  Â  Â  Â Flash sector size  Â  Â  Â Number of sectors<br>
> +#/dev/mtd1  Â  Â  Â  Â  Â 0x0000  Â  Â  Â  Â  0x4000  Â  Â  Â  Â  0x4000<br>
> +#/dev/mtd2  Â  Â  Â  Â  Â 0x0000  Â  Â  Â  Â  0x4000  Â  Â  Â  Â  0x4000<br>
> +<br>
> +# MTD SPI-dataflash example<br>
> +# MTD device name  Â  Device offset  Â Env. size  Â  Â  Â Flash sector size  Â  Â  Â Number of sectors<br>
> +#/dev/mtd5  Â  Â  Â  Â  Â 0x4200  Â  Â  Â  Â  0x4200<br>
> +#/dev/mtd6  Â  Â  Â  Â  Â 0x4200  Â  Â  Â  Â  0x4200<br>
> +<br>
> +# NAND example<br>
> +#/dev/mtd0  Â  Â  Â  Â  Â 0x4000  Â  Â  Â  Â  0x4000  Â  Â  Â  Â  0x20000  Â  Â  Â  Â  Â  Â  Â  Â 2<br>
> +<br>
> +# Block device example<br>
> +#/dev/mmcblk0  Â  Â  Â  Â  Â  Â  Â  0xc0000  Â  Â  Â  Â 0x20000<br>
> diff --git a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config<br>
> new file mode 100644<br>
> index 0000000..a9e724e<br>
> --- /dev/null<br>
> +++ b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config<br>
> @@ -0,0 +1,17 @@<br>
> +# Configuration file for fw_(printenv/setenv) utility.<br>
> +# Up to two entries are valid, in this case the redundant<br>
> +# environment sector is assumed present.<br>
> +# Device offset must be prefixed with 0x to be parsed as a hexadecimal value.<br>
> +# On a block device a negative offset is treated as a backwards offset from the<br>
> +# end of the device/partition, rather than a forwards offset from the start.<br>
> +<br>
> +# Colibri iMX6/Apalis iMX6<br>
> +# U-Boot environment is stored at the end of the first eMMC boot partition<br>
> +# hence use a negative value. The environment is just in front of the config<br>
> +# block which occupies the last sector (hence -0x200)<br>
> +# Note that /dev/mmcblk0boot0 by default is read only<br>
> +# To use fw_setenv you have to first make it writeable, on the cmdline e.g. by<br>
> +# $ echo 0 > /sys/block/mmcblk0boot0/force_ro<br>
> +<br>
> +# Block device name  Device offset  Â Env. size<br>
> +/dev/mmcblk0boot0  Â  -0x2200  Â  Â  Â  Â 0x2000<br>
> diff --git a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config<br>
> new file mode 100644<br>
> index 0000000..51f09d1<br>
> --- /dev/null<br>
> +++ b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config<br>
> @@ -0,0 +1,10 @@<br>
> +# Configuration file for fw_(printenv/setenv) utility.<br>
> +# Up to two entries are valid, in this case the redundant<br>
> +# environment sector is assumed present.<br>
> +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.<br>
> +# Futhermore, if the Flash sector size is ommitted, this value is assumed to<br>
> +# be the same as the Environment size, which is valid for NOR and SPI-dataflash<br>
> +<br>
> +# MTD device name  Â  Device offset  Â Env. size  Â  Â  Â Flash sector size  Â  Â  Â Number of sectors<br>
> +# Colibri VF61<br>
> +/dev/mtd2  Â  Â  Â  Â  Â  0x00000000  Â  Â  0x00020000  Â  Â  0x20000  Â  Â  Â  Â  Â  Â  Â  Â 4<br>
> diff --git a/recipes-bsp/u-boot/<a href="http://u-boot-toradex-fw-utils_2016.11.bb" rel="noreferrer" target="_blank">u-boot-toradex-fw-utils_2016.11.bb</a> b/recipes-bsp/u-boot/<a href="http://u-boot-toradex-fw-utils_2016.11.bb" rel="noreferrer" target="_blank">u-boot-toradex-fw-utils_2016.11.bb</a><br>
> new file mode 100644<br>
> index 0000000..727c0a8<br>
> --- /dev/null<br>
> +++ b/recipes-bsp/u-boot/<a href="http://u-boot-toradex-fw-utils_2016.11.bb" rel="noreferrer" target="_blank">u-boot-toradex-fw-utils_2016.11.bb</a><br>
> @@ -0,0 +1,42 @@<br>
> +require recipes-bsp/u-boot/u-boot-toradex_${PV}.inc<br>
> +<br>
> +SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"<br>
> +<br>
> +SRC_URI += "file://0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch \<br>
> +  Â  Â  Â  Â  Â  file://fw_env.config \<br>
> +"<br>
> +<br>
> +DEPENDS += "mtd-utils"<br>
> +<br>
> +INSANE_SKIP_${PN} = "already-stripped"<br>
> +EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'<br>
> +EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'<br>
> +<br>
> +inherit uboot-config<br>
> +<br>
> +do_compile () {<br>
> +  Â  oe_runmake ${UBOOT_MACHINE}<br>
> +  Â  oe_runmake env<br>
> +}<br>
> +<br>
> +do_install () {<br>
> +  Â  install -d ${D}${base_sbindir}<br>
> +  Â  install -d ${D}${sysconfdir}<br>
> +  Â  install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv<br>
> +  Â  install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv<br>
> +  Â  install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config<br>
> +}<br>
> +<br>
> +do_install_class-cross () {<br>
> +  Â  install -d ${D}${bindir_cross}<br>
> +  Â  install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv<br>
> +  Â  install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv<br>
> +}<br>
> +<br>
> +SYSROOT_DIRS_append_class-cross = " ${bindir_cross}"<br>
> +<br>
> +PROVIDES += "u-boot-fw-utils"<br>
> +RPROVIDES_${PN} += "u-boot-fw-utils"<br>
> +<br>
> +PACKAGE_ARCH = "${MACHINE_ARCH}"<br>
> +BBCLASSEXTEND = "cross"<br>
> diff --git a/recipes-bsp/u-boot/u-boot-toradex.inc b/recipes-bsp/u-boot/u-boot-toradex.inc<br>
> deleted file mode 100644<br>
> index 67e9976..0000000<br>
> --- a/recipes-bsp/u-boot/u-boot-toradex.inc<br>
> +++ /dev/null<br>
> @@ -1,21 +0,0 @@<br>
> -# Copyright (C) 2015 Toradex AG<br>
> -# Based on u-boot-fslc.inc Copyright (C) 2012-2014 O.S. Systems Software LTDA<br>
> -# Released under the MIT license (see COPYING.MIT for the terms)<br>
> -<br>
> -require recipes-bsp/u-boot/u-boot.inc<br>
> -<br>
> -inherit fsl-u-boot-localversion<br>
> -<br>
> -SUMMARY = "U-Boot bootloader with support for Toradex Computer on Modules"<br>
> -LICENSE = "GPLv2+"<br>
> -LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"<br>
> -<br>
> -PROVIDES += "u-boot"<br>
> -<br>
> -SRC_URI = "git://<a href="http://git.toradex.com/u-boot-toradex.git;branch=$%7BSRCBRANCH%7D" rel="noreferrer" target="_blank">git.toradex.com/u-boot-toradex.git;branch=${SRCBRANCH}</a>"<br>
> -<br>
> -S = "${WORKDIR}/git"<br>
> -<br>
> -inherit dtc-145<br>
> -<br>
> -PACKAGE_ARCH = "${MACHINE_ARCH}"<br>
> diff --git a/recipes-bsp/u-boot/<a href="http://u-boot-toradex_2016.11.bb" rel="noreferrer" target="_blank">u-boot-toradex_2016.11.bb</a> b/recipes-bsp/u-boot/<a href="http://u-boot-toradex_2016.11.bb" rel="noreferrer" target="_blank">u-boot-toradex_2016.11.bb</a><br>
> index f54eeaa..e409131 100644<br>
> --- a/recipes-bsp/u-boot/<a href="http://u-boot-toradex_2016.11.bb" rel="noreferrer" target="_blank">u-boot-toradex_2016.11.bb</a><br>
> +++ b/recipes-bsp/u-boot/<a href="http://u-boot-toradex_2016.11.bb" rel="noreferrer" target="_blank">u-boot-toradex_2016.11.bb</a><br>
> @@ -1,8 +1,8 @@<br>
> -require recipes-bsp/u-boot/u-boot-toradex.inc<br>
> +require recipes-bsp/u-boot/u-boot.inc<br>
> +require recipes-bsp/u-boot/u-boot-toradex_${PV}.inc<br>
>  <br>
>  LOCALVERSION = "-2.8.3"<br>
> -PV_append = "+git${SRCPV}"<br>
>  <br>
> -SRCREV = "aca804c9ddadbf34a8ff82779e5598ec5e319f23"<br>
> -SRCBRANCH = "2016.11-toradex"<br>
> -COMPATIBLE_MACHINE = "(mx6|mx7|vf|use-mainline-bsp)"<br>
> +PROVIDES += "u-boot"<br>
> +<br>
> +inherit fsl-u-boot-localversion dtc-145<br>
> diff --git a/recipes-bsp/u-boot/u-boot-toradex_2016.11.inc b/recipes-bsp/u-boot/u-boot-toradex_2016.11.inc<br>
> new file mode 100644<br>
> index 0000000..166c1b5<br>
> --- /dev/null<br>
> +++ b/recipes-bsp/u-boot/u-boot-toradex_2016.11.inc<br>
> @@ -0,0 +1,20 @@<br>
> +# Copyright (C) 2015 Toradex AG<br>
> +# Based on u-boot-fslc.inc Copyright (C) 2012-2014 O.S. Systems Software LTDA<br>
> +# Released under the MIT license (see COPYING.MIT for the terms)<br>
> +<br>
> +SUMMARY = "U-Boot bootloader with support for Toradex Computer on Modules"<br>
> +LICENSE = "GPLv2+"<br>
> +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"<br>
> +<br>
> +SRC_URI = "git://<a href="http://git.toradex.com/u-boot-toradex.git;branch=$%7BSRCBRANCH%7D" rel="noreferrer" target="_blank">git.toradex.com/u-boot-toradex.git;branch=${SRCBRANCH}</a>"<br>
> +<br>
> +SRCREV ?= "aca804c9ddadbf34a8ff82779e5598ec5e319f23"<br>
> +SRCBRANCH ?= "2016.11-toradex"<br>
> +<br>
> +S = "${WORKDIR}/git"<br>
> +<br>
> +PV = "v2016.11+git${SRCPV}"<br>
> +<br>
> +PACKAGE_ARCH = "${MACHINE_ARCH}"<br>
> +<br>
> +COMPATIBLE_MACHINE = "(mx6|mx7|vf|use-mainline-bsp)"</blockquote></div>