Skip to contentSkip to conversation

uboot-script-gen: Use split_value for memory

ImageBuilder Jason Andryuk 2 participants 2 messages Oct 28, 2024

lore
Share & tools
lore
#0 lore raw

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

---
 scripts/uboot-script-gen | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/uboot-script-gen +1 -1
index f10e5f4..dcf5bdb 100755
@@ -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()
Signature · 1 line
2.34.1
Reviewed-by
#1 lore raw
Quoted 4 lines · Jason Andryuk

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

Quoted 20 lines
---
 scripts/uboot-script-gen | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/uboot-script-gen +1 -1
index f10e5f4..dcf5bdb 100755
@@ -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()
Signature · 1 line
2.34.1