From 4435825070fe062bb5576e9e048883191c0d87b7 Mon Sep 17 00:00:00 2001 From: Ayan Kumar Halder Date: Wed, 10 Nov 2021 16:03:45 +0000 Subject: Enable setting xen,passthrough Add an option 'XEN_PASSTHROUGH_PATHS' to the imagebuilder config file. It takes a list of device paths (separated by spaces) which needs to be marked with xen,passthrough. Signed-off-by: Ayan Kumar Halder Reviewed-by: Stefano Stabellini Signed-off-by: Stefano Stabellini --- scripts/uboot-script-gen | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') diff --git a/scripts/uboot-script-gen b/scripts/uboot-script-gen index 66bcad7..4f9c04a 100755 --- a/scripts/uboot-script-gen +++ b/scripts/uboot-script-gen @@ -133,6 +133,11 @@ function xen_device_tree_editing() dt_set "/chosen/dom0-ramdisk" "reg" "hex" "0x0 $ramdisk_addr 0x0 $(printf "0x%x" $ramdisk_size)" fi + for devpath in $XEN_PASSTHROUGH_PATHS + do + dt_set "$devpath" "xen,passthrough" "str_a" + done + i=0 while test $i -lt $NUM_DOMUS do -- cgit v1.2.3