Message ID | 20240922092312.2061358-7-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBH6EX63QMGQEA52EV2Y@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B7AD43F14C for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 22 Sep 2024 11:23:43 +0200 (CEST) Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-42cb6ed7f9dsf31346325e9.3 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 22 Sep 2024 02:23:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726997023; cv=pass; d=google.com; s=arc-20240605; b=SI4zbpEQmgm4tWnNkbz1EEnN2JDAyE8/cfSQWiCTyrWT7QppUNTDjfVIHhKtOvCRwR VbOHVbj9QWrqtL1Z/uqxMzDOMruvULGAoEfB3Kmc2EuPIBUVhqe/0J6nSjsIhxrF2eKe QJ5ajQHsyiCbUeuZdYCDiKoS5WId5VABREKBnZzBihfx8hRW7qNzpiT7Rzgy4IQytkGE Qbac6xANogBl5XLGrH0h5lbzbB6Dp2LGF1fUxKM3BpdHEz0mCr2fd9xWRTDsqNJjlFA8 ibsECdqj3bvkNb3zl0mZVx/iJipgxg++eJgcIBhodIndoFtJVK2gWohiyh9drbxLRRzL 6lKQ== 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=BXM47kBuNwjJbLYHKb1Z8e59J02ddHrQt/QGBbRV0HA=; fh=epQ0qSm9qcFbAwE2KQiMbXfk/NSdrwjO2h0Tny9XyKk=; b=hPnS6nB5JkQs2+GoUHQ0nCEzEpswh0IQ8QWwcjFAFNhGWZCIGLTMfX3ms23akTn4GX S3z5FokVbRImLREPFqnol7JWRf0pZI3cgPbDPQJMblrwv/7b2/+VXTE8OCoXqL3xC4Cr mswhaFgOXz2xaAY7pl023keSw8u7RUqxof2PrTI3vzUD1++m8zUJ2hmRzguYSRzpVA6J o09jAjbMz8IlaccdmqR4ZxojIlrJCb33mwWEW8W1PROEjcArxYmqMGVm4usjBYSdhrL1 6jHOEYqkQNM6krE+D7Es9Na3acj1zO4cJFIJqhRghohRq+a+F7B9kpwYooH/UXFE7TlF zR3A==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ImWTfKLo; 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=1726997023; x=1727601823; 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=BXM47kBuNwjJbLYHKb1Z8e59J02ddHrQt/QGBbRV0HA=; b=EAjNdAXpkG6dRZDqjoTHzN8X06zq8pLMxij2Ii0LtEEG0DlQtR9+OTClCGEa4gSCwc TE9P+2xMT8Y2Aj+ghWxZEzVNw2BO3ng3p7/c8Mqub2iWatv4jiv66IIOlJuTf4dXuvGk vr479rJ7GuPjpBMiFNuPuEk3gxvNHiff4Rvtw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726997023; x=1727601823; 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=BXM47kBuNwjJbLYHKb1Z8e59J02ddHrQt/QGBbRV0HA=; b=FZKDaBYhkqrzH0zrM4YdGLOAKyzaWTVfmlhdEatBe5xNDj33/AkLBFSrwbgSzQH9mf w+qAc+GW+mIdkxX1dbY/QXBag8wJYoYpvxwDzQPMbjPJQcTLzHPz6n59TUGQ4lwqWlcL VoIjhOZIR5KjKsRFWOUrNvwVJZxHGEo9Cam8fEICh5BtYOw+zne+aes/7Oo/Ping0y+c UzdlqBKvMyMRkorzjSV7Mvmc8iy+ZvDB9HnQHIui+X5mxAvQmmxRVJJlyjxg2pvDu0cq QrFHWG0nPGCtkb/tH+0wC3MmfMZkNittbb3NLRw9cvSqcTIaGWorkGzar5acM7nrOIuN acVQ== X-Forwarded-Encrypted: i=2; AJvYcCVhc1oyNJ54KtgqCIrAiAdKWiqdNcaBzDUfDG25mrRDxLFOvTw+H50hFS4wTeBdLruvjB6sdHrgYWmAVkKk@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yw9Zb6hRfAFk9TBMTy5oU2lKLG/LFvH+q+syV8vhp5VvifN5iFH hf8PO7QYTIHMI3WNk4jkyKn0RQN36+T/ZtCS0ldKhG3hVQsSKkBW1F48b3VnGCIFqw== X-Google-Smtp-Source: AGHT+IFHgI5fxgHDL+vpeX1kT7aYH7kvsNGOY+f5EkzxZIVnliIlOFszBXgw4oI3HxvSCfrcPnzOrw== X-Received: by 2002:a05:600c:3b21:b0:42b:ac3d:3abc with SMTP id 5b1f17b1804b1-42e7adc0e28mr77733215e9.24.1726997023250; Sun, 22 Sep 2024 02:23:43 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:5449:0:b0:368:31b2:9e96 with SMTP id ffacd0b85a97d-379bea4647cls1370739f8f.1.-pod-prod-05-eu; Sun, 22 Sep 2024 02:23:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXEalf+1biicM4ndemJ+Jh1mOkokAsrsEQwpV3hVe7i1AlO2j3EFRjoSgFulvmfTuZIqBgZIzw/NL0J9Iq+@amarulasolutions.com X-Received: by 2002:a5d:6892:0:b0:374:c9f0:7533 with SMTP id ffacd0b85a97d-37a42367b47mr7090271f8f.41.1726997021514; Sun, 22 Sep 2024 02:23:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726997021; cv=none; d=google.com; s=arc-20160816; b=CAF4GzsL3SG2xszGMM6QRo301IfX2rO6TtxrEg0Q5MBytirtswlP/Y7VM7gLssNMWk 5kee8uV4m7j4vfjcNWca7vYm2s4ThXj536gzwIwxchDWdWztr1HLlSLmLucOa00IzaAA NXOOYL5Mnqf0SeRAU/TMzcwxCP6qhjGZV2aZ/sC0USNu+SlolSsADEl8q+jtc7HPCmq6 OkOIFpSlFA01z2fKiEKbwVcWSurZXPmK0j11pY16Uqx1UrJ507UekkWVaCpptqHcuR6x G55BrVXcFYmDV8MBrZeDejyViJmPYwRKDuOJfxMbIjHRg/U49YFsz4wGEgfQ3R58BoHo u+Aw== 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=CeJG81OZ8OQSShGXUwhwpIU/MBCtwAE+7QfGzGqhkyA=; fh=ToGwtc5w6ppPnFyMTTk7pxzgU4gf/O0w8vJIOqLzCr0=; b=0HWUlFV8ByqmfyEh992Vf2zvFH22JCdFzTK6sz5dX2zIQV9nrlohgUleLe5f2H+tBB YHGKLgAxsmsA8CcCdpbnLnm8wr6XL93mp3BBEo3icLbOoTjxw7P//ZyIt5G9X43g9xEs ArO5d4KtVtaKfJQqpwjb9lJV7NxCrZ9FFPxbsL8qApjwongHUpPKnqsEx9gVGWW/bqSy DkV+9Kjd7pkOd+umFdOLbJGBLQqcTJUPUiVaLI0GMQe32o6g6A39fY9BVhdFQx7K3uiy 7cAkRC08AEvdBKjgVI6rHfWJQ0bRRcScfwY7pUpptQIFTGJAapJF0k3RwYATTeDNpm8N W61Q==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ImWTfKLo; 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 ffacd0b85a97d-378e73dae03sor5182327f8f.2.2024.09.22.02.23.41 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 22 Sep 2024 02:23:41 -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; AJvYcCUfpOrXZxpKGJv4YERfANEWqJ3P9VmVCsaYecFMMxsuPIbyCK6sLa8TNTpa0QVnatKXeoVac7o8xcYBuIGY@amarulasolutions.com X-Received: by 2002:a05:6000:1544:b0:374:b30b:9ae7 with SMTP id ffacd0b85a97d-37a42386ed4mr8762845f8f.49.1726997021002; Sun, 22 Sep 2024 02:23:41 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 02:23:40 -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 6/9] linux: pass -mno-fdpic if FDPIC is enabled Date: Sun, 22 Sep 2024 11:23:09 +0200 Message-ID: <20240922092312.2061358-7-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=ImWTfKLo; 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 |
|
Related |
show
|
diff --git a/linux/linux.mk b/linux/linux.mk index 0a213d17b518..126e92e84c11 100644 --- a/linux/linux.mk +++ b/linux/linux.mk @@ -163,6 +163,7 @@ endif LINUX_MAKE_FLAGS = \ HOSTCC="$(HOSTCC) $(subst -I/,-isystem /,$(subst -I /,-isystem /,$(HOST_CFLAGS))) $(HOST_LDFLAGS)" \ ARCH=$(KERNEL_ARCH) \ + KCFLAGS="$(LINUX_CFLAGS)" \ INSTALL_MOD_PATH=$(TARGET_DIR) \ CROSS_COMPILE="$(TARGET_CROSS)" \ WERROR=0 \ @@ -184,7 +185,12 @@ endif # sanitize the arguments passed from user space in registers. # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82435 ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_8),y) -LINUX_MAKE_ENV += KCFLAGS=-Wno-attribute-alias +LINUX_CFLAGS += -Wno-attribute-alias +endif + +# Disable FDPIC if enabled by default in toolchain +ifeq ($(BR2_BINFMT_FDPIC),y) +LINUX_CFLAGS += -mno-fdpic endif ifeq ($(BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT),y)