Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 78AC2E009DA; Mon, 4 Jul 2016 03:43:13 -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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [104.47.41.87 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0087.outbound.protection.outlook.com [104.47.41.87]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id F0CBCE00C22 for ; Mon, 4 Jul 2016 03:43:10 -0700 (PDT) Received: from BN3PR0301CA0033.namprd03.prod.outlook.com (10.160.180.171) by BLUPR03MB583.namprd03.prod.outlook.com (10.141.79.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16; Mon, 4 Jul 2016 10:43:08 +0000 Received: from BN1AFFO11FD017.protection.gbl (2a01:111:f400:7c10::119) by BN3PR0301CA0033.outlook.office365.com (2a01:111:e400:4000::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Mon, 4 Jul 2016 10:43:09 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=fail action=none header.from=nxp.com; nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD017.mail.protection.outlook.com (10.58.52.77) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Mon, 4 Jul 2016 10:43:08 +0000 Received: from ceres.localdomain (ceres.ap.freescale.net [10.192.208.81]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u64Aglgo001276; Mon, 4 Jul 2016 03:43:06 -0700 From: To: Date: Mon, 4 Jul 2016 18:41:26 +0800 Message-ID: <1467628945-29293-9-git-send-email-ting.liu@nxp.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1467628945-29293-1-git-send-email-ting.liu@nxp.com> References: <1467628945-29293-1-git-send-email-ting.liu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131121025887761673; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(19580395003)(19580405001)(189998001)(69596002)(50986999)(16601075003)(85426001)(76176999)(92566002)(36756003)(4326007)(2876002)(2906002)(68736007)(586003)(77096005)(5003940100001)(15975445007)(2950100001)(50226002)(230783001)(86152002)(105606002)(50466002)(97736004)(305945005)(33646002)(47776003)(575784001)(48376002)(110136002)(6806005)(104016004)(86362001)(8936002)(106466001)(81166006)(229853001)(2351001)(7846002)(87936001)(8676002)(356003)(8666005)(81156014)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB583; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD017; 1:6gDECb185joertvhsD+6BQQFxMgqkUwlE4OprZES/+Dmh/uXQZp5tFSp2XDGZBFnr40QhD40bK7ET+XrUgHPYANRfDCA6kmmUzL+Um3tszrXOM/ae0QKKP3Ezg9zyDbCxZ7AFp+OqCc8slmqoyHXIld46po/RVE7EIuLFx4daDPFFwLE2pdASbtzi+FeElpfWclDaxC7e/ldhpKVuJb28DrIBkNpw1c/dprXJZGb56FKVPlJwM1f4JMdY8RvVg5RdX8Mmq3EcKyc5DBzpC1lgA7ul2mSvAEKFvuyciQvlwNwEFO4iJ7/FVWMuWLdFexo/VONmyGnu5csNj+hUqazqNFygd7IMTaFZPPXnat26e48x//5L5Q3Ir4zW/DWs20tob3Y9M/wr3ocHkw8+nPoRX2aVP9xSdaXm9GoRbJXSwB9irK31aSnfYfwUdzu3ZKoFVD0HHdQ/KqDB/xilkCZ3X5lHjW968GrMfK8QzAbaqZGHY1dMv5yWqbMyQ/xF41X+kGkSURabeggSK9Th6twrx/fBu7XUG1Hc0y4NszJcSEGkgKm20hO6qDHZa0aohFmq5UJuNuStYl64CiXqE2zVSenrZ6LMCKjPu3xJeh2xWgob6DqhLxDwFj9fPhjFCSeGjVMr0ll03chViTuj3QLN94XdLxgnjp0VsjsBkEzU/EXaK4O4QTefdMpRVGH0EhNTbp6ALVr0LvFekkGREcghEnG3GXyanL2bs4DLdEsBRE= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 02f776f5-23ea-4bf1-f509-08d3a3f7fd16 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB583; 2:EfzI9WJRZ376SGEq9jbWXFqY2axSar/Rp5YpZ2mRLpG9TLAYduqmF4cJaawYW8R5taFx9WiVURfMlTCmZT7QHi8WiuJigI7jz7aTzxRICKtg+Emo2wGmDP1sPPlwhcgMQND5C104e6hTzOrw1qscCvNXxUfAJwWOTDn8MHIulBJvI8pWrF+ky/bsycHo1+qQ; 3:Rp62DgoYpQ48ypUO5lSvyl4+sWObpV9Zz5oL4v6QNHsRbhfmVI0XUvu/QOmzibQiUonCaSfwnO70dp57fK6UZ/tdPypDg0VlBeGZkcOQNgjgEe43ur8cufqz5LnHolc+Wf2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Diagnostics: 1; BLUPR03MB583; 31:cfoAbcY4OxDh2/z04L0QH/0AvHqnKRzF/zJ1OAE1e4kWHoJUHfiUt1YPtuM2wrHQwX5ZY4w4IzlW1dePhLlqU2YciDw8IS3WT95i0N6qPsQn4R223XRDE95YSHOfZy7nHQCkYC129DA4ZL6QYAOcq1ZbXJn3o+26do7/hHaT6P5ANurzYZAWLp67Kn0EyadIXs29ohCpHIPNyI/IggNQWQ==; 4:kTskHJSpGshn0L1XuOvKTwJGdERAEU8+akv1WSK5RFBfJpxfs7Tkq/wFZgRaLO4sAvR1W03x5WnSxDbcr3cn8CHjkweMFrBJuVYZbF43Fc7n/b5qaSsL7bF3iHRwKxzGEpD9QZmWnQjwmlugafNoOp6nvDpMeu9d6AH0VMozHzwi9y997lIJI1PsUKbsd2I5S2Q+wSlt0sMIpeG8K8t9vHwsNxyIZsknMXLhehGtqqRnu5MKLxABLRtT/CcOICtGJPnxMbcTowyRG8tlXDl6vTfJZaaa03BJtJ/zbyclwG04zv9gHKORugwIQWBgA8nagaHTLttldfzcpfJebCsRtSQ15Idy3n3jYd8UxOLli1B31H/m49jU7KFdqZif3jAGrHVeaL+e5YVqaNKqiNzZ4MsoqI66RAZc0o6yWQKgkUCVQtVAijmVhU5sXCcGLrCxDj/dYA39dfm1N5yv7H5jcohiAIUWPc67YgUwYCvEd+JzDTy52oOFHXJkYUTjeCMZXMK3fniFQZwLnP51ZAceEboLShzOunO6AbajdrIvFGEPrhDJjpEM5h82C1/I9F9xRnNphB0nXmP501wuro5ARJoV1nL8cjBjUCKP7xG4E0BQEHDsJp3R2s0mgRHW4qYT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(22074186197030)(185117386973197)(101931422205132)(183786458502308); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13018025)(5005006)(8121501046)(13024025)(13023025)(13017025)(3002001)(10201501046)(6055026); SRVR:BLUPR03MB583; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB583; X-Forefront-PRVS: 0993689CD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB583; 23:VYKTxBXGq3XC+UnCDKWn7bQIeTEFcV9EaNnJk9j9UW?= =?us-ascii?Q?VZ5UqkGi/kZxKR+nvGYVOhGoJpe8aj4YjhqrTWoMqFUBBq2KavYA+0vQwBs0?= =?us-ascii?Q?fUemXh7ImbqED2Vwm9GJl0PekDPEoQf2ilRLaR9KQe3sHkJoPLjhM0vcwX9B?= =?us-ascii?Q?cAt1+bJXlYWj1TQHG51dsKRy+3Vb2zNxWTx/x6u/s6b5yznMtL9+ZUTd8/w/?= =?us-ascii?Q?2EQH+zChHn13L8ydkaLDP5Z01AfiRX+YVkbBW8fnzMk4aNlO/6YR4zqwfBN/?= =?us-ascii?Q?tXRoWHIgYCYgf/eZnGcYYrMvhL48P+BnzuZT8RaeQdadLvm+HXEmWPJWGOtX?= =?us-ascii?Q?5vF5xVkOXhuwExNynPUlzj5oLqnx60mi+DrquBGn4WosCGMcAs15oyqmtmqL?= =?us-ascii?Q?QEKrpCl9Y6Hhvo4Mzz9wknTeQ0J7bPWYpCJNCxJgK8EXTwYs2GcehI4P5RmC?= =?us-ascii?Q?Yyfva9voJt5dOvgHDoFV0PsP1H5AvsaZJusLTt52deUFH4bu9nLwqz0jAXvX?= =?us-ascii?Q?Q/IUPNGrhq5oUQ64kMPwy/rP8yT4qEe8aEyiHez3Rqcate4OGhjLnNXpnHmV?= =?us-ascii?Q?MZtT5AedBnkUMB9jvfPqKE49IQnjzCxygnI22gYEwGbyVM3Gn8+rLHJZhoC2?= =?us-ascii?Q?gJg/WOj0YM6xxpGvvc3re/4WiQAPdF0jYxoJrSjnkKazrgkDmilhCTHn3qsw?= =?us-ascii?Q?IEXCvKTh60DEs3HUUU9TWuiv7NlWU8FEkFZcXrD7TXPEcRV2bjd7TqxS0eIk?= =?us-ascii?Q?jqKaoHwhKEPj8Jsg9vDP7K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6AEH4TCUMNjt84adHxUXT3vw9e/wuoyZ6cTTxOyRekx3ElYKRMUXuqV89iIRu993ZJOwi1GWwPQu9IBS4vrlP11j0e/stWB1cSWJK2M5I+LQ4IQo=; 24:Tmp3YbT/Dk1aEzXjDYVJEn7ma2L9V9f2Lxc93lXC2hG0HzzPckGTfVfwHGoi/GZDnb+eaIn59KL5reOYGPq9XCKcd89hxTVo0jN+j8rssKw=; 7:8EJkJo3pGP/KcBJWC3FBMVxHNBXSAg+qsJ3RAmB3NrpLR1RlDRVAJclsAElhBvWbx0sNpOGGxS5p9n/9u5WMUATzEB0f1FSUZ2O6lTTc0SkYZDLuEXcj4zwO1gwUmxPjcpyPFPfdrco+SQ+HAihRluDX9Y30tPBrrdsZfHCHm0jzVl4qCT2y1FPpDVQmp9A7wms90Kmy2G0RgaRHE7nx/ZqD5VCP9deLnjMJjPIELX/pj3BShQWahRE07QHkcNUf SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2016 10:43:08.5265 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB583 Subject: [meta-freescale-layer][PATCH 08/67] u-boot-qoriq: upgrade to 2016.01 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: Mon, 04 Jul 2016 10:43:13 -0000 Content-Type: text/plain From: Ting Liu The main features are: * Upgrade to 2016.01 * On ARM platforms, the U-Boot image includes the device tree * Non-secure and Secure Boot (ESBC) * Primary Protected Application (PPA) firmware integration [LS1043A] * Clock, CPLD, DUART, DDR3, DDR4, DSPI, eSDHC, GIC-400, GIC-500, I2C, OCRAM, PCIe, USB 2 & 3, SATA, UART * Networking support using eTSEC, FMAN Independent Mode or DPAA2 networking * DCU, eMMC 4.5, I2C3, LPUART, QSPI [LS1021A] * eLBC and IFC access to NOR and NAND flash * Boot from NOR, NAND flash, eSPI, SDHC * Boot from SRIO [B4860, P5020, P4080] * Voltage ID (board specific) * CodeWarrior debug patch for U-Boot Detailed commit log can be found at: http://git.freescale.com/git/cgit.cgi/ppc/sdk/u-boot.git/log/?h=sdk-v2.0.x Signed-off-by: Ting Liu --- .../files/add-fgnu89-inline-option-for-gcc5.patch | 39 ----- recipes-bsp/u-boot/files/gcc5.patch | 91 ------------ .../fix-build-error-under-gcc6.patch | 0 recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | 164 --------------------- recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb | 155 +++++++++++++++++++ 5 files changed, 155 insertions(+), 294 deletions(-) delete mode 100644 recipes-bsp/u-boot/files/add-fgnu89-inline-option-for-gcc5.patch delete mode 100644 recipes-bsp/u-boot/files/gcc5.patch rename recipes-bsp/u-boot/{files => u-boot-qoriq}/fix-build-error-under-gcc6.patch (100%) delete mode 100644 recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb create mode 100644 recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb diff --git a/recipes-bsp/u-boot/files/add-fgnu89-inline-option-for-gcc5.patch b/recipes-bsp/u-boot/files/add-fgnu89-inline-option-for-gcc5.patch deleted file mode 100644 index cfe1c07..0000000 --- a/recipes-bsp/u-boot/files/add-fgnu89-inline-option-for-gcc5.patch +++ /dev/null @@ -1,39 +0,0 @@ -Upstream-Status: Pending - -From 4d4fcfc41288134b48b72ac69702f68741d7631f Mon Sep 17 00:00:00 2001 -From: Ting Liu -Date: Tue, 28 Jul 2015 16:29:26 +0800 -Subject: [PATCH] add -fgnu89-inline option for gcc5 - -Fix the below build issues: - CC drivers/crypto/fsl/sec.o - LD arch/powerpc/cpu/mpc8xxx/built-in.o -arch/powerpc/cpu/mpc8xxx/fdt.o: In function `ld_le16': -../arch/powerpc/include/asm/byteorder.h:12: multiple definition of `ld_le16' - -The problem is the change of the default C standard from gnu89 to gnu11 -which changes the semantics of 'inline'. The issue is described in the -Porting guide at https://gcc.gnu.org/gcc-5/porting_to.html. Adding the -'-fgnu89-inline' option fixes the issue. - -Signed-off-by: Ting Liu ---- - Makefile | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/Makefile b/Makefile -index 9995e00..00497cc 100644 ---- a/Makefile -+++ b/Makefile -@@ -349,7 +349,7 @@ CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ - - KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__ - --KBUILD_CFLAGS := -Wall -Wstrict-prototypes \ -+KBUILD_CFLAGS := -fgnu89-inline -Wall -Wstrict-prototypes \ - -Wno-format-security \ - -fno-builtin -ffreestanding - KBUILD_AFLAGS := -D__ASSEMBLY__ --- -1.9.2 - diff --git a/recipes-bsp/u-boot/files/gcc5.patch b/recipes-bsp/u-boot/files/gcc5.patch deleted file mode 100644 index 12db94c..0000000 --- a/recipes-bsp/u-boot/files/gcc5.patch +++ /dev/null @@ -1,91 +0,0 @@ -Upstream-Status: Backport - -From 478b02f1a7043b673565075ea5016376f3293b23 Mon Sep 17 00:00:00 2001 -From: Hans de Goede -Date: Sat, 7 Feb 2015 22:52:40 +0100 -Subject: [PATCH] Add linux/compiler-gcc5.h to fix builds with gcc5 - -Add linux/compiler-gcc5/h from the kernel sources at: - -commit 5631b8fba640a4ab2f8a954f63a603fa34eda96b -Author: Steven Noonan -Date: Sat Oct 25 15:09:42 2014 -0700 - - compiler/gcc4+: Remove inaccurate comment about 'asm goto' miscompiles - -Signed-off-by: Hans de Goede ---- - include/linux/compiler-gcc5.h | 65 +++++++++++++++++++++++++++++++++++++++++ - 1 file changed, 65 insertions(+) - create mode 100644 include/linux/compiler-gcc5.h - -Index: git/include/linux/compiler-gcc5.h -=================================================================== ---- /dev/null -+++ git/include/linux/compiler-gcc5.h -@@ -0,0 +1,65 @@ -+#ifndef __LINUX_COMPILER_H -+#error "Please don't include directly, include instead." -+#endif -+ -+#define __used __attribute__((__used__)) -+#define __must_check __attribute__((warn_unused_result)) -+#define __compiler_offsetof(a, b) __builtin_offsetof(a, b) -+ -+/* Mark functions as cold. gcc will assume any path leading to a call -+ to them will be unlikely. This means a lot of manual unlikely()s -+ are unnecessary now for any paths leading to the usual suspects -+ like BUG(), printk(), panic() etc. [but let's keep them for now for -+ older compilers] -+ -+ Early snapshots of gcc 4.3 don't support this and we can't detect this -+ in the preprocessor, but we can live with this because they're unreleased. -+ Maketime probing would be overkill here. -+ -+ gcc also has a __attribute__((__hot__)) to move hot functions into -+ a special section, but I don't see any sense in this right now in -+ the kernel context */ -+#define __cold __attribute__((__cold__)) -+ -+#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) -+ -+#ifndef __CHECKER__ -+# define __compiletime_warning(message) __attribute__((warning(message))) -+# define __compiletime_error(message) __attribute__((error(message))) -+#endif /* __CHECKER__ */ -+ -+/* -+ * Mark a position in code as unreachable. This can be used to -+ * suppress control flow warnings after asm blocks that transfer -+ * control elsewhere. -+ * -+ * Early snapshots of gcc 4.5 don't support this and we can't detect -+ * this in the preprocessor, but we can live with this because they're -+ * unreleased. Really, we need to have autoconf for the kernel. -+ */ -+#define unreachable() __builtin_unreachable() -+ -+/* Mark a function definition as prohibited from being cloned. */ -+#define __noclone __attribute__((__noclone__)) -+ -+/* -+ * Tell the optimizer that something else uses this function or variable. -+ */ -+#define __visible __attribute__((externally_visible)) -+ -+/* -+ * GCC 'asm goto' miscompiles certain code sequences: -+ * -+ * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670 -+ * -+ * Work it around via a compiler barrier quirk suggested by Jakub Jelinek. -+ * -+ * (asm goto is automatically volatile - the naming reflects this.) -+ */ -+#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) -+ -+#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP -+#define __HAVE_BUILTIN_BSWAP32__ -+#define __HAVE_BUILTIN_BSWAP64__ -+#define __HAVE_BUILTIN_BSWAP16__ -+#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */ diff --git a/recipes-bsp/u-boot/files/fix-build-error-under-gcc6.patch b/recipes-bsp/u-boot/u-boot-qoriq/fix-build-error-under-gcc6.patch similarity index 100% rename from recipes-bsp/u-boot/files/fix-build-error-under-gcc6.patch rename to recipes-bsp/u-boot/u-boot-qoriq/fix-build-error-under-gcc6.patch diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb b/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb deleted file mode 100644 index 8b20b5a..0000000 --- a/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb +++ /dev/null @@ -1,164 +0,0 @@ -require recipes-bsp/u-boot/u-boot.inc -inherit fsl-u-boot-localversion - -DESCRIPTION = "U-boot provided by Freescale with focus on QorIQ boards" -HOMEPAGE = "http://u-boot.sf.net" -SECTION = "bootloaders" -PROVIDES = "virtual/bootloader u-boot" -LICENSE = "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1" -LIC_FILES_CHKSUM = " \ - file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ - file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \ - file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \ - file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ - file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \ -" - -PV_append = "+fslgit" -INHIBIT_DEFAULT_DEPS = "1" -DEPENDS = "libgcc virtual/${TARGET_PREFIX}gcc" -DEPENDS_append_qoriq-arm = " change-file-endianess-native dtc-native tcl-native" -DEPENDS_append_qoriq-ppc = " boot-format-native" - -inherit deploy - -SRCBRANCH = "sdk-v1.9.x" -SRC_URI = "git://git.freescale.com/ppc/sdk/u-boot.git;branch=${SRCBRANCH} \ - file://gcc5.patch \ - file://add-fgnu89-inline-option-for-gcc5.patch \ - file://fix-build-error-under-gcc6.patch \ -" -SRCREV = "eb3d4fc5759729d7af71ac31ebf6a7e8d0e79da3" - -python () { - if d.getVar("TCMODE", True) == "external-fsl": - return - - ml = d.getVar("MULTILIB_VARIANTS", True) - arch = d.getVar("OVERRIDES", True) - - 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 = 'powerpc' + d.getVar('TARGET_VENDOR', False) + 'mllib32-' + d.getVar('HOST_OS', False) - d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc') - d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE', False) + '/' + sys_multilib) - d.setVar('TOOLCHAIN_OPTIONS_append', '/../lib32-' + d.getVar("MACHINE", False)) - d.setVar("WRAP_TARGET_PREFIX", sys_multilib + '-') -} - -WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -LOCALVERSION = "${@d.getVar('SDK_VERSION', True).partition(' ')[0]}" - -S = "${WORKDIR}/git" - -EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"' - -do_compile_append_qoriq-ppc() { - for board in ${UBOOT_MACHINE}; do - case "${board}" in - *SDCARD*) UBOOT_TARGET="u-boot-sd";; - *SPIFLASH*) UBOOT_TARGET="u-boot-spi";; - *NAND*) UBOOT_TARGET="u-boot-nand";; - *SRIO*) UBOOT_TARGET="u-boot-srio";; - *) UBOOT_TARGET="";; - esac - - # deal with sd/spi/nand/srio image - UBOOT_SOURCE=u-boot.bin - if [ "x${UBOOT_TARGET}" != "x" ] && echo $board |egrep -qi "SECBOOT|SECURE"; then - cp ${S}/${board}/${UBOOT_SOURCE} ${S}/${board}/${UBOOT_TARGET}.bin - elif [ "x${UBOOT_TARGET}" != "x" ]; then - # some boards' final binary was not named as u-boot.bin - if [ "${UBOOT_TARGET}" = "u-boot-nand" ] && [ "${UBOOT_SOURCE_NAND}" != "" ]; then - UBOOT_SOURCE="${UBOOT_SOURCE_NAND}" - elif [ "${UBOOT_TARGET}" = "u-boot-spi" ] && [ "${UBOOT_SOURCE_SPI}" != "" ]; then - UBOOT_SOURCE="${UBOOT_SOURCE_SPI}" - elif [ "${UBOOT_TARGET}" = "u-boot-sd" ] && [ "${UBOOT_SOURCE_SD}" != "" ]; then - UBOOT_SOURCE="${UBOOT_SOURCE_SD}" - fi - cp ${S}/${board}/${UBOOT_SOURCE} ${S}/${board}/${UBOOT_TARGET}.bin - - # use boot-format to regenerate spi image if BOOTFORMAT_CONFIG is not empty - if [ "${UBOOT_TARGET}" = "u-boot-spi" ] && [ -n "${BOOTFORMAT_CONFIG}" ];then - ${STAGING_BINDIR_NATIVE}/boot_format \ - ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \ - ${S}/${board}/${UBOOT_SOURCE} -spi ${S}/${board}/${UBOOT_TARGET}.bin - fi - fi - done -} - -do_compile_append_qoriq-arm () { - unset i j - if [ "x${UBOOT_CONFIG}" != "x" ]; then - for config in ${UBOOT_MACHINE}; do - i=`expr $i + 1`; - for type in ${UBOOT_CONFIG}; do - j=`expr $j + 1`; - if [ $j -eq $i ]; then - case "${config}" in - *nand* | *sdcard*) - cp ${config}/u-boot-with-spl-pbl.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; - *spi*) - tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${config}/u-boot-dtb.bin ${config}/u-boot.swap.bin 8 - cp ${config}/u-boot.swap.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; - esac - fi - done - unset j - done - unset i - fi -} - - -do_install_append_qoriq-ppc() { - for board in ${UBOOT_MACHINE}; do - case "${board}" in - *SDCARD*) UBOOT_TARGET="u-boot-sd";; - *SPIFLASH*) UBOOT_TARGET="u-boot-spi";; - *NAND*) UBOOT_TARGET="u-boot-nand";; - *SRIO*) UBOOT_TARGET="u-boot-srio";; - *) UBOOT_TARGET="u-boot";; - esac - - if [ -f ${S}/${board}/${UBOOT_TARGET}.bin ]; then - mkdir -p ${D}/boot/ - install ${S}/${board}/${UBOOT_TARGET}.bin ${D}/boot/${UBOOT_TARGET}-${board}-${PV}-${PR}.bin - ln -sf ${UBOOT_TARGET}-${board}-${PV}-${PR}.bin ${D}/boot/${UBOOT_TARGET}.bin - fi - done -} - -do_deploy_append_qoriq-ppc() { - if [ "x${UBOOT_MACHINES}" = "x" ]; then - UBOOT_MACHINES="${UBOOT_MACHINE}" - fi - - for board in ${UBOOT_MACHINES}; do - case "${board}" in - *SDCARD*) UBOOT_TARGET="u-boot-sd";; - *SPIFLASH*) UBOOT_TARGET="u-boot-spi";; - *NAND*) UBOOT_TARGET="u-boot-nand";; - *SRIO*) UBOOT_TARGET="u-boot-srio";; - *) UBOOT_TARGET="u-boot";; - esac - - if [ -f ${S}/${board}/${UBOOT_TARGET}.bin ]; then - mkdir -p ${DEPLOYDIR} - install ${S}/${board}/${UBOOT_TARGET}.bin ${DEPLOYDIR}/${UBOOT_TARGET}-${board}-${PV}-${PR}.bin - rm -f ${DEPLOYDIR}/${UBOOT_TARGET}-${board}.bin - ln -sf ${UBOOT_TARGET}-${board}-${PV}-${PR}.bin ${DEPLOYDIR}/${UBOOT_TARGET}-${board}.bin - fi - done -} -addtask deploy after do_install - -PACKAGES += "${PN}-images" -FILES_${PN}-images += "/boot" - -COMPATIBLE_MACHINE = "(qoriq)" diff --git a/recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb b/recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb new file mode 100644 index 0000000..623cfa6 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-qoriq_2016.01.bb @@ -0,0 +1,155 @@ +require recipes-bsp/u-boot/u-boot.inc +inherit fsl-u-boot-localversion + +DESCRIPTION = "U-Boot provided by Freescale with focus on QorIQ boards" +PROVIDES += "u-boot" +LICENSE = "GPLv2 & BSD-3-Clause & BSD-2-Clause & LGPL-2.0 & LGPL-2.1" +LIC_FILES_CHKSUM = " \ + file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ + file://Licenses/bsd-2-clause.txt;md5=6a31f076f5773aabd8ff86191ad6fdd5 \ + file://Licenses/bsd-3-clause.txt;md5=4a1190eac56a9db675d58ebe86eaf50c \ + file://Licenses/lgpl-2.0.txt;md5=5f30f0716dfdd0d91eb439ebec522ec2 \ + file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \ +" + +DEPENDS_append_qoriq-ppc = " boot-format-native" +DEPENDS_append_qoriq-arm = " change-file-endianess-native dtc-native tcl-native" +DEPENDS_append_qoriq-arm64 = " change-file-endianess-native dtc-native tcl-native" + +python () { + if d.getVar("TCMODE", True) == "external-fsl": + return + + ml = d.getVar("MULTILIB_VARIANTS", True) + arch = d.getVar("OVERRIDES", True) + + 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 = 'powerpc' + d.getVar('TARGET_VENDOR', False) + 'mllib32-' + d.getVar('HOST_OS', False) + d.setVar('DEPENDS_append', ' lib32-gcc-cross-powerpc lib32-libgcc') + d.setVar('PATH_append', ':' + d.getVar('STAGING_BINDIR_NATIVE', False) + '/' + sys_multilib) + d.setVar('TOOLCHAIN_OPTIONS_append', '/../lib32-' + d.getVar("MACHINE", False)) + d.setVar("WRAP_TARGET_PREFIX", sys_multilib + '-') +} +WRAP_TARGET_PREFIX ?= "${TARGET_PREFIX}" +EXTRA_OEMAKE = 'CROSS_COMPILE=${WRAP_TARGET_PREFIX} CC="${WRAP_TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}"' + +SRC_URI = "git://git.freescale.com/ppc/sdk/u-boot.git;branch=sdk-v2.0.x \ + file://fix-build-error-under-gcc6.patch \ +" +SRCREV = "a9b437f50e2051f8d42ec9e1a6df52de4bc00e1e" + +S = "${WORKDIR}/git" + +LOCALVERSION ?= "+fsl" + +do_compile_append_qoriq-arm () { + unset i j + if [ "x${UBOOT_CONFIG}" != "x" ]; then + for config in ${UBOOT_MACHINE}; do + i=`expr $i + 1`; + for type in ${UBOOT_CONFIG}; do + j=`expr $j + 1`; + if [ $j -eq $i ]; then + case "${config}" in + *SECURE*|*SECBOOT*) + :;; + *nor*) + cp ${config}/u-boot-dtb.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; + *nand* | *sdcard*) + cp ${config}/u-boot-with-spl-pbl.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; + *spi*) + tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${config}/u-boot-dtb.bin ${config}/u-boot.swap.bin 8 + cp ${config}/u-boot.swap.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; + esac + fi + done + unset j + done + unset i + fi +} + +do_compile_append_qoriq-arm64 () { + unset i j + if [ "x${UBOOT_CONFIG}" != "x" ]; then + for config in ${UBOOT_MACHINE}; do + i=`expr $i + 1`; + for type in ${UBOOT_CONFIG}; do + j=`expr $j + 1`; + if [ $j -eq $i ]; then + case "${config}" in + *SECURE*|*SECBOOT*) + :;; + *nor*) + cp ${config}/u-boot-dtb.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; + *nand* | *sdcard*) + cp ${config}/u-boot-with-spl-pbl.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; + *spi*) + tclsh ${STAGING_BINDIR_NATIVE}/byte_swap.tcl ${config}/u-boot-dtb.bin ${config}/u-boot.swap.bin 8 + cp ${config}/u-boot.swap.bin ${config}/u-boot-${type}.${UBOOT_SUFFIX};; + esac + fi + done + unset j + done + unset i + fi +} + +do_compile_append_qoriq-ppc () { + # some board's final nand/spi/sdcard binary was not named as u-boot.bin + unset i j + if [ "x${UBOOT_CONFIG}" != "x" ]; then + for config in ${UBOOT_MACHINE}; do + i=`expr $i + 1`; + UBOOT_SOURCE=${UBOOT_BINARY} + if echo ${config} |egrep -v "SECBOOT|SECURE" |egrep -qi "SDCARD|SPIFLASH|NAND"; then + if echo ${config} |egrep -qi "NAND";then + if echo ${config} |egrep -qi "^(BSC|C29|P10|P2020RDB)";then + UBOOT_SOURCE=u-boot-with-spl.bin + elif echo ${config} |egrep -qi "^(B4|T1|T2|T4)";then + UBOOT_SOURCE=u-boot-with-spl-pbl.bin + elif echo ${config} |egrep -qi "^(P2041|P3|P4|P5)";then + UBOOT_SOURCE=u-boot.pbl + fi + elif echo ${config} |egrep -qi "SPIFLASH";then + if echo ${config} |egrep -qi "^(P10|P2020RDB)";then + UBOOT_SOURCE=u-boot-with-spl.bin + elif echo ${config} |egrep -qi "^(T1|T2)";then + UBOOT_SOURCE=u-boot-with-spl-pbl.bin + elif echo ${config} |egrep -qi "^(B4|P2041|P3|P4|P5|T4)";then + UBOOT_SOURCE=u-boot.pbl + fi + elif echo ${config} |egrep -qi "SDCARD";then + if echo ${config} |egrep -qi "^(P10|P2020RDB)";then + UBOOT_SOURCE=u-boot-with-spl.bin + elif echo ${config} |egrep -qi "^(B4|T1|T2|T4)";then + UBOOT_SOURCE=u-boot-with-spl-pbl.bin + elif echo ${config} |egrep -qi "^(P2041|P3|P4|P5)";then + UBOOT_SOURCE=u-boot.pbl + fi + fi + for type in ${UBOOT_CONFIG}; do + j=`expr $j + 1`; + if [ $j -eq $i ]; then + cp ${S}/${config}/${UBOOT_SOURCE} ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} + # use boot-format to regenerate spi image if BOOTFORMAT_CONFIG is not empty + if echo ${config} |egrep -qi "SPIFLASH" && [ -n "${BOOTFORMAT_CONFIG}" ];then + ${STAGING_BINDIR_NATIVE}/boot_format \ + ${STAGING_DATADIR_NATIVE}/boot_format/${BOOTFORMAT_CONFIG} \ + ${S}/${config}/${UBOOT_SOURCE} -spi ${S}/${config}/u-boot-${type}.${UBOOT_SUFFIX} + fi + fi + done + unset j + fi + done + unset i + fi +} + +PACKAGES += "${PN}-images" +FILES_${PN}-images += "/boot" +COMPATIBLE_MACHINE = "(qoriq)" -- 1.9.2