summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorXiaotian Wu <wuxiaotian@loongson.cn>2023-02-03 07:16:13 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-04 17:02:10 +0000
commitf3889273f5d736d30e901c651ea81260af701003 (patch)
treedd17e706873ff77cbc1def2c82acec8d457c640e /meta
parent324b03e15fb8623690a5c5c64006602fdc7027a2 (diff)
downloadpoky-f3889273f5d736d30e901c651ea81260af701003.tar.gz
linux: add loongarch64 support
(From OE-Core rev: 103993845bb8efa3a17df4585b248d775795ac4f) Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes-recipe/kernel-arch.bbclass2
-rw-r--r--meta/recipes-kernel/linux/linux-yocto-dev.bb2
-rw-r--r--meta/recipes-kernel/linux/linux-yocto_6.1.bb4
3 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes-recipe/kernel-arch.bbclass b/meta/classes-recipe/kernel-arch.bbclass
index 1531ae6cd5..777f900241 100644
--- a/meta/classes-recipe/kernel-arch.bbclass
+++ b/meta/classes-recipe/kernel-arch.bbclass
@@ -19,6 +19,7 @@ valid_archs = "alpha cris ia64 \
19 sh sh64 um h8300 \ 19 sh sh64 um h8300 \
20 parisc s390 v850 \ 20 parisc s390 v850 \
21 avr32 blackfin \ 21 avr32 blackfin \
22 loongarch64 \
22 microblaze \ 23 microblaze \
23 nios2 arc riscv xtensa" 24 nios2 arc riscv xtensa"
24 25
@@ -34,6 +35,7 @@ def map_kernel_arch(a, d):
34 elif re.match('aarch64_be$', a): return 'arm64' 35 elif re.match('aarch64_be$', a): return 'arm64'
35 elif re.match('aarch64_ilp32$', a): return 'arm64' 36 elif re.match('aarch64_ilp32$', a): return 'arm64'
36 elif re.match('aarch64_be_ilp32$', a): return 'arm64' 37 elif re.match('aarch64_be_ilp32$', a): return 'arm64'
38 elif re.match('loongarch(32|64|)$', a): return 'loongarch'
37 elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'mips' 39 elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'mips'
38 elif re.match('mcf', a): return 'm68k' 40 elif re.match('mcf', a): return 'm68k'
39 elif re.match('riscv(32|64|)(eb|)$', a): return 'riscv' 41 elif re.match('riscv(32|64|)(eb|)$', a): return 'riscv'
diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb
index 8671b3d30d..05e405f81c 100644
--- a/meta/recipes-kernel/linux/linux-yocto-dev.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb
@@ -50,7 +50,7 @@ PACKAGECONFIG[dt-validation] = ",,python3-dtschema-native"
50# we need the wrappers if validation isn't in the packageconfig 50# we need the wrappers if validation isn't in the packageconfig
51DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', '', 'python3-dtschema-wrapper-native', d)}" 51DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', '', 'python3-dtschema-wrapper-native', d)}"
52 52
53COMPATIBLE_MACHINE = "^(qemuarmv5|qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv32|qemuriscv64)$" 53COMPATIBLE_MACHINE = "^(qemuarmv5|qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv32|qemuriscv64|qemuloongarch64)$"
54 54
55KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb" 55KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb"
56 56
diff --git a/meta/recipes-kernel/linux/linux-yocto_6.1.bb b/meta/recipes-kernel/linux/linux-yocto_6.1.bb
index 6bd83197fb..66d397837f 100644
--- a/meta/recipes-kernel/linux/linux-yocto_6.1.bb
+++ b/meta/recipes-kernel/linux/linux-yocto_6.1.bb
@@ -11,10 +11,12 @@ KBRANCH:qemuriscv64 ?= "v6.1/standard/base"
11KBRANCH:qemuriscv32 ?= "v6.1/standard/base" 11KBRANCH:qemuriscv32 ?= "v6.1/standard/base"
12KBRANCH:qemux86 ?= "v6.1/standard/base" 12KBRANCH:qemux86 ?= "v6.1/standard/base"
13KBRANCH:qemux86-64 ?= "v6.1/standard/base" 13KBRANCH:qemux86-64 ?= "v6.1/standard/base"
14KBRANCH:qemuloongarch64 ?= "v6.1/standard/base"
14KBRANCH:qemumips64 ?= "v6.1/standard/mti-malta64" 15KBRANCH:qemumips64 ?= "v6.1/standard/mti-malta64"
15 16
16SRCREV_machine:qemuarm ?= "ccd3b20fb504d35147d35962254b68b0041a4c6f" 17SRCREV_machine:qemuarm ?= "ccd3b20fb504d35147d35962254b68b0041a4c6f"
17SRCREV_machine:qemuarm64 ?= "1caf99d56881e1510afca553cd4a057f80479973" 18SRCREV_machine:qemuarm64 ?= "1caf99d56881e1510afca553cd4a057f80479973"
19SRCREV_machine:qemuloongarch64 ?= "1caf99d56881e1510afca553cd4a057f80479973"
18SRCREV_machine:qemumips ?= "d60ecbda7d4de915c867f751f5c63555a14219d1" 20SRCREV_machine:qemumips ?= "d60ecbda7d4de915c867f751f5c63555a14219d1"
19SRCREV_machine:qemuppc ?= "1caf99d56881e1510afca553cd4a057f80479973" 21SRCREV_machine:qemuppc ?= "1caf99d56881e1510afca553cd4a057f80479973"
20SRCREV_machine:qemuriscv64 ?= "1caf99d56881e1510afca553cd4a057f80479973" 22SRCREV_machine:qemuriscv64 ?= "1caf99d56881e1510afca553cd4a057f80479973"
@@ -51,7 +53,7 @@ KCONF_BSP_AUDIT_LEVEL = "1"
51 53
52KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb" 54KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb"
53 55
54COMPATIBLE_MACHINE = "^(qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemuppc64|qemumips|qemumips64|qemux86-64|qemuriscv64|qemuriscv32)$" 56COMPATIBLE_MACHINE = "^(qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemuppc64|qemumips|qemumips64|qemux86-64|qemuriscv64|qemuriscv32|qemuloongarch64)$"
55 57
56# Functionality flags 58# Functionality flags
57KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc" 59KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc"