u-boot-toradex-fw-utils: add new recipe
PATCH v3 1/1 u-boot-toradex-fw-utils: add new recipe
From: Ming Liu <[email protected]>
I observed a following build issue:
| *** | *** Can't find default configuration "arch/../configs/colibri_imx7_emmc_defconfig"! | *** | scripts/kconfig/Makefile:128: recipe for target 'colibri_imx7_emmc_defconfig' failed
it's due to the colibri_imx7_emmc_defconfig does not exist in the source, because u-boot-toradex and u-boot-fw-utils are not built from same source. so the toradex machine specific uboot configs do not present in the default u-boot-fw-utils source.
To fix it, a new u-boot-toradex-fw-utils recipe is added, it uses the same source with u-boot-toradex, some common code is split out to u-boot-toradex.inc, to be shared by both u-boot-toradex and u-boot-toradex-fw-utils.
And we need set PREFERRED_PROVIDER and PREFERRED_RPROVIDER in machine configs to u-boot-toradex-fw-utils.
Some files derive from u-boot-toradex-fw-utils recipe of:git://git.toradex.com/meta-toradex-nxp.git
--- conf/machine/apalis-imx6.conf | 3 ++ conf/machine/colibri-imx6.conf | 3 ++ conf/machine/colibri-imx6ull.conf | 3 ++ conf/machine/colibri-imx7.conf | 2 + conf/machine/colibri-vf.conf | 2 + ...ross-compiling-tools-when-HOSTCC-is-overr.patch | 54 ++++++++++++++++++++++ .../colibri-imx6ull/fw_env.config | 10 ++++ .../colibri-imx7/fw_env.config | 10 ++++ .../u-boot/u-boot-toradex-fw-utils/fw_env.config | 22 +++++++++ .../u-boot-toradex-fw-utils/mx6/fw_env.config | 17 +++++++ .../u-boot-toradex-fw-utils/vf/fw_env.config | 10 ++++ .../u-boot/u-boot-toradex-fw-utils_2016.11.bb | 42 +++++++++++++++++ recipes-bsp/u-boot/u-boot-toradex.inc | 21 --------- recipes-bsp/u-boot/u-boot-toradex_2016.11.bb | 10 ++-- recipes-bsp/u-boot/u-boot-toradex_2016.11.inc | 20 ++++++++ 15 files changed, 203 insertions(+), 26 deletions(-) create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb delete mode 100644 recipes-bsp/u-boot/u-boot-toradex.inc create mode 100644 recipes-bsp/u-boot/u-boot-toradex_2016.11.inc
conf/machine/apalis-imx6.conf +3 -0
@@ -20,6 +20,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + SPL_BINARY = "SPL" # The SPL configures the DDR RAM depending on the module it runs on. Thus there # is no need to distingush between the different module types.
conf/machine/colibri-imx6.conf +3 -0
@@ -20,6 +20,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + SPL_BINARY = "SPL" UBOOT_CONFIG ??= "spl" UBOOT_CONFIG[spl] = "colibri_imx6_defconfig,,u-boot.img"
conf/machine/colibri-imx6ull.conf +3 -0
@@ -17,6 +17,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + UBOOT_BINARY = "u-boot-nand.imx" UBOOT_MAKE_TARGET = "u-boot-nand.imx" UBOOT_MACHINE ?= "colibri-imx6ull_defconfig"
conf/machine/colibri-imx7.conf +2 -0
@@ -20,6 +20,8 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" # U-Boot NAND binary includes 0x400 padding required for NAND boot UBOOT_BINARY = "u-boot-nand.imx"
conf/machine/colibri-vf.conf +2 -0
@@ -20,6 +20,8 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" PREFERRED_PROVIDER_virtual/kernel-module-mcc ?= "kernel-module-mcc-toradex" PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev ?= "kernel-module-mcc-toradex" PREFERRED_VERSION_mqxboot ?= "1.%"
recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch new file +54 -0
54 lines not on this page · raw message
recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.config new file +10 -0
@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. +# Futhermore, if the Flash sector size is ommitted, this value is assumed to +# be the same as the Environment size, which is valid for NOR and SPI-dataflash + +# MTD device name Device offset Env. size Flash sector size Number of sectors +# Colibri iMX6ULL +/dev/mtd3 0x00000000 0x00020000 0x20000 4
recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config new file +10 -0
@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. +# Futhermore, if the Flash sector size is ommitted, this value is assumed to +# be the same as the Environment size, which is valid for NOR and SPI-dataflash + +# MTD device name Device offset Env. size Flash sector size Number of sectors +# Colibri iMX7 +/dev/mtd3 0x00000000 0x00020000 0x20000 4
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +22 -0
@@ -0,0 +1,22 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. +# Futhermore, if the Flash sector size is ommitted, this value is assumed to +# be the same as the Environment size, which is valid for NOR and SPI-dataflash + +# NOR example +# MTD device name Device offset Env. size Flash sector size Number of sectors +#/dev/mtd1 0x0000 0x4000 0x4000 +#/dev/mtd2 0x0000 0x4000 0x4000 + +# MTD SPI-dataflash example +# MTD device name Device offset Env. size Flash sector size Number of sectors +#/dev/mtd5 0x4200 0x4200 +#/dev/mtd6 0x4200 0x4200 + +# NAND example +#/dev/mtd0 0x4000 0x4000 0x20000 2 + +# Block device example +#/dev/mmcblk0 0xc0000 0x20000
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +17 -0
@@ -0,0 +1,17 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Device offset must be prefixed with 0x to be parsed as a hexadecimal value. +# On a block device a negative offset is treated as a backwards offset from the +# end of the device/partition, rather than a forwards offset from the start. + +# Colibri iMX6/Apalis iMX6 +# U-Boot environment is stored at the end of the first eMMC boot partition +# hence use a negative value. The environment is just in front of the config +# block which occupies the last sector (hence -0x200) +# Note that /dev/mmcblk0boot0 by default is read only +# To use fw_setenv you have to first make it writeable, on the cmdline e.g. by +# $ echo 0 > /sys/block/mmcblk0boot0/force_ro + +# Block device name Device offset Env. size +/dev/mmcblk0boot0 -0x2200 0x2000
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config new file +10 -0
@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. +# Futhermore, if the Flash sector size is ommitted, this value is assumed to +# be the same as the Environment size, which is valid for NOR and SPI-dataflash + +# MTD device name Device offset Env. size Flash sector size Number of sectors +# Colibri VF61 +/dev/mtd2 0x00000000 0x00020000 0x20000 4
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +42 -0
42 lines not on this page · raw message
recipes-bsp/u-boot/u-boot-toradex.inc deleted +0 -21
@@ -1,21 +0,0 @@ -# Copyright (C) 2015 Toradex AG -# Based on u-boot-fslc.inc Copyright (C) 2012-2014 O.S. Systems Software LTDA -# Released under the MIT license (see COPYING.MIT for the terms) - -require recipes-bsp/u-boot/u-boot.inc - -inherit fsl-u-boot-localversion - -SUMMARY = "U-Boot bootloader with support for Toradex Computer on Modules" -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" - -PROVIDES += "u-boot" - -SRC_URI = "git://git.toradex.com/u-boot-toradex.git;branch=${SRCBRANCH}" - -S = "${WORKDIR}/git" - -inherit dtc-145 - -PACKAGE_ARCH = "${MACHINE_ARCH}"
recipes-bsp/u-boot/u-boot-toradex_2016.11.bb +5 -5
@@ -1,8 +1,8 @@ -require recipes-bsp/u-boot/u-boot-toradex.inc +require recipes-bsp/u-boot/u-boot.inc +require recipes-bsp/u-boot/u-boot-toradex_${PV}.inc LOCALVERSION = "-2.8.3" -PV_append = "+git${SRCPV}" -SRCREV = "aca804c9ddadbf34a8ff82779e5598ec5e319f23" -SRCBRANCH = "2016.11-toradex" -COMPATIBLE_MACHINE = "(mx6|mx7|vf|use-mainline-bsp)" +PROVIDES += "u-boot" + +inherit fsl-u-boot-localversion dtc-145
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +20 -0
@@ -0,0 +1,20 @@ +# Copyright (C) 2015 Toradex AG +# Based on u-boot-fslc.inc Copyright (C) 2012-2014 O.S. Systems Software LTDA +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "U-Boot bootloader with support for Toradex Computer on Modules" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" + +SRC_URI = "git://git.toradex.com/u-boot-toradex.git;branch=${SRCBRANCH}" + +SRCREV ?= "aca804c9ddadbf34a8ff82779e5598ec5e319f23" +SRCBRANCH ?= "2016.11-toradex" + +S = "${WORKDIR}/git" + +PV = "2016.11+git${SRCPV}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +COMPATIBLE_MACHINE = "(mx6|mx7|vf|use-mainline-bsp)"
Signature · 1 line
2.7.4
Changes in V3:
1 Dropped 'v' from PV.
some test results:
with this change, the end users might encounter a QA issue as follows:
``` ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-dbg went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-staticdev went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-dev went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-doc went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-locale went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-dbg went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-staticdev went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-dev went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-doc went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-locale went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ```
this is caused by the "vxxxx" is treated as a lager number than "2xxxx".
the best,
thank you
<[email protected]> 於 2018年11月20日 週二 下午2:36寫道:
Quoted 477 lines
From: Ming Liu <[email protected]>
I observed a following build issue:
| ***
| *** Can't find default configuration
"arch/../configs/colibri_imx7_emmc_defconfig"!
| ***
|scripts/kconfig/Makefile:128: recipe for target
'colibri_imx7_emmc_defconfig' failedit's due to the
colibri_imx7_emmc_defconfigdoes not exist in the source, because u-boot-toradex and u-boot-fw-utils are not built from same source. so the toradex machine specific uboot configs do not present in the default u-boot-fw-utils source.To fix it, a new u-boot-toradex-fw-utils recipe is added, it uses the same source with u-boot-toradex, some common code is split out to u-boot-toradex.inc, to be shared by both u-boot-toradex and u-boot-toradex-fw-utils.
And we need set
PREFERRED_PROVIDERandPREFERRED_RPROVIDERin machine configs to u-boot-toradex-fw-utils.Some files derive from u-boot-toradex-fw-utils recipe of:
git://git.toradex.com/meta-toradex-nxp.gitSigned-off-by Ming Liu <[email protected]>--- conf/machine/apalis-imx6.conf | 3 ++ conf/machine/colibri-imx6.conf | 3 ++ conf/machine/colibri-imx6ull.conf | 3 ++ conf/machine/colibri-imx7.conf | 2 + conf/machine/colibri-vf.conf | 2 + ...ross-compiling-tools-when-HOSTCC-is-overr.patch | 54 ++++++++++++++++++++++ .../colibri-imx6ull/fw_env.config | 10 ++++ .../colibri-imx7/fw_env.config | 10 ++++ .../u-boot/u-boot-toradex-fw-utils/fw_env.config | 22 +++++++++ .../u-boot-toradex-fw-utils/mx6/fw_env.config | 17 +++++++ .../u-boot-toradex-fw-utils/vf/fw_env.config | 10 ++++ .../u-boot/u-boot-toradex-fw-utils_2016.11.bb | 42 +++++++++++++++++ recipes-bsp/u-boot/u-boot-toradex.inc | 21 --------- recipes-bsp/u-boot/u-boot-toradex_2016.11.bb | 10 ++-- recipes-bsp/u-boot/u-boot-toradex_2016.11.inc | 20 ++++++++ 15 files changed, 203 insertions(+), 26 deletions(-) create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb delete mode 100644 recipes-bsp/u-boot/u-boot-toradex.inc create mode 100644 recipes-bsp/u-boot/u-boot-toradex_2016.11.incconf/machine/apalis-imx6.conf +3
-0@@ -20,6 +20,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + SPL_BINARY = "SPL" # The SPL configures the DDR RAM depending on the module it runs on. Thusthere
# is no need to distingush between the different module types.conf/machine/colibri-imx6.conf +3
-0@@ -20,6 +20,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + SPL_BINARY = "SPL" UBOOT_CONFIG ??= "spl" UBOOT_CONFIG[spl] = "colibri_imx6_defconfig,,u-boot.img"conf/machine/colibri-imx6ull.conf +3
-0@@ -17,6 +17,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + UBOOT_BINARY = "u-boot-nand.imx" UBOOT_MAKE_TARGET = "u-boot-nand.imx" UBOOT_MACHINE ?= "colibri-imx6ull_defconfig"conf/machine/colibri-imx7.conf +2
-0@@ -20,6 +20,8 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" # U-Boot NAND binary includes 0x400 padding required for NAND boot UBOOT_BINARY = "u-boot-nand.imx"conf/machine/colibri-vf.conf +2
-0@@ -20,6 +20,8 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" PREFERRED_PROVIDER_virtual/kernel-module-mcc ?="kernel-module-mcc-toradex"
PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev ?=
"kernel-module-mcc-toradex"
PREFERRED_VERSION_mqxboot?= "1.%"
diff --gita/recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patchb/recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patchnew file mode 100644
index 0000000..2c087e8
---/dev/null
+++b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patchconf/machine/colibri-vf.conf +4
-0@@ -0,0 +1,54 @@ +From 3b0825296aeba69c2cbfd3e179db2e9cbe5e70d7 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Mon, 13 Mar 2017 17:43:16 +0900 +Subject: [PATCH] tools: fix cross-compiling tools when HOSTCC isoverridden
conf/machine/colibri-vf.conf +40
-0+ +Upstream-Status: Backport + +Richard reported U-Boot tools issues in OpenEmbedded/Yocto project. + +OE needs to be able to change the default compiler. If we pass in +HOSTCC through the make command, it overwrites all HOSTCC instances, +including ones in tools/Makefile and tools/env/Makefile, which breaks +"make cross_tools" and "make env", respectively. + +Add "override" directives to avoid overriding HOSTCC instances that +really need to point to the cross-compiler. + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Richard Purdie <[email protected]> +Reviewed-by: Simon Glass <[email protected]> +--- + tools/Makefile | 2 +- + tools/env/Makefile | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tools/Makefile b/tools/Makefile +index 1c840d7..a894b5c 100644 +--- a/tools/Makefile ++++ b/tools/Makefile +@@ -262,7 +262,7 @@ $(LOGO_DATA_H): $(obj)/bmp_logo $(LOGO_BMP) + subdir- += env + + ifneq ($(CROSS_BUILD_TOOLS),) +-HOSTCC = $(CC) ++override HOSTCC = $(CC) + + quiet_cmd_crosstools_strip = STRIP $^ + cmd_crosstools_strip = $(STRIP) $^; touch $@ +diff --git a/tools/env/Makefile b/tools/env/Makefile +index 38ad118..95b28c0 100644 +--- a/tools/env/Makefile ++++ b/tools/env/Makefile +@@ -8,7 +8,7 @@ + # fw_printenv is supposed to run on the target system, which means itshould be
+ # built with cross tools. Although it may look weird, we only replace "HOSTCC"
+ # with "CC" here for the maximum code reuse ofscripts/Makefile.host. +-HOSTCC = $(CC)
++override HOSTCC = $(CC)
+
+ # Compile for a hosted environment on the target
+HOST_EXTRACFLAGS= $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \
+--
+2.7.4
+
diff --gita/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.configb/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.confignew file mode 100644
index 0000000..930bcee
---/dev/null
+++b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.configconf/machine/colibri-vf.conf +4
-0@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR andSPI-dataflash.
+# Futhermore, if the Flash sector size is ommitted, this value is assumed to
+# be the same as the Environment size, which is valid for NOR and SPI-dataflashconf/machine/colibri-vf.conf +4
-0+ +# MTD device name Device offset Env. size Flash sector size Number of sectors +# Colibri iMX6ULL +/dev/mtd3 0x00000000 0x00020000 0x20000 4diff --git
a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.configb/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.confignew file mode 100644
index 0000000..b59116drecipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config new file +4
-0@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR andSPI-dataflash.
+# Futhermore, if the Flash sector size is ommitted, this value is assumed to
+# be the same as the Environment size, which is valid for NOR and SPI-dataflashrecipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config new file +4
-0+ +# MTD device name Device offset Env. size Flash sector size Number of sectors +# Colibri iMX7 +/dev/mtd3 0x00000000 0x00020000 0x20000 4recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +4
-0@@ -0,0 +1,22 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR andSPI-dataflash.
+# Futhermore, if the Flash sector size is ommitted, this value is assumed to
+# be the same as the Environment size, which is valid for NOR and SPI-dataflashrecipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +16
-0+ +# NOR example +# MTD device name Device offset Env. size Flash sector size Number of sectors +#/dev/mtd1 0x0000 0x4000 0x4000 +#/dev/mtd2 0x0000 0x4000 0x4000 + +# MTD SPI-dataflash example +# MTD device name Device offset Env. size Flash sector size Number of sectors +#/dev/mtd5 0x4200 0x4200 +#/dev/mtd6 0x4200 0x4200 + +# NAND example +#/dev/mtd0 0x4000 0x4000 0x20000 2 + +# Block device example +#/dev/mmcblk0 0xc0000 0x20000recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +4
-0@@ -0,0 +1,17 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Device offset must be prefixed with 0x to be parsed as a hexadecimalvalue.
+# On a block device a negative offset is treated as a backwards offset from the
+# end of the device/partition, rather than a forwards offset from the start.recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +4
-0+ +# Colibri iMX6/Apalis iMX6 +# U-Boot environment is stored at the end of the first eMMC boot partition +# hence use a negative value. The environment is just in front of theconfig
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +3
-0+# block which occupies the last sector (hence -0x200) +# Note that /dev/mmcblk0boot0 by default is read only +# To use fw_setenv you have to first make it writeable, on the cmdlinee.g. by
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +4
-0+# $ echo 0 > /sys/block/mmcblk0boot0/force_ro + +# Block device name Device offset Env. size +/dev/mmcblk0boot0 -0x2200 0x2000recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config new file +4
-0@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR andSPI-dataflash.
+# Futhermore, if the Flash sector size is ommitted, this value is assumed to
+# be the same as the Environment size, which is valid for NOR and SPI-dataflashrecipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config new file +4
-0+ +# MTD device name Device offset Env. size Flash sector size Number of sectors +# Colibri VF61 +/dev/mtd2 0x00000000 0x00020000 0x20000 4recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +5
-0@@ -0,0 +1,42 @@ +require recipes-bsp/u-boot/u-boot-toradex_${PV}.inc + +SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" + +SRC_URI +="file://0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch \
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +7
-0+ file://fw_env.config \ +" + +DEPENDS += "mtd-utils" + +INSANE_SKIP_${PN} = "already-stripped" +EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
+EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +12
-0+ +inherit uboot-config + +do_compile () { + oe_runmake ${UBOOT_MACHINE} + oe_runmake env +} + +do_install () { + install -d ${D}${base_sbindir} + install -d ${D}${sysconfdir} + install -m 755 ${S}/tools/env/fw_printenv${D}${base_sbindir}/fw_printenv
+ install -m 755 ${S}/tools/env/fw_printenv
${D}${base_sbindir}/fw_setenv
+ install -m 0644${WORKDIR}/fw_env.config${D}${sysconfdir}/fw_env.configrecipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +5
-0+} + +do_install_class-cross () { + install -d ${D}${bindir_cross} + install -m 755 ${S}/tools/env/fw_printenv${D}${bindir_cross}/fw_printenv
+ install -m 755 ${S}/tools/env/fw_printenv
${D}${bindir_cross}/fw_setenvrecipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +9
-0+} + +SYSROOT_DIRS_append_class-cross = " ${bindir_cross}" + +PROVIDES += "u-boot-fw-utils" +RPROVIDES_${PN} += "u-boot-fw-utils" + +PACKAGE_ARCH = "${MACHINE_ARCH}" +BBCLASSEXTEND = "cross"recipes-bsp/u-boot/u-boot-toradex.inc deleted +0
-2@@ -1,21 +0,0 @@ -# Copyright (C) 2015 Toradex AG -# Based on u-boot-fslc.inc Copyright (C) 2012-2014 O.S. Systems SoftwareLTDA
recipes-bsp/u-boot/u-boot-toradex.inc deleted +0
-9-# Released under the MIT license (see COPYING.MIT for the terms) - -require recipes-bsp/u-boot/u-boot.inc - -inherit fsl-u-boot-localversion - -SUMMARY = "U-Boot bootloader with support for Toradex Computer on Modules" -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM ="file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
recipes-bsp/u-boot/u-boot-toradex.inc deleted +0
-4- -PROVIDES += "u-boot" - -SRC_URI = "git://git.toradex.com/u-boot-toradex.git;branch=${SRCBRANCH}<http://git.toradex.com/u-boot-toradex.git;branch=$%7BSRCBRANCH%7D>"
recipes-bsp/u-boot/u-boot-toradex.inc deleted +0
-6- -S = "${WORKDIR}/git" - -inherit dtc-145 - -PACKAGE_ARCH = "${MACHINE_ARCH}"recipes-bsp/u-boot/u-boot-toradex_2016.11.bb +5
-5@@ -1,8 +1,8 @@ -require recipes-bsp/u-boot/u-boot-toradex.inc +require recipes-bsp/u-boot/u-boot.inc +require recipes-bsp/u-boot/u-boot-toradex_${PV}.inc LOCALVERSION = "-2.8.3" -PV_append = "+git${SRCPV}" -SRCREV = "aca804c9ddadbf34a8ff82779e5598ec5e319f23" -SRCBRANCH = "2016.11-toradex" -COMPATIBLE_MACHINE = "(mx6|mx7|vf|use-mainline-bsp)" +PROVIDES += "u-boot" + +inherit fsl-u-boot-localversion dtc-145recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +2
-0@@ -0,0 +1,20 @@ +# Copyright (C) 2015 Toradex AG +# Based on u-boot-fslc.inc Copyright (C) 2012-2014 O.S. Systems SoftwareLTDA
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +5
-0+# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "U-Boot bootloader with support for Toradex Computer on Modules" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM ="file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +2
-0+ +SRC_URI = "git://git.toradex.com/u-boot-toradex.git;branch=${SRCBRANCH}<http://git.toradex.com/u-boot-toradex.git;branch=$%7BSRCBRANCH%7D>"
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +11
-1+ +SRCREV ?= "aca804c9ddadbf34a8ff82779e5598ec5e319f23" +SRCBRANCH ?= "2016.11-toradex" + +S = "${WORKDIR}/git" + +PV = "2016.11+git${SRCPV}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +COMPATIBLE_MACHINE = "(mx6|mx7|vf|use-mainline-bsp)" --2.7.4
Hi Ming
Quoted 7 lines · Ming Liu
Changes in V3:
1 Dropped 'v' from PV.
some test results:
with this change, the end users might encounter a QA issue as follows:
Quoted 14 lines
``` ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-dbg went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-staticdev went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-dev went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-doc went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-locale went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-dbg went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-staticdev went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-dev went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-doc went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex-locale went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0 do_packagedata: QA Issue: Package version for package u-boot-toradex went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards] ```
That should only happen to people who already applied v1 or v2 of the patch and then built the recipes. For all the others the previous built PV did not start with the 'v'.
Max
Quoted 409 lines
this is caused by the "vxxxx" is treated as a lager number than "2xxxx".
the best,
thank you<[email protected]> 於 2018年11月20日 週二 下午2:36寫道:
Quoted 398 lines
From: Ming Liu <[email protected]>
I observed a following build issue:
| *** | *** Can't find default configuration "arch/../configs/colibri_imx7_emmc_defconfig"! | *** | scripts/kconfig/Makefile:128: recipe for target 'colibri_imx7_emmc_defconfig' failedit's due to the
colibri_imx7_emmc_defconfigdoes not exist in the source, because u-boot-toradex and u-boot-fw-utils are not built from same source. so the toradex machine specific uboot configs do not present in the default u-boot-fw-utils source.To fix it, a new u-boot-toradex-fw-utils recipe is added, it uses the same source with u-boot-toradex, some common code is split out to u-boot-toradex.inc, to be shared by both u-boot-toradex and u-boot-toradex-fw-utils.
And we need set
PREFERRED_PROVIDERandPREFERRED_RPROVIDERin machine configs to u-boot-toradex-fw-utils.Some files derive from u-boot-toradex-fw-utils recipe of:
git://git.toradex.com/meta-toradex-nxp.gitSigned-off-by Ming Liu <[email protected]>--- conf/machine/apalis-imx6.conf | 3 ++ conf/machine/colibri-imx6.conf | 3 ++ conf/machine/colibri-imx6ull.conf | 3 ++ conf/machine/colibri-imx7.conf | 2 + conf/machine/colibri-vf.conf | 2 + ...ross-compiling-tools-when-HOSTCC-is-overr.patch | 54 ++++++++++++++++++++++ .../colibri-imx6ull/fw_env.config | 10 ++++ .../colibri-imx7/fw_env.config | 10 ++++ .../u-boot/u-boot-toradex-fw-utils/fw_env.config | 22 +++++++++ .../u-boot-toradex-fw-utils/mx6/fw_env.config | 17 +++++++ .../u-boot-toradex-fw-utils/vf/fw_env.config | 10 ++++ .../u-boot/u-boot-toradex-fw-utils_2016.11.bb | 42 +++++++++++++++++ recipes-bsp/u-boot/u-boot-toradex.inc | 21 --------- recipes-bsp/u-boot/u-boot-toradex_2016.11.bb | 10 ++-- recipes-bsp/u-boot/u-boot-toradex_2016.11.inc | 20 ++++++++ 15 files changed, 203 insertions(+), 26 deletions(-) create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb delete mode 100644 recipes-bsp/u-boot/u-boot-toradex.inc create mode 100644 recipes-bsp/u-boot/u-boot-toradex_2016.11.incconf/machine/apalis-imx6.conf +3
-0@@ -20,6 +20,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + SPL_BINARY = "SPL" # The SPL configures the DDR RAM depending on the module it runs on. Thus there # is no need to distingush between the different module types.conf/machine/colibri-imx6.conf +3
-0@@ -20,6 +20,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + SPL_BINARY = "SPL" UBOOT_CONFIG ??= "spl" UBOOT_CONFIG[spl] = "colibri_imx6_defconfig,,u-boot.img"conf/machine/colibri-imx6ull.conf +3
-0@@ -17,6 +17,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + UBOOT_BINARY = "u-boot-nand.imx" UBOOT_MAKE_TARGET = "u-boot-nand.imx" UBOOT_MACHINE ?= "colibri-imx6ull_defconfig"conf/machine/colibri-imx7.conf +2
-0@@ -20,6 +20,8 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" # U-Boot NAND binary includes 0x400 padding required for NAND boot UBOOT_BINARY = "u-boot-nand.imx"conf/machine/colibri-vf.conf +2
-0@@ -20,6 +20,8 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" PREFERRED_PROVIDER_virtual/kernel-module-mcc ?= "kernel-module-mcc-toradex" PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev ?= "kernel-module-mcc-toradex" PREFERRED_VERSION_mqxboot ?= "1.%"recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch new file +54
-0@@ -0,0 +1,54 @@ +From 3b0825296aeba69c2cbfd3e179db2e9cbe5e70d7 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Mon, 13 Mar 2017 17:43:16 +0900 +Subject: [PATCH] tools: fix cross-compiling tools when HOSTCC is overridden + +Upstream-Status: Backport + +Richard reported U-Boot tools issues in OpenEmbedded/Yocto project. + +OE needs to be able to change the default compiler. If we pass in +HOSTCC through the make command, it overwrites all HOSTCC instances, +including ones in tools/Makefile and tools/env/Makefile, which breaks +"make cross_tools" and "make env", respectively. + +Add "override" directives to avoid overriding HOSTCC instances that +really need to point to the cross-compiler. + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Richard Purdie <[email protected]> +Reviewed-by: Simon Glass <[email protected]> +--- + tools/Makefile | 2 +- + tools/env/Makefile | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tools/Makefile b/tools/Makefile +index 1c840d7..a894b5c 100644 +--- a/tools/Makefile ++++ b/tools/Makefile +@@ -262,7 +262,7 @@ $(LOGO_DATA_H): $(obj)/bmp_logo $(LOGO_BMP) + subdir- += env + + ifneq ($(CROSS_BUILD_TOOLS),) +-HOSTCC = $(CC) ++override HOSTCC = $(CC) + + quiet_cmd_crosstools_strip = STRIP $^ + cmd_crosstools_strip = $(STRIP) $^; touch $@ +diff --git a/tools/env/Makefile b/tools/env/Makefile +index 38ad118..95b28c0 100644 +--- a/tools/env/Makefile ++++ b/tools/env/Makefile +@@ -8,7 +8,7 @@ + # fw_printenv is supposed to run on the target system, which means it should be + # built with cross tools. Although it may look weird, we only replace "HOSTCC" + # with "CC" here for the maximum code reuse of scripts/Makefile.host. +-HOSTCC = $(CC) ++override HOSTCC = $(CC) + + # Compile for a hosted environment on the target + HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \ +-- +2.7.4 +recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.config new file +10
-0@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. +# Futhermore, if the Flash sector size is ommitted, this value is assumed to +# be the same as the Environment size, which is valid for NOR and SPI-dataflash + +# MTD device name Device offset Env. size Flash sector size Number of sectors +# Colibri iMX6ULL +/dev/mtd3 0x00000000 0x00020000 0x20000 4recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.config new file +10
-0@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. +# Futhermore, if the Flash sector size is ommitted, this value is assumed to +# be the same as the Environment size, which is valid for NOR and SPI-dataflash + +# MTD device name Device offset Env. size Flash sector size Number of sectors +# Colibri iMX7 +/dev/mtd3 0x00000000 0x00020000 0x20000 4recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +22
-0@@ -0,0 +1,22 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. +# Futhermore, if the Flash sector size is ommitted, this value is assumed to +# be the same as the Environment size, which is valid for NOR and SPI-dataflash + +# NOR example +# MTD device name Device offset Env. size Flash sector size Number of sectors +#/dev/mtd1 0x0000 0x4000 0x4000 +#/dev/mtd2 0x0000 0x4000 0x4000 + +# MTD SPI-dataflash example +# MTD device name Device offset Env. size Flash sector size Number of sectors +#/dev/mtd5 0x4200 0x4200 +#/dev/mtd6 0x4200 0x4200 + +# NAND example +#/dev/mtd0 0x4000 0x4000 0x20000 2 + +# Block device example +#/dev/mmcblk0 0xc0000 0x20000recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +17
-0@@ -0,0 +1,17 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Device offset must be prefixed with 0x to be parsed as a hexadecimal value. +# On a block device a negative offset is treated as a backwards offset from the +# end of the device/partition, rather than a forwards offset from the start. + +# Colibri iMX6/Apalis iMX6 +# U-Boot environment is stored at the end of the first eMMC boot partition +# hence use a negative value. The environment is just in front of the config +# block which occupies the last sector (hence -0x200) +# Note that /dev/mmcblk0boot0 by default is read only +# To use fw_setenv you have to first make it writeable, on the cmdline e.g. by +# $ echo 0 > /sys/block/mmcblk0boot0/force_ro + +# Block device name Device offset Env. size +/dev/mmcblk0boot0 -0x2200 0x2000recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config new file +10
-0@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash. +# Futhermore, if the Flash sector size is ommitted, this value is assumed to +# be the same as the Environment size, which is valid for NOR and SPI-dataflash + +# MTD device name Device offset Env. size Flash sector size Number of sectors +# Colibri VF61 +/dev/mtd2 0x00000000 0x00020000 0x20000 4recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +42
-0@@ -0,0 +1,42 @@ +require recipes-bsp/u-boot/u-boot-toradex_${PV}.inc + +SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" + +SRC_URI += "file://0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch \ + file://fw_env.config \ +" + +DEPENDS += "mtd-utils" + +INSANE_SKIP_${PN} = "already-stripped" +EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1' +EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1' + +inherit uboot-config + +do_compile () { + oe_runmake ${UBOOT_MACHINE} + oe_runmake env +} + +do_install () { + install -d ${D}${base_sbindir} + install -d ${D}${sysconfdir} + install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv + install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv + install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config +} + +do_install_class-cross () { + install -d ${D}${bindir_cross} + install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv + install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv +} + +SYSROOT_DIRS_append_class-cross = " ${bindir_cross}" + +PROVIDES += "u-boot-fw-utils" +RPROVIDES_${PN} += "u-boot-fw-utils" + +PACKAGE_ARCH = "${MACHINE_ARCH}" +BBCLASSEXTEND = "cross"recipes-bsp/u-boot/u-boot-toradex.inc deleted +0
-21@@ -1,21 +0,0 @@ -# Copyright (C) 2015 Toradex AG -# Based on u-boot-fslc.inc Copyright (C) 2012-2014 O.S. Systems Software LTDA -# Released under the MIT license (see COPYING.MIT for the terms) - -require recipes-bsp/u-boot/u-boot.inc - -inherit fsl-u-boot-localversion - -SUMMARY = "U-Boot bootloader with support for Toradex Computer on Modules" -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" - -PROVIDES += "u-boot" - -SRC_URI = "git://git.toradex.com/u-boot-toradex.git;branch=${SRCBRANCH}" - -S = "${WORKDIR}/git" - -inherit dtc-145 - -PACKAGE_ARCH = "${MACHINE_ARCH}"recipes-bsp/u-boot/u-boot-toradex_2016.11.bb +5
-5@@ -1,8 +1,8 @@ -require recipes-bsp/u-boot/u-boot-toradex.inc +require recipes-bsp/u-boot/u-boot.inc +require recipes-bsp/u-boot/u-boot-toradex_${PV}.inc LOCALVERSION = "-2.8.3" -PV_append = "+git${SRCPV}" -SRCREV = "aca804c9ddadbf34a8ff82779e5598ec5e319f23" -SRCBRANCH = "2016.11-toradex" -COMPATIBLE_MACHINE = "(mx6|mx7|vf|use-mainline-bsp)" +PROVIDES += "u-boot" + +inherit fsl-u-boot-localversion dtc-145recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +20
-0@@ -0,0 +1,20 @@ +# Copyright (C) 2015 Toradex AG +# Based on u-boot-fslc.inc Copyright (C) 2012-2014 O.S. Systems Software LTDA +# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "U-Boot bootloader with support for Toradex Computer on Modules" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" + +SRC_URI = "git://git.toradex.com/u-boot-toradex.git;branch=${SRCBRANCH}" + +SRCREV ?= "aca804c9ddadbf34a8ff82779e5598ec5e319f23" +SRCBRANCH ?= "2016.11-toradex" + +S = "${WORKDIR}/git" + +PV = "2016.11+git${SRCPV}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +COMPATIBLE_MACHINE = "(mx6|mx7|vf|use-mainline-bsp)"
Arha, yes, you are absolutely right.
//Ming Liu
Max Krummenacher <[email protected]> 於 2018年11月20日 週二 下午2:47寫道:
Quoted 570 lines
Hi Ming
Quoted 9 lines · Ming Liu
Changes in V3:
1 Dropped 'v' from PV.
some test results:
with this change, the end users might encounter a QA issue as follows:
```
ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0
do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-dbg went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards]Quoted 1 line
ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0
do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-staticdev went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards]Quoted 1 line
ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0
do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-dev went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards]Quoted 1 line
ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0
do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-doc went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards]Quoted 1 line
ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0
do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils-locale went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards]Quoted 1 line
ERROR: u-boot-toradex-fw-utils-2016.11+gitAUTOINC+aca804c9dd-r0
do_packagedata: QA Issue: Package version for package u-boot-toradex-fw-utils went backwards which would break package feeds from (0:v2016.11+git0+aca804c9dd-r0 to 0:2016.11+git0+aca804c9dd-r0) [version-going-backwards]Quoted 1 line
ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0
do_packagedata:QA Issue: Package version for package u-boot-toradex-dbg went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards]
Quoted 1 line
ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0
do_packagedata:QA Issue: Package version for package u-boot-toradex-staticdev went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards]
Quoted 1 line
ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0
do_packagedata:QA Issue: Package version for package u-boot-toradex-dev went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards]
Quoted 1 line
ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0
do_packagedata:QA Issue: Package version for package u-boot-toradex-doc went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards]
Quoted 1 line
ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0
do_packagedata:QA Issue: Package version for package u-boot-toradex-locale went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards]
Quoted 1 line
ERROR: u-boot-toradex-2016.11+gitAUTOINC+f4db39ecb6-r0
do_packagedata:QA Issue: Package version for package u-boot-toradex went backwards which would break package feeds from (0:v2016.11+git0+f4db39ecb6-r0 to 0:2016.11+git0+f4db39ecb6-r0) [version-going-backwards]
Quoted 1 line
```
That should only happen to people who already applied v1 or v2 of the patch and then built the recipes.
For all the others the previous built PV did not start with the 'v'.Max
Quoted 16 lines
this is caused by the "vxxxx" is treated as a lager number than "2xxxx".
the best,
thank you<[email protected]> 於 2018年11月20日 週二 下午2:36寫道:
Quoted 5 lines
From: Ming Liu <[email protected]>
I observed a following build issue:
| ***
| *** Can't find default configuration"
arch/../configs/colibri_imx7_emmc_defconfig"!Quoted 2 lines
Quoted 2 lines
| ***
|scripts/kconfig/Makefile:128: recipe for target'
colibri_imx7_emmc_defconfig' failedQuoted 17 lines
Quoted 17 lines
it's due to the
colibri_imx7_emmc_defconfigdoes not exist in the source, because u-boot-toradex and u-boot-fw-utils are not built from same source. so the toradex machine specific uboot configs do not present in the default u-boot-fw-utils source.To fix it, a new u-boot-toradex-fw-utils recipe is added, it uses the same source with u-boot-toradex, some common code is split out to u-boot-toradex.inc, to be shared by both u-boot-toradex and u-boot-toradex-fw-utils.
And we need set
PREFERRED_PROVIDERandPREFERRED_RPROVIDERin machine configs to u-boot-toradex-fw-utils.Some files derive from u-boot-toradex-fw-utils recipe of:
git://git.toradex.com/meta-toradex-nxp.gitQuoted 8 lines
Quoted 8 lines
Signed-off-by Ming Liu <[email protected]>--- conf/machine/apalis-imx6.conf | 3 ++ conf/machine/colibri-imx6.conf | 3 ++ conf/machine/colibri-imx6ull.conf | 3 ++ conf/machine/colibri-imx7.conf | 2 + conf/machine/colibri-vf.conf | 2 + ...ross-compiling-tools-when-HOSTCC-is-overr.patch | 54++++++++++++++++++++++
Quoted 6 lines
Quoted 6 lines
.../colibri-imx6ull/fw_env.config | 10 ++++ .../colibri-imx7/fw_env.config | 10 ++++ .../u-boot/u-boot-toradex-fw-utils/fw_env.config | 22 +++++++++ .../u-boot-toradex-fw-utils/mx6/fw_env.config | 17 +++++++ .../u-boot-toradex-fw-utils/vf/fw_env.config | 10 ++++ .../u-boot/u-boot-toradex-fw-utils_2016.11.bb | 42+++++++++++++++++
Quoted 5 lines
Quoted 5 lines
recipes-bsp/u-boot/u-boot-toradex.inc | 21 --------- recipes-bsp/u-boot/u-boot-toradex_2016.11.bb | 10 ++-- recipes-bsp/u-boot/u-boot-toradex_2016.11.inc | 20 ++++++++ 15 files changed, 203 insertions(+), 26 deletions(-) create mode 100644
recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patchQuoted 1 line
Quoted 1 line
create mode 100644
recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.configQuoted 1 line
Quoted 1 line
create mode 100644
recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.configQuoted 1 line
Quoted 1 line
create mode 100644
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.configQuoted 1 line
Quoted 1 line
create mode 100644
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.configQuoted 1 line
Quoted 1 line
create mode 100644
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.configQuoted 1 line
Quoted 1 line
create mode 100644 recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb
Quoted 4 lines
Review
Quoted 4 lines
delete mode 100644 recipes-bsp/u-boot/u-boot-toradex.inc create mode 100644 recipes-bsp/u-boot/u-boot-toradex_2016.11.inc(quoted diff) +0
-0
b/conf/machine/apalis-imx6.confQuoted 5 lines
Quoted 5 lines
index 47a9d87..a9b9af0 100644
conf/machine/apalis-imx6.conf +0
-0@@ -20,6 +20,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""Quoted 7 lines
conf/machine/apalis-imx6.conf RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""
Quoted 7 lines
conf/machine/apalis-imx6.conf +3
-0PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + SPL_BINARY = "SPL" # The SPL configures the DDR RAM depending on the module it runs on.Thus there
Quoted 2 lines
Review
Quoted 2 lines
conf/machine/apalis-imx6.conf +0
-0# is no need to distingush between the different module types.(quoted diff) +0
-0
b/conf/machine/colibri-imx6.confQuoted 5 lines
Quoted 5 lines
index d3c2d00..0c6d7cc 100644
conf/machine/colibri-imx6.conf +0
-0@@ -20,6 +20,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""Quoted 9 lines
Review
Quoted 9 lines
conf/machine/colibri-imx6.conf +3
-0PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + SPL_BINARY = "SPL" UBOOT_CONFIG ??= "spl" UBOOT_CONFIG[spl] = "colibri_imx6_defconfig,,u-boot.img"(quoted diff) +0
-0
b/conf/machine/colibri-imx6ull.confQuoted 5 lines
Quoted 5 lines
index 748a12b..a70dd42 100644
conf/machine/colibri-imx6ull.conf +0
-0@@ -17,6 +17,9 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""Quoted 9 lines
Review
Quoted 9 lines
conf/machine/colibri-imx6ull.conf +3
-0PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" + UBOOT_BINARY = "u-boot-nand.imx" UBOOT_MAKE_TARGET = "u-boot-nand.imx" UBOOT_MACHINE ?= "colibri-imx6ull_defconfig"(quoted diff) +0
-0
b/conf/machine/colibri-imx7.confQuoted 5 lines
Quoted 5 lines
index 51048e4..2ad296b 100644
conf/machine/colibri-imx7.conf +0
-0@@ -20,6 +20,8 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = ""Quoted 8 lines
Review
Quoted 8 lines
conf/machine/colibri-imx7.conf +2
-0PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" # U-Boot NAND binary includes 0x400 padding required for NAND boot UBOOT_BINARY = "u-boot-nand.imx"(quoted diff) +0
-0
b/conf/machine/colibri-vf.confQuoted 10 lines
conf/machine/colibri-vf.conf RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" · line 25
Quoted 10 lines
index 2f7a5d8..a03853d 100644
conf/machine/colibri-vf.conf +2
-0@@ -20,6 +20,8 @@ RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" PREFERRED_PROVIDER_u-boot ?= "u-boot-toradex" PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-toradex" +PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" +PREFERRED_RPROVIDER_u-boot-fw-utils ?= "u-boot-toradex-fw-utils" PREFERRED_PROVIDER_virtual/kernel-module-mcc ?="kernel-module-mcc-toradex"
Quoted 1 line
conf/machine/colibri-vf.conf RDEPENDS_${KERNEL_PACKAGE_NAME}-base = "" · line 26
Quoted 1 line
conf/machine/colibri-vf.conf +0
-0PREFERRED_PROVIDER_virtual/kernel-module-mcc-dev ?="kernel-module-mcc-toradex"
Quoted 2 lines
Quoted 2 lines
conf/machine/colibri-vf.conf +0
-0PREFERRED_VERSION_mqxboot ?= "1.%"diff --git
a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patchb/recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patchQuoted 4 lines
Quoted 4 lines
new file mode 100644
index 0000000..2c087e8
---/dev/null
+++
b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patchQuoted 5 lines
conf/machine/colibri-vf.conf line 4
Quoted 5 lines
conf/machine/colibri-vf.conf +4
-0@@ -0,0 +1,54 @@ +From 3b0825296aeba69c2cbfd3e179db2e9cbe5e70d7 Mon Sep 17 00:00:00 2001 +From: Masahiro Yamada <[email protected]> +Date: Mon, 13 Mar 2017 17:43:16 +0900 +Subject: [PATCH] tools: fix cross-compiling tools when HOSTCC isoverridden
Quoted 32 lines
Quoted 32 lines
conf/machine/colibri-vf.conf +32
-0+ +Upstream-Status: Backport + +Richard reported U-Boot tools issues in OpenEmbedded/Yocto project. + +OE needs to be able to change the default compiler. If we pass in +HOSTCC through the make command, it overwrites all HOSTCC instances, +including ones in tools/Makefile and tools/env/Makefile, which breaks +"make cross_tools" and "make env", respectively. + +Add "override" directives to avoid overriding HOSTCC instances that +really need to point to the cross-compiler. + +Signed-off-by: Masahiro Yamada <[email protected]> +Reported-by: Richard Purdie <[email protected]> +Reviewed-by: Simon Glass <[email protected]> +--- + tools/Makefile | 2 +- + tools/env/Makefile | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tools/Makefile b/tools/Makefile +index 1c840d7..a894b5c 100644 +--- a/tools/Makefile ++++ b/tools/Makefile +@@ -262,7 +262,7 @@ $(LOGO_DATA_H): $(obj)/bmp_logo $(LOGO_BMP) + subdir- += env + + ifneq ($(CROSS_BUILD_TOOLS),) +-HOSTCC = $(CC) ++override HOSTCC = $(CC) +Quoted 8 lines
conf/machine/colibri-vf.conf line 44
Quoted 8 lines
conf/machine/colibri-vf.conf +8
-0+ quiet_cmd_crosstools_strip = STRIP $^ + cmd_crosstools_strip = $(STRIP) $^; touch $@ +diff --git a/tools/env/Makefile b/tools/env/Makefile +index 38ad118..95b28c0 100644 +--- a/tools/env/Makefile ++++ b/tools/env/Makefile +@@ -8,7 +8,7 @@ + # fw_printenv is supposed to run on the target system, which meansit should be
Quoted 1 line
conf/machine/colibri-vf.conf line 45
Quoted 1 line
conf/machine/colibri-vf.conf +1
-0+ # built with cross tools. Although it may look weird, we onlyreplace "HOSTCC"
Quoted 6 lines
conf/machine/colibri-vf.conf line 51
Quoted 6 lines
conf/machine/colibri-vf.conf +6
-0+ # with "CC" here for the maximum code reuse of scripts/Makefile.host. +-HOSTCC = $(CC) ++override HOSTCC = $(CC) + + # Compile for a hosted environment on the target + HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(filter -I%,$(UBOOTINCLUDE))) \
Quoted 4 lines
Quoted 4 lines
conf/machine/colibri-vf.conf +3
-0+-- +2.7.4 +diff --git
a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.configb/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.configQuoted 4 lines
Quoted 4 lines
new file mode 100644
index 0000000..930bcee
---/dev/null
+++
b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx6ull/fw_env.configQuoted 5 lines
conf/machine/colibri-vf.conf line 4
Quoted 5 lines
conf/machine/colibri-vf.conf +4
-0@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR andSPI-dataflash.
Quoted 1 line
conf/machine/colibri-vf.conf line 5
Quoted 1 line
conf/machine/colibri-vf.conf +1
-0+# Futhermore, if the Flash sector size is ommitted, this value isassumed to
Quoted 1 line
conf/machine/colibri-vf.conf line 6
Quoted 1 line
conf/machine/colibri-vf.conf +1
-0+# be the same as the Environment size, which is valid for NOR andSPI-dataflash
Quoted 2 lines
conf/machine/colibri-vf.conf line 8
Quoted 2 lines
conf/machine/colibri-vf.conf +2
-0+ +# MTD device name Device offset Env. size Flash sectorsize Number of sectors
Quoted 2 lines
conf/machine/colibri-vf.conf line 10
Quoted 2 lines
conf/machine/colibri-vf.conf +2
-0+# Colibri iMX6ULL +/dev/mtd3 0x00000000 0x00020000 0x200004Quoted 1 line
Quoted 1 line
diff --git
a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.configb/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.configQuoted 4 lines
Quoted 4 lines
new file mode 100644
index 0000000..b59116d
---/dev/null
+++
b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/colibri-imx7/fw_env.configQuoted 5 lines
conf/machine/colibri-vf.conf line 4
Quoted 5 lines
conf/machine/colibri-vf.conf +4
-0@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR andSPI-dataflash.
Quoted 1 line
conf/machine/colibri-vf.conf line 5
Quoted 1 line
conf/machine/colibri-vf.conf +1
-0+# Futhermore, if the Flash sector size is ommitted, this value isassumed to
Quoted 1 line
conf/machine/colibri-vf.conf line 6
Quoted 1 line
conf/machine/colibri-vf.conf +1
-0+# be the same as the Environment size, which is valid for NOR andSPI-dataflash
Quoted 2 lines
conf/machine/colibri-vf.conf line 8
Quoted 2 lines
conf/machine/colibri-vf.conf +2
-0+ +# MTD device name Device offset Env. size Flash sectorsize Number of sectors
Quoted 2 lines
conf/machine/colibri-vf.conf line 10
Quoted 2 lines
conf/machine/colibri-vf.conf +2
-0+# Colibri iMX7 +/dev/mtd3 0x00000000 0x00020000 0x200004Quoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0
b/recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.configQuoted 9 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config line 4
Quoted 9 lines
new file mode 100644
index 0000000..e054ccbrecipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +4
-0@@ -0,0 +1,22 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR andSPI-dataflash.
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config line 5
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +1
-0+# Futhermore, if the Flash sector size is ommitted, this value isassumed to
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config line 6
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +1
-0+# be the same as the Environment size, which is valid for NOR andSPI-dataflash
Quoted 3 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config
Quoted 3 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +3
-0+ +# NOR example +# MTD device name Device offset Env. size Flash sectorsize Number of sectors
Quoted 5 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config
Quoted 5 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +5
-0+#/dev/mtd1 0x0000 0x4000 0x4000 +#/dev/mtd2 0x0000 0x4000 0x4000 + +# MTD SPI-dataflash example +# MTD device name Device offset Env. size Flash sectorsize Number of sectors
Quoted 5 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config
Quoted 5 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +5
-0+#/dev/mtd5 0x4200 0x4200 +#/dev/mtd6 0x4200 0x4200 + +# NAND example +#/dev/mtd0 0x4000 0x4000 0x200002Quoted 4 lines
Quoted 4 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/fw_env.config new file +3
-0+ +# Block device example +#/dev/mmcblk0 0xc0000 0x20000diff --git
a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.configb/recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.configQuoted 9 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config line 4
Quoted 9 lines
new file mode 100644
index 0000000..a9e724erecipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +4
-0@@ -0,0 +1,17 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Device offset must be prefixed with 0x to be parsed as ahexadecimal value.
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config line 5
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +1
-0+# On a block device a negative offset is treated as a backwardsoffset from the
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config line 6
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +1
-0+# end of the device/partition, rather than a forwards offset from thestart.
Quoted 3 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config
Quoted 3 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +3
-0+ +# Colibri iMX6/Apalis iMX6 +# U-Boot environment is stored at the end of the first eMMC bootpartition
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config line 10
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +1
-0+# hence use a negative value. The environment is just in front of theconfig
Quoted 3 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config
Quoted 3 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +3
-0+# block which occupies the last sector (hence -0x200) +# Note that /dev/mmcblk0boot0 by default is read only +# To use fw_setenv you have to first make it writeable, on thecmdline e.g. by
Quoted 5 lines
Quoted 5 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/mx6/fw_env.config new file +4
-0+# $ echo 0 > /sys/block/mmcblk0boot0/force_ro + +# Block device name Device offset Env. size +/dev/mmcblk0boot0 -0x2200 0x2000diff --git
a/recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.configb/recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.configQuoted 9 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config line 4
Quoted 9 lines
new file mode 100644
index 0000000..51f09d1recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config new file +4
-0@@ -0,0 +1,10 @@ +# Configuration file for fw_(printenv/setenv) utility. +# Up to two entries are valid, in this case the redundant +# environment sector is assumed present. +# Notice, that the "Number of sectors" is not required on NOR andSPI-dataflash.
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config line 5
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config new file +1
-0+# Futhermore, if the Flash sector size is ommitted, this value isassumed to
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config line 6
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config new file +1
-0+# be the same as the Environment size, which is valid for NOR andSPI-dataflash
Quoted 2 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config line 8
Quoted 2 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config new file +2
-0+ +# MTD device name Device offset Env. size Flash sectorsize Number of sectors
Quoted 2 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config line 10
Quoted 2 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils/vf/fw_env.config new file +2
-0+# Colibri VF61 +/dev/mtd2 0x00000000 0x00020000 0x200004Quoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0b/recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb
Quoted 10 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb line 5
Quoted 10 lines
new file mode 100644
index 0000000..727c0a8recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +5
-0@@ -0,0 +1,42 @@ +require recipes-bsp/u-boot/u-boot-toradex_${PV}.inc + +SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" + +SRC_URI +="file://0001-tools-fix-cross-compiling-tools-when-HOSTCC-is-overr.patch \
Quoted 7 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb
Quoted 7 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +7
-0+ file://fw_env.config \ +" + +DEPENDS += "mtd-utils" + +INSANE_SKIP_${PN} = "already-stripped" +EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb line 13
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +1
-0+EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS}${LDFLAGS}" V=1'
Quoted 4 lines
Quoted 4 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +4
-0+ +inherit uboot-config + +do_compile () {Quoted 8 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb
Quoted 8 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +8
-0+ oe_runmake ${UBOOT_MACHINE} + oe_runmake env +} + +do_install () { + install -d ${D}${base_sbindir} + install -d ${D}${sysconfdir} + install -m 755 ${S}/tools/env/fw_printenv${D}${base_sbindir}/fw_printenv
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb line 26
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +1
-0+ install -m 755 ${S}/tools/env/fw_printenv${D}${base_sbindir}/fw_setenv
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb line 27
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +1
-0+ install -m 0644 ${WORKDIR}/fw_env.config
${D}${sysconfdir}/fw_env.configQuoted 5 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb
Quoted 5 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +5
-0+} + +do_install_class-cross () { + install -d ${D}${bindir_cross} + install -m 755 ${S}/tools/env/fw_printenv${D}${bindir_cross}/fw_printenv
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb line 33
Quoted 1 line
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +1
-0+ install -m 755 ${S}/tools/env/fw_printenv${D}${bindir_cross}/fw_setenv
Quoted 10 lines
Review
Quoted 10 lines
recipes-bsp/u-boot/u-boot-toradex-fw-utils_2016.11.bb new file +9
-0+} + +SYSROOT_DIRS_append_class-cross = " ${bindir_cross}" + +PROVIDES += "u-boot-fw-utils" +RPROVIDES_${PN} += "u-boot-fw-utils" + +PACKAGE_ARCH = "${MACHINE_ARCH}" +BBCLASSEXTEND = "cross"(quoted diff) +0
-0b/recipes-bsp/u-boot/u-boot-toradex.inc
Quoted 7 lines
recipes-bsp/u-boot/u-boot-toradex.inc line 2
Quoted 7 lines
deleted file mode 100644
index 67e9976..0000000recipes-bsp/u-boot/u-boot-toradex.inc deleted +0
-2@@ -1,21 +0,0 @@ -# Copyright (C) 2015 Toradex AG -# Based on u-boot-fslc.inc Copyright (C) 2012-2014 O.S. SystemsSoftware LTDA
Quoted 7 lines
recipes-bsp/u-boot/u-boot-toradex.inc
Quoted 7 lines
recipes-bsp/u-boot/u-boot-toradex.inc deleted +0
-7-# Released under the MIT license (see COPYING.MIT for the terms) - -require recipes-bsp/u-boot/u-boot.inc - -inherit fsl-u-boot-localversion - -SUMMARY = "U-Boot bootloader with support for Toradex Computer onModules"
Quoted 2 lines
recipes-bsp/u-boot/u-boot-toradex.inc line 11
Quoted 2 lines
recipes-bsp/u-boot/u-boot-toradex.inc deleted +0
-2-LICENSE = "GPLv2+" -LIC_FILES_CHKSUM ="file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
Quoted 4 lines
recipes-bsp/u-boot/u-boot-toradex.inc
Quoted 4 lines
recipes-bsp/u-boot/u-boot-toradex.inc deleted +0
-4- -PROVIDES += "u-boot" - -SRC_URI = "git://git.toradex.com/u-boot-toradex.git;branch=${SRCBRANCH}
<http://git.toradex.com/u-boot-toradex.git;branch=$%7BSRCBRANCH%7D>"Quoted 7 lines
Review
Quoted 7 lines
recipes-bsp/u-boot/u-boot-toradex.inc deleted +0
-6- -S = "${WORKDIR}/git" - -inherit dtc-145 - -PACKAGE_ARCH = "${MACHINE_ARCH}"(quoted diff) +0
-0b/recipes-bsp/u-boot/u-boot-toradex_2016.11.bb
Quoted 11 lines
Quoted 11 lines
index f54eeaa..e409131 100644
recipes-bsp/u-boot/u-boot-toradex_2016.11.bb +2
-2@@ -1,8 +1,8 @@ -require recipes-bsp/u-boot/u-boot-toradex.inc +require recipes-bsp/u-boot/u-boot.inc +require recipes-bsp/u-boot/u-boot-toradex_${PV}.inc LOCALVERSION = "-2.8.3" -PV_append = "+git${SRCPV}"Quoted 7 lines
Review
Quoted 7 lines
recipes-bsp/u-boot/u-boot-toradex_2016.11.bb +3
-3-SRCREV = "aca804c9ddadbf34a8ff82779e5598ec5e319f23" -SRCBRANCH = "2016.11-toradex" -COMPATIBLE_MACHINE = "(mx6|mx7|vf|use-mainline-bsp)" +PROVIDES += "u-boot" + +inherit fsl-u-boot-localversion dtc-145(quoted diff) +0
-0b/recipes-bsp/u-boot/u-boot-toradex_2016.11.inc
Quoted 7 lines
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc line 2
Quoted 7 lines
new file mode 100644
index 0000000..dd8c921recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +2
-0@@ -0,0 +1,20 @@ +# Copyright (C) 2015 Toradex AG +# Based on u-boot-fslc.inc Copyright (C) 2012-2014 O.S. SystemsSoftware LTDA
Quoted 3 lines
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc
Quoted 3 lines
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +3
-0+# Released under the MIT license (see COPYING.MIT for the terms) + +SUMMARY = "U-Boot bootloader with support for Toradex Computer onModules"
Quoted 2 lines
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc line 7
Quoted 2 lines
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +2
-0+LICENSE = "GPLv2+" +LIC_FILES_CHKSUM ="file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
Quoted 2 lines
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc line 9
Quoted 2 lines
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +2
-0+ +SRC_URI = "git://git.toradex.com/u-boot-toradex.git;branch=${SRCBRANCH}
<http://git.toradex.com/u-boot-toradex.git;branch=$%7BSRCBRANCH%7D>"Quoted 11 lines
Quoted 11 lines
recipes-bsp/u-boot/u-boot-toradex_2016.11.inc new file +11
-0+ +SRCREV ?= "aca804c9ddadbf34a8ff82779e5598ec5e319f23" +SRCBRANCH ?= "2016.11-toradex" + +S = "${WORKDIR}/git" + +PV = "2016.11+git${SRCPV}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +COMPATIBLE_MACHINE = "(mx6|mx7|vf|use-mainline-bsp)"