diff options
author | Xiaotian Wu <wuxiaotian@loongson.cn> | 2023-02-03 07:16:12 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-04 11:40:51 +0000 |
commit | 759baaceb4dd623d5da12ba0d01540fa080154ba (patch) | |
tree | 5781f3b18c221b77e8ff8fc905cd22265aa74dab /scripts | |
parent | 55ab1bf20e6893088acb6460e9004dac8e205559 (diff) | |
download | openembedded-core-contrib-759baaceb4dd623d5da12ba0d01540fa080154ba.tar.gz |
base: add support for loongarch64
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/canned-wks/qemuloongarch.wks | 3 | ||||
-rwxr-xr-x | scripts/runqemu | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/scripts/lib/wic/canned-wks/qemuloongarch.wks b/scripts/lib/wic/canned-wks/qemuloongarch.wks new file mode 100644 index 0000000000..8465c7a8c0 --- /dev/null +++ b/scripts/lib/wic/canned-wks/qemuloongarch.wks @@ -0,0 +1,3 @@ +# short-description: Create qcow2 image for LoongArch QEMU machines + +part / --source rootfs --fstype=ext4 --label root --align 4096 --size 5G diff --git a/scripts/runqemu b/scripts/runqemu index 5907390573..def11ea911 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -1313,7 +1313,7 @@ class BaseConfig(object): """attempt to determine the appropriate qemu-system binary""" mach = self.get('MACHINE') if not mach: - search = '.*(qemux86-64|qemux86|qemuarm64|qemuarm|qemumips64|qemumips64el|qemumipsel|qemumips|qemuppc).*' + search = '.*(qemux86-64|qemux86|qemuarm64|qemuarm|qemuloongarch64|qemumips64|qemumips64el|qemumipsel|qemumips|qemuppc).*' if self.rootfs: match = re.match(search, self.rootfs) if match: @@ -1336,6 +1336,8 @@ class BaseConfig(object): qbsys = 'x86_64' elif mach == 'qemuppc': qbsys = 'ppc' + elif mach == 'qemuloongarch64': + qbsys = 'loongarch64' elif mach == 'qemumips': qbsys = 'mips' elif mach == 'qemumips64': |