Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A967AC54E49 for ; Mon, 4 Mar 2024 07:42:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 626A74081D; Mon, 4 Mar 2024 07:42:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tfaMtrqNRDCQ; Mon, 4 Mar 2024 07:42:04 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 39E63402FD Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 39E63402FD; Mon, 4 Mar 2024 07:42:04 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 5728B1BF280 for ; Mon, 4 Mar 2024 07:42:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 44AB160B5E for ; Mon, 4 Mar 2024 07:42:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZODOdAjpjUwm for ; Mon, 4 Mar 2024 07:41:59 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a01:111:f403:2405::600; helo=nam02-dm3-obe.outbound.protection.outlook.com; envelope-from=neal.frager@amd.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp3.osuosl.org 70A2160B5C DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 70A2160B5C Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on20600.outbound.protection.outlook.com [IPv6:2a01:111:f403:2405::600]) by smtp3.osuosl.org (Postfix) with ESMTPS id 70A2160B5C for ; Mon, 4 Mar 2024 07:41:59 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n2DwOVwj6z76FOA/cG5I1r9/pf9pKNUzhhQ9pedrB6693R5GQrhcQSSagRT6L68rGE6TMqoV2kv6WemQEktsRi0+qHKFWjbXOqg0ZT71+JFGJclkyOMRD60EIoUw8s7JNicJRG7IEsRk8ZYvEKJrFQHe2Lsx+YCCdQBSy+3g8/gZWxALgPSRCRk2LGauRuiPOUj3wCf8X4yHFS35wSn5MFGXeQaCSBoqSsj14IsCoMsFWW/J6yrAQX+qTo8xSLFkb52VR7pZBmjsLx0wwlXJmFaY6Vyw5pH8Q0uGGf1Zi7L8SQP+0sIReK4ieeVAdAhI8DPPGrAON7fQUy4erPvQIw== 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=QjK259Zq147zLPcRHhpAU1b3bC0JbAAE8AhICt/ytyg=; b=Kj788sBdjDx2qYTslYKBPF9n9gkZCjPwB0JGyqhscflZ4dESzkjU15dgPeuUyg/oWwUDoO2oQo8lXbfJHVZRAJYj+UbWdzS3ZFzmJUrpwZqORFJya7sgY0fQdVyZ3yq+EGnwikmqtuD8xlPYCSAZ+QFCKwlDbIN2l/ZvmKHW2X4NGkBLtfYlvzn3y9VzdCMLkX3KUo0BHo1vZVUroCwsvOHV9y+jVcupgcloP5jd5NWylyVhXBsCiAW8bpca5mqWkcPvTsQkVVB0Q+8XT+Te7aQxcTdc966tohzAYwM0pAScysT4k6NTDfmAo4OVKXNoH5fe9kzlBci4ssjSp9zkSw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=buildroot.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) Received: from BN9PR03CA0841.namprd03.prod.outlook.com (2603:10b6:408:13d::6) by DS0PR12MB7745.namprd12.prod.outlook.com (2603:10b6:8:13c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Mon, 4 Mar 2024 07:41:56 +0000 Received: from BN1PEPF0000468A.namprd05.prod.outlook.com (2603:10b6:408:13d:cafe::ec) by BN9PR03CA0841.outlook.office365.com (2603:10b6:408:13d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38 via Frontend Transport; Mon, 4 Mar 2024 07:41:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN1PEPF0000468A.mail.protection.outlook.com (10.167.243.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7362.11 via Frontend Transport; Mon, 4 Mar 2024 07:41:55 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 4 Mar 2024 01:41:55 -0600 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Sun, 3 Mar 2024 23:41:55 -0800 Received: from xirengwts09.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 4 Mar 2024 01:41:54 -0600 To: Date: Mon, 4 Mar 2024 07:41:36 +0000 Message-ID: <20240304074140.1537910-2-neal.frager@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240304074140.1537910-1-neal.frager@amd.com> References: <20240304074140.1537910-1-neal.frager@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN1PEPF0000468A:EE_|DS0PR12MB7745:EE_ X-MS-Office365-Filtering-Correlation-Id: 79baa29a-9047-490a-ba43-08dc3c1e9104 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sglrSN4LVUJdCjBGX7FYaH9YkmJnv1g4lKUN/GuQ9bs3kZM4hLo2B1Jh37YPU65n0e0Lt6iwVmmD8ndN3us5J6iNJs97OwX6o/briB8pJwjPXc4GVS8xirMwG0DXMC15gZyn6A2CEMDyG7zhaZ2miJJkjZFZkKZhqQLoImSqZWlqQ8oeEWPW8o8civz6qLGr4JKRJcA/CVdfBLzzFzhXF4msefDdYDUAD20sa0zKpLTgEMZUZ+nLe9mHgd/hUsGZi2BqE7Vg9N0TugGcZddgwu+c5wNsuzHC0Yorn3igs0R+MhbsGKjP5agbhnlXI6k9Rz7LQH2vnJyMETGEGc9+OnCmnXjw6mhtGy1SHuq1NPe/SQzl9mfIKMbxcb+VufJVbYepzNvrejLaCXQU8ZYtOzoDfDT9zhwUXTot/a9+6EY9OITyxV7G7so8G9vpUxFTAv5JmSjQGsocx5QX95A4BV6OCdVHtEbV6ZzlpU0a82pvDmqrqlW46Ua2K66sH8MpJIydrAjK+D7pzaX1viNRhruIwT4FH+ARICkEaYbwJ9C8NP5+m88/r6Ijpp4m6hfSgTHRpCXsRrK831S67i1NdFTfjkzzka3ChdSeSVaBqBITfFrzGqtKV82+mUBenfNfUf6JkYsjThqQXor2D6oWsJ44Hzf/zmU9RuJmv4IhnHtM2yxpqE8KUFZG7A55Y+AEwsORnl8I8pApm/escEoxd4pohAhi0aybBdqGLwd+booQTkxpk+r2WnAC7SU2L/Ln X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(36860700004)(376005)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2024 07:41:55.8990 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 79baa29a-9047-490a-ba43-08dc3c1e9104 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN1PEPF0000468A.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB7745 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QjK259Zq147zLPcRHhpAU1b3bC0JbAAE8AhICt/ytyg=; b=jAdzOSctF1xZAliUSjedICMW4/3rpont/weWTvh23bskcxUcjoWhgdhy7jZcICS8yjDCdNTU5x1pNqLHepprdBhnyfr1Nn/oKYay5/r52k+ygQhV3CLbCKjHk+JTFf2ppV6GVUT5l2rP4GNVowG/1S7NezreXTudNLaraskMc6A= X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (1024-bit key, unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=jAdzOSct Subject: [Buildroot] [PATCH v11 2/6] boot/uboot.mk: new zynqmp pmufw build option X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Neal Frager via buildroot Reply-To: Neal Frager Cc: ibai.erkiaga-elorza@amd.com, luca.ceresoli@bootlin.com, thomas.petazzoni@bootlin.com, Neal Frager , michal.simek@amd.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The new BR2_TARGET_UBOOT_ZYNQMP_PMUFW_SOURCE option will enable u-boot to use the zynqmp-firmware package for building a pmufw.elf that gets included in the generated boot.bin. If the BR2_TARGET_UBOOT_ZYNQMP_PMUFW_SOURCE option is enabled, then the BR2_TARGET_UBOOT_ZYNQMP_PMUFW config for downloading a prebuilt pmufw will be ignored. Signed-off-by: Neal Frager --- V1->V2: - patch is now backwards compatible for users already using the BR2_TARGET_UBOOT_ZYNQMP_PMUFW config for downloading a prebuilt pmufw V2->V3: - no changes V3->V4: - BR2_TARGET_UBOOT_ZYNQMP_PMUFW removed when BR2_TARGET_UBOOT_ZYNQMP_PMUFW_SOURCE selected V4->V11: - no changes --- boot/uboot/Config.in | 19 +++++++++++++++++-- boot/uboot/uboot.mk | 5 +++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in index beafb38930..c5e33944d5 100644 --- a/boot/uboot/Config.in +++ b/boot/uboot/Config.in @@ -514,11 +514,26 @@ config BR2_TARGET_UBOOT_ZYNQMP if BR2_TARGET_UBOOT_ZYNQMP +config BR2_TARGET_UBOOT_ZYNQMP_PMUFW_SOURCE + bool "Build zynqmp PMU firmware from source" + select BR2_TARGET_ZYNQMP_FIRMWARE + depends on BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG + help + This option instructs u-boot to build the zynqmp pmufw using + the zynqmp-firmware package. u-boot will then include this + pmufw.elf in the generated boot.bin. + + If this option is selected, the BR2_TARGET_UBOOT_ZYNQMP_PMUFW + prebuilt option will be ignored. + + This feature requires U-Boot >= 2018.07. + config BR2_TARGET_UBOOT_ZYNQMP_PMUFW - string "PMU firmware location" + string "Pre-built zynqmp PMU firmware location" depends on BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG + depends on !BR2_TARGET_UBOOT_ZYNQMP_PMUFW_SOURCE help - Location of a PMU firmware binary. + Location of a pre-built PMU firmware binary. If not empty, instructs the U-Boot build process to generate a boot.bin (to be loaded by the ZynqMP boot ROM) containing diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk index dda606a880..c11e3d89f7 100644 --- a/boot/uboot/uboot.mk +++ b/boot/uboot/uboot.mk @@ -416,7 +416,12 @@ endef ifeq ($(BR2_TARGET_UBOOT_ZYNQMP),y) +ifeq ($(BR2_TARGET_UBOOT_ZYNQMP_PMUFW_SOURCE),y) +UBOOT_DEPENDENCIES += zynqmp-firmware +UBOOT_ZYNQMP_PMUFW = $(BINARIES_DIR)/pmufw.elf +else UBOOT_ZYNQMP_PMUFW = $(call qstrip,$(BR2_TARGET_UBOOT_ZYNQMP_PMUFW)) +endif #BR2_TARGET_UBOOT_ZYNQMP_PMUFW_SOURCE ifneq ($(findstring ://,$(UBOOT_ZYNQMP_PMUFW)),) UBOOT_EXTRA_DOWNLOADS += $(UBOOT_ZYNQMP_PMUFW) -- 2.25.1 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot