Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6BF59E007FE; Thu, 29 Oct 2015 02:35:32 -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 * [157.56.111.110 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] X-Greylist: delayed 845 seconds by postgrey-1.32 at yocto-www; Thu, 29 Oct 2015 02:35:26 PDT Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0110.outbound.protection.outlook.com [157.56.111.110]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A8CD1E0071C for ; Thu, 29 Oct 2015 02:35:26 -0700 (PDT) Received: from BN3PR0301CA0030.namprd03.prod.outlook.com (10.160.180.168) by BY1PR03MB1371.namprd03.prod.outlook.com (10.162.109.29) with Microsoft SMTP Server (TLS) id 15.1.306.13; Thu, 29 Oct 2015 09:21:17 +0000 Received: from BL2FFO11FD029.protection.gbl (2a01:111:f400:7c09::135) by BN3PR0301CA0030.outlook.office365.com (2a01:111:e400:4000::40) with Microsoft SMTP Server (TLS) id 15.1.312.18 via Frontend Transport; Thu, 29 Oct 2015 09:21:17 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD029.mail.protection.outlook.com (10.173.160.69) with Microsoft SMTP Server (TLS) id 15.1.318.9 via Frontend Transport; Thu, 29 Oct 2015 09:21:16 +0000 Received: from sun.ap.freescale.net (sun.ap.freescale.net [10.192.208.75]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t9T9LE6I028813; Thu, 29 Oct 2015 02:21:15 -0700 From: To: Date: Thu, 29 Oct 2015 17:21:11 +0800 Message-ID: <1446110471-29752-1-git-send-email-b40290@freescale.com> X-Mailer: git-send-email 1.9.2 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD029; 1:zfdjqapactBqXrU6AsUbX+lcWBZkEusJWdFtEmvcwwkKFwh53FAXrY6XR3X2iCC5ckRPZUZvNNv0FyaqCD+r52O7vhspIqIG7AdQVwHxsVOeh30qnhi3hjGLI1eLxLWRiq9LS8B8oF7b7DMXEOEnhRMPK5DSflbYOfpX20TOnehv8Q4qFSZ86MMPoMSmrrRTDNCPm2WDzVwjzHhCXjXtw5ufrzze5YsFrmQp35OOLKY7Xg3hPinwOs5zCqmUxw1lK9IkGAeif6aFM0773JP7pLq95nk9398KaM8o8uuWeezQmPfMSpaBmi7Ky9upzDWHLY+VlrNf6ue7TMZNe32dV0LZz3Glfj+7R138hmoUdxy56uAF0SMOxtk6iFT0GKQYvYwe2TFPFmUKGr7ISuKJaw== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(106466001)(50986999)(107886002)(229853001)(33646002)(110136002)(86152002)(92566002)(230783001)(105606002)(81156007)(2351001)(5008740100001)(36756003)(48376002)(97736004)(189998001)(50466002)(5001960100002)(450100001)(15975445007)(87936001)(77096005)(86362001)(5007970100001)(104016004)(50226001)(11100500001)(19580405001)(5003940100001)(6806005)(85426001)(4001430100002)(19580395003)(47776003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR03MB1371; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1371; 2:QcFoK1HiOXfdLd4T05Sny0bXQprghqMRTmGC89JYOp6Iy8HsyxLWP+ok3jAem7hurf+202IH0LfQpEUx7zpHc5suTSQ816cPT574Te/S7mc9MaXCsW0p0eV1Q30REVInyoVISKu+MqGFFkYY6NvhkvEmUvl+JlW3ZWrcfaGhlyE=; 3:I8Y3FKP8EbcBtGoenPxxLENAMhWhWlnMCF3jZ6XR0ZNvh8d6/xwkHIpEGe8GFu/tQe1RTJuHLSq6j1Cx5IhVtjGPQX/roXe1e7+CfE5fDWKq3IqpUGI5KqY1fxuKWNt+OkZVCwffdH9wqf2Pj+qdH5B8PSu12ngRJTsBDcJsCGxNkBVkcN6gz3Y4Y20gTslXDPVprZ7QvTvm3MZtfveF0rfhYrbhWI1kRskAgCYQjks=; 25:BrfWGoyiMVEfrw/ANlnw1WpWBA9Fnk1qLkRUPABceQAcgC6msEnyK8+w2olA33fp34/LvTc/aSmtpHGpZbPzkr8GPyu7+LcFJo9GDp6nclG7eNvE3NKz/M8Q5Pd/Gfhn5AYHBxNKPHiYM+UPEGoUr05GTnWTGQMJmL+aIK8Ljqk4ogXLSlj3m77ziXDvJZz9uyNa8hXDu8sND3UWSSf+0L0k1W7o8yKg02jvkEI/xjgGG+varkjYTzWa0R/RfQlgFeDQHI+pDp22U+LXYj77Dg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1371; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1371; 20:PZYGvQreE1RER0ELF7EUMd6E6QVS5zHDg6JBC5CImVpYVRLpBO/I1sKauD4MYS+c7tqbrgIyrec7TqJHEKKSiXFa8g1BQ8qd8QIRmFZceSIVvyYDoVdXJAzNRnu1kJrt8fzwJYBMuDr5kK0SnfoPcSW75a1rRm2CITDvFPTnLANTXkrlZcY0TgoIQEHGOu42GR5sW301ECXVb46OltBdRb2RbJ0THedo3YosJsw+so/Ujd+0i7M6ISLUHyv9quLQGOquPcUGLGEhLVVKeIAMkiP7L2Wn10sEuIqRpwGgXaKoG+y0hx3jfz4UTzGWW7Ak8SdnQSznf9AjZJEoTRcb/6gNaECRd9ZB+sWISk6suD0=; 4:JdPiOdby3xezihX4uBoXRPqENx8C7wz+RH0nD7Jp1aDQmttKNSTGrae5xrS06mGRPnRMOkQkeLB74ieymxpTZcfDMBUQlcQ48lSoZtAY2/ixhbGdI8fcpRJ3LgnvOdPudfh1KXKBSPrNra+a+vQbadlgxPC3h1HY1XiAYjVysx9hExJxAxTPa8BrPl6cba9t7bvQifCv8aIqXwFIcNxttkgKE1CfeCZ4ESRF3lNX3FpkhP24JoQvemeGdYY2Gf0zcuq4oyYeEJq75Y2v3jdU5nf2KPMfQGkYtU4Sa/zfXG96Kwc5hsiDcedswK+k/W6pKouIqr9lyq7/mRXUWQF+h8BFYPMJfIn68V97EO9Mtva0Lipsfw4sPn3RUADcdLZILAJ4C9ZNYELRvPykPz0QLw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001)(102215026); SRVR:BY1PR03MB1371; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1371; X-Forefront-PRVS: 0744CFB5E8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR03MB1371; 23:ItQk1YzUZPGkPy1mknnFwdcb89QIc7eyHYZEgH7xW?= =?us-ascii?Q?R8+oAn4ebongjOYOLiobjyalr2IAPETD1GxDDkci+KM8SATatmra4IsiGAhA?= =?us-ascii?Q?F9bHrbE7rmUwhi2BQBzyLMZLMdRx4KcbTmTWvH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=?us-ascii?Q?YkGMJYUNaZUOBj35/+P7oJVhMy5mx6dEFatxdkwp65PKhDVOexcwuq2/XZfr?= =?us-ascii?Q?aMJNppZlhJiLYW73SAAVWTDWnSMhuw78/atUcsZL741EMeqMdTeZ7Xx4/jXD?= =?us-ascii?Q?PITbymxRLDWU1tBszqQ+78aDXHyE/ED?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1371; 5:XhmXWot2Nir15McozTLLBM1J/8k9VuPDIhutnaeN1EVPFs0yFn/kC88Osn9UAQdeWAGUSMQitFb8BO5ODhGyPU1BhmKEX40sVxFkGauG4OkfuQPiOIm6//bRj/NUFxrM26OIxmkFV+731dgq8XEYjg==; 24:WFg7xG/2ZwlcAA//0cXxPcaP/+ia0AUvi+xOfBXFz8l6TQTcpArErAbPCGuTScPjos+c1TzQSCnspyxEjRRWSSofhGmFa/JjWTgSc9o93Fs=; 20:aEaJMNDGeSR4Z84fBilYRuJ1coTRAM9I5odZF6AEgy89PDyo8NZCFZtZuGF7Fu9Y9bcUCEAA2p2XgFNvSQYBKg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2015 09:21:16.9616 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1371 Subject: [meta-fsl-arm][PATCH] u-boot-ls: support gcc5 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: Thu, 29 Oct 2015 09:35:32 -0000 Content-Type: text/plain From: Chunrong Guo Fixed the following build errors with gcc5: |error: linux/compiler-gcc5.h: No such file or directory Signed-off-by: Chunrong Guo --- .../u-boot-ls1/0001-uboot-support-gcc5.patch | 90 ++++++++++++++++++++++ recipes-bsp/u-boot/u-boot-ls1_2015.01.bb | 1 + 2 files changed, 91 insertions(+) create mode 100644 recipes-bsp/u-boot/u-boot-ls1/0001-uboot-support-gcc5.patch diff --git a/recipes-bsp/u-boot/u-boot-ls1/0001-uboot-support-gcc5.patch b/recipes-bsp/u-boot/u-boot-ls1/0001-uboot-support-gcc5.patch new file mode 100644 index 0000000..c269df0 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-ls1/0001-uboot-support-gcc5.patch @@ -0,0 +1,90 @@ +From 3afcde1104f3fa9102911467929d5752eff484aa Mon Sep 17 00:00:00 2001 +From: Chunrong Guo +Date: Thu, 29 Oct 2015 03:18:58 -0500 +Subject: [PATCH] uboot : support gcc5 + + +Fixed the following build errors with gcc5: + |error: linux/compiler-gcc5.h: No such file or directory + +Upstream-Status: Pending + +--- + include/linux/compiler-gcc5.h | 65 +++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 65 insertions(+) + create mode 100644 include/linux/compiler-gcc5.h + +diff --git a/include/linux/compiler-gcc5.h b/include/linux/compiler-gcc5.h +new file mode 100644 +index 0000000..c8c5659 +--- /dev/null ++++ b/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 */ +-- +2.3.3 + diff --git a/recipes-bsp/u-boot/u-boot-ls1_2015.01.bb b/recipes-bsp/u-boot/u-boot-ls1_2015.01.bb index 0a1fb80..5b1e566 100644 --- a/recipes-bsp/u-boot/u-boot-ls1_2015.01.bb +++ b/recipes-bsp/u-boot/u-boot-ls1_2015.01.bb @@ -12,6 +12,7 @@ LIC_FILES_CHKSUM = " \ SRCBRANCH = "master" SRC_URI = "git://git.freescale.com/ppc/sdk/u-boot.git;branch=${SRCBRANCH}" +SRC_URI += "file://0001-uboot-support-gcc5.patch " SRCREV = "6ba8eedbcdc4b063f59a63e6288b938af739e8ad" LOCALVERSION ?= "+ls1" -- 1.9.2