From patchwork Sun Sep 22 09:23:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3500 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EF8CD40D67 for ; Sun, 22 Sep 2024 11:23:36 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5c5b83b6718sf1046626a12.3 for ; Sun, 22 Sep 2024 02:23:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726997016; cv=pass; d=google.com; s=arc-20240605; b=Yahi3Y9/ANnnQ9NflHaNXCZIfhJjfTiXHxEjWRKsB46zQGZSs/UVxoqW9zZETfUQ3x xPvhX/cCU845Rh7/mrGsMFGtcG7b41hXcxAYd2kgHqNfq7cCTwSSAyf5DCCJrIEHfhKq kC8CBMP3WUo6TagLJqB1TKSfwUyaPgRQoJzVR3h7dWEPiJTiEpAN01NQlOv8tOYbIN/7 A7IFGd6yhc2y9Xwy5Oku7adYnb8rocILQah1Fdm/BQFcC9CisFrLXDEakVJufRaSZgg9 +jHwInO1n7FR9PckS1YqB6Oqflc19ZASCD9yAw/WNjo0Pc7wVWgoM5oY0sJ+gRNXHKV0 wutw== 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=Ik3bG4NykGNTNBjGnmKq6QQXWgCpvoIlniPgl2L+2RQ=; fh=MayP9cNA89VsqNbN9/K1cPrF9aD5EWaETdBqHmJ56rM=; b=RsaPNANzdanQWbLjrX7i+Uc0qpZxACoRC4Tb0+Oixygf2u4l5QmGEyKMAfHsSPIFVr lnGdaqfO/wuftwRuGVpVrbXYN4STfxaVWZpFhgw44/b3mYQjaMPR0ZktIZnzaEMffSsV ecS/TskF9Dy++q5KQilBEoUR/OrL7WocmozyMN3n+NkCHEMd9W50ANAlfbGjNOe5nz/b 59hk4V/LuvyOC4BKnIiwmzIHvTuL1rUOZC0ECT43V1vpWrbDBa5CWc5KOZFQM0PfMb3Y dNeWAPVHrXiujrczDswCOkvC0HiIFYjI9t/hbAcrDOJS9UmdVTeg44DzT65CtWbF1ZIK Y9UA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F+q2Neeh; 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=1726997016; x=1727601816; 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=Ik3bG4NykGNTNBjGnmKq6QQXWgCpvoIlniPgl2L+2RQ=; b=dn4r+Sec9OKxcNLbh1leb2Vcbh11J+o9kYqjyQAhHuQmQCHR0K87aVd4jGrK6fe9Z7 0208zMe410CFUd3Nj9it2kF5CTmwA05x4mQFrVKXBy1lgdl1MgawKU+fWL3fvkTiz8/T mRmRjRAHMET+OSg9ZUkT9nfALLDH58/yHcdfY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726997016; x=1727601816; 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=Ik3bG4NykGNTNBjGnmKq6QQXWgCpvoIlniPgl2L+2RQ=; b=DwVkxzkMfPtCxIkDRTK0xikblR7wSalsaVFibFdqKryYeHh9nlzZbF+GIktYhxWnO9 ZoWozDnKePQ76dyi+p4ogqg6gEVdgc+x9lygQqJXJyKQewNqV3vrSop6HgyagbOLs6VI Ltv+ZbSrc/kQ7MfcopmeLX/b3FBMbOsq8UTxkXlTCzb6vCbyx8Xe+fPvuthx7LZN4BFD tu7YCaPRZhbAJSFH10+SddMcZSHqWWZ+MjbncVuP1Gl2GeF/g/Kh6KRUruBJD+u0nyxK i5dsuxgbzlZxgwkPjAac95tEQ8lUHdB8p0Y+VGh0Z3WhwbhXNTvnRpo4I1f3MnodbEQ5 Z1gA== X-Forwarded-Encrypted: i=2; AJvYcCVR5B6y1HBiF+rz91e0hA4JXtma6MKGOa+/ADoxWiJxuOo6j1mcujRJpFc9Efam31IBor2SPfnbImEQl9I0@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yz769g8mhmNwZ9UikuspduJn9ZG7aduFMbEOXFUZwT2wFneOowS ZEhyc5TVFnoAIFyRlptgRNQQt82pbvFFN89xAz0Feq41qusHjg2L757l54O3RZZetQ== X-Google-Smtp-Source: AGHT+IFsDP5ho5ICTdSYHc8HdvFlan3PGgMQ2ojZk3rq/ieS25ySDT9DWHC5FlLhAaBeRzsPbtBreQ== X-Received: by 2002:a05:6402:5113:b0:5c2:6311:8445 with SMTP id 4fb4d7f45d1cf-5c464a3855dmr5638593a12.2.1726997016139; Sun, 22 Sep 2024 02:23:36 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:35cf:b0:5c4:2278:28dd with SMTP id 4fb4d7f45d1cf-5c45995355als1324384a12.2.-pod-prod-06-eu; Sun, 22 Sep 2024 02:23:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX1ksKede3SQNcWm7/ifwQxQ9m5wDhq6W8tK5H8fvMBIHSTzCN2oFht8zfmz2DHESNyJDPLTSV6aI5AZq6Q@amarulasolutions.com X-Received: by 2002:a17:907:e6a7:b0:a8a:87d5:2f5e with SMTP id a640c23a62f3a-a90d4ffc882mr768272466b.34.1726997014354; Sun, 22 Sep 2024 02:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726997014; cv=none; d=google.com; s=arc-20160816; b=A3RwHSRc8jzCegOoriHwes4kASrOIyn5f2GIVYgL/DgDSyEnIZ+IIhQd+hBjDtu6Va TXR/vFs2koPJEy4xIlFZ6GtMKbV3RTh4Gv+8WS1uDIiFld4uPebdy66VGfKvgKz+k4mL dTWEbiYhVhz0871IQoOy5UhrclTi496Rd1XP9hW12GEC7uJcGM6FyJOdqhrGeCQqQ0PL L9b7voi/V7Z06g2UNqVHyneW3OZ+Qs/mvgJjGJqbOeBoHcdaSCwh/Qm86cFUTZpkhCyG bXQIu8q8vdlUzo4HoiW1VWdO36sDY7XGHj79HKpyUsms76OQZ7/y15JA3uefD3oaqOyR egjw== 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=A1fwdrkxR9UaBIlKgHknDI6TdyU+F9Gj3rb8SiV9Hkk=; fh=M9nsWg8ljrhe9WXOZbDA7QdFBGYmcFbKMCxSiSVbZZc=; b=x3jZwr+6IQIMNv+MWTUQKZzOqQbDv3eu2S3Ui7m1bk3OgtbtXfq8skFYfMYWGNEAKx x77OQcJErgozSsje78ZC1HwLzdkdpomlHtQt16fioaR8KZJUT7kuzl8r7wxSdy2aUAv1 uKUWPTQtwYL3AuAZT2Zv7UP5MF1Z3DkWiUpmXhNEUQZQhiPhnZqfRmUMitVFBx+AJhxg MlZnEKrxaIXs/Nq6gDrRBZmGB4iOdYiRsS1vT/uIFVm6+YluBCEksT0tQ3+JnFQ2xZHx i8O6eWSBTicKG6KkoW3Kgy5HMAlIKtTurJ3sgDuMB8rdTATFvG1RPx5Y/6BcwloLrMTj IJIQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=F+q2Neeh; 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-a90610f11dcsor644636266b.5.2024.09.22.02.23.34 for (Google Transport Security); Sun, 22 Sep 2024 02:23:34 -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; AJvYcCUSflGgm0V4apUeRFb6VoIX4xjyDv4kXlmseFmR16V94DYPKV5ypPpuH7AaieHnsStrvK3KaQgtNrInlQ9h@amarulasolutions.com X-Received: by 2002:a17:906:c113:b0:a86:af10:6a47 with SMTP id a640c23a62f3a-a90d51093famr883238666b.60.1726997013831; Sun, 22 Sep 2024 02:23:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 02:23:32 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Giulio Benetti , Waldemar Brodkorb , Romain Naour , Dario Binacchi , Thomas Petazzoni , yann.morin.1998@free.fr, Ben Wolsieffer , linux-amarula@amarulasolutions.com, Ben Wolsieffer Subject: [PATCH v2 1/9] Revert: "arch: drop now useless support for FDPIC" Date: Sun, 22 Sep 2024 11:23:04 +0200 Message-ID: <20240922092312.2061358-2-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=F+q2Neeh; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ben Wolsieffer This reverts commit 58dcd28dfbed481becb822b009583a63efbc6ffa. ARM supports FDPIC, so this code is needed once again. Signed-off-by: Ben Wolsieffer Signed-off-by: Waldemar Brodkorb Signed-off-by: Dario Binacchi --- No changes since v1 arch/Config.in | 14 ++++++++++++++ package/uclibc/uclibc.mk | 7 +++++++ 2 files changed, 21 insertions(+) diff --git a/arch/Config.in b/arch/Config.in index 2e7ac080efc5..bd5f9ce47058 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -12,6 +12,9 @@ config BR2_SOFT_FLOAT config BR2_USE_MMU bool +config BR2_ARCH_HAS_FDPIC_SUPPORT + bool + choice prompt "Target Architecture" default BR2_i386 @@ -430,6 +433,7 @@ endif choice prompt "Target Binary Format" default BR2_BINFMT_ELF if BR2_USE_MMU + default BR2_BINFMT_FDPIC if BR2_ARCH_HAS_FDPIC_SUPPORT default BR2_BINFMT_FLAT config BR2_BINFMT_ELF @@ -441,6 +445,16 @@ config BR2_BINFMT_ELF and executables used across different architectures and operating systems. +config BR2_BINFMT_FDPIC + bool "FDPIC" + depends on BR2_ARCH_HAS_FDPIC_SUPPORT + select BR2_BINFMT_SUPPORTS_SHARED + help + ELF FDPIC binaries are based on ELF, but allow the individual + load segments of a binary to be located in memory + independently of each other. This makes this format ideal for + use in environments where no MMU is available. + config BR2_BINFMT_FLAT bool "FLAT" depends on !BR2_USE_MMU diff --git a/package/uclibc/uclibc.mk b/package/uclibc/uclibc.mk index de834bac4f2a..600d72ce7ba8 100644 --- a/package/uclibc/uclibc.mk +++ b/package/uclibc/uclibc.mk @@ -57,6 +57,13 @@ UCLIBC_LOCALES = \ endif # noMMU binary formats +ifeq ($(BR2_BINFMT_FDPIC),y) +define UCLIBC_BINFMT_CONFIG + $(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_FLAT,$(@D)/.config) + $(call KCONFIG_DISABLE_OPT,UCLIBC_FORMAT_FLAT_SEP_DATA,$(@D)/.config) + $(call KCONFIG_ENABLE_OPT,UCLIBC_FORMAT_FDPIC_ELF,$(@D)/.config) +endef +endif ifeq ($(BR2_BINFMT_FLAT),y) define UCLIBC_BINFMT_CONFIG $(call KCONFIG_ENABLE_OPT,UCLIBC_FORMAT_FLAT) From patchwork Sun Sep 22 09:23:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3501 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BF9953F14C for ; Sun, 22 Sep 2024 11:23:37 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5c459c01f19sf2329579a12.3 for ; Sun, 22 Sep 2024 02:23:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726997017; cv=pass; d=google.com; s=arc-20240605; b=czyi/UK/HkglEk/ggAU/Q6bCJkZWLhzXkMUt8Mzf21GCW9UQdhVXvTspuF3SHgDIvY 5LAyaHMYYnNF1VrbY81acuhmAytenb1blVomKooaYHR60OKy8dQzsSjyvw6KbU+T6HuV ES2bbnypdXIEHuK/eAtlp+Yuh2+9r3AuaKmlX+lkH5SNWWTFX316YqIq9QnkwoRbsSMf CLwQfO+MiA8pQt2VRoM0qZjl9QMGDco9GonIkcZ21TGH2jxIJZvQLecMeENymW7/r0oI vieB0mTlfoNG2a+dfZyj3Gw91BEsQzwKXgSyRHdwjCrZBeQFB+yLjyCfw4eBU3D/8br2 t69A== 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=xo+6H+9v16ClzMyyhIRs9ZbiXGukm8jJ13RGMv9673Y=; fh=XCLvA7eV2+27opX01hkBGfqeEqjGmF0K17nLBIiFi6k=; b=MjXmwzAkbO3SaQtgHowk639i3usMWWf5+KixQ/k6hmnCNkO8Iok4HbnKNklTqFlNQo rMGrkHuhlztB/3aiDzSWlWPhzM4Vzyu1fqXR11uDmcFZt6oe5/RxlTL2AStN0GQub7M3 jGz08rpKdS252cHiOPY8i2Iyvi9dUKuOW4OLFSWn8QH9XqZ1UgydBx9ZnxlOO18f2WFV l0Dlql6n9lrVm3PL2MXvmeYHlkKnpR+Bs8bqSLlcX49iNlUuzVq+jUn6g7y6aVSqfRv4 u/N55BEzqitBUs91HL5cQW4olwigxh9plwEGCd97KM775vFmXkugxs3sMsRYXAA7RfaK U2uQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=V8KLJmBP; 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=1726997017; x=1727601817; 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=xo+6H+9v16ClzMyyhIRs9ZbiXGukm8jJ13RGMv9673Y=; b=YTaQVR297/YsJVPtaDXVgHgtaAFrbyyX4Qw05RgPuZgZsUrPf22C1k1IABDnj00JR7 K3s1FvWxFJNLIkvALweCGIMTfuQwya77/kcLJpFGv5d35Eb2FddDuBm3DU1VUyibDuR2 rQsdqQW9/jGCi9A5QbmIMpbvjXg9eCeP2VzZ8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726997017; x=1727601817; 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=xo+6H+9v16ClzMyyhIRs9ZbiXGukm8jJ13RGMv9673Y=; b=WlRutM8HlxMdP2BgPn1ATnuliVL7Vd4iy4H1SoT8PYYXCTQiHJbchUk99IQ2r4xtfX X7vJMkI8w1OMzUrACHG2QJL0iz61bRGTqlOJqg4mI57X6QU3JBdDSWMEk+o5QAJri0+i Djhz778pwCphrodCvNt6y+kgqxhePAKO7JD1Tcyg9VrZRniiSjjTRTTKH4odFrlXw13A M+cGoc6vB+/p6tILoXaBfXXlh27/frxn1/zKjTD430EROfswGkrftrdjP8RayRXUGHsp vb6KHbHu8QMlL+W9baAybC//0v3MDF+8lWvB3s+ZjE3lkKGB92ZmUNg802FUKmsWRZIP etXw== X-Forwarded-Encrypted: i=2; AJvYcCUqk6Ee8gonbyHemCXD+jdbjgjCM6N8Isw8zZCbSp3LhCZpvaSeTuVdbu0JveVIkWeaHjcQDV6PYyOeIPOP@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YykkUYQaqAWW8vpxZYGcJe6VKuaOfYVsOI8WIB83BFp21jhQbPP G2CHSGBjpf/PuHynO53SBtwPTo2H/WSLfX5Ar9n9FouhOfhJLnBtIoxX7IxCliGpgg== X-Google-Smtp-Source: AGHT+IF/Muv+CiAhH3Auy5scaOSzfMTnDEBShcPO2MdKyEZj1A2hVAynr0+w8xJ6iPpNvor84Xqb+w== X-Received: by 2002:a05:6402:35ce:b0:5c3:ce08:58f1 with SMTP id 4fb4d7f45d1cf-5c464a45581mr6468459a12.20.1726997017324; Sun, 22 Sep 2024 02:23:37 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:2101:b0:5c4:6c19:f742 with SMTP id 4fb4d7f45d1cf-5c46c19f885ls1173201a12.2.-pod-prod-02-eu; Sun, 22 Sep 2024 02:23:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUfhmZ7WgB8sKN2tdAMPr1xdAMMHkKpEneUaq5UDRA9uSa13U4QG4owPr08lVxWVAEvoEEumXQ1KHBeOb+V@amarulasolutions.com X-Received: by 2002:a17:907:d843:b0:a86:9fbd:5168 with SMTP id a640c23a62f3a-a90d4fc8f1dmr674445766b.10.1726997015749; Sun, 22 Sep 2024 02:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726997015; cv=none; d=google.com; s=arc-20160816; b=D+GNHrFvulDwAmydXBFUw1Ktsmu5MMybld5uJCGUqGh00tfymIJRM+L+EZHRB81ZSg 75JCrQoDlgpzKJ+pJ+3O4lvO0eMdQ/YyUwjnv9fSR/9aV2ge3A39LdVVsEJOhKB1s9cE QdrKMIcHeWSkYXtRQf18UJjzVlaLzbaDFPDqIhUQoUXdLdSwZGOf/RyLzuhnO71VuL+4 O1zXwzbYEYV+DifeORI6nbHlcnUPYctJF9pw4pJg/NH0Cru+O3nRSmGdHkUTGLaJV1iS AO76s/OxDpM8s/m2gPj7aMxLqy91iYK9/LOarjn/V/1opLGMWs0JIMwK9KMIPEHCet1U dJ5A== 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=D4p/uqH+E0QejI4dRMKNUT/grPbll7PtBMaTT6zZuWo=; fh=m5s46/ilY/M04tz7SWC6tNvlIl2W1XfILIPZWk/HTVw=; b=ZaiT92KUU0QO7gPNIFpBunJYavQABzNIZkbhxhLaPpMWsEfsbBsmlh5BKVfq40D7l1 O87jK/MUKLpi/oVwwqaY8kL/yrNMVUUqZ3oLT3y9b+W1coramSHc/LdgyHtqSzpdeT3i Ovi13XMc4T2DqBEGlhM1CCqwMGGQ2im7jb5AtDBs5Ao5W3eDic66GRuZ6/ITcuEyKz06 nLojHWxA+J4plLXQgbj8kUiMSSxcUKkaWUOG6792WrRiFPDcqsE0p4SiyYiZMzs43cCG 4Bo7FTVSZyDcbidOevi6ktR4Jia7BMzudnsmUstW8lexkB8D577GkOmHi8u3usn2KDbU +7Bg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=V8KLJmBP; 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-a906109e28csor542471466b.4.2024.09.22.02.23.35 for (Google Transport Security); Sun, 22 Sep 2024 02:23:35 -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; AJvYcCWbUyRVb4SUg3kqrSpcmBhFOoY3h2MPa3wJGYzNAVDqY6bDskbfxtqzj1K1wWDcn+o0Aw7NWzJffEKCfGSy@amarulasolutions.com X-Received: by 2002:a17:907:f19c:b0:a86:789b:71fe with SMTP id a640c23a62f3a-a90d50eed3amr792745766b.48.1726997015320; Sun, 22 Sep 2024 02:23:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 02:23:35 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Giulio Benetti , Waldemar Brodkorb , Romain Naour , Dario Binacchi , Thomas Petazzoni , yann.morin.1998@free.fr, Ben Wolsieffer , linux-amarula@amarulasolutions.com, Ben Wolsieffer Subject: [PATCH v2 2/9] arch: don't enable FDPIC binaries by default Date: Sun, 22 Sep 2024 11:23:05 +0200 Message-ID: <20240922092312.2061358-3-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=V8KLJmBP; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ben Wolsieffer FDPIC support is being added as a new option for an existing architecture (ARM), so we don't want to suddenly change the default. Signed-off-by: Ben Wolsieffer Signed-off-by: Waldemar Brodkorb Signed-off-by: Dario Binacchi --- No changes since v1 arch/Config.in | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/Config.in b/arch/Config.in index bd5f9ce47058..e57f4b2baa06 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -433,7 +433,6 @@ endif choice prompt "Target Binary Format" default BR2_BINFMT_ELF if BR2_USE_MMU - default BR2_BINFMT_FDPIC if BR2_ARCH_HAS_FDPIC_SUPPORT default BR2_BINFMT_FLAT config BR2_BINFMT_ELF From patchwork Sun Sep 22 09:23:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3502 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8FB8F40D67 for ; Sun, 22 Sep 2024 11:23:39 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5c25cf44030sf2102053a12.0 for ; Sun, 22 Sep 2024 02:23:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726997019; cv=pass; d=google.com; s=arc-20240605; b=CILIzyhebESJCbGTRuqc5u0qrI1VUa0G36cUpL4bxjSjv7md+kTO05unM5aPszt+vp WmVUnYlRpL3iMpSPfMYgBG3zSc8Mp/cqaXACztWRqtcs7ie3Us+x7VF4b3834x9+ujkO 4l5cmvJetLjQLZ7mVU9mv2kaFZrKe6NHKHwy0Swf2NzTKv2loh0/Grl3tZqH+pTyD3k8 iB5LOAq4/TkmtZsNwThat294KeB5E/ECznnmsi0otCw35izqltajpHkVB5T2kPz7dadc M3lmhpTBb0vpgA75quqcYwe3I5dZyGyJ35oF9JbatcWevyJD/yhjg6zi+6RSeySQCzGj RreQ== 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=DRDjYIGUFpNoPjPbcxuSU9t4x1+SFbDpIda+MOGAYGQ=; fh=OpCvQVt3bAgXP+6Zu4uitqIL65zGG0lbS8TpAJ5zkjY=; b=OsJIlSSfeguw8CCRIveIVTey3cBws2dH7Td0WS/rODzw0W0Y86emLMMJnrZI30ZReC 14T42UEgYsQ9mvDZQhccJ4a7lIJgS0bgpvXmRTDCrXmbVj2+K1BkxW3j6E97FHu5yYzb xQwC+OCCRc7isT/tgz1IlR1DhI1dPh8jpZlJoT9lq8MSHIwAIYRtFbcszEOhxNSCyFvq X53yDIim623w/3EXOgI5eIITnxghN+aTPHVG8W7wmqRxt4bt3X1zr8K3S7ZtXUwZNvvf 63DsGJv2mDe4JCaBd4tNO4vrxd2Bvuis5A/sExqSi6dpIHXZa/EP/a81jLyVbwdNt1aR Wtbw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FlY62uWC; 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=1726997019; x=1727601819; 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=DRDjYIGUFpNoPjPbcxuSU9t4x1+SFbDpIda+MOGAYGQ=; b=Yl/DR3CGHFJm9iOouwKFAziks30+lu1cdsALypw6mxVbtR3cojm7YerJaZXQ/BhNyx gaRC5Hat9N+9J8ZgMhmkj48rf3TSbUbW9sco9bXznX3XaZo7Tmc/t2Si7l6J5XJsS+sj QpYtPec5Q8LbF2WFr6Y3vYILL+Q4UAzvB1Ibw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726997019; x=1727601819; 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=DRDjYIGUFpNoPjPbcxuSU9t4x1+SFbDpIda+MOGAYGQ=; b=PoznaLW6f/gKI/DISSUkg1AfSFQFPOgxepb5yseJFjlB5DA04UE+z8xlwqaUBicK5L 0IcGxvAIcQ9cirfKwcpf8Cjg6VmSTnFsD5/5cYFN6z9ktkbfD6Fuh+Q4Cj+oLYbt3h57 XwpA905LRSWpIDsJ6mcFAdN6Q97M6NHc16r0SOwil5fCRGvP4LvGofRYrvtkZsgtexGU rLJA6QP3vytLtlw9BxX5tVgWwn9t7ktoiEmbOKbzSPb3clkWzvumjf5UtP/94OzjI91z 2qANc/RHU6dEa+uCmY/I+zAdzQy72hHWKNNduJc+aWKVmVq9+8IfSFayS/YA8teEvpGW KNIw== X-Forwarded-Encrypted: i=2; AJvYcCWySXVvlPdJ29vzjklZgT6VlaiNhEeZvCqyImK4suHzBYsleb+V0q1DNIujIL39IYslQw/+EVqbgtxc9NbB@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwDKQjoip24RkEzy3GshZnYxQ22Ijj3oSm91m1DbOfISzVYQ1ma mj1bYb4v9FUVzfin1Ar/Mdw0apqa0K9zcqVmlzNrZzeSMyFLYzBSYErcMchM3zTB5A== X-Google-Smtp-Source: AGHT+IGo8wVOp+5PmtfGkd30E9aGboQLFBUJIjMriNpCVlqjHxQApht189pZ8cZzQnnzlEHSni+KMg== X-Received: by 2002:a05:6402:3212:b0:5c3:d2bc:2f64 with SMTP id 4fb4d7f45d1cf-5c464df0944mr6727724a12.35.1726997019074; Sun, 22 Sep 2024 02:23:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:d043:0:b0:5c4:6687:149 with SMTP id 4fb4d7f45d1cf-5c466870297ls706692a12.1.-pod-prod-09-eu; Sun, 22 Sep 2024 02:23:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXPVrOOq+KHNqczWhF8GxhnmNkHk8p8OcTy9A22A3yHabtC01ynLTQdFGiZgoVxoDf8ffDaMmQ8pUWIfPcv@amarulasolutions.com X-Received: by 2002:a17:907:6095:b0:a8c:78a5:8fc4 with SMTP id a640c23a62f3a-a90d55e0dd2mr898085166b.19.1726997017493; Sun, 22 Sep 2024 02:23:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726997017; cv=none; d=google.com; s=arc-20160816; b=h9HRo7wokNS0RGUvmty6qoCi/fKYOd9Fwj1s4piEK98c78Kf8XYL1RAxFq/Vfng7Rw wUqp2pbSV6iPJk0msk41GpfcN/+uOqu/Va5Ktwxoskt3XKifDg/0VCCwAdA2pqIZ2lwi 17kGns3GTmb3+wW/Ag8SBa3igGHEOUTvF4VznO+adB+mMG50DiP8JcjXG2QU4GpTWdZ1 +5HU5aXgvu87I13WVGCZU02ByImBL84KX+ceXuwh8ESx/u2VldjWsB3GzQ5b2MRAcjz6 lhodhzS0oPXEZvr2xmnh3F4YuuPSsnFi2ntbUfN7UU5owsdiozY+l1l+Xt1Q/ySw5Igv Z30g== 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=750dry+PxKwfB6Kt0e6FyToo49lr3HLwDVPYzO6t8gY=; fh=LkhxixaE5VrZQB103YbgbHhVHQSAwfMQnXVErLbbcsU=; b=qhbz216Y1SyS4j88YwzdmCBO/hwropqUIXz7ye0vod5V3cRQktR0j45e1nYDjizzqT Q0HKho2ZnO6YqsMnxLXR+MHcPs1njteeFMmzcVqHFeCSgV6IG/bysM+SXTaz1QgvuZgx o5VCOHLkUkMVx+0PCUtVDT8nOoxQlA5CpggW0olD33H2cKYZNHOGgfdiuBG0YGJ3zIcZ kBUDaS8E2jIVtbaG6v/S2920bcFXbIK0IqiBe5nlbUVxgde8MpIzMLkSGNz56tPZ5tkA JbBYlV3Kl6xNyv7VDr6kG1rNsi/mQyalYk99kC7k6aUZmYShp3wHaW6emwlBsum9ja5J ueSg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=FlY62uWC; 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-a906133e85dsor567963566b.21.2024.09.22.02.23.37 for (Google Transport Security); Sun, 22 Sep 2024 02:23:37 -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; AJvYcCXHCl4b9TJ5dnNIAFowsmbXD1kQsDGHIf0tQ8IJtLqXvjx+vtuaKU2+g24fc9L+ghaHdPz3pQZkvr1TgpYo@amarulasolutions.com X-Received: by 2002:a17:907:e655:b0:a90:b712:d7e7 with SMTP id a640c23a62f3a-a90d582564bmr751728566b.54.1726997016864; Sun, 22 Sep 2024 02:23:36 -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.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 02:23:36 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Giulio Benetti , Waldemar Brodkorb , Romain Naour , Dario Binacchi , Thomas Petazzoni , yann.morin.1998@free.fr, Ben Wolsieffer , linux-amarula@amarulasolutions.com, Ben Wolsieffer Subject: [PATCH v2 3/9] arch: make FDPIC dependent on toolchain support Date: Sun, 22 Sep 2024 11:23:06 +0200 Message-ID: <20240922092312.2061358-4-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=FlY62uWC; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ben Wolsieffer FDPIC support on ARM requires a certain target name, and therefore is only currently available with the Buildroot toolchain. In addition, only uClibc-ng supports FDPIC on ARM at the moment. This may need to become more complicated if we end up in a situation where each libc supports FDPIC on a different set of architectures. Signed-off-by: Ben Wolsieffer Signed-off-by: Waldemar Brodkorb Signed-off-by: Dario Binacchi --- No changes since v1 arch/Config.in | 1 + toolchain/Config.in | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/arch/Config.in b/arch/Config.in index e57f4b2baa06..52efe3aabda1 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -447,6 +447,7 @@ config BR2_BINFMT_ELF config BR2_BINFMT_FDPIC bool "FDPIC" depends on BR2_ARCH_HAS_FDPIC_SUPPORT + depends on BR2_TOOLCHAIN_SUPPORTS_FDPIC select BR2_BINFMT_SUPPORTS_SHARED help ELF FDPIC binaries are based on ELF, but allow the individual diff --git a/toolchain/Config.in b/toolchain/Config.in index 6e91ab756cd4..0dd4bb5d9b8e 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -48,6 +48,7 @@ choice config BR2_TOOLCHAIN_BUILDROOT bool "Buildroot toolchain" depends on BR2_ARCH_HAS_TOOLCHAIN_BUILDROOT + select BR2_TOOLCHAIN_SUPPORTS_FDPIC if BR2_TOOLCHAIN_USES_UCLIBC config BR2_TOOLCHAIN_EXTERNAL bool "External toolchain" @@ -307,6 +308,9 @@ config BR2_TOOLCHAIN_HAS_OPENMP config BR2_TOOLCHAIN_SUPPORTS_PIE bool +config BR2_TOOLCHAIN_SUPPORTS_FDPIC + bool + config BR2_TOOLCHAIN_GLIBC_GCONV_LIBS_COPY bool "Copy gconv libraries" depends on BR2_TOOLCHAIN_USES_GLIBC From patchwork Sun Sep 22 09:23:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3503 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8ACAC3F14C for ; Sun, 22 Sep 2024 11:23:40 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5c3c398b511sf2944762a12.2 for ; Sun, 22 Sep 2024 02:23:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726997020; cv=pass; d=google.com; s=arc-20240605; b=GObO5PB4xNkCsKlhuVElyUT9UzNBWoq7kAJFpazaOw160cG9RSzVEI0DlqSlWlHZgd x/rS1VEmTUALBkyaOA1sKSkM6dh1hwSGotpAvsM0B7MIntLJ+wYLzarMgftc/VvavUnT UTe+NWRUNScYNhN5HzY1cnEoPpCytF29W5k10iXKbb/xZqd3VqqmRYuWNT5/WPTzdnCE S9nfhYCptDK+5yDmiuVPFt3ki1lelnJ1KxFi74zEAekkPlkqNmLss8XIYOZSLNJ/voAG n8yA4UlwF6QyUta6bfLc/iH+yEN3omnRVE51BViQFGfyFh0r+EI4CIbuRvqdffvrWQFF Wa2Q== 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=j2Io9KP0o8RPAShVbJcT4KynydBaUXiI7rOd3Hrv36Q=; fh=XqS87H4LBtUUn/7ENxI7ZjN7NjZLyjMxY0xNWbssQL0=; b=ai8g3JJ9+7EK3a3AmPxCRufe/zsiQedDIbrWJSouVIjyDKJrIavzmyjk1WFl+jffyC Wko3p2w8wFtm4io9Wm5ojzHwJ64VkisVbggimUzkw5gTywjyBTbWs4TykFgMssDQAw4g ENYXRD6c2buGzKifRQBnUxhepeDcKBvQs2lkM8512oIdPpH12uUXPZR/6hX53Q0pPmBW BwH/xA0Jq0u3Au5cEGnDcIerBIJO5hUkGgcO75K+hzcjlmSlPNZFaDRzDUf3XR/yNkmd IzOE1eeHPK67W03sryyjdU4MQO9Dmq60KW3fvnOXIV+eEbNmBzk5PE6Z6Lja/CcyqxAe zz4w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OuADWZCh; 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=1726997020; x=1727601820; 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=j2Io9KP0o8RPAShVbJcT4KynydBaUXiI7rOd3Hrv36Q=; b=C+RdD39hPuUdLClNI2rWJSVtMVVORFy1hlO2Q2MTVTI6xXzmPK+luN5qicfX70w51e f9XHSQwQVrV+inYCrgKbp90kaoDExn8x9nAxWn9+bb8mvMNFWee5w9FbB3y1vRH5T4u3 x3oijXMk0VLxxx9V8wUuX354tPApCCQPVqM9s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726997020; x=1727601820; 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=j2Io9KP0o8RPAShVbJcT4KynydBaUXiI7rOd3Hrv36Q=; b=PEDMXPzESMcAnuDcY1akqNH31ui8rVbfAUcAXtJ2tc0Rn3tfOPvhm/TBfPoYHS4cE7 DTQvqTGkjyoWgMNZRWFFs7gre3T8dM3r7VRvvCBjdWxVhrthxMu43AwXrM7Vvs4I/IHL Gfbybx/I4lHKrV0wHDyAqIVRh9348HTYON7fNanbWEO+lfX8RkMjg6DSfxOC10ebRZta F+bMMvJz/WXFW8Y59i+bWzKdF+5smAWXZcDog4CDzhqknUSZpwoo2hBszwNqHY8tdukQ I2jXInWvy13teGRsMg7uZ37PBxohxqjNc1XZPzTy8fRXSi6/QC+NcjJ7xGC3onUorHwv PUNg== X-Forwarded-Encrypted: i=2; AJvYcCWz7JEgjV0MJx6G5tiw41PbwjH91h8BCHi0qNP5m2NPyu/HnfYHergAU5/E0FzJ1PLedoUV1fJnTNDGSCO1@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Ywn4mMUdvlIV58xdfOevGRFygm9JotKrH1Xy53Jv3EyezEUIojO eV82bp29Pd585acIUqMRHeG6e76894D0JWyY6Oydx3bcl4fUihLVhubvmMpl0rS9Mg== X-Google-Smtp-Source: AGHT+IFSFQjmyofoio8iNB0CJcnzztUev/ooRb5lA7EpQlSdc6oGx8qjF01Rf74AMqA97BuSLwo1ww== X-Received: by 2002:a05:6402:d0a:b0:5c4:2f65:cc28 with SMTP id 4fb4d7f45d1cf-5c464dfbc6bmr6910621a12.31.1726997020099; Sun, 22 Sep 2024 02:23:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:234d:b0:5bf:bf:efe4 with SMTP id 4fb4d7f45d1cf-5c45994f1bfls1329265a12.2.-pod-prod-08-eu; Sun, 22 Sep 2024 02:23:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWS/Zqv5nc0KBjusjzBFfTYRr1TqgWtI8TVBTSQBgJuhkeW3snn9sTUP+4KP31suvFpK6iGCK19rczVxPxv@amarulasolutions.com X-Received: by 2002:a17:906:c10c:b0:a86:a56a:3596 with SMTP id a640c23a62f3a-a90d58c9befmr861960966b.60.1726997018531; Sun, 22 Sep 2024 02:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726997018; cv=none; d=google.com; s=arc-20160816; b=AYWan9eWhi0TIzs8v3hF/U/KTdxc9+8KShGc1r+m7dThTPBgD70NHAheyRsls6LBKz G8MbGBSS7CCp0fAqQY3iOZcNfdc4gyFEcQyUOhDcBUwK4r1VDgLx3FgJagYXJ7IBpbG0 vzeRhXMGVmromWxBNNEFoQ5AnhC8KhzSAUbF8NMdRosYvoJK5C/i0f2g9slZshpKH5y+ xhQxKZEu++NujqUdSrp4bSJdgjJrDc3PIHMGdrOyQe5DHtAPoMicEjfWQxntyyVb6XJ8 0/3c3G6f3XNmBvByP+tDbVs/PRtbn2vwESQfPNJRGwdO194mPPRg9KIgs3Il15sj7e8k cDjw== 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=BqQnF3E7ciw9GbEgIOpbevSW9KmfWN9UV4R/GKU3/vQ=; fh=QrcKTdnITlSdy/pSwUGewr5EA4x6U75Cxocfcra6MR8=; b=jtWubawTaUFR/k/t884acZR7hCJtzHnAbNFOGCJHUUUX9n0BQnzYWWNSZmhPQ7N7Hp K5R8A4sYLSJwB1R/3NFu4dfUOvNSkVfjKRnjUWxThrO4PqIey1+9KqfBi9PhvafAd8Lv tEU8BFJ/RGWDbPENICgmJqRvmIc4AxRxOtab88tA6NjMVUOSkIAD99JbSuhVH+vFgFYb 3Q5ULJyyN+ONiVUTZvkITG1fJLTpmcLop3hxmbFuZlfFDQW3TpqM/CgS3nBCoA1Rhj1d wfogV5xsbDoXyB6f5zicZAfwEQg3KPpuoloI1+aXmtotpf51sHl21JtjIe6n2pQZMcOl t47A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OuADWZCh; 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-a90612ef517sor477796166b.18.2024.09.22.02.23.38 for (Google Transport Security); Sun, 22 Sep 2024 02:23:38 -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; AJvYcCUX7pfDe7o3lioVdp2CYLf2POZwNRqMg2gBNNC/kc9C1MYU+Dk+QE5ZJBKpc4Y4bnAiIm9NQ5qdlJuFLpeu@amarulasolutions.com X-Received: by 2002:a17:907:e656:b0:a80:7193:bd93 with SMTP id a640c23a62f3a-a90d565bf4cmr904021866b.25.1726997018087; Sun, 22 Sep 2024 02:23:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 02:23:37 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Giulio Benetti , Waldemar Brodkorb , Romain Naour , Dario Binacchi , Thomas Petazzoni , yann.morin.1998@free.fr, Ben Wolsieffer , linux-amarula@amarulasolutions.com, Ben Wolsieffer Subject: [PATCH v2 4/9] arch/arm: add support for FDPIC Date: Sun, 22 Sep 2024 11:23:07 +0200 Message-ID: <20240922092312.2061358-5-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=OuADWZCh; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ben Wolsieffer Linux on ARM supports FDPIC binaries intended for use on no-MMU systems. This patch enables support for building a toolchain that produces FDPIC binaries. The target name for a FDPIC toolchain must be arm--uclinuxfdpiceabi, which doesn't follow the standard format and requires a special case. According to the kernel help for CONFIG_BINFMT_ELF_FDPIC, "It is also possible to run FDPIC ELF binaries on MMU linux," so FDPIC support is available on all ARM platforms, not just no-MMU. Signed-off-by: Ben Wolsieffer Signed-off-by: Waldemar Brodkorb Signed-off-by: Dario Binacchi --- No changes since v1 arch/Config.in | 1 + package/Makefile.in | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/arch/Config.in b/arch/Config.in index 52efe3aabda1..cd258b2530d8 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -39,6 +39,7 @@ config BR2_arceb config BR2_arm bool "ARM (little endian)" + select BR2_ARCH_HAS_FDPIC_SUPPORT # MMU support is set by the subarchitecture file, arch/Config.in.arm help ARM is a 32-bit reduced instruction set computer (RISC) diff --git a/package/Makefile.in b/package/Makefile.in index 808b71a93e99..829636900ba9 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -39,7 +39,13 @@ $(error BR2_TOOLCHAIN_BUILDROOT_VENDOR cannot be 'unknown'. \ endif # Compute GNU_TARGET_NAME +# FDPIC on ARM requires a special target name: it has no OS field and must +# use the suffix -uclinuxfdpiceabi. +ifeq ($(BR2_arm)$(BR2_armeb):$(BR2_BINFMT_FDPIC),y:y) +GNU_TARGET_NAME = $(ARCH)-$(TARGET_VENDOR)-uclinuxfdpiceabi +else GNU_TARGET_NAME = $(ARCH)-$(TARGET_VENDOR)-$(TARGET_OS)-$(LIBC)$(ABI) +endif # FLAT binary format needs uclinux, except RISC-V which needs the # regular linux name. From patchwork Sun Sep 22 09:23:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3504 Return-Path: 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 ; Sun, 22 Sep 2024 11:23:42 +0200 (CEST) Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a8d2ecdf414sf258692766b.2 for ; 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 (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 To: buildroot@buildroot.org Cc: Giulio Benetti , Waldemar Brodkorb , Romain Naour , Dario Binacchi , Thomas Petazzoni , yann.morin.1998@free.fr, Ben Wolsieffer , linux-amarula@amarulasolutions.com, Ben Wolsieffer 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ben Wolsieffer 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 Signed-off-by: Waldemar Brodkorb Signed-off-by: Dario Binacchi --- No changes since v1 boot/uboot/uboot.mk | 5 +++++ 1 file changed, 5 insertions(+) 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) From patchwork Sun Sep 22 09:23:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3505 Return-Path: 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 ; Sun, 22 Sep 2024 11:23:43 +0200 (CEST) Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-42cb6ed7f9dsf31346325e9.3 for ; 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 (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 To: buildroot@buildroot.org Cc: Giulio Benetti , Waldemar Brodkorb , Romain Naour , Dario Binacchi , Thomas Petazzoni , yann.morin.1998@free.fr, Ben Wolsieffer , linux-amarula@amarulasolutions.com, Ben Wolsieffer 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ben Wolsieffer If the FDPIC ABI is enabled by default in the toolchain, it must be explicitly disabled when building the kernel. Signed-off-by: Ben Wolsieffer Signed-off-by: Waldemar Brodkorb Signed-off-by: Dario Binacchi --- No changes since v1 linux/linux.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) From patchwork Sun Sep 22 09:23:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3506 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 5A22C40D67 for ; Sun, 22 Sep 2024 11:23:45 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5c42bb02028sf4264009a12.1 for ; Sun, 22 Sep 2024 02:23:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726997025; cv=pass; d=google.com; s=arc-20240605; b=JuOWKC9RNkD8M07bbfB/8Chx2LPgoQzH6oBDDP4o18i+UJSWITjz7Yig+T9VJWVQId FzlvQ4liwNy6QNxlZB++a4+o8VTP4KtJYv2IzE5xmZot8LTNZ2wQ12M25i0EhsXImyUs wkxZyByhbBSFnAhYis7mW9VHDwhYvWpCyu2QuwTWKLLH9ZmTZWKRFIQ3FBy3MplmzWcP g08401VuyCynm8CvcGjHBDHlmY9lXLJDrmp+/MfrBIYze9ye3EXAQ8WHcD2YISBNJ0W9 hyDx5ypQNrlsR4bXIc+cgP1tQU2PQi3i06HaeZY164aNytzGHdTuN92lUyW2l+vKfLxN VU4Q== 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=Ow2oCUC6NIOttF8bF5mwq0OL9rai4/OQs7v5cGHndx4=; fh=goBsKdHXoLcwp/L6lIJT56w+2JTFZQt/6OwkL2hZdwY=; b=MfIhNHM1fY+z2dHyj4yroDbGw9m4zni9P1t/0Cxs3sNxJGaOeIgGzFi/xanq1ZJF29 j/IedWQ5fwHiiNoBOsWO6R3rx5goABMZwxtd9dXna3MDDFSpujZXmxk09DDnR9LcDFcl G18A31EHjvXLBLl2qY+ZSKhQx1xztWU+DXbz1/0X0yJBDnXVXlKxmG5mP+FKdrRIEj6V K+6lLreWGJZWwHlT7lfoIIB8e47LcyYcZWQ8DeVyQmh1I3USF+0hUiVmlLHO9ngWJB7D 4gRdSeOSayTx/WMEopENpvqmXIWiYu6PpPxvXf68HPCxVcWh7gkL4tBn685BOwtJQihq 3Txw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pIgiqh+I; 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=1726997025; x=1727601825; 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=Ow2oCUC6NIOttF8bF5mwq0OL9rai4/OQs7v5cGHndx4=; b=AE67b4wQzL76H1zRmpXRSDZh1oaw+I4fMBHJbwv8x+KnDcqo/DJg1vlXEU9UQIfpsb XH/XYd4pX4IKmcqwwW33SR89XnqzreqYFeWOYiHKz2JRzteTElqvKDTvmsPq59C3miV6 ToaIPT3qpFVmn6XuZW4p0PoLNrjjMBGQmbBqE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726997025; x=1727601825; 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=Ow2oCUC6NIOttF8bF5mwq0OL9rai4/OQs7v5cGHndx4=; b=SYd2Wgv16rWB4WqtiUzqb76zxMcsYu1BbuMU2aWFl4yRRMDK53WdbNHr214w0Q5w6v ccO04mUMks/7b/TX2e7OP+buho6eiu1/ToH4D+aLkiYnzML7m9fW6dLBn3Z7gJnQPnPF 0Cbb8K9UWLA75v3GSRfiWlnw/JWzcbPffWBUYPZiyGeDv6oKqvMGbM+pqr+B38tXrX+X Fbs4nyzCD6o4ZG963kJWf5eBFEYYKhjR/8z/Qk6s7N4QK1VokAmTk9orQBCxOGw+aJtj J9Nup5TF04NwY+YN+ynm1G0P4Vwr2pTiAJJsmGAXtsHZin7ocnhPBZ4YWehs3YK/kYEq tpvw== X-Forwarded-Encrypted: i=2; AJvYcCUoQzUvgrhm+ZcxFeCmbhqWi93bJ1/p5NJb2+/v+pOcDmMwKDRZ83OHL+BfjHMat76ifXfbQxcZifpDquI7@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yzfmkgjp480Lv0H3+qNJmTkjSSybo3cpIwWAhzkVObTXgPzAI+i A/m21E0HsMGswnTRm1UBIp6wLGa7rVrDx+Z4FRT4bUDRpADyjwgl4z7S0aOOUU1N77YmgTVDnA= = X-Google-Smtp-Source: AGHT+IE8u55OwdfiKm9kx2+e0ti592CVVzifxEoVFg4AGzVUHcGM+EYgMnmOAFbC+B5vqeN3YlKhkw== X-Received: by 2002:a05:6402:4342:b0:5c4:20fc:7b39 with SMTP id 4fb4d7f45d1cf-5c4592208fdmr13190619a12.9.1726997024948; Sun, 22 Sep 2024 02:23:44 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5107:b0:5c4:6687:150 with SMTP id 4fb4d7f45d1cf-5c4668703efls163865a12.1.-pod-prod-00-eu; Sun, 22 Sep 2024 02:23:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUmM70nXpTy5Sp70ZOBtTeyHQc1txl2XyqwqOk8+CKijy7dQDODZwdhxacYsxyN3lL5dUBjZ7WVaCeUglww@amarulasolutions.com X-Received: by 2002:a17:907:9288:b0:a90:b646:8e44 with SMTP id a640c23a62f3a-a90c1c370f0mr1242160766b.1.1726997023320; Sun, 22 Sep 2024 02:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726997023; cv=none; d=google.com; s=arc-20160816; b=mgQeT7yhCIhaf8LVh6EOuFRmTu2Hpp9BsbJ7x1xAMVzUk9lZj4jjOAiPAT0nhQIEWl ELSJWPFh9FCPhxej55LHVVGoybpg38HO4OLSm32vK2CteZ1XedEpKXIZCDslvo5oaj46 T6UgRMOtmF4JcfLcaHsnOkd4My8vhJMt+vW3VvsZwN2CXAMUsbfo8CkJHKSqMUcMdyhr fKnT56OJyJQb7vvdm78nSmHDezILbg8WYs3pVtf0Q6E+PBUbkcMhSf8Zo5U8WEomcvhE IbBPG+J8Ic9u2O2g+36QP5nDOe95gw4107bdlNkszcWWgWkALR2r7nQiDSMRxrkd9We2 NlAA== 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=ucWYeingJI9DCD8hQDaZ1DGr9qbnpw2gXZFhvPSmJfU=; fh=u2CLvJ4JC1UbSHH3okLIc5iX8qG3fcBJIMOECCbdoWs=; b=QK3fiPzJUAfb6WUGTUMDbWV2pyJz5ASb9ANvXqLcJ+3e54mscSXVv1PySp3Ny406Jc 5n5ZeJuPeFEJN2/iaTgr9YDVwlr1l2pTc1+YU9cbmxeBp2CsFuTlRJtTlpJbpRH6PBW8 qZ/3hZrf3tv6KWCPnm2pTPfMMWxlmut8JsHpLb8iYtx9c9OlInfyd7qtDzFAWtbMfEdb bRcLxKuyIuKjMDSHgNmcJ3HFLCIo8s8aRVtf3S4yrtldCZWNiIiifeENrVgmGUoWtcD/ f/uNrC0DLGBqgGWJaNGSR4ImazIZEMEW9sgqdcDOZWnOFWLOEE1Y00BaVNodoQUfRh7B bJKA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pIgiqh+I; 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-a90b583cd01sor358802666b.1.2024.09.22.02.23.43 for (Google Transport Security); Sun, 22 Sep 2024 02:23:43 -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; AJvYcCVqJPnjv6sk4FTY8HY/q6GvfbohclEkvIz31TEI66xv2Wan2FCp/G63f/EXI9OfC+tpt9UxotqsM1xmCkiA@amarulasolutions.com X-Received: by 2002:a17:907:7ea3:b0:a8d:4e69:4030 with SMTP id a640c23a62f3a-a90c1cfb99bmr1378167366b.19.1726997022749; Sun, 22 Sep 2024 02:23:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 02:23:41 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Giulio Benetti , Waldemar Brodkorb , Romain Naour , Dario Binacchi , Thomas Petazzoni , yann.morin.1998@free.fr, Ben Wolsieffer , linux-amarula@amarulasolutions.com, Ben Wolsieffer Subject: [PATCH v2 7/9] package/uclibc: enable NPTL on no-MMU ARM w/ FDPIC Date: Sun, 22 Sep 2024 11:23:10 +0200 Message-ID: <20240922092312.2061358-8-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=pIgiqh+I; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Ben Wolsieffer NPTL is supported on no-MMU ARM systems if FDPIC binaries are used. Signed-off-by: Ben Wolsieffer Signed-off-by: Waldemar Brodkorb Signed-off-by: Dario Binacchi --- No changes since v1 package/uclibc/Config.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/uclibc/Config.in b/package/uclibc/Config.in index 73ddd5ef5819..4c360809c3ab 100644 --- a/package/uclibc/Config.in +++ b/package/uclibc/Config.in @@ -78,7 +78,7 @@ choice config BR2_PTHREADS_NATIVE bool "Native POSIX Threading (NPTL)" - depends on BR2_USE_MMU + depends on BR2_USE_MMU || ((BR2_arm || BR2_armeb) && BR2_BINFMT_FDPIC) select BR2_TOOLCHAIN_HAS_THREADS select BR2_TOOLCHAIN_HAS_THREADS_NPTL From patchwork Sun Sep 22 09:23:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3507 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D8ABA3F14C for ; Sun, 22 Sep 2024 11:23:46 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5c24b4a57b4sf2573216a12.2 for ; Sun, 22 Sep 2024 02:23:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726997026; cv=pass; d=google.com; s=arc-20240605; b=MSY/z5IG2RvcL1rOm8uVXQrRUGiKOQTRAZadgY3LI866GcduIHxSBv8RbAx9J/6xGd FROEFu9j/YXkIcVsH9OBojYbFCjMLgrKUQZGNj0pHM5Sik4eLy5yzPUFegy5vqjb5uL4 hVsprT6CDCKVGf5UO1hvcvWPXQBrnhhJou0C4RqxWUbZzsGDV7l+VypQng2OnrueOOIn Qg8r6SQNWHhE4bAFamIx8JxA5WCNUVlZCPRm5Bkz+CzcLD1ndX7u/EHsAgT3y3e1Nbvi jliM6dm5FewcPSImkLa63Bi21g6SHQ1i0CTvbH0m1n1WPjto0Xy9cZU7Ew81mLxxJ+ux lUkQ== 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=Gz4EBGAB7+mjGzDH0MWOCqt7FxhRB0gMj/uNaJ72xc8=; fh=Px2Shjwm/OJrFPXODkGeWtUUSjI3y5WwRp0OKR9td0Q=; b=UKlxFFN0REBiSpmNCpvPwf/OzXYiPis0Xq6kYLP52Z9IZPMC+adom14SH0k0FvI0gv yQ3v8XYxuvxlZOZjZlz7Q9jFdBP+3z3AC3ucjqkfNHsECOV04cyU6E7rRzaq2J1m0OvO vsWMcUICgP89bA5UDnR0DCQAF4J5W4SMdChpWrzwVa7dDmALjIFqY7IvERaNhNHlCJn1 K2qPCAkr/yvOyVP4cYgTyl+ggky0Hsjh6JZ9zZ9cN7lK7bLTMBEFfbfEdcygC73/nUVs 8JEDd/EZHp8/MWxvym3JtgAZRbwWfEhurtMv0hEp4xLOG0x4/kRnJsglTiLN+/Rbg8Iy ZiIw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CGrNARW7; 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=1726997026; x=1727601826; 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=Gz4EBGAB7+mjGzDH0MWOCqt7FxhRB0gMj/uNaJ72xc8=; b=EYAL9gsVtsKuXMwCwDcTap+XfJ0x5O7JmhHarPQ+ivgCXk1a9vaRVNLHmzE0YKIbdf RysIcp1SUTo4WN8eTULcvkC8WpCWWrWWLoHbElWH9o0De1QPa4Gu3mHbM3ZacSCZ1Wdh jRQ6UKm3UrnNQQLy2tlbNTrCiKIYBujvO6nnI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726997026; x=1727601826; 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=Gz4EBGAB7+mjGzDH0MWOCqt7FxhRB0gMj/uNaJ72xc8=; b=O3V/UQhOyta6qXMOiJTG2wUA+bPn5TVKQXDJ38Mufjbfjsr/qfWe0T9hzpGTWv2fdg vdaR8LbeoJAiG6SSjYIn+3M2fZMdkru7WE9CBjjZuWI4HTkUs2xChTUFY+CTzrm2tacf +aWxCB3EgHbHSUQZ3k6ZwOXB5/1t+YVNRXvc2sxoajX04/7zeXJL1Ptu3cvrFh7r2YYj bxAQnX8gFkqpEUgPRnle/yYifWF5Sdt8ptzGsq7UVp0pe2+DzRBWoIV3BPCKYlqE4O0K RCqiKVvu9PCzdbPFQONbcZsdZB7L9DT88SQH0Kz/qxVu7FmopIUcsXpyzT5IghBx1zMj Oz7Q== X-Forwarded-Encrypted: i=2; AJvYcCUm3J9Hg0wNvcgU3OaAOyKnU+K3GXJNg22TziPiSZglkFd9V8+T5Rz72FyQRdAkmryIWGEQIm9iC4x50otW@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyYuK9rK772pWSwpppvKbnEtfMAuHGEvWlBflvxM7fsIvRqAAuO dA7jlMAjumAuoodgSR4eOSGNQBk8f/171dmvqWl4baEun6krxoNIA4YG2UJBiyW4Kw== X-Google-Smtp-Source: AGHT+IEfQpHgbpyURhGYT9vEK4aAHcCAcjOf5jySU9n8Karu1fM8/VNsH1/Idnq3qLha+tiT5woDRA== X-Received: by 2002:a05:6402:5248:b0:5c0:b793:df4e with SMTP id 4fb4d7f45d1cf-5c464a5ce31mr6056251a12.22.1726997026482; Sun, 22 Sep 2024 02:23:46 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:4307:b0:5c5:bb81:98af with SMTP id 4fb4d7f45d1cf-5c5bb81990cls523135a12.1.-pod-prod-06-eu; Sun, 22 Sep 2024 02:23:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU05f40QMeuNCoUw4PScvx1UW1qVGahIOJzIZaI/dnudK5+KP1jIJAfv+R/rWgC5Og7LOozD2rzDuVNH1pk@amarulasolutions.com X-Received: by 2002:a17:906:c113:b0:a86:af10:6a47 with SMTP id a640c23a62f3a-a90d51093famr883267566b.60.1726997024980; Sun, 22 Sep 2024 02:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726997024; cv=none; d=google.com; s=arc-20160816; b=tj9HU8DKAWCK7bypGzm1NoEdi5kEKxJMGBFVQOLqK84+zJGq3v3t8ktRHh5ASDQCYB nBlf9W0NapTf8jyEzoBjVMht4en7v7hmH+aeWARbUxakdgV7B8RIJuB7HxGmZXXSRncM MXtIuJg8Xs9znVHbS3Tcz/DS2FjgsR7VtK5kGk+MSSxV3kt1pB4hossxbek+SsQuoKjN ZZFvrzjbVQv4DbQGRJqVSbQwqn4YICg2hPH9uAq0mZW06NXIMPgfhvGv7KysH7A0DRJ+ Rj6pgMoL65rceTeAJYxSnpskCEAY0MMIIPw9a/F0J+IjF+PfW0HUsfOH1P6frriHY++s dmaQ== 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=Sm/DDXPO2xPeh95hLe2m6X5Nso22usfjyTAfZ7Z1YY0=; fh=H74QMLwZL/1Whp1A3zUBRiZ18X33jcG1wWw94QibrGo=; b=NZLvEhuMM4K/EJNEHRyWxctO7fP3ODaQUSEnItj0aUG6QuczEMVAnhAzuOV2ZiKRB6 BSCwynw1HOlUtDvY/HOiV35/rq0f7TF+lQ72EreZIypWfAJ1DX094wXkTwuGYWW+dWDG 1VPJokrCeIhI+sxDSEWCT9zz0pHU6eBoB9r/cXE5oZRVJH80BtoiQPa1DFgmgB6ksrnV E0EF1QqyHez9N7hXSX2iUCm/VQnUNh/JCBblkzFdFr44PLc0QwLZUHKkmTweeBjyOPKJ iNf2d6K58qsP+0EOFx9zOmxr48mQfvXGw9Ai3r8vwu6IvBKtr1q5lcO7ZPFPsGXgDLAD 1i+g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CGrNARW7; 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-a9061116266sor657165066b.9.2024.09.22.02.23.44 for (Google Transport Security); Sun, 22 Sep 2024 02:23:44 -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; AJvYcCXgM4JCdy1T2BaECRFPwvuZSssW3yNLPGSP9QYFxdJHrraFkCFk3QcsucoASZiP6tdhZDLvV+uQD9yF1Cm9@amarulasolutions.com X-Received: by 2002:a17:907:1c19:b0:a8a:86f8:4eed with SMTP id a640c23a62f3a-a90d4fbc65cmr834257266b.10.1726997024527; Sun, 22 Sep 2024 02:23:44 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 02:23:44 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Giulio Benetti , Waldemar Brodkorb , Romain Naour , Dario Binacchi , Thomas Petazzoni , yann.morin.1998@free.fr, Ben Wolsieffer , linux-amarula@amarulasolutions.com Subject: [PATCH v2 8/9] package/busybox: remove STATIC from busybox-minimal.config Date: Sun, 22 Sep 2024 11:23:11 +0200 Message-ID: <20240922092312.2061358-9-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=CGrNARW7; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Waldemar Brodkorb With FDPIC we want a shared busybox executable even with noMMU. Static is already handled by busybox.mk for static toolchains. Signed-off-by: Waldemar Brodkorb Signed-off-by: Dario Binacchi --- No changes since v1 package/busybox/busybox-minimal.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/busybox/busybox-minimal.config b/package/busybox/busybox-minimal.config index 5d2a30806ac8..9733dd215682 100644 --- a/package/busybox/busybox-minimal.config +++ b/package/busybox/busybox-minimal.config @@ -40,7 +40,7 @@ CONFIG_FEATURE_SYSLOG=y # # Build Options # -CONFIG_STATIC=y +# CONFIG_STATIC is not set # CONFIG_PIE is not set # CONFIG_NOMMU is not set # CONFIG_BUILD_LIBBUSYBOX is not set From patchwork Sun Sep 22 09:23:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3508 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 03C5E3F14C for ; Sun, 22 Sep 2024 11:23:50 +0200 (CEST) Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-42cb115566esf31357895e9.2 for ; Sun, 22 Sep 2024 02:23:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726997029; cv=pass; d=google.com; s=arc-20240605; b=Pw01dZhq5Z3zRAcjTTz8X0WyXHX62EwkGFi0481oWfW7QzDpXhgRBVgCSdt75Ne6Ug oTA0rVkoNlw86NdjrKN4gbSkAQOZp4NqmBf8RkybHEEBCNCSZ3PU78tBl39M+4S0uDlP gInfNvBL0ee7oyvWlKDn/cdNO9zSBBLgzaTB0x9fiHez+Eh00OgLK5I6/IKq0b0O53nh UN6fe7UYTZEs/m1awAo2J+4rPdMYWI8UqMrC7j4ed9LNseEXmtqiZbgNWB90/yUkG6xd sno8w55Jph+6Ueq2x/H2CPosi3Bq0Y0vZoZNNIM/OVIVAvxMaTXSxtcmmwIMchAEslO4 e8Ng== 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=t0nMtfuiQWYLW/1+ve6XZUDjCfPZGgGozwuXOvaVoiA=; fh=prXJcWrF54rgPxdt0/m8ez5F9vpgMah1WtvlzjTV09g=; b=cOtSS6Sa2GRoYgtI2hw/PWhmw4Tn1hsc5DBr5c8n/pZf/YD6gynWDii7gKpGbZCxav l4ZnitY7IxVdaLgQQsI/PpmwErMaqdiDz52WWXtqUyE+tnI6h3753Cy3YazhnWMUAxGq BsRxJNpRA53c8afMiRhMeVnKFuFIBVpcNGnhcn8cdCDfNK0k5XM6NHXKztMOF4z/aDds 6IibhGa4Ksjg9zlXYBUItZ8tYjJ4qyvrfernwvscx5bzV/TdoEqE0Zs0tdMc97t46+Am YCCBP/BRjz2sGxhrjK/ne7WYggUjWpSh/ETaq0egKV6P/sw4p7z6E7emhO2QeaKsbWwy CYGg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Hahjdr64; 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=1726997029; x=1727601829; 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=t0nMtfuiQWYLW/1+ve6XZUDjCfPZGgGozwuXOvaVoiA=; b=Fdj6OrPleIgLl+zWGRLwWmUoOhkEFDJyXJnhOAlUoy3kVIsiS03v/Xi1ouYzrYyUW0 iTUxuIcVmNEk6Xyu3cx9hb0qQ8HaKgtaJk00dEpaL62yGmIaTNCWtYY53x2trGSs3PfO qMQKYMG75TVAEjP03slW9KBlGwDi+RS6f5wUE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726997029; x=1727601829; 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=t0nMtfuiQWYLW/1+ve6XZUDjCfPZGgGozwuXOvaVoiA=; b=aghLFfkymLzMyRQwg4Z1helJmH7gHoG84xcnPxgarUTohpS1mlLvtYYUf9vs5kH2QL ZFjR6UlrJdzjnk5EICYqHy6UBSPAv4xcwhw+CSzxI0GD8x/j1ZnF53ygMd6xh8i6tceM sGof+2k/nBHRac1n4rtX6H9AO6fXwe/drd/xntHl0boLmHwNCWYGRnrFKQTLvfrUJHiY Kg5lw5OLzCii+FjAG3RwtwNfcamA1/wunVK6jBQfXt/UWXAV6UPzJFrvnZ3zwTqI4zFo k4ZpOU2XyekAsY95u4VKlkj4JTcnBPk1MB2izF5z3fWdYga/qKhWa5RIoFJqEUtLTpRV mvdA== X-Forwarded-Encrypted: i=2; AJvYcCVZTHYKlaSZVIPTCv7U+X0qdlJfETtxgijFwzwnCfvo2xpkzbzXgEtHnqorto959s5XQuRHQfbAU9eG4Q1b@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yy2u/75IgXMneQSEaaU2mUyDjdEqBeuIMpccpOCDNkodBGLGKqX ZrDMMHpJy/zgi7hO16BJOLUycrtIRBenTOJeRstDY07O44EOzxjhnzKc5+tS/3EsyA== X-Google-Smtp-Source: AGHT+IHSLW4H+Az9ZxqkWzbUcDVTB1WiTaB1lSVWg4gzC/S8HfI6rMBFkTYf2HOWn6PNVrLcxCI/5w== X-Received: by 2002:a05:600c:4ecb:b0:42c:a8cb:6a5a with SMTP id 5b1f17b1804b1-42e7ac32403mr79138375e9.15.1726997029605; Sun, 22 Sep 2024 02:23:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:1c9b:b0:42c:af42:6407 with SMTP id 5b1f17b1804b1-42e74554fbcls4961625e9.0.-pod-prod-05-eu; Sun, 22 Sep 2024 02:23:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVrQZMp0krvDlffeobvcIYA+z+yQJuY9nD1wrHO2NXwrk6bePzXI3/cUaFCUvBjRt2xImHAaWiaMxLbeNRZ@amarulasolutions.com X-Received: by 2002:a05:600c:46d2:b0:42c:af5f:c00c with SMTP id 5b1f17b1804b1-42e7ac5d109mr77422685e9.21.1726997027956; Sun, 22 Sep 2024 02:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726997027; cv=none; d=google.com; s=arc-20160816; b=0q4wMMeSL2JUf0JPd3rY4a0qTjEmrYcfS9LAE2EmPl1bTXNFjXIdDIyQEWxg6380ee MLzVzhZrhozkg/BZzCrQLbhzrI0kSeu/e05PqLqeAS+39Imi7u0AIuwPr0e2OYKKhAUl vTjOqEULIsdfxiZNuqVVcD3vL4Wwr1KQ0OSjYZQD8bUwdjojiHDjnwmRtV1RYCR3+IjL Hn5acv62FAuSXmaSqleEQjYXR24EbqCA2MjDUI85l1uFMfNHa9Ex6M83SZ/kvNTdzFgo VhGD5w2kZ2mlEYJScLdV0UakkCrqLCGvxb7hqBb9pFXLZEM4LIYbzPxPCzSFbsaJUCaY +Q6A== 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=6L552DwR/QtSeBiLWExEc2oGMR9hGpsX6vQ5flSlTdI=; fh=k6G9ydx2IqEZwKeOWRIB0pqDsGAWMwNeQucaULwlweI=; b=pyeiJ9HURvHQoG8KDGHmlr1YGKcjH4xz9JDh9CRAaQhMJeBoubjgLTEOo+ElGfJg+2 95O2uayW3/Q2nK6A/gpev8WZtG88PosoA+BWas8WUZiwhBtQf908gYcPyl5govTbg4Ml tfRJE2FkIYlnPnVCEBxSITVBo2z1X0fpzR/3W8cWrVl+IJz5m+K5KNgNilm55nKKwk3j OtMzVimKU/QJG0AjtkVyPMFYOGzxHflczTJlXjMvGSNUUdUlqEfkvX1trZGFRY+TR08l AUQs8bCKEVm/5H2Gsw0yMT7i8ycypCgGltEx8iZ9Xf5krHE5nqQsCKwNPRwi0zUImGL2 asSQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Hahjdr64; 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-a9061095f4esor296106666b.4.2024.09.22.02.23.47 for (Google Transport Security); Sun, 22 Sep 2024 02:23:47 -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; AJvYcCV9z0sn2eMvUmQwMaZFfjflt7yn/y227c7szSI8pl9bpfkCQQmMnkOkqYWn+ndBBNIwwljFj3c9U2YCuv1c@amarulasolutions.com X-Received: by 2002:a05:6402:2348:b0:5be:cdda:1c6b with SMTP id 4fb4d7f45d1cf-5c464a7e625mr11114380a12.31.1726997027430; Sun, 22 Sep 2024 02:23:47 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 02:23:46 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Giulio Benetti , Waldemar Brodkorb , Romain Naour , Dario Binacchi , Thomas Petazzoni , yann.morin.1998@free.fr, Ben Wolsieffer , linux-amarula@amarulasolutions.com Subject: [PATCH v2 9/9] configs/stm32f746_disco_sd: new defconfig Date: Sun, 22 Sep 2024 11:23:12 +0200 Message-ID: <20240922092312.2061358-10-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=Hahjdr64; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The commit adds support for STM32F746G-DISCO board. The discovery kit is a complete demonstration and development platform for STMicroelectronics Arm Cortex-M7-core-based STM32F746NG. Board support package includes the following components: - mainline Linux kernel 5.15.165 - mainline U-Boot 2024.07 - default packages from buildroot Link: https://www.st.com/en/evaluation-tools/32f746gdiscovery.html Co-Developed-by: Waldemar Brodkorb Signed-off-by: Waldemar Brodkorb Signed-off-by: Dario Binacchi --- Changes v1 -> v2: - Drop VFAT partition. Put kernel and DTB on the ext4 rootfs partition. - Add myself to the DEVELOPERS file. - Add Co-Developed-by tag. DEVELOPERS | 4 +++ .../stm32f746-disco/extlinux.conf | 4 +++ .../stm32f746-disco/flash_sd.sh | 22 +++++++++++++ .../stm32f746-disco/genimage.cfg | 10 ++++++ .../stm32f746-disco/linux.fragment | 13 ++++++++ .../patches/linux-headers/linux-headers.hash | 1 + .../stm32f746-disco/patches/linux/linux.hash | 2 ++ .../stm32f746-disco/patches/uboot/uboot.hash | 2 ++ .../stm32f746-disco/post-build.sh | 4 +++ .../stm32f746-disco/readme.txt | 31 +++++++++++++++++++ configs/stm32f746_disco_sd_defconfig | 31 +++++++++++++++++++ 11 files changed, 124 insertions(+) create mode 100644 board/stmicroelectronics/stm32f746-disco/extlinux.conf create mode 100755 board/stmicroelectronics/stm32f746-disco/flash_sd.sh create mode 100644 board/stmicroelectronics/stm32f746-disco/genimage.cfg create mode 100644 board/stmicroelectronics/stm32f746-disco/linux.fragment create mode 120000 board/stmicroelectronics/stm32f746-disco/patches/linux-headers/linux-headers.hash create mode 100644 board/stmicroelectronics/stm32f746-disco/patches/linux/linux.hash create mode 100644 board/stmicroelectronics/stm32f746-disco/patches/uboot/uboot.hash create mode 100755 board/stmicroelectronics/stm32f746-disco/post-build.sh create mode 100644 board/stmicroelectronics/stm32f746-disco/readme.txt create mode 100644 configs/stm32f746_disco_sd_defconfig diff --git a/DEVELOPERS b/DEVELOPERS index ea4ee3377f89..44b19474876b 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -788,10 +788,12 @@ F: package/xinetd/ N: Dario Binacchi F: board/bsh/ +F: board/stmicroelectronics/stm32f746-disco/ F: board/stmicroelectronics/stm32f769-disco/ F: configs/imx6ulz_bsh_smm_m2_defconfig F: configs/imx8mn_bsh_smm_s2_defconfig F: configs/imx8mn_bsh_smm_s2_pro_defconfig +F: configs/stm32f746_disco_sd_defconfig F: configs/stm32f769_disco_sd_defconfig F: package/armadillo/ F: package/babeld/ @@ -3304,7 +3306,9 @@ F: package/ngrep/ N: Waldemar Brodkorb F: board/qemu/riscv32-virt/ +F: board/stmicroelectronics/stm32f746-disco/ F: configs/qemu_riscv32_nommu_virt_defconfig +F: configs/stm32f746_disco_sd_defconfig F: package/asterisk/ F: package/evilwm/ F: package/fbv/ diff --git a/board/stmicroelectronics/stm32f746-disco/extlinux.conf b/board/stmicroelectronics/stm32f746-disco/extlinux.conf new file mode 100644 index 000000000000..40fc04dd1035 --- /dev/null +++ b/board/stmicroelectronics/stm32f746-disco/extlinux.conf @@ -0,0 +1,4 @@ +label stm32f746-disco-buildroot + kernel /boot/zImage + devicetree /boot/stm32f746-disco.dtb + append console=ttySTM0,115200 root=/dev/mmcblk0p1 rw rootwait consoleblank=0 ignore_loglevel diff --git a/board/stmicroelectronics/stm32f746-disco/flash_sd.sh b/board/stmicroelectronics/stm32f746-disco/flash_sd.sh new file mode 100755 index 000000000000..b4858cb9dacb --- /dev/null +++ b/board/stmicroelectronics/stm32f746-disco/flash_sd.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +if [ $# -eq 0 ]; then + OUTPUT_DIR=output +else + OUTPUT_DIR=$1 +fi + +if ! test -d "${OUTPUT_DIR}" ; then + echo "ERROR: no output directory specified." + echo "Usage: $0 OUTPUT_DIR" + exit 1 +fi + +"${OUTPUT_DIR}"/host/bin/openocd -f board/stm32f746g-disco.cfg \ + -c "init" \ + -c "reset init" \ + -c "flash probe 0" \ + -c "flash info 0" \ + -c "flash write_image erase ${OUTPUT_DIR}/images/u-boot.bin 0x08000000" \ + -c "reset run" \ + -c "shutdown" diff --git a/board/stmicroelectronics/stm32f746-disco/genimage.cfg b/board/stmicroelectronics/stm32f746-disco/genimage.cfg new file mode 100644 index 000000000000..e911a94e46b5 --- /dev/null +++ b/board/stmicroelectronics/stm32f746-disco/genimage.cfg @@ -0,0 +1,10 @@ +image sdcard.img { + hdimage { + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext2" + size = 32M + } +} diff --git a/board/stmicroelectronics/stm32f746-disco/linux.fragment b/board/stmicroelectronics/stm32f746-disco/linux.fragment new file mode 100644 index 000000000000..625fdced9e8d --- /dev/null +++ b/board/stmicroelectronics/stm32f746-disco/linux.fragment @@ -0,0 +1,13 @@ +# CONFIG_PREEMPT is not set +# CONFIG_MULTIUSER is not set +# CONFIG_TIMERFD is not set +CONFIG_SET_MEM_PARAM=y +CONFIG_DRAM_BASE=0xC0000000 +CONFIG_DRAM_SIZE=0x01000000 +# CONFIG_GCC_PLUGINS is not set +# CONFIG_XIP_KERNEL is not set +# CONFIG_BLK_DEV is not set +# CONFIG_COMPAT_BRK is not set +# CONFIG_PROC_SYSCTL is not set +# CONFIG_CRYPTO is not set +CONFIG_RCU_TRACE=y \ No newline at end of file diff --git a/board/stmicroelectronics/stm32f746-disco/patches/linux-headers/linux-headers.hash b/board/stmicroelectronics/stm32f746-disco/patches/linux-headers/linux-headers.hash new file mode 120000 index 000000000000..5808d92afe89 --- /dev/null +++ b/board/stmicroelectronics/stm32f746-disco/patches/linux-headers/linux-headers.hash @@ -0,0 +1 @@ +../linux/linux.hash \ No newline at end of file diff --git a/board/stmicroelectronics/stm32f746-disco/patches/linux/linux.hash b/board/stmicroelectronics/stm32f746-disco/patches/linux/linux.hash new file mode 100644 index 000000000000..7f78b950f35c --- /dev/null +++ b/board/stmicroelectronics/stm32f746-disco/patches/linux/linux.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 a36dd3e82ceb634afded31f2656568f57c4d9c4b399859f298b18116df11c6fe linux-5.15.165.tar.xz diff --git a/board/stmicroelectronics/stm32f746-disco/patches/uboot/uboot.hash b/board/stmicroelectronics/stm32f746-disco/patches/uboot/uboot.hash new file mode 100644 index 000000000000..fe9b4f53dc63 --- /dev/null +++ b/board/stmicroelectronics/stm32f746-disco/patches/uboot/uboot.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 f591da9ab90ef3d6b3d173766d0ddff90c4ed7330680897486117df390d83c8f u-boot-2024.07.tar.bz2 diff --git a/board/stmicroelectronics/stm32f746-disco/post-build.sh b/board/stmicroelectronics/stm32f746-disco/post-build.sh new file mode 100755 index 000000000000..03e9dcae8215 --- /dev/null +++ b/board/stmicroelectronics/stm32f746-disco/post-build.sh @@ -0,0 +1,4 @@ +#!/bin/sh +BOARD_DIR="$(dirname "$0")" + +install -m 0644 -D "${BOARD_DIR}"/extlinux.conf "${TARGET_DIR}"/boot/extlinux/extlinux.conf diff --git a/board/stmicroelectronics/stm32f746-disco/readme.txt b/board/stmicroelectronics/stm32f746-disco/readme.txt new file mode 100644 index 000000000000..4ac16da33132 --- /dev/null +++ b/board/stmicroelectronics/stm32f746-disco/readme.txt @@ -0,0 +1,31 @@ +STM32F746-DISCO +=================== + +This tutorial describes how to use the predefined Buildroot +configuration for the STM32F746-DISCO evaluation platform. + +Building +-------- + + make stm32f746_disco_sd_defconfig + make + +Flashing +-------- + + ./board/stmicroelectronics/stm32f746-disco/flash_sd.sh output/ + +It will flash the U-boot bootloader. + +Creating SD card +---------------- + +Buildroot prepares an "sdcard.img" image in the output/images/ directory, +ready to be dumped on a SD card. Launch the following command as root: + + dd if=output/images/sdcard.img of=/dev/ + +*** WARNING! This will destroy all the card content. Use with care! *** + +For details about the medium image layout and its content, see the +definition in board/stmicroelectronics/stm32f746-disco/genimage.cfg. diff --git a/configs/stm32f746_disco_sd_defconfig b/configs/stm32f746_disco_sd_defconfig new file mode 100644 index 000000000000..0a8a1ad4bb6b --- /dev/null +++ b/configs/stm32f746_disco_sd_defconfig @@ -0,0 +1,31 @@ +BR2_arm=y +BR2_cortex_m7=y +BR2_BINFMT_FDPIC=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y +BR2_GLOBAL_PATCH_DIR="board/stmicroelectronics/stm32f746-disco/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y +BR2_INIT_TINYINIT=y +BR2_ROOTFS_POST_BUILD_SCRIPT="board/stmicroelectronics/stm32f746-disco/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/stmicroelectronics/stm32f746-disco/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.165" +BR2_LINUX_KERNEL_DEFCONFIG="stm32" +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/stmicroelectronics/stm32f746-disco/linux.fragment" +BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM=y +BR2_LINUX_KERNEL_IMAGE_TARGET_NAME="zImage" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32f746-disco" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_SIZE="32M" +# BR2_TARGET_ROOTFS_TAR is not set +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_VERSION=y +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2024.07" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32f746-disco" +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_OPENOCD=y