From patchwork Mon Oct 28 18:06:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Andryuk X-Patchwork-Id: 13853814 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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (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 6E585D339AE for ; Mon, 28 Oct 2024 18:07:00 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.826937.1241398 (Exim 4.92) (envelope-from ) id 1t5U8h-0004zX-TM; Mon, 28 Oct 2024 18:06:51 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 826937.1241398; Mon, 28 Oct 2024 18:06:51 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t5U8h-0004zQ-Qk; Mon, 28 Oct 2024 18:06:51 +0000 Received: by outflank-mailman (input) for mailman id 826937; Mon, 28 Oct 2024 18:06:50 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1t5U8g-0004zK-6e for xen-devel@lists.xenproject.org; Mon, 28 Oct 2024 18:06:50 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2062c.outbound.protection.outlook.com [2a01:111:f403:2415::62c]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 65e93c51-9557-11ef-a0c2-8be0dac302b0; Mon, 28 Oct 2024 19:06:48 +0100 (CET) Received: from BN9PR03CA0277.namprd03.prod.outlook.com (2603:10b6:408:f5::12) by IA1PR12MB8077.namprd12.prod.outlook.com (2603:10b6:208:3f4::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.25; Mon, 28 Oct 2024 18:06:44 +0000 Received: from BL6PEPF0001AB4F.namprd04.prod.outlook.com (2603:10b6:408:f5:cafe::32) by BN9PR03CA0277.outlook.office365.com (2603:10b6:408:f5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.26 via Frontend Transport; Mon, 28 Oct 2024 18:06:43 +0000 Received: from SATLEXMB03.amd.com (165.204.84.17) by BL6PEPF0001AB4F.mail.protection.outlook.com (10.167.242.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8114.16 via Frontend Transport; Mon, 28 Oct 2024 18:06:43 +0000 Received: from SATLEXMB03.amd.com (10.181.40.144) 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.39; Mon, 28 Oct 2024 13:06:43 -0500 Received: from amd-BIRMANPLUS.mshome.net (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Mon, 28 Oct 2024 13:06:42 -0500 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 65e93c51-9557-11ef-a0c2-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=luJUG2YxmAknticEKiE44mcgRhhjSOtSRZIov3tHinQj1BWtJRAqFIy6WZIDfs3D6ziGe0odFCtcaMm2M+yGxogz4rFO7l+UGUUEv6gT90jFDSIuuu3tUZ3FEyZZXPxeriPMs5LBbCoDwHHkxlAc6rmmQRTkXHaBNLEIB94jRO8kIHHuW4NpMf195WlvmgLjQvA0dJmt79EOK5PDIG8G+pMrEepNqlq+O1G38tI39GkbvWj+OFMB9oosvzOeM3j4eIfARp+leB8vlRPt3uIZrz3xdCw+LekwMLfo2/p6UhCHs16iNVTUJ/dV7bqpPFskm0v2qDAvPPZUlw5noRctBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=sQrshb0JqlbwE4dNWvbr6cEcu+XgR/6ZqbZncx5+fmU=; b=Atj63MWDWJhtILMDHUf4ebMlDSzKVxexzmkrry6FMzB5/wEnY/ruo4+KsxISeGtz+Fe2vZ2CndI191RGZxV8HOHmD5hsm32J9uhdE2bDAm7RZCiUE9x1F+XAnZ8WsqTAisnEcL0CFH56/JsB9dhoPasd3aKn6JF8ew3U1KDz5qu5V+xA+AO2zv2pM4/PGUI0X21+sbghwaEiIM8Iy5AnihBL/vK7p6slCBj/9LhxgRxqdDqVErwMCUPdjSis1q+JYksijsp5JgKHcLglG7w206M0sxqcS5IW+ETOTBYcYChl/6DJDpPPrnf/KUSke/xw6VN25p533AkRs6CofMQn5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.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) 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=sQrshb0JqlbwE4dNWvbr6cEcu+XgR/6ZqbZncx5+fmU=; b=YULjSznJctgTmkeXXyllUKpT7/PTDRGkCNH3M7zGhTXggU9Uwd8QdyKpsLG4SG02nsQjUKtIIP5MB4AcJ8OUWYM49Q+fj5XjKpA8HsosdSz3jYfdAXBALWHseMVUvxgK3SCviYJjMZAKccTfNbCI0vFzihRT5kFHpU9xm4v+Y+E= 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 From: Jason Andryuk To: CC: Stefano Stabellini , Michal Orzel , Jason Andryuk Subject: [ImageBuilder] uboot-script-gen: Use split_value for memory Date: Mon, 28 Oct 2024 14:06:44 -0400 Message-ID: <20241028180644.2501-1-jason.andryuk@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: jason.andryuk@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB4F:EE_|IA1PR12MB8077:EE_ X-MS-Office365-Filtering-Correlation-Id: 52cc5960-ebc9-4ec4-a9ec-08dcf77b47d1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|36860700013|82310400026; X-Microsoft-Antispam-Message-Info: HWyPDif2ZlnW8ae1FZmFcH1IkaMzxRzDdGE2uT6WcQAR+0JTuHIkc1enWznrAQ22phZTfzUK/01m9mbBnjF9jf0HXGPgF4AknM+He9FqAMyMgcMii8nfVBQc/KjvCAO9RRQs3JkJVdT8UgJ5oe+IIg7U/dl5Km7zLksYn3oZmSQlT85NBc5rxLenb/TV+dNlVptirYK/RSBHNHHB9Fh7GkZjRP/uHBTtXkB3w4Wkd1asxVgOfi7BeslJkiKM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radIZusEhmQXXHwN+iGVBCFuCCcfMuE7/NUR4ou9sSoV6A4Vg/78nEZ3SE5eZemdMPmFFdxXZwNJX1+GA/Yg/Y2pWQ== 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:(13230040)(1800799024)(376014)(36860700013)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2024 18:06:43.7103 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 52cc5960-ebc9-4ec4-a9ec-08dcf77b47d1 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: BL6PEPF0001AB4F.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB8077 Don't hardcode the first cell to 0 - use split_value to handle larger values properly. Signed-off-by: Jason Andryuk Reviewed-by: Stefano Stabellini --- scripts/uboot-script-gen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen index f10e5f4..dcf5bdb 100755 --- a/scripts/uboot-script-gen +++ b/scripts/uboot-script-gen @@ -174,7 +174,7 @@ function add_device_tree_mem() memory=$((512 * 1024)) fi - dt_set "$path" "memory" "int" "0 $memory" + dt_set "$path" "memory" "int" "$( split_value $memory )" } function add_device_tree_static_mem()