From patchwork Fri Jun 1 18:01:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 924276 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="q3npVtii"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40yBxM37Mwz9ry1 for ; Sat, 2 Jun 2018 04:02:15 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D17F088B30; Fri, 1 Jun 2018 18:02:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OgCjNTzwmFb7; Fri, 1 Jun 2018 18:02:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3DE0288B28; Fri, 1 Jun 2018 18:02:08 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id C11561C2C94 for ; Fri, 1 Jun 2018 18:02:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BDE8A87AB7 for ; Fri, 1 Jun 2018 18:02:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gTYb2_bRzcLb for ; Fri, 1 Jun 2018 18:02:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by fraxinus.osuosl.org (Postfix) with ESMTPS id EB95F879F4 for ; Fri, 1 Jun 2018 18:02:06 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id f16-v6so21787101wrm.3 for ; Fri, 01 Jun 2018 11:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=HJ9JP9AcQXeMqmvCZwRIRSmT8AQ88OOX/EsDM+OpQ1g=; b=q3npVtiis1HIZkbVEUs3D46rwFuFn/0DeiNULnouyAvLSFXnrSJvTlGLGM/MsAdZO3 PMrM7BCXgnmThuuDiEE55qLjJbI6SQDlYE2gR43t8b3OfQ4qTexOEQIyEdYMTdV9zFlX 3YfJFrXJH+D1dAX551sB294Z0oX5W/WtUum3kVSLayjXpNfts6I9bsUy18g//NngrjvL B71tQSP3QL+wN3738joRuuBO1aXjQ/LoCZhGe/ce8Q4JfB7zaAB8gOrpaXXNiDV+h3q6 c6Scx5oel0RnW5SP/dWZDNW0jJi8ZeRIjLpNGoqY/JaqYMUvocAuhkFJEBxH11hfuUhB dfcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=HJ9JP9AcQXeMqmvCZwRIRSmT8AQ88OOX/EsDM+OpQ1g=; b=LCe+l43tTQAvk9A8vext29LeD6Zj4u+V0vdfuA401GboynFH32UAA4hlXnUz/EmTYO NQ/7ZZEbzjo58zF//dgamJYKVuX/XBuAGeKuGgbvKz+PmGJyCAIp5KHRH69CpsslgBBH 8Ozs15Iq2v1wMhBhcIEsQVLSP0aKYSUDTS+gdpZh4aJ00yYj+PJOjpXiqI7uCFAaJIbT 9WGzaBGbIKjrt2/k4LMxZ0vyKTC5GomOfPXLFbEp7aih0h+xys//VAyRjusWizax2A6f IKVBuvnmI9AzSUq/PWwpib+oa5AgoZvwuQuopugpJ43gh+g0OBbaaFk/zObiFH8fm4od fUaQ== X-Gm-Message-State: ALKqPwdBu4aejecrMmx2P59khX3XESpSjyzBjZJNWXmM39TX/e17hFz9 8M2gqrVtaOAYw5CEH68RLUiA+A== X-Google-Smtp-Source: ADUXVKJ3EaDl+Vr0sPbNAsOCBiiHekDzCz+Spc9I5B+tBxqYd/62rQYitN4izGho9cMwCk1N3dNEKA== X-Received: by 2002:adf:f18b:: with SMTP id h11-v6mr10001194wro.214.1527876125289; Fri, 01 Jun 2018 11:02:05 -0700 (PDT) Received: from scaer.bzh.lan (2a01cb0886107300a556795e0851f8aa.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:a556:795e:851:f8aa]) by smtp.gmail.com with ESMTPSA id s2-v6sm18733491wrn.75.2018.06.01.11.02.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jun 2018 11:02:04 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Fri, 1 Jun 2018 20:01:57 +0200 Message-Id: <20180601180157.759-1-yann.morin.1998@free.fr> X-Mailer: git-send-email 2.14.1 Subject: [Buildroot] [PATCHv2] linux: may fail to boot for binutils 2.29+ even without armv7m X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent GONZALEZ , Christophe Priouzeau , Thomas Petazzoni , "Yann E. MORIN" MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Commit f13477b (linux: config.in: add comment for Arm Cortex-M) added a comment so that the user that the linux kernel may miscompile with binutils 2.29+, when the target is an armv7m CPU. However, the real trigger is a compilation in thumb2 mode, which happens to be the only option for armv7m CPUs. We can't know whether the kernel will be built in arm or thumb2 mode, though, because we do not have that information: it is only available in the Linux' .config file, which we don;t have access to at the time we run our menuconfig. So, relax the conditions under which the comment is made, so that it appears as soon as binutils are >= 2.29 (i.e. not 2.28, which is the oldest we support) for ARM CPUs. Signed-off-by: "Yann E. MORIN" Cc: Christophe Priouzeau Cc: Laurent GONZALEZ Cc: Peter Korsgaard Cc: Thomas Petazzoni Cc: Arnout Vandecappelle --- Changes v1 -> v2: - only applicable to ARM CPUs. (Peter) --- linux/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/Config.in b/linux/Config.in index bffb52fd18..c29b1f6c88 100644 --- a/linux/Config.in +++ b/linux/Config.in @@ -9,7 +9,7 @@ config BR2_LINUX_KERNEL if BR2_LINUX_KERNEL comment "Linux kernel may fail to boot with binutils >= 2.29" - depends on BR2_ARM_CPU_ARMV7M + depends on BR2_arm || BR2_armeb depends on !BR2_BINUTILS_VERSION_2_28_X # Packages that need to have a kernel with support for loadable modules,