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 17:02:10 +0000 |
| commit | 324b03e15fb8623690a5c5c64006602fdc7027a2 (patch) | |
| tree | ee0bd81ab19521469baa48447cc61132351f91a0 /scripts | |
| parent | 69b8b7ef1bd3c2e4a5140aff3de5318b1b292986 (diff) | |
| download | poky-324b03e15fb8623690a5c5c64006602fdc7027a2.tar.gz | |
base: add support for loongarch64
(From OE-Core rev: 759baaceb4dd623d5da12ba0d01540fa080154ba)
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 @@ | |||
| 1 | # short-description: Create qcow2 image for LoongArch QEMU machines | ||
| 2 | |||
| 3 | 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): | |||
| 1313 | """attempt to determine the appropriate qemu-system binary""" | 1313 | """attempt to determine the appropriate qemu-system binary""" |
| 1314 | mach = self.get('MACHINE') | 1314 | mach = self.get('MACHINE') |
| 1315 | if not mach: | 1315 | if not mach: |
| 1316 | search = '.*(qemux86-64|qemux86|qemuarm64|qemuarm|qemumips64|qemumips64el|qemumipsel|qemumips|qemuppc).*' | 1316 | search = '.*(qemux86-64|qemux86|qemuarm64|qemuarm|qemuloongarch64|qemumips64|qemumips64el|qemumipsel|qemumips|qemuppc).*' |
| 1317 | if self.rootfs: | 1317 | if self.rootfs: |
| 1318 | match = re.match(search, self.rootfs) | 1318 | match = re.match(search, self.rootfs) |
| 1319 | if match: | 1319 | if match: |
| @@ -1336,6 +1336,8 @@ class BaseConfig(object): | |||
| 1336 | qbsys = 'x86_64' | 1336 | qbsys = 'x86_64' |
| 1337 | elif mach == 'qemuppc': | 1337 | elif mach == 'qemuppc': |
| 1338 | qbsys = 'ppc' | 1338 | qbsys = 'ppc' |
| 1339 | elif mach == 'qemuloongarch64': | ||
| 1340 | qbsys = 'loongarch64' | ||
| 1339 | elif mach == 'qemumips': | 1341 | elif mach == 'qemumips': |
| 1340 | qbsys = 'mips' | 1342 | qbsys = 'mips' |
| 1341 | elif mach == 'qemumips64': | 1343 | elif mach == 'qemumips64': |
