Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D4F99E00CFC; Thu, 2 Jun 2016 06:52:51 -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.110.67 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-bn1-obe.outbound.protection.outlook.com (mail-bn1on0067.outbound.protection.outlook.com [157.56.110.67]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 32AD1E00CED for ; Thu, 2 Jun 2016 06:52:47 -0700 (PDT) Received: from BLUPR0301CA0003.namprd03.prod.outlook.com (10.162.113.141) by CY1PR0301MB1594.namprd03.prod.outlook.com (10.162.166.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.6; Thu, 2 Jun 2016 13:38:30 +0000 Received: from BN1AFFO11FD051.protection.gbl (2a01:111:f400:7c10::169) by BLUPR0301CA0003.outlook.office365.com (2a01:111:e400:5259::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.8 via Frontend Transport; Thu, 2 Jun 2016 13:38:30 +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 BN1AFFO11FD051.mail.protection.outlook.com (10.58.53.66) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Thu, 2 Jun 2016 13:38:29 +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 u52DcLDC013358; Thu, 2 Jun 2016 06:38:28 -0700 From: Zhenhua Luo To: Date: Thu, 2 Jun 2016 21:38:18 +0800 Message-ID: <1464874698-13315-5-git-send-email-zhenhua.luo@nxp.com> X-Mailer: git-send-email 2.4.11 In-Reply-To: <1464874698-13315-1-git-send-email-zhenhua.luo@nxp.com> References: <1464874698-13315-1-git-send-email-zhenhua.luo@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131093483099966370; (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)(199003)(189002)(9170700003)(5008740100001)(33646002)(189998001)(36756003)(104016004)(77096005)(586003)(87936001)(92566002)(15975445007)(2950100001)(575784001)(85426001)(86362001)(6806005)(76176999)(50986999)(5003940100001)(110136002)(19580395003)(8666004)(47776003)(105606002)(4326007)(8676002)(230783001)(106466001)(19580405001)(81166006)(50466002)(48376002)(2906002)(11100500001)(50226002)(2351001)(8936002)(229853001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1594; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD051; 1:SwSY8fsaE7JtflbUuAUiE/ndNvAq12EDEEEjp4+LHMNgbNQJQOFhnd9I97tNNRSiT1T5cY/CZolJ1gpf/7UtURjHvuBlA9EpbPQkUbzUNqD2M/nyRMMLxvkpbAPaNQrJmNNN1aL/7ykVgzW8Oi8B7hFDSk8newjNBQnojBrxEIw4uVSwt5KeaHR8c/HHEeYQ8MYiuYzbxRuliDH8O5+IEDC43KNWVCQSVRHWsOR7Eb14X6npmRCKRc6Uh4BxBPesUC25EvJDQX82T//U+ysnlK/uMecnu8R4+ElxmGw0TtQyK05DOgiN94dbgsgpcmNHN0RYEFcTDRlSIDKZDsaHux6u4JY6ZCLGqa7BiehIR06rQAFFV/mbaOi9CEz0t+E0PYKqm5D/ei4bg56nTbj5BL6LSuJX4pXDPu1uznb3XYdE6MtpuoYCbRD5+O7kDqZlUPV7aqlgnkt7Ogpllb29YbHOVzZBgLe2cwMXUfg4tvim5G+rCcDCVcqR/OMQzvQI7QwvHcisOIgnJTMpxn5oYty0LUjuSOCt6H8F2NCt28WSn0WA08d2pSkSXKoZNDmXhdhnIkC/jf6TAfEqJGFL6ad7+lqLggzaH2qcx/67bddwg+2mPRwVpEX/jY/WKvjAmzL3yJfa+qrXtOrY9JyMZ5+sJt2FsHj/VT0+lxO140eGYrp6KDPr4Y8RstSYcV8V MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: e38bf8c4-4808-4ea1-6a43-08d38aeb2eff X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1594; 2:wflv8j3IyhVhdqut2aUzxxDLGlLL7MW+GWaNsl7x0O4hlAOgOR/zneS/7soikv038I6Lio6PXDXd7mav2v0gQG9bCiVqHOr82u52uHpGK/OuXU00WXkx7wzDq8zpMlUmbB4MZZTZ1fEyKp9gkQhq1B2sRx1WjY6g2gU5h/qol4bh29nYcgxgtR4n5T//Zqwe; 3:dSxh4H0ef+KONgotAVTvRNPbARrDsFVpHmHBMpLzmZLodqJl83o8eljEKQQBxImlHNUEJAZW0Zh8xaSwySufLOsSmj8VRla7qaP6GDwrI8740HT/ZaSMjR2rzRoj03NfwG1NO6g3KQmyLi8rpJ7627sS7hZropYoAg5seiyDrZAMuOrbVajj6H95NUyxjgblQpCSdNctmnDm/TdQw8yy4+nAXNTVxXBO/lq4bnD6e+k= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1594; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1594; 25:15oroW9FSViBxhB3KzDvg/5kxFkem4RgQ3B/MAdeFf/zfcoAQS3SnmlKHHVFnLagCFvWRMQmCm/6lt55waNBq0acha2ir8WZvwHnnrli8CvsK5r08tD4bSU4g/9oluEb8jpw3HKWKuWqxsu1S7lg6XrTlnR5J/liA0aI6OFzJVLJOL7jabh9NGo9uYoFDdcSr19dbddFLKx1AWUIH0f/mVQiJwLnadxGBefdmIFRvi4HmqM4gQKV5lbz1Vpk+dPsS0xnVsn5ALBe0aRZc8MpnzKnVxEED1E3yMkLOQEq8N4GadPQNq3TSmKcE42GP24nLXUi8SLauEjFbnl2h95guJz542HIO5jSUZjOPlZq5NumDU1U/iRwzvlUXK90dpOhn9Ys6F6PwNDDZYTYh84iSV+XFKMWCxnvJ27sPOHQUcwtzNtS9R/9z/egflcz/Uipm7ssqBNLIUedunq6n3soqNF2mpcXYspGnAqhxsSzzbfNf/O8/nBUajwedb4lC/MkGei76+Qkba3stu1THzHrd4bkDoi3PUHVZ1FBwyK7FvQInel/YAsb+mH7B+I/vTRHEKAfUBjlx4DAfKU8zYbCZXQkgXwhRhDyXzvmdKK5nPrGrRELlQM6tBOTEs+7v6gner7Dw2AIySdUwtiN+qBkdaeaArYocgbP40KoargdygqyHOBn/erTYtYgvGR0OFLVPADpZ9NPTiLa/yC7ZKMFRBvODyZY5b1GtVw9wH0HoKGDiEMprqnT0c36G5mUo3e862KMCq4TTLta3b01lHde//fVlVwjYdy392/KSrgpYerV1NcVSVXdh0DhS9DSqzO7AfFIhMB5nZa++1zU1L8cuQ== 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)(13023025)(13018025)(8121501046)(13017025)(5005006)(13024025)(13015025)(3002001)(10201501046)(6055026); SRVR:CY1PR0301MB1594; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB1594; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1594; 4:WO2aVrV/e2M3TIRgCRAAKpd6C5+P/Mo8GeQk+F/EpjXDavtk+59evz627r3ze45GVPgBkp1z466hR4JiEAAg9FuIE8dAG0uIs7csyxinWanbwH605/i954be36t8tHUiCTkVbZNNS5w/FGsvq/NmGIZlnowf672d8vWsP5/pW2qvE1E3YkbegikLm/WpThOcTG8Lem2UKHYPgXd1Z3HFB+xLfeUntfD5iazhGbUGfun7/oLkycPNGxRSBeSO8eODbnrwfsx8oerH1890lCEDDskZeAUanYurB5soV6RD5+jRnTStauvOGtZ+ZsC8Jl70leZBfO3+YOCSlQmYJP7LdSKF+SxjVP5LhG5eAcVAXYNYzDpGF1t942Dz5c45LU4L9PRZlz4ehH8IQEmBaSdRiutVDyzCxMSEv4izl2yaqGJB528kpOkpaDKOSkuQBbL3/E5KekjVS+WkxegPLS1K0zqRrpsEkUMsZQ7JBacIOekaC6wohglfkLol9Jah6zRmzn42LNbGomtwWwaN4HW6PsJQPKG68nkziM1EtegQ8sGiK2fK6Fhji2FlmOpBxyObPD7LAAl6CSe0XS95246pjpBclHrLPWIqFSI8ER5vbS7/zSoAhtYGvRdWh7UckcJL X-Forefront-PRVS: 0961DF5286 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1594; 23:JohYP/B2y5cRRWTJawI6XcP0xnLnLrLeJU8d/Xn?= =?us-ascii?Q?G7bWiwWpRLpzXzA42XO5+c3bzsHf9/EB+WhaF70E4JwiXZhx66eEni8+azfc?= =?us-ascii?Q?1yO8S6N/29TYD2DTCUtS7PTJ/qGp8W8woTctbYKCDMPifj5sfUx04D2NUL5p?= =?us-ascii?Q?/aZeq94UWCvWvgZjM42IxjJD6MxlZM32r39/1F15F2CnQ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fgn5j6yxeuCj4wlnBW42BxSUgAa9rubZK0zgH0llyFQBTtDKl7eSzj?= =?us-ascii?Q?ogSuE+o/tK9mDVN8Krl9Clj+BFVgW/Nm0G/MOImg27qUe93blew1BEF9Iose?= =?us-ascii?Q?FnjI5RusSpUoTZNs=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1594; 5:obz9ZLHpXic0MQ97Ke0oH4yNw9NIG4vfcvi7yZ+/pPIXVrw+x/UWJDIaVyxdbW0GXY3YFN4QIQsCDJ4epZEdvj14AWT3x0vEBdJ0jCmSwx0JGkgQLl61GsJMGGlI7pUpX1MQparZN3F+5nBBH9fiU1CSmsSSWMveS3jvWy0UgH8=; 24:X0us/M5SWObQm/fZB9g5O8N+JqcRKbqc0ZdJQgyc9mGfD8+UTfyoFtIA1q5Bpvs+fB9yCuHAM5L2+hpW3G6LJiPjghXvvi6yyHc2EfsO5Rw=; 7:fVQDLDc21+kTUXiKWPcXu2nWgVssVJa5vQt2yiAoiwHQCNLp/KS2Ew7EyekR3GKmsWUs4+dU2QZvfrf6FJ0LLrT8aQiZLpBOGURF6+uM0P+3GPEQnjdtfBAMxLOZQgM155QUl/4FRkdnnrkeIt2ZnpvZpdUMq5Yq7CTiiD+RvxXe7VVqJ+xrtp9C2xWbC5gG SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jun 2016 13:38:29.7626 (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: CY1PR0301MB1594 Subject: [meta-fsl-arm][PATCH 5/5] 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: Thu, 02 Jun 2016 13:52:51 -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-ls1/fix-build-error-under-gcc6.patch | 91 ++++++++++++++++++++++ recipes-bsp/u-boot/u-boot-ls1_2015.01.bb | 4 +- 2 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 recipes-bsp/u-boot/u-boot-ls1/fix-build-error-under-gcc6.patch diff --git a/recipes-bsp/u-boot/u-boot-ls1/fix-build-error-under-gcc6.patch b/recipes-bsp/u-boot/u-boot-ls1/fix-build-error-under-gcc6.patch new file mode 100644 index 0000000..18c5e74 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot-ls1/fix-build-error-under-gcc6.patch @@ -0,0 +1,91 @@ +From 07373b2e477ae61f9f6a0e2eff41be3276d92923 Mon Sep 17 00:00:00 2001 +From: yocto +Date: Thu, 2 Jun 2016 03:21:51 -0500 +Subject: [PATCH] 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 */ +-- +2.5.0 + 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 ae31763..2695c14 100644 --- a/recipes-bsp/u-boot/u-boot-ls1_2015.01.bb +++ b/recipes-bsp/u-boot/u-boot-ls1_2015.01.bb @@ -12,7 +12,9 @@ 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 " +SRC_URI += "file://0001-uboot-support-gcc5.patch \ + file://fix-build-error-under-gcc6.patch \ +" SRCREV = "6ba8eedbcdc4b063f59a63e6288b938af739e8ad" LOCALVERSION ?= "+ls1" -- 2.4.11