Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BAD62E00D8B; Fri, 5 Jul 2019 01:43:35 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no * trust * [40.107.4.45 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40045.outbound.protection.outlook.com [40.107.4.45]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 06340E00CD5 for ; Fri, 5 Jul 2019 01:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4UVXLpkfvuiC8WhNPJdDH1lt4aK03U3c3wrvUUEdSjQ=; b=rERxhqRc/WYQLv9VkGsNbBeKTEA8Tj5OD/dCU96vAe1ujm0MmM2+25uwsGJt0z+FC1lJOFFtoB/th4pWUzP++NSMHNgZuTvGyn2kFbnPCZwsQ0iNxnOJZHoBVXUlVesWRJCw3Uat3S/SdIrtjhBcykJeNPD9q+0HJcG+OVbWsC8= Received: from VE1PR04MB6685.eurprd04.prod.outlook.com (20.179.235.150) by VE1PR04MB6511.eurprd04.prod.outlook.com (20.179.233.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.18; Fri, 5 Jul 2019 08:43:31 +0000 Received: from VE1PR04MB6685.eurprd04.prod.outlook.com ([fe80::5c55:2eda:915d:4769]) by VE1PR04MB6685.eurprd04.prod.outlook.com ([fe80::5c55:2eda:915d:4769%7]) with mapi id 15.20.2032.019; Fri, 5 Jul 2019 08:43:31 +0000 From: "C.r. Guo" To: "meta-freescale@yoctoproject.org" Thread-Topic: [PATCH 02/24] u-boot: update to c873063 Thread-Index: AQHVMw25a7NBhca4WkG9Sq2JrNuG2w== Date: Fri, 5 Jul 2019 08:43:31 +0000 Message-ID: <1562316188-16744-2-git-send-email-chunrong.guo@nxp.com> References: <1562316188-16744-1-git-send-email-chunrong.guo@nxp.com> In-Reply-To: <1562316188-16744-1-git-send-email-chunrong.guo@nxp.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK0PR01CA0070.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::34) To VE1PR04MB6685.eurprd04.prod.outlook.com (2603:10a6:803:127::22) x-mailer: git-send-email 2.7.4 authentication-results: spf=none (sender IP is ) smtp.mailfrom=chunrong.guo@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4a1fcfa8-2d1c-497c-148b-08d70124db89 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VE1PR04MB6511; x-ms-traffictypediagnostic: VE1PR04MB6511: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2089; x-forefront-prvs: 008960E8EC x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(4636009)(376002)(346002)(39860400002)(136003)(366004)(396003)(189003)(199004)(8936002)(25786009)(4326008)(81166006)(71200400001)(8676002)(86362001)(102836004)(30864003)(71190400001)(53946003)(6916009)(256004)(68736007)(81156014)(14444005)(186003)(3846002)(6116002)(26005)(305945005)(486006)(53936002)(386003)(6506007)(6436002)(76176011)(99286004)(15650500001)(6512007)(52116002)(2501003)(5660300002)(2351001)(2906002)(2616005)(66946007)(5640700003)(6486002)(66476007)(316002)(73956011)(66446008)(11346002)(50226002)(446003)(66066001)(66556008)(476003)(7736002)(36756003)(14454004)(64756008)(478600001)(473944003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6511; H:VE1PR04MB6685.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: XYym0tbgah2PM5exaTD67IoPt2HJTofurtUMs3q4zvtZmWHnUNdUy9GDkhQ7B3DfnnBywO6nGFnrJdJU7bqlT2bqxLmPNqBWCl7YpZjHmP93Bi7zlTC/R/WkQJ3xnNIWW7AJx7MX8Xyck7BPANoHWRxkTC+CMB/q5uyx9Q0jNaOZBV2EA8AbCljeM1RELvu69ctkfqwGOSK1I4O1vUDn8yGLzgs5XBIBxn4GQgqW9oUNK6j9Pq/eUaTtvESJZH3U2xDd8j+TuMIpRpFbl64E6emEKrUW6Phkk3ttwghRqLvh8aVPdKgELCeEomlP9br0nktCb3Buc7ffPan3DHKSqxHNCisbulp7eqo+vakRTyOTw6L/uCXECvCqKoDOC8hzcRSsGXVZCTkXgf+gR9XNBILG0w1j8MHMa0zjV5NOVI0= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4a1fcfa8-2d1c-497c-148b-08d70124db89 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2019 08:43:31.3816 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: chunrong.guo@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6511 Cc: "C.r. Guo" Subject: [PATCH 02/24] u-boot: update to c873063 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jul 2019 08:43:35 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable From: Chunrong Guo *update to lsdk 1906 tag include the following changes: c873063 - common: qixis: make the qixis compatible with new soc 4fe7bca - armv8: ls1028a: Add environment variables to facilitate the boot d7baae8 - dm: i2c: lx2160: Revert lx2160 i2c dm support patch set 3c75182 - armv8: lx2160ardb : Add slave nodes under the i2c0 controller 1807bb1 - armv8: lx2160ardb : Add pcf2127 node 600e32c - armv8: dts: fsl-lx2160a: add i2c controller and gpio DT nodes efe84a3 - gpio: do not include on ARCH_LX2160A 8fbdb38 - drivers: i2c: mxc: Solve the compiler error when using i2c dm mod= e 210c880 - configs: lx2160a: enable DM support for pcf2127 rtc 4691972 - armv8: lx2160a: The lx2160a platform supports the I2C driver mode= l. 9b6da05 - board/freescale/common: secure_boot: Set bootdelay to -2. c419c9c - armv8: fsl-layerscape: Increase mmc read size for secure-boot hea= ders e3a324e - configs: fsl-layerscape: secure_boot: Enable setexpr command. 03313e4 - armv8: dts: ls1028a: Add FSPI node for ls1028ardb and ls1028aqds 47a485c - configs: ls1028a: Enable FSPI support for ls1028ardb and ls1028aq= ds 7a5853e - mtd: spi-nor-ids: Add micron mt35xu02g flash ID d5cf4da - configs: ls1012: unset CONFIG_SPI_FLASH_BAR, move CONFIG_FSL_QSPI= to defconfig bcdf1cb - driver: spi: Update QSPI driver xfer 0c337c2 - armv8: ls2088ardb: Fix MC firmware loading during SD boot 336202e - armv8: ls2088aqds: Fix MC firmware loading during SD boot 7be353f - armv8: ls2088aqds: Add bootcmd for TFA boot 9664bf5 - armv8: fsl-layerscape: Change bootcmd update logic 3bad029 - ls1046ardb: Add CONFIG_ENV_ADDR to init env in qspi boot b892a5c - armv8: fsl-lsch2: add clock support for the second eSDHC 6bec285 - configs: ls1088aqds: Enable config to write aligned data to TxFIF= O 7db76c5 - arm64: configs: ls1046afrwy: config update 268ebc5 - armv8: fsl-layerscape: Update qspi clk cfg da7f6ec - armv8/fsl-layerscape: Add loop to check L3 dcache status 55007f3 - ARM: dts: ls1021a: Fixed reg for sata node *Upgrade version to 2019.04 Signed-off-by: Chunrong Guo --- recipes-bsp/u-boot/u-boot-qoriq-common_2018.09.inc | 19 ------ recipes-bsp/u-boot/u-boot-qoriq-common_2019.04.inc | 19 ++++++ .../u-boot/u-boot-qoriq-fw-utils_2018.09.bb | 45 ------------ .../u-boot/u-boot-qoriq-fw-utils_2019.04.bb | 45 ++++++++++++ recipes-bsp/u-boot/u-boot-qoriq_2018.09.bb | 79 ------------------= ---- recipes-bsp/u-boot/u-boot-qoriq_2019.04.bb | 79 ++++++++++++++++++= ++++ 6 files changed, 143 insertions(+), 143 deletions(-) delete mode 100644 recipes-bsp/u-boot/u-boot-qoriq-common_2018.09.inc create mode 100644 recipes-bsp/u-boot/u-boot-qoriq-common_2019.04.inc delete mode 100644 recipes-bsp/u-boot/u-boot-qoriq-fw-utils_2018.09.bb create mode 100644 recipes-bsp/u-boot/u-boot-qoriq-fw-utils_2019.04.bb delete mode 100644 recipes-bsp/u-boot/u-boot-qoriq_2018.09.bb create mode 100644 recipes-bsp/u-boot/u-boot-qoriq_2019.04.bb diff --git a/recipes-bsp/u-boot/u-boot-qoriq-common_2018.09.inc b/recipes-b= sp/u-boot/u-boot-qoriq-common_2018.09.inc deleted file mode 100644 index 06ec01b..0000000 --- a/recipes-bsp/u-boot/u-boot-qoriq-common_2018.09.inc +++ /dev/null @@ -1,19 +0,0 @@ - -inherit fsl-u-boot-localversion - -LICENSE =3D "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1" -LIC_FILES_CHKSUM =3D " \ - file://Licenses/gpl-2.0.txt;md5=3Db234ee4d69f5fce4486a80fdaf4a4263 \ - file://Licenses/bsd-2-clause.txt;md5=3D6a31f076f5773aabd8ff86191ad6fdd= 5 \ - file://Licenses/bsd-3-clause.txt;md5=3D4a1190eac56a9db675d58ebe86eaf50= c \ - file://Licenses/lgpl-2.0.txt;md5=3D5f30f0716dfdd0d91eb439ebec522ec2 \ - file://Licenses/lgpl-2.1.txt;md5=3D4fbd65380cdd255951079008b364516c \ -" - -SRC_URI =3D "git://source.codeaurora.org/external/qoriq/qoriq-components/u= -boot;nobranch=3D1 \ -" -SRCREV=3D "80b2d2bc4cab0a8363c9b7eba8064b1795f12670" - -S =3D "${WORKDIR}/git" -PV_append =3D "+fslgit" -LOCALVERSION =3D "+fsl" diff --git a/recipes-bsp/u-boot/u-boot-qoriq-common_2019.04.inc b/recipes-b= sp/u-boot/u-boot-qoriq-common_2019.04.inc new file mode 100644 index 0000000..46e4314 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qoriq-common_2019.04.inc @@ -0,0 +1,19 @@ + +inherit fsl-u-boot-localversion + +LICENSE =3D "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1" +LIC_FILES_CHKSUM =3D " \ + file://Licenses/gpl-2.0.txt;md5=3Db234ee4d69f5fce4486a80fdaf4a4263 \ + file://Licenses/bsd-2-clause.txt;md5=3D6a31f076f5773aabd8ff86191ad6fdd= 5 \ + file://Licenses/bsd-3-clause.txt;md5=3D4a1190eac56a9db675d58ebe86eaf50= c \ + file://Licenses/lgpl-2.0.txt;md5=3D5f30f0716dfdd0d91eb439ebec522ec2 \ + file://Licenses/lgpl-2.1.txt;md5=3D4fbd65380cdd255951079008b364516c \ +" + +SRC_URI =3D "git://source.codeaurora.org/external/qoriq/qoriq-components/u= -boot;nobranch=3D1 \ +" +SRCREV=3D "c873063750db4479feee58a1d97f38a0934ea7b9" + +S =3D "${WORKDIR}/git" +PV_append =3D "+fslgit" +LOCALVERSION =3D "+fsl" diff --git a/recipes-bsp/u-boot/u-boot-qoriq-fw-utils_2018.09.bb b/recipes-= bsp/u-boot/u-boot-qoriq-fw-utils_2018.09.bb deleted file mode 100644 index 1107812..0000000 --- a/recipes-bsp/u-boot/u-boot-qoriq-fw-utils_2018.09.bb +++ /dev/null @@ -1,45 +0,0 @@ -require u-boot-qoriq-common_${PV}.inc - -SUMMARY =3D "U-Boot bootloader fw_printenv/setenv utilities" -DEPENDS =3D "mtd-utils bison-native" - -INSANE_SKIP_${PN} =3D "already-stripped" -EXTRA_OEMAKE_class-target =3D 'CROSS_COMPILE=3D${TARGET_PREFIX} CC=3D"${CC= } ${CFLAGS} ${LDFLAGS}" HOSTCC=3D"${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLA= GS}" V=3D1' -EXTRA_OEMAKE_class-cross =3D 'ARCH=3D${TARGET_ARCH} CC=3D"${CC} ${CFLAGS} = ${LDFLAGS}" V=3D1' - -inherit uboot-config - -do_compile () { - oe_runmake ${UBOOT_MACHINE} - oe_runmake envtools -} - -do_install () { - install -d ${D}${base_sbindir} - install -d ${D}${sysconfdir} - install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_print= env - install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_seten= v - - if [ -e ${WORKDIR}/fw_env.config ]; then - install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.= config - else - install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_= env.config - fi -} - -do_install_class-cross () { - install -d ${D}${bindir_cross} - install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_print= env - install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_seten= v -} - -SYSROOT_PREPROCESS_FUNCS_class-cross =3D "uboot_fw_utils_cross" -uboot_fw_utils_cross() { - sysroot_stage_dir ${D}${bindir_cross} ${SYSROOT_DESTDIR}${bindir_cross= } -} - -PROVIDES +=3D "u-boot-fw-utils" -RPROVIDES_${PN} +=3D "u-boot-fw-utils" - -PACKAGE_ARCH =3D "${MACHINE_ARCH}" -BBCLASSEXTEND =3D "cross" diff --git a/recipes-bsp/u-boot/u-boot-qoriq-fw-utils_2019.04.bb b/recipes-= bsp/u-boot/u-boot-qoriq-fw-utils_2019.04.bb new file mode 100644 index 0000000..1107812 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qoriq-fw-utils_2019.04.bb @@ -0,0 +1,45 @@ +require u-boot-qoriq-common_${PV}.inc + +SUMMARY =3D "U-Boot bootloader fw_printenv/setenv utilities" +DEPENDS =3D "mtd-utils bison-native" + +INSANE_SKIP_${PN} =3D "already-stripped" +EXTRA_OEMAKE_class-target =3D 'CROSS_COMPILE=3D${TARGET_PREFIX} CC=3D"${CC= } ${CFLAGS} ${LDFLAGS}" HOSTCC=3D"${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLA= GS}" V=3D1' +EXTRA_OEMAKE_class-cross =3D 'ARCH=3D${TARGET_ARCH} CC=3D"${CC} ${CFLAGS} = ${LDFLAGS}" V=3D1' + +inherit uboot-config + +do_compile () { + oe_runmake ${UBOOT_MACHINE} + oe_runmake envtools +} + +do_install () { + install -d ${D}${base_sbindir} + install -d ${D}${sysconfdir} + install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_print= env + install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_seten= v + + if [ -e ${WORKDIR}/fw_env.config ]; then + install -m 0644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.= config + else + install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_= env.config + fi +} + +do_install_class-cross () { + install -d ${D}${bindir_cross} + install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_print= env + install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_seten= v +} + +SYSROOT_PREPROCESS_FUNCS_class-cross =3D "uboot_fw_utils_cross" +uboot_fw_utils_cross() { + sysroot_stage_dir ${D}${bindir_cross} ${SYSROOT_DESTDIR}${bindir_cross= } +} + +PROVIDES +=3D "u-boot-fw-utils" +RPROVIDES_${PN} +=3D "u-boot-fw-utils" + +PACKAGE_ARCH =3D "${MACHINE_ARCH}" +BBCLASSEXTEND =3D "cross" diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2018.09.bb b/recipes-bsp/u-boo= t/u-boot-qoriq_2018.09.bb deleted file mode 100644 index f48dc81..0000000 --- a/recipes-bsp/u-boot/u-boot-qoriq_2018.09.bb +++ /dev/null @@ -1,79 +0,0 @@ -require recipes-bsp/u-boot/u-boot.inc -require u-boot-qoriq-common_${PV}.inc - -DESCRIPTION =3D "U-Boot provided by Freescale with focus on QorIQ boards" -PROVIDES +=3D "u-boot" - -INHIBIT_DEFAULT_DEPS =3D "1" -DEPENDS =3D "libgcc virtual/${TARGET_PREFIX}gcc bison-native bc-native swi= g-native python-native" -DEPENDS_append_qoriq-arm64 =3D " change-file-endianess-native dtc-native t= cl-native" -DEPENDS_append_qoriq-arm =3D " change-file-endianess-native dtc-native tcl= -native" -DEPENDS_append_qoriq-ppc =3D " boot-format-native" - -python () { - if d.getVar("TCMODE") =3D=3D "external-fsl": - return - - ml =3D d.getVar("MULTILIB_VARIANTS") - arch =3D d.getVar("OVERRIDES") - - if "e5500-64b:" in arch or "e6500-64b:" in arch: - if not "lib32" in ml: - raise bb.parse.SkipPackage("Building the u-boot for this arch = requires multilib to be enabled") - sys_multilib =3D d.getVar('TARGET_VENDOR') + 'mllib32-linux' - sys_original =3D d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGE= T_OS') - workdir =3D d.getVar('WORKDIR') - d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc'= ) - d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + = '/powerpc' + sys_multilib) - d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=3D' + workdir + '/lib32-r= ecipe-sysroot') - d.setVar("WRAP_TARGET_PREFIX", 'powerpc' + sys_multilib + '-') - elif "fsl-lsch2-32b:" in arch: - if not "lib64" in ml: - raise bb.parse.SkipRecipe("Building the u-boot for this arch r= equires multilib to be enabled") - sys_multilib =3D d.getVar('TARGET_VENDOR') + 'mllib64-linux' - sys_original =3D d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGE= T_OS') - workdir =3D d.getVar('WORKDIR') - d.setVar('DEPENDS_append', ' lib64-gcc-cross-aarch64 lib64-libgcc'= ) - d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + = '/aarch64' + sys_multilib) - d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=3D' + workdir + '/lib64-r= ecipe-sysroot') - d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-') -} - -LE_UBOOT_FOR_ARMBE_TARGET ?=3D "0" -ENDIANNESS_GCC =3D "${@bb.utils.contains("LE_UBOOT_FOR_ARMBE_TARGET", "1",= "-mlittle-endian", "", d)}" -ENDIANNESS_LD =3D "${@bb.utils.contains("LE_UBOOT_FOR_ARMBE_TARGET", "1", = "-EL", "", d)}" - -WRAP_TARGET_PREFIX ?=3D "${TARGET_PREFIX}" -EXTRA_OEMAKE =3D 'CROSS_COMPILE=3D${WRAP_TARGET_PREFIX} CC=3D"${WRAP_TARGE= T_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${ENDIANNESS_GCC}" LD=3D"${WRAP_TARGET_PR= EFIX}ld ${ENDIANNESS_LD}" V=3D1' -EXTRA_OEMAKE +=3D 'HOSTCC=3D"${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"= ' - -do_compile_append_qoriq() { - unset i j k - for config in ${UBOOT_MACHINE}; do - i=3D`expr $i + 1`; - for type in ${UBOOT_CONFIG}; do - j=3D`expr $j + 1`; - for binary in ${UBOOT_BINARIES}; do - k=3D`expr $k + 1` - if [ $j -eq $i ] && [ $k -eq $i ]; then - if [ -n "${BOOTFORMAT_CONFIG}" ] && echo "${type}" |gr= ep -q spi;then - # regenerate spi binary if BOOTFORMAT_CONFIG is se= t - boot_format ${STAGING_DATADIR_NATIVE}/boot_format/= ${BOOTFORMAT_CONFIG} \ - ${config}/u-boot-${type}.${UBOOT_SUFFIX} -spi = ${config}/u-boot.format.bin - cp ${config}/u-boot.format.bin ${config}/u-boot-${= type}.${UBOOT_SUFFIX} - elif [ "qspi" =3D "${type}" ];then - cp ${config}/${binary} ${config}/u-boot-${type}-${= PV}-${PR}.${UBOOT_SUFFIX} - fi - fi - done - unset k - done - unset j - done - unset i -} - - -PACKAGES +=3D "${PN}-images" -FILES_${PN}-images +=3D "/boot" -COMPATIBLE_MACHINE =3D "(qoriq)" diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2019.04.bb b/recipes-bsp/u-boo= t/u-boot-qoriq_2019.04.bb new file mode 100644 index 0000000..f48dc81 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qoriq_2019.04.bb @@ -0,0 +1,79 @@ +require recipes-bsp/u-boot/u-boot.inc +require u-boot-qoriq-common_${PV}.inc + +DESCRIPTION =3D "U-Boot provided by Freescale with focus on QorIQ boards" +PROVIDES +=3D "u-boot" + +INHIBIT_DEFAULT_DEPS =3D "1" +DEPENDS =3D "libgcc virtual/${TARGET_PREFIX}gcc bison-native bc-native swi= g-native python-native" +DEPENDS_append_qoriq-arm64 =3D " change-file-endianess-native dtc-native t= cl-native" +DEPENDS_append_qoriq-arm =3D " change-file-endianess-native dtc-native tcl= -native" +DEPENDS_append_qoriq-ppc =3D " boot-format-native" + +python () { + if d.getVar("TCMODE") =3D=3D "external-fsl": + return + + ml =3D d.getVar("MULTILIB_VARIANTS") + arch =3D d.getVar("OVERRIDES") + + if "e5500-64b:" in arch or "e6500-64b:" in arch: + if not "lib32" in ml: + raise bb.parse.SkipPackage("Building the u-boot for this arch = requires multilib to be enabled") + sys_multilib =3D d.getVar('TARGET_VENDOR') + 'mllib32-linux' + sys_original =3D d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGE= T_OS') + workdir =3D d.getVar('WORKDIR') + d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc'= ) + d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + = '/powerpc' + sys_multilib) + d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=3D' + workdir + '/lib32-r= ecipe-sysroot') + d.setVar("WRAP_TARGET_PREFIX", 'powerpc' + sys_multilib + '-') + elif "fsl-lsch2-32b:" in arch: + if not "lib64" in ml: + raise bb.parse.SkipRecipe("Building the u-boot for this arch r= equires multilib to be enabled") + sys_multilib =3D d.getVar('TARGET_VENDOR') + 'mllib64-linux' + sys_original =3D d.getVar('TARGET_VENDOR') + '-' + d.getVar('TARGE= T_OS') + workdir =3D d.getVar('WORKDIR') + d.setVar('DEPENDS_append', ' lib64-gcc-cross-aarch64 lib64-libgcc'= ) + d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE') + = '/aarch64' + sys_multilib) + d.setVar('TOOLCHAIN_OPTIONS', '--sysroot=3D' + workdir + '/lib64-r= ecipe-sysroot') + d.setVar("WRAP_TARGET_PREFIX", 'aarch64' + sys_multilib + '-') +} + +LE_UBOOT_FOR_ARMBE_TARGET ?=3D "0" +ENDIANNESS_GCC =3D "${@bb.utils.contains("LE_UBOOT_FOR_ARMBE_TARGET", "1",= "-mlittle-endian", "", d)}" +ENDIANNESS_LD =3D "${@bb.utils.contains("LE_UBOOT_FOR_ARMBE_TARGET", "1", = "-EL", "", d)}" + +WRAP_TARGET_PREFIX ?=3D "${TARGET_PREFIX}" +EXTRA_OEMAKE =3D 'CROSS_COMPILE=3D${WRAP_TARGET_PREFIX} CC=3D"${WRAP_TARGE= T_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${ENDIANNESS_GCC}" LD=3D"${WRAP_TARGET_PR= EFIX}ld ${ENDIANNESS_LD}" V=3D1' +EXTRA_OEMAKE +=3D 'HOSTCC=3D"${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"= ' + +do_compile_append_qoriq() { + unset i j k + for config in ${UBOOT_MACHINE}; do + i=3D`expr $i + 1`; + for type in ${UBOOT_CONFIG}; do + j=3D`expr $j + 1`; + for binary in ${UBOOT_BINARIES}; do + k=3D`expr $k + 1` + if [ $j -eq $i ] && [ $k -eq $i ]; then + if [ -n "${BOOTFORMAT_CONFIG}" ] && echo "${type}" |gr= ep -q spi;then + # regenerate spi binary if BOOTFORMAT_CONFIG is se= t + boot_format ${STAGING_DATADIR_NATIVE}/boot_format/= ${BOOTFORMAT_CONFIG} \ + ${config}/u-boot-${type}.${UBOOT_SUFFIX} -spi = ${config}/u-boot.format.bin + cp ${config}/u-boot.format.bin ${config}/u-boot-${= type}.${UBOOT_SUFFIX} + elif [ "qspi" =3D "${type}" ];then + cp ${config}/${binary} ${config}/u-boot-${type}-${= PV}-${PR}.${UBOOT_SUFFIX} + fi + fi + done + unset k + done + unset j + done + unset i +} + + +PACKAGES +=3D "${PN}-images" +FILES_${PN}-images +=3D "/boot" +COMPATIBLE_MACHINE =3D "(qoriq)" --=20 2.7.4