From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master

upload_manifest.py: correctly detect arch parameter when cross-compiling

Signed-off-by: Waldemar Kozaczuk <[email protected]>

---
diff --git a/scripts/upload_manifest.py b/scripts/upload_manifest.py
--- a/scripts/upload_manifest.py
+++ b/scripts/upload_manifest.py
@@ -161,7 +161,10 @@ def main():
         kernel_mode_flag = '-k --kernel-path build/release/loader-stripped.elf'
     else:
         kernel_mode_flag = ''
-    osv = subprocess.Popen('cd ../..; scripts/run.py %s --arch=%s --vnc none 
-m 512 -c1 -i "%s" --block-device-cache unsafe -s -e "--norandom --nomount 
--noinit /tools/mkfs.so; /tools/cpiod.so --prefix /zfs/zfs/; /zfs.so set 
compression=off osv" --forward tcp:127.0.0.1:%s-:10000' % 
(kernel_mode_flag,options.arch,image_path,upload_port), shell=True, 
stdout=subprocess.PIPE)
+    arch = options.arch
+    if arch == 'x64':
+        arch = 'x86_64'
+    osv = subprocess.Popen('cd ../..; scripts/run.py %s --arch=%s --vnc none 
-m 512 -c1 -i "%s" --block-device-cache unsafe -s -e "--norandom --nomount 
--noinit /tools/mkfs.so; /tools/cpiod.so --prefix /zfs/zfs/; /zfs.so set 
compression=off osv" --forward tcp:127.0.0.1:%s-:10000' % 
(kernel_mode_flag,arch,image_path,upload_port), shell=True, 
stdout=subprocess.PIPE)
 
     upload(osv, manifest, depends, upload_port)
 

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/0000000000006590db05de39b97b%40google.com.

Reply via email to