Skip to content

Commit

Permalink
linux: add loongarch64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
yetist committed Jan 18, 2023
1 parent a59cd8b commit 3818eed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions meta/classes-recipe/kernel-arch.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def map_kernel_arch(a, d):
elif re.match('aarch64_be$', a): return 'arm64'
elif re.match('aarch64_ilp32$', a): return 'arm64'
elif re.match('aarch64_be_ilp32$', a): return 'arm64'
elif re.match('loongarch(32|64|)$', a): return 'loongarch'
elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'mips'
elif re.match('mcf', a): return 'm68k'
elif re.match('riscv(32|64|)(eb|)$', a): return 'riscv'
Expand Down
2 changes: 1 addition & 1 deletion meta/recipes-kernel/linux/linux-yocto-dev.bb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ PACKAGECONFIG[dt-validation] = ",,python3-dtschema-native"
# we need the wrappers if validation isn't in the packageconfig
DEPENDS += "${@bb.utils.contains('PACKAGECONFIG', 'dt-validation', '', 'python3-dtschema-wrapper-native', d)}"

COMPATIBLE_MACHINE = "^(qemuarmv5|qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv32|qemuriscv64)$"
COMPATIBLE_MACHINE = "^(qemuarmv5|qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64|qemuriscv32|qemuriscv64|qemuloongarch64)$"

KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb"

Expand Down
4 changes: 3 additions & 1 deletion meta/recipes-kernel/linux/linux-yocto_6.1.bb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ KBRANCH:qemuriscv64 ?= "v6.1/standard/base"
KBRANCH:qemuriscv32 ?= "v6.1/standard/base"
KBRANCH:qemux86 ?= "v6.1/standard/base"
KBRANCH:qemux86-64 ?= "v6.1/standard/base"
KBRANCH:qemuloongarch64 ?= "v6.1/standard/base"
KBRANCH:qemumips64 ?= "v6.1/standard/mti-malta64"

SRCREV_machine:qemuarm ?= "f3fae08180e0e42fe1d84bc27fadfbe712486e7d"
SRCREV_machine:qemuarm64 ?= "872afe79c5e568acf5f971952e78caada8424df7"
SRCREV_machine:qemuloongarch64 ?= "872afe79c5e568acf5f971952e78caada8424df7"
SRCREV_machine:qemumips ?= "f33d80dcd64dbdf265f8501370595c9b7672b402"
SRCREV_machine:qemuppc ?= "872afe79c5e568acf5f971952e78caada8424df7"
SRCREV_machine:qemuriscv64 ?= "872afe79c5e568acf5f971952e78caada8424df7"
Expand Down Expand Up @@ -51,7 +53,7 @@ KCONF_BSP_AUDIT_LEVEL = "1"

KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb"

COMPATIBLE_MACHINE = "^(qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemuppc64|qemumips|qemumips64|qemux86-64|qemuriscv64|qemuriscv32)$"
COMPATIBLE_MACHINE = "^(qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemuppc64|qemumips|qemumips64|qemux86-64|qemuriscv64|qemuriscv32|qemuloongarch64)$"

# Functionality flags
KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc"
Expand Down

0 comments on commit 3818eed

Please sign in to comment.