| Message ID | 20240922092312.2061358-6-dario.binacchi@amarulasolutions.com |
|---|---|
| State | New |
| Headers |
Return-Path:
<linux-amarula+bncBCQ4XFG47UFRBHOEX63QMGQEIG4LANY@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com
[209.85.218.70])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 489D440D67
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 22 Sep 2024 11:23:42 +0200 (CEST)
Received: by mail-ej1-f70.google.com with SMTP id
a640c23a62f3a-a8d2ecdf414sf258692766b.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 22 Sep 2024 02:23:42 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1726997022; cv=pass;
d=google.com; s=arc-20240605;
b=WpMOAeVrVKtSU79VZhSk+cT485Pc3glKqsrHrhXoPQpwj0+q9wJdVALNpNIj+4mfCi
yUKauio4ekNaAiAiY9Ey9psHB1hNPU+bCN1M1R6ADs9JKwKgACLJ1HQ+WCdtk5y3JKdI
T1ojKxWjzqOlQqvU4iwHleQX9mmyMMh/QFMgLmsHNkXtKaSsNjS4enWXK83Nc2FUKGU0
mUQcyuzmNDrJVQKVROOenhqONj0M2JESycTc5spvydDAC6CvrI5JZOy1SUyjDE67fgdt
vGDPXZSnqsbzfZxlunnEH5eLlkwiCvSiMoY0HumW3wPl1NviAsZMg9GiGXpSfGwXyEiB
qBEg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=SMgZEzAQ1lioN+anH7RZBkM0RSJTwD3bU4N+FnhgdZs=;
fh=WzA9rYy3UGDAa/JMK9AoW25vFhN3qIyjzU39JXd0Elg=;
b=ekl1VG2CFfTDn58FRmgDrBDfpS9j5eeAPs9GIfFMNGn+n6WqU1h8NUGwNE7Y7o98HQ
3IYU01fuXQsFdL+a8aolCAfKRRDWpQC5AizPfONMY6QSJBXTJ8DW0ONOaiXfxQqhKxMr
XGG7ftmSW/wEAXUu3sNRCqHiUoNxFEAMpJqtcse/02Vt/OkullQ0mkFotQb6wjN8GWX1
/HqQjeGEEyzwhAmMkr4DzS1AwvfMfeANDqGUyrowY1npyCZGd82rAUIWlslkWefLrWSb
KL1A8kZKd+uoA/MNGgNWcrslVnzErUBZe3vqCR+XA7EruClhNETIlkRoJG4OLJUazeT6
cIdg==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=EhQa691B;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1726997022; x=1727601822;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=SMgZEzAQ1lioN+anH7RZBkM0RSJTwD3bU4N+FnhgdZs=;
b=nZ5177f9WwmomkhNRNc4k86jLoV4IhZpBFudgGB77fMqEYZ6qFrf/VlLTr1oJRWZOr
+phkTAbMY2M7uvIxJAAc3Kw+xKh/aFumiu+KJDFqZ/JDj4qrs3fljG6Af8UUXzqRd48M
fOD3X8QzteYcCnLG0r0cq13/TqhKhqlpRW398=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1726997022; x=1727601822;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=SMgZEzAQ1lioN+anH7RZBkM0RSJTwD3bU4N+FnhgdZs=;
b=is7dzyZ1iX2SPwWsAN2e75WDcaWO+pA3QKmvE+PrAFHw43IQPF0ixPD/M8RTXQsJD9
n1lS/gQWHii/aYGFsQoUS1a0DvUO4KgSW/Br193F68vthQIY6d1nwoHqtbQPRWVGCnar
9/eFzqMC3ZP+cRPQxZZHY58ehn60wasrxVUKiB+Xe7/OEkGNqzDf+72n2h0WNCQz5iS1
RzqinD7+sRZJAv+vvIHsIi3Xm7uyAJHgf7C81aM8UYJKeYq/UQRIvIUk0vVxW3GVd3ya
lTgxCCEqHyEN7ymjsWHc1xoqnhUSGA/4IhBv2Lq0H3U03a56lSoC2QeVEdTchQLJU89z
VRXg==
X-Forwarded-Encrypted: i=2;
AJvYcCWPbQZZIJLZxDiff3a30ObvIAwfTwskIgUq3xwC3+XogcMJR++gW5Cvzyp1M71vgGv0T2IRrmo3eiliecx6@patchwork.amarulasolutions.com
X-Gm-Message-State: AOJu0YyoyAQ7XVUd21snNZKlHyVsAEZV2w9pHFhNU4bqSyJtqwOrADLF
GoCqfYgeHkorw7btg5U1rzt6SQ9o5bIYNnwxD4N7FZvYedDz/DbJWL9Knb+8M6F/TQ==
X-Google-Smtp-Source:
AGHT+IHRbOnURlNcoYp0+6Kq6AiTXNya7Bz3z5DDUotUR0oCWSaMHYeQDy9noM7Z1AQ1C09mFJ1OSw==
X-Received: by 2002:a17:907:efc4:b0:a90:348f:fad7 with SMTP id
a640c23a62f3a-a90d508b211mr807258266b.38.1726997021818;
Sun, 22 Sep 2024 02:23:41 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:a05:6402:790:b0:5c4:6c19:f74f with SMTP id
4fb4d7f45d1cf-5c46c19f891ls1029571a12.2.-pod-prod-04-eu; Sun, 22 Sep 2024
02:23:40 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCUfW4Me9Y+TKXBW4nJ3zzyh3dNtgPX4pl/2B79vveZOuX8QfJSCMlE1dv6vAUkl8FhhWC1GeP+QckzDZ2C1@amarulasolutions.com
X-Received: by 2002:a17:907:7ea5:b0:a8c:d6a3:d02e with SMTP id
a640c23a62f3a-a90d5186d9bmr862670966b.63.1726997020302;
Sun, 22 Sep 2024 02:23:40 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1726997020; cv=none;
d=google.com; s=arc-20160816;
b=cgBsopWhAr4ALh56PNeqD15Of4yIBuUBJrb+v5NeYr93modJWoNKL7NfScluImA/c6
ZOE5BH6BsozPsIYAY6euCsndx9OfQSsKgtrVr7XqH9IzviboVZEAvh9XwYCLklkKoS5V
1W+Ejc02PuU2QZcMQ+rfYAqqio8bvUG1g83XX5hbjt+otf1YvtNVOcXY1TykbGA024xZ
YNWPmpuqs/dskDcQZP9ogCxw91LRisndKZeVirjlodB5tVlTvSPC2wQD0rqLY5/pmDN4
EByb0P1c2w1IIWZzCOk27Ty1nR53jwqPwExDRV2WW4ymvPYvabZhOdyxj3uC+BtiWEBC
gA4w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=ceODNqSm9hg37wywX8Ojzcv3XUtRabHbELIzd4cVhkI=;
fh=31ef19sYAdwhcw2TRTu59+0uA3msTL2roWCjXFL+VHM=;
b=etHz8FoDwfIetIGWx4kipT405xzv96+vGYG+sM6mltCWf7CdihNDw+q7/9Di3Alus5
UMKY83yoQqv1LEN+2yxnxcGB4BRkzsSGpLFd3iqUCslYQs1sIEMEqv9K9PYlTWGffZfM
L6uG4PZ+6HHXOqDy/WZpBG7JTdYQLLfxQPRLuylamGEdYxxEwfQ8OIdiEgDq54D1B8UU
S8Mi8Sdbqmb4eEwtL5bzvEvfBjAxqERKuWn6Mv/c2sZ3rF5RRHGjpMU94m9oDCIaOiNw
gj8DqXjUbwpy8iTDiGetpqgx7U8DWmQsCAgOyQ5dGsOxXxHZ+s9vSZgRRfpVKiSrhLW+
Aw7A==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=EhQa691B;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
a640c23a62f3a-a906111468dsor699871966b.8.2024.09.22.02.23.40
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sun, 22 Sep 2024 02:23:40 -0700 (PDT)
Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Forwarded-Encrypted: i=1;
AJvYcCVYFYySefXUUrHzGDqoeQITcu/Ml4T27ory1QaHgWx1LUu7astYVBN4TMBUqVS34E5oUOC01wa4UARshoIf@amarulasolutions.com
X-Received: by 2002:a17:907:e61a:b0:a8d:4d76:a77d with SMTP id
a640c23a62f3a-a90d507b27fmr731415666b.37.1726997019798;
Sun, 22 Sep 2024 02:23:39 -0700 (PDT)
Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it
(host-79-20-102-52.retail.telecomitalia.it. [79.20.102.52])
by smtp.gmail.com with ESMTPSA id
a640c23a62f3a-a90612b33fasm1065235866b.139.2024.09.22.02.23.38
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 22 Sep 2024 02:23:39 -0700 (PDT)
From: Dario Binacchi <dario.binacchi@amarulasolutions.com>
To: buildroot@buildroot.org
Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>,
Waldemar Brodkorb <wbx@openadk.org>,
Romain Naour <romain.naour@gmail.com>,
Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
yann.morin.1998@free.fr,
Ben Wolsieffer <Ben.Wolsieffer@hefring.com>,
linux-amarula@amarulasolutions.com,
Ben Wolsieffer <ben.wolsieffer@hefring.com>
Subject: [PATCH v2 5/9] boot/uboot: pass -mno-fdpic if FDPIC is enabled
Date: Sun, 22 Sep 2024 11:23:08 +0200
Message-ID: <20240922092312.2061358-6-dario.binacchi@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20240922092312.2061358-1-dario.binacchi@amarulasolutions.com>
References: <20240922092312.2061358-1-dario.binacchi@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: dario.binacchi@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=EhQa691B;
spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com
designates 209.85.220.41 as permitted sender)
smtp.mailfrom=dario.binacchi@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
add ARM FDPIC support
|
|
Commit Message
Dario Binacchi
Sept. 22, 2024, 9:23 a.m. UTC
From: Ben Wolsieffer <ben.wolsieffer@hefring.com> If the FDPIC ABI is enabled by default in the toolchain, it must be explicitly disabled when building U-Boot. Signed-off-by: Ben Wolsieffer <Ben.Wolsieffer@hefring.com> Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- No changes since v1 boot/uboot/uboot.mk | 5 +++++ 1 file changed, 5 insertions(+)
Comments
Hello, On Sun, 22 Sep 2024 11:23:08 +0200 Dario Binacchi <dario.binacchi@amarulasolutions.com> wrote: > From: Ben Wolsieffer <ben.wolsieffer@hefring.com> > > If the FDPIC ABI is enabled by default in the toolchain, it must be > explicitly disabled when building U-Boot. > > Signed-off-by: Ben Wolsieffer <Ben.Wolsieffer@hefring.com> > Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> > Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> This patch and PATCH 6/9 which does the same for the Linux package makes me wonder what is the right approach, and I am not fully clear. Indeed, we already have some logic in the toolchain-wrapper to pass or not pass certain flags when we're building U-Boot or the kernel. However, in this case, FDPIC is enabled by default, and the wrapper would have to disable FDPIC when building U-Boot/Linux, which isn't what the wrapper is doing today. So I'm a bit unsure on what's the best approach between what you're proposing, and handling things in the wrapper. Perhaps we need to try what you proposed, and see if it works well for all use-cases. Thomas
diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index ab534a8b3a20..d8faef648fad 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -172,6 +172,11 @@ UBOOT_MAKE_OPTS += \ HOSTLDFLAGS="$(HOST_LDFLAGS)" \ $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS)) +# Disable FDPIC if enabled by default in toolchain +ifeq ($(BR2_BINFMT_FDPIC),y) +UBOOT_MAKE_OPTS += KCFLAGS=-mno-fdpic +endif + ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF_BL31),y) UBOOT_DEPENDENCIES += arm-trusted-firmware ifeq ($(BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF),y)