diff options
Diffstat (limited to 'recipes-extended/xvisor/xvisor-configs.inc')
-rw-r--r-- | recipes-extended/xvisor/xvisor-configs.inc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/recipes-extended/xvisor/xvisor-configs.inc b/recipes-extended/xvisor/xvisor-configs.inc index 099128dd..cd873cb3 100644 --- a/recipes-extended/xvisor/xvisor-configs.inc +++ b/recipes-extended/xvisor/xvisor-configs.inc @@ -1,15 +1,15 @@ -def get_oemake_config(d): - plat = d.getVar('XVISOR_PLAT') - - if plat is None: - return "" - - if 'riscv/virt32' in plat: - return "generic-32b-defconfig" - if 'riscv/virt64' in plat: - return "generic-64b-defconfig" +def get_oemake_config(a, d): + import re - return "" + if re.match('armeb$', a): return 'generic-v7-defconfig' + elif re.match('aarch64$', a): return 'generic-v8-defconfig' + elif re.match('aarch64_be$', a): return 'generic-v8-defconfig' + elif re.match('aarch64_ilp32$', a): return 'generic-v8-defconfig' + elif re.match('aarch64_be_ilp32$', a): return 'generic-v8-defconfig' + elif re.match('riscv32(eb|)$', a): return 'generic-32b-defconfig' + elif re.match('riscv64(eb|)$', a): return 'generic-64b-defconfig' + else: + bb.note("cannot map '%s' to a Xvisor defconfig" % a) def map_xvisor_arch(a, d): import re @@ -22,4 +22,4 @@ def map_xvisor_arch(a, d): elif re.match('aarch64_be_ilp32$', a): return 'arm' elif re.match('riscv(32|64|)(eb|)$', a): return 'riscv' else: - bb.error("cannot map '%s' to a Xvisor architecture" % a) + bb.note("cannot map '%s' to a Xvisor architecture" % a) |