Message ID | 20241028180644.2501-1-jason.andryuk@amd.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [ImageBuilder] uboot-script-gen: Use split_value for memory | expand |
On Mon, 28 Oct 2024, Jason Andryuk wrote: > Don't hardcode the first cell to 0 - use split_value to handle larger > values properly. > > Signed-off-by: Jason Andryuk <jason.andryuk@amd.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> > --- > 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 >
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()
Don't hardcode the first cell to 0 - use split_value to handle larger values properly. Signed-off-by: Jason Andryuk <jason.andryuk@amd.com> --- scripts/uboot-script-gen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)