[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ImageBuilder] uboot-script-gen: Use split_value for memory


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jason Andryuk <jason.andryuk@xxxxxxx>
  • Date: Mon, 28 Oct 2024 14:06:44 -0400
  • 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)
  • 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-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=luJUG2YxmAknticEKiE44mcgRhhjSOtSRZIov3tHinQj1BWtJRAqFIy6WZIDfs3D6ziGe0odFCtcaMm2M+yGxogz4rFO7l+UGUUEv6gT90jFDSIuuu3tUZ3FEyZZXPxeriPMs5LBbCoDwHHkxlAc6rmmQRTkXHaBNLEIB94jRO8kIHHuW4NpMf195WlvmgLjQvA0dJmt79EOK5PDIG8G+pMrEepNqlq+O1G38tI39GkbvWj+OFMB9oosvzOeM3j4eIfARp+leB8vlRPt3uIZrz3xdCw+LekwMLfo2/p6UhCHs16iNVTUJ/dV7bqpPFskm0v2qDAvPPZUlw5noRctBw==
  • Cc: Stefano Stabellini <stefano.stabellini@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jason Andryuk <jason.andryuk@xxxxxxx>
  • Delivery-date: Mon, 28 Oct 2024 18:06:52 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Don't hardcode the first cell to 0 - use split_value to handle larger
values properly.

Signed-off-by: Jason Andryuk <jason.andryuk@xxxxxxx>
---
 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()
-- 
2.34.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.