Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 615A4E00DCA; Fri, 3 Jun 2016 00:50:10 -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 * [65.55.169.84 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 na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0084.outbound.protection.outlook.com [65.55.169.84]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 96883E00DAD for ; Fri, 3 Jun 2016 00:50:03 -0700 (PDT) Received: from CH1PR03CA003.namprd03.prod.outlook.com (10.255.156.148) by BL2PR03MB195.namprd03.prod.outlook.com (10.255.230.153) with Microsoft SMTP Server (TLS) id 15.1.497.12; Fri, 3 Jun 2016 07:50:02 +0000 Received: from BN1AFFO11FD056.protection.gbl (10.255.156.132) by CH1PR03CA003.outlook.office365.com (10.255.156.148) with Microsoft SMTP Server (TLS) id 15.1.497.12 via Frontend Transport; Fri, 3 Jun 2016 07:50:01 +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=none action=none header.from=nxp.com; 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 BN1AFFO11FD056.mail.protection.outlook.com (10.58.53.71) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Fri, 3 Jun 2016 07:50:01 +0000 Received: from sweet.ap.freescale.net (sweet.ap.freescale.net [10.193.20.55]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u537ng1Y018473; Fri, 3 Jun 2016 00:49:59 -0700 From: Zhenhua Luo To: Date: Fri, 3 Jun 2016 15:49:38 +0800 Message-ID: <1464940180-18357-11-git-send-email-zhenhua.luo@nxp.com> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1464940180-18357-1-git-send-email-zhenhua.luo@nxp.com> References: <1464940180-18357-1-git-send-email-zhenhua.luo@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131094138015126593; (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)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(189998001)(47776003)(50466002)(586003)(8936002)(50226002)(8676002)(81166006)(11100500001)(110136002)(4326007)(8666004)(104016004)(2906002)(6806005)(5008740100001)(2950100001)(76176999)(19580405001)(19580395003)(230783001)(50986999)(15975445007)(33646002)(105606002)(92566002)(48376002)(85426001)(575784001)(106466001)(2351001)(36756003)(5003940100001)(86362001)(229853001)(87936001)(77096005)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB195; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD056; 1:/vItk8gqbgomb4MXAW/azxlEQ6rYWZmI0/Gj+uJpZyMxLAKfHpR79+qH08930M63BwB/aw6QTINN8+GCAicuSKr3KU5hr3I1SU/+OLoklRdBcYYhHqJU5yfM3/H0oxd00ZW05rISb4nNt1n9oOziAPZwE4WpqOhqehpmMelYfDIZFOeCmKTHfkZDs9/nEZfNsnCXdR2L0CckYeQcrjUisKEx3NtGo0HxoA/E8rhtBIzp9/o0Kiflp+JJOJq8PqRGtLp8rhAGoWY7pCtVrvK2DLlCaQfvQNSzKKQPTZchxm23UpKaio0jb0XYMp4MrDJqZtxSZEax54PtuxL4rrPAAR06i2Zx0MqF2V3R6WEFXOBnQuGsVGPjyWLDBfkD0uBjc4AM/oO+f432qKC6AFuWj5jME+ooHs/8n+t95oo7Tjzp7B9seIKgqm1dF/AbwZ2rN51TElOpL/v7fN7egkXq4S3eApyS+y5lROWimVVmF5Xjzf/0t0qzWZdejTh+Xy1WQf0+Z3Slc1o7HdY1l61KCogn5ZakpFRtKqnJ1tK70lbLGDeesHOf9Z+GgUIRlTJoQBozdwGZ2uP+GP0d3PhIsN8qQLAjNLMMl/1/P0eIa2FnZX3Mi79CFID9+5Jvxs3k8yCJ7FPgWMwwXcPwJwG8g+/C0FWmNg273CpbqKNkVcTgNUvJLs7L/jzTHr38SEWz MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: e583ed94-253e-495c-0959-08d38b83aaeb X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB195; 2:8Ysx4cYHQxxEFG4BJn6h4/eZ8ibRijHEitBXEDlG033Hp6fFfgHV94BEyQLaAq8UrSEVIGaipD4E4f+qRxEeOHY+8R6TBAy/xqeSmfSf4g77XZpUDrVQv6Zco93jzfO7O3zH1Ehwbk/4OgO7NHzk4PR4CB8Oma/Td17RgV9aSGxG7uRMAgX4z4DB1vjzF07p; 3:QpVeVj69pA/Q4EgQNTRr8aH8rhdjf2/cjIdw6buemVgPp4nrfN0eLnKTm1eS8nF9tBElWKg7zMk4Wa0nMNTBci5Cicn1LgQx82ehfAeBIb3PvQ/8fA6m2+LhTpK03UwzMsJbFb5SR27qgzZ7hkzQJBTbGP6Jo0ubRL9aFW5lCbACWLSISz2LZNtjkYcy7ipSdjCXqOJ3tCU/8aKakvKnbqCtA6bO0OMjg1Cc7UR4g6M= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB195; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB195; 25:ia2XworzTyoF42MPQ9Wjb5oUnDNKybe3M/sLYOtll+0Bm5Z6c+imbMhMzurmxhHOCq+ap+AZnsXf0UsLCInJ4IU9ae9Bz8ygX6NoN5R6VVKypWipIzrKca0CmKDEuG53ERedyNysnEZ5DtD0zaEmkxK61ZPi4h4SiWBq1Zi0qTkO9e/MWkGMY8qe9s6SVsnjlb48NcdoT7TxDsS0kcLnQQyx+W+HFUAxS+BJpVT0TDGtsI4tpBqCuJrZzBVf4BlizIqvSfGyzZpmNoRHuGZXQ7i67xIzJWl9n809hoaeCG/srv2Pm+YNrylnc7Lfu6Z5fj9MNeddieE3QZEpHIwGm17XIXF1wMKmz0CQZi4C3x3QWsuBDt+UxdKddC1KHorUCs0lCs3QBF4RhqJISl8zQ4AZImlGLd0FIn9WAQvqTME+gqj19IKvrNykfWSQLLRZz5LQGeiCoVNN9zRnV63NXNFP2BBxVMYC4vz/4RqrX8NoURc7fT3VF1dzUZP8dIMu88xMMOinSFOyXNeLpfVdHa9S8FXXGLnTnmjkcw9LI6QU0HGhEiRH2BVV56hpQmEGmYpWDw6mECsSGhNsjQlGNbi5HNcNS8h1BOGL2tMBgdmDBttyLqSJXVgSMNQ8+OOfeU5J2fksqrjzdeQBFUI3kormQtjDywXMjVM1fpelQGAlsyHaeUnz6xk5yrGNet9C44DjEPEPe4vAeOiJuWQI/MojxpsCMvknC5XSR7xDWSyQDpafQHcMJJdPwoC51nkk4rF7eBeZl+StFiAOQHNsWsh4CTpUorrqYAr99IRnbNCcvYgJTtug2NlhNcmG7oHthTtxryR/b2flYO7JLk1hmQ== 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)(8121501046)(13024025)(13015025)(5005006)(13023025)(13017025)(13018025)(10201501046)(3002001)(6055026); SRVR:BL2PR03MB195; BCL:0; PCL:0; RULEID:(400006); SRVR:BL2PR03MB195; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB195; 4:UGF29FtlfsPBw8pdFIgdrKvxaq1TwH9Pxx8IDF/sEJbo7EaceYytGcBm4MNQvDmkLN8j1MKEYyzTt/D6iqYfx7CfD5qak1FRhmvY4wBJztCZstlVwI0ArsACfBs7qwtFs9ZBLv8oh+ICZ/chu5ZDivjM+5b9MRFOAbU8U7eVhHks4dqP10tlRzQMgdDyK20s2SnVxpH33gnXpywb68r/uJ/QM6z2iJl0yONWYLHYyD6i+5c01F8uagxJs9+u+uuoiA56tvMzCE5fBUUrBbkrArwxszc/h/ew4taZhmTrgl+4hxerCOoo2aBPPywUUSA2FZ9DbkCA4zZlCBs0G4PNtAGheum6ICcnrafGL3BuymCQhRfxoCOQlnRL6gnQj+IiFnF+st9tHvAU3KhoF6uXshvLQ1EbyOOxjjAH1sL4SvOwCrNV+jD5TCUSBDBKmPasgLQhoGwSVT6MQxkgwDl4gcBXgTUshdSYsLhV69MWcJ8UO63PTJo/XIT6DPzZ4rzfS24HNbGUMSRmIffeUHbnzpNo6jtNqE34EpRtiXRBmjfVsh3mzOXY4xD53yjVuoDkfuuEosgkg4Q54SOP90yJRdh0q99c6WEtsp0y/khmiuL84G3rnd4Nq9EVXFScmGAZ X-Forefront-PRVS: 0962D394D2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB195; 23:zR/0q38dozQa+u2fEmpZCy+ORj+ZvmJhFjFZ4tg9nu?= =?us-ascii?Q?8yboMmHtmhW7GhKByX8WWy0khjOAI+jridm0Udl6YTPybSMV9PTElBtaeaQV?= =?us-ascii?Q?cBCIAJaO592R4tGqZYfnQQpT+1UZdxET6N6zwiQ0bI06/wcE8Pk+MKnKVruK?= =?us-ascii?Q?gtLUPLrA0LM9sUZb09yHQsOB/mk9IqWgSse4jDJKbrbrw7pzV82wd5mLP1ni?= =?us-ascii?Q?BvJKTVTKiOyjVi38UqWp46Db3qrYaN9cTVmBNY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?My3IhY/8tSY0nAvGQvGPwVIwkJRhPz7QbR+ML+PocSUfhDbqAjtCXV2eW5X8?= =?us-ascii?Q?8xvQR0oPB8Pqk=3D?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB195; 5:S8XcPgWZM2mSFNnIb/0SGKTsGT74awLz7ScqSXGlqj7fhhkyrYrA94yVY75jDKUxkMLmi0vKA/xe+5YIAuiqXERBuLlBsLjX+UBGlMaMXThGfTD8INLnQS0K2sTAkSBL27hV6VG0QlW918wBU4bfxeNSnZmDe7TvRw1XtnCELCY=; 24:16apPOFZ6JTUY3k01HjUEQdcGyoUlKxHlmyFJYrU271dTXbM1gXMCiItZestX/JnRSvKnJVWo7Md+T0pW/fhUy4+ipg3spzvowIu5aUZ1W4=; 7:vFIdjPMZqgg65nKJ/WKCflfgbkiwWB00oaost0cGNZvAU3Z/r8xL9GErsuuLmO9O2POh7iY7h/50dHYCjLYLdw9f8by6jQdhSRrmaSOhyi77Fc/oKA2aClbmc77KTJsPh6iLPo/Js6tJNJ3QzcaTPdllUKzGqe5BfcxSxtdfgOrPQc8K191uj9rZjfKGvM7z/V97hmXBEGHmQ/2jV9RK7bYB0kYqP2wxqjNibQCDKQM= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jun 2016 07:50:01.1694 (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: BL2PR03MB195 Subject: [meta-freescale-layer][PATCH 10/12] u-boot: fix build error under gcc6 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, 03 Jun 2016 07:50:10 -0000 Content-Type: text/plain Fix the following build error under gcc6: | ../include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory | #include gcc_header(__GNUC__) Signed-off-by: Zhenhua Luo --- .../u-boot/files/fix-build-error-under-gcc6.patch | 86 ++++++++++++++++++++++ recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb | 1 + 2 files changed, 87 insertions(+) create mode 100644 recipes-bsp/u-boot/files/fix-build-error-under-gcc6.patch diff --git a/recipes-bsp/u-boot/files/fix-build-error-under-gcc6.patch b/recipes-bsp/u-boot/files/fix-build-error-under-gcc6.patch new file mode 100644 index 0000000..839cd7d --- /dev/null +++ b/recipes-bsp/u-boot/files/fix-build-error-under-gcc6.patch @@ -0,0 +1,86 @@ +fix build error under gcc6 + +Fix the following error: +| ../include/linux/compiler-gcc.h:114:30: fatal error: linux/compiler-gcc6.h: No such file or directory +| #include gcc_header(__GNUC__) + +Signed-off-by: Zhenhua Luo + +Upstream-Status: Pending +--- + include/linux/compiler-gcc6.h | 65 +++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 65 insertions(+) + create mode 100644 include/linux/compiler-gcc6.h + +diff --git a/include/linux/compiler-gcc6.h b/include/linux/compiler-gcc6.h +new file mode 100644 +index 0000000..c8c5659 +--- /dev/null ++++ b/include/linux/compiler-gcc6.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/u-boot-qoriq_2015.01.bb b/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb index bfea332..8b20b5a 100644 --- a/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb +++ b/recipes-bsp/u-boot/u-boot-qoriq_2015.01.bb @@ -26,6 +26,7 @@ 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" -- 2.4.11