From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 29 Nov 2021 15:27:43 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mrhd9-0005sc-JB for lore@lore.pengutronix.de; Mon, 29 Nov 2021 15:27:43 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mrhd9-0004zh-9N; Mon, 29 Nov 2021 15:27:43 +0100 Received: from mail-eopbgr80084.outbound.protection.outlook.com ([40.107.8.84] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mrhcu-0004sc-2e for ptxdist@pengutronix.de; Mon, 29 Nov 2021 15:27:28 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LAqOMNEgOx6eAs4acBJDah6F1yQWyCNR1zbqp9qxJ2j0pe2wwd1NV7V3b6ZdMxb8GRWZLQMwO6rVwOVG06fq0cuvn5ZmkZQmNX1xIU65Dl9qcftzsLkzFev3gvwzgu8nWPYbxwoJVg/7UdGKr519PQcloCLHrBiU4TNRJqiLCJ82PA4chvDUFq5KOVwD0DgSvuWhhJVPTrYezKOlwSAt26x+0grs1tb2K6GPdEE2A3h3BSxwVc1ZiRpjsWK/GrVBwbiHhsvlv1pDGnxsYez7JtnIx3d8gIyvhMYNBBzAC+9aHtgmoaPQ82oXu3JbGHnJ5PEDFLf+wQcH7F31C/eXLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xNPLtH67lHZ79yGhRU6j90ARuMUoIbC8z6GD4TnV9fQ=; b=XrD+KuZYocPo3OFURRNiI3mZHZpB7Scn2f8hfq9cdDN6w8GnJrRGCfWfFYpMt5JRg63P1do1kRmc1MxX8xRrtjSkO8mQ4155J9FNezNIEZHJN9LKplXWfO9OGffayta7w8xiO5a99+lSnXpxegI+SvoXKPhtWHBXrXNoMFF56Kr7R5AaMEnO1VMDXtC8iqM8RyepRelMDwuYIG5l3ODvkwno3orz+j7hxn4DgdwWEPpdjf3YOQbRKETzN2B9HQInRlN6Bt8H5d9WRL7vc1j1S5ENiaMof93n5n7WcAasZjfnxG/Gp+KmaxSqwdsv8+skfT2BrJV0hpUQPpU1dDPx5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=t2data.com; dmarc=pass action=none header.from=t2data.com; dkim=pass header.d=t2data.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=t2datacom.onmicrosoft.com; s=selector1-t2datacom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xNPLtH67lHZ79yGhRU6j90ARuMUoIbC8z6GD4TnV9fQ=; b=EQJOTrqMu87YBAk2sjJkFYkack0OoV8MOWzvJEolp0ms+4SOWlZu/Vy4ySLYmng6Z8/9n2FS7DLWycTAHeb3NgGIrq5ARf0K/jJ3Ca/+MKTmAFaQ2F5QrKmXbfsCXMOvH7YnY2qU5zdN7HbZb0LUHwgqi4xvJyRG0XzqpZjhL54= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=t2data.com; Received: from DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) by DB9P251MB0122.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:2c3::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.20; Mon, 29 Nov 2021 14:27:26 +0000 Received: from DB9P251MB0618.EURP251.PROD.OUTLOOK.COM ([fe80::cc24:927c:bd00:a0cf]) by DB9P251MB0618.EURP251.PROD.OUTLOOK.COM ([fe80::cc24:927c:bd00:a0cf%7]) with mapi id 15.20.4734.024; Mon, 29 Nov 2021 14:27:26 +0000 From: Christian Melki To: ptxdist@pengutronix.de Date: Mon, 29 Nov 2021 15:27:20 +0100 Message-Id: <20211129142720.595432-1-christian.melki@t2data.com> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: GV3P280CA0119.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:8::20) To DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) MIME-Version: 1.0 Received: from plaid.hq.t2data.com (212.247.174.226) by GV3P280CA0119.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:8::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.19 via Frontend Transport; Mon, 29 Nov 2021 14:27:26 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ab83406c-3bac-488e-dece-08d9b3445e0b X-MS-TrafficTypeDiagnostic: DB9P251MB0122: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2089; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EpqUKkF9pMvUEmUFt+zLeI8685tiz4ZgkBy5S3/0UnGQa6Ft8b8WSWE2B2BzDAl7RNs8lCQbGexe1PmxNawLqEQLO1heS/jt26F6sNYHr7uVP1By8P0HmkNKg+etT6xRMcJ/kZ/7y6CXGjNPAMFusJR2EaolrJHSIM/gyjY4pqSwjoorpLdpyi126gpno7AQfYJ4nlGDMNhpnYXHZ7Q/nlTFjwIGNvoQaDdOiIGfyVYEx0vVTBW0tUrswtr3XYRUejS7UOWAY/ft4NevnBYlFEsOWvNmR6dtEn7kfEHVsojhVURAcCDMRAZvec++i3lh8AhRdzCbNB+zPtAZlCHU2gk0Sg/8vtlLBp7rvX1bhKchBynhuNmAruW2hGygvm28hmL+xGBwaEK56QA/hgzP6e1WiR//ZTnRr1zBt6AYfvO/uZGYIcsYou8onqwO4AYl/Lst7Qn8q9Im9NBr1MUJuQ4D1NHgUTw2Eh9oS7HbdiR3WvW08g/g6CJ04ZHBxqhnLGeZSnDUINLZgSV4c4iIIcI3R9O8QF9B19f/2uOR6737gzL2vbA3V4yFB4OCLNJ+AffzGU761ssltgp+8UuNroEbjR48r4IRK6xlVdOjR4QIZ85GxI4Ja7Bd6VTRUOKjwkSAJkoo01UOfvFbqpqw+Y20/L7qA1arvVMUxJAP23MN+aQ0tjgFe301SK57dS6b5NDFybm/yKdjbKBg+/Prug3NcJ21YoXCD8GN/wxb/TunkmIVKS+Nf6ZiBAd7wk+4HgF7JG8h4UllCGXzemaIng== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9P251MB0618.EURP251.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(42606007)(346002)(366004)(39830400003)(396003)(136003)(376002)(66946007)(2616005)(956004)(5660300002)(44832011)(66476007)(66556008)(6486002)(966005)(36756003)(86362001)(186003)(6666004)(83380400001)(1076003)(6916009)(508600001)(2906002)(52116002)(7696005)(38350700002)(8676002)(38100700002)(26005)(8936002)(316002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?f0+2pR0D+P98bblzNkWkroIhqekuxJqjp4Kc5yCDj4X+JQliYcOoK0P5N8f/?= =?us-ascii?Q?Q9qYxH4A/qzBo/Erju6sxaxFKgQw+emrLdn9TkhhhfTUncVmP4OT/woO7a9/?= =?us-ascii?Q?G01IRhgeDmkubZkU1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ascii?Q?/iLi1H0yivBc15HI9vXF+DGez4turYMMOEL8AwlM/yrTp1GRHJrrB6lqi04a?= =?us-ascii?Q?MYSeLZF3o/HI/z//nMVWAvCHH92kLkT4B1CSOkrWa2wcUiDztNi64+IxlOPE?= =?us-ascii?Q?9225483C6HqraJo2g+i5SX+UNx0VWJxeCAZm4ETnp+Hg+Kyvn1IorvwFApJH?= =?us-ascii?Q?Y8nOP3lR8iYViKm+2FbxCdABQYzmVtVDjUeGW9DcA5rpz0+E0lIBwhO1VgMY?= =?us-ascii?Q?12QQv8SIlQ9UUr3z1/FrpPT8tjxJ0iIWsU58TlSQvwmhI6H6cRRIKILUVrg9?= =?us-ascii?Q?NRI5d3x0zlin3zwQ00D14P+AjzVzW4qZcrDgamvtx5G0pgoFlSdLAS79Nstm?= =?us-ascii?Q?nqLjdP8NjlO6hN1Smm5TRKXNsFce5HBdVqiktGbA7/guozA8/AzfPXUbr/bg?= =?us-ascii?Q?mXb14QE2wwyN0yfbldjYyA9nctxwLNur0ZFn4aQO3PeSMR3oJ6qoIpLHcWoL?= =?us-ascii?Q?shhPC8Jt7R1XE4j5H4OvBLVLI713MEO9nyn1aHBGHMwJ4CB/FsRRslw6iDL9?= =?us-ascii?Q?7+si/RKjSmD0mhuxvPjLyzYADf7/zabM9FrPCR5vb5HgkcnQ+M5NAvvK7bUH?= =?us-ascii?Q?tGXK+RtqFt1t4Z56RRJ0Z8O9eWyWj7ejUgoREbXF+7sozwRLK1vsyLfP5jqw?= =?us-ascii?Q?za2hv1cK+W/Xq2a2m4GrdHkadws=3D?= X-OriginatorOrg: t2data.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab83406c-3bac-488e-dece-08d9b3445e0b X-MS-Exchange-CrossTenant-AuthSource: DB9P251MB0618.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2021 14:27:26.7326 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 27928da5-aacd-4ba1-9566-c748a6863e6c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZznRjN66V6f6+n1cIp8SjlKm4XzhZNWpKAcTzBa6+2dfJv2FmcP0MGgQLm2LDsH9C6v7LpJW70qEplE1w6HonS3aiznvM2TZqnzKvdhR4OA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9P251MB0122 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.6 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,MSGID_FROM_MTA_HEADER,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH] U-Boot: Add TF-A dependency option. X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Let U-Boot depend on TF-A firmwares for inclusion. TF-A firmwares are a common thing on various machines. Also add an option to let U-Boot build without the "Out Of Tree" option. This option sometimes breaks builds with various external dependencies. Signed-off-by: Christian Melki --- platforms/u-boot.in | 20 +++++++++++++++++++- rules/u-boot.make | 4 +++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/platforms/u-boot.in b/platforms/u-boot.in index 4ddf3b3fb..0d8213f45 100644 --- a/platforms/u-boot.in +++ b/platforms/u-boot.in @@ -2,6 +2,7 @@ menuconfig U_BOOT select BOOTLOADER + select TF_A if U_BOOT_USE_TF_A prompt "U-Boot " bool @@ -19,6 +20,16 @@ config U_BOOT_MD5 string prompt "U-Boot source md5" +config U_BOOT_BUILD_OOT + prompt "Out of tree build" + default y + bool + help + U-Boot is usually built out of tree. + But for some builds, f.ex. with firmware blobs, out of tree builds + can break because of vendors using source paths to files. + This is mostly a workaround for those type of builds. + choice prompt "config system" default U_BOOT_CONFIGSYSTEM_LEGACY @@ -71,12 +82,19 @@ config U_BOOT_CONFIG endif +config U_BOOT_USE_TF_A + prompt "Include TF-A firmwares in U-Boot." + bool + help + Generate TF-A (ARM Trusted Firmwares type A) to include in u-boot. + config U_BOOT_CUSTOM_MAKE_OPTS prompt "Custom make options" string help List of custom make options passed at build time. Can be - used for example to pass a DEVICE_TREE= value. + used for example to pass a DEVICE_TREE= value or passing + TF-A firmware, BL31=${PTXDIST_PLATFORMDIR}/path-to/bl31.bin choice prompt "Generate environment image" diff --git a/rules/u-boot.make b/rules/u-boot.make index 38c32bf27..b2e4e1311 100644 --- a/rules/u-boot.make +++ b/rules/u-boot.make @@ -23,9 +23,11 @@ U_BOOT_SUFFIX := tar.bz2 U_BOOT_URL := https://ftp.denx.de/pub/u-boot/$(U_BOOT).$(U_BOOT_SUFFIX) U_BOOT_SOURCE := $(SRCDIR)/$(U_BOOT).$(U_BOOT_SUFFIX) U_BOOT_DIR := $(BUILDDIR)/$(U_BOOT) +ifeq ($(PTXCONF_U_BOOT_BUILD_OOT),y) U_BOOT_BUILD_DIR := $(U_BOOT_DIR)-build +endif U_BOOT_DEVPKG := NO -U_BOOT_BUILD_OOT := KEEP +U_BOOT_BUILD_OOT := $(call ptx/ifdef, PTXCONF_U_BOOT_BUILD_OOT, YES, NO) ifdef PTXCONF_U_BOOT_CONFIGSYSTEM_KCONFIG U_BOOT_CONFIG := $(call ptx/in-platformconfigdir, \ -- 2.30.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de