From 9c076ee759276a97161d8e936cceed7c768e6cba Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 1 Oct 2015 10:56:12 +0100 Subject: [PATCH] Osstest: Add %arch_debian2linux (and inverse) Modelled after %arch_debian2xen. Will be used in ts-kernel-build. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- Osstest.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Osstest.pm b/Osstest.pm index 4a763c6..27451ea 100644 --- a/Osstest.pm +++ b/Osstest.pm @@ -40,7 +40,9 @@ BEGIN { db_begin_work db_prepare ensuredir get_filecontents_core_quiet system_checked nonempty visible_undef show_abs_time - %arch_debian2xen %arch_xen2debian $cfgvar_re + %arch_debian2xen %arch_xen2debian + %arch_debian2linux %arch_linux2debian + $cfgvar_re ); %EXPORT_TAGS = ( ); @@ -62,6 +64,13 @@ our %arch_debian2xen = qw(i386 x86_32 our %arch_xen2debian; $arch_xen2debian{$arch_debian2xen{$_}} = $_ foreach keys %arch_debian2xen; +our %arch_debian2linux = qw(i386 x86 + amd64 x86 + armhf arm); +our %arch_linux2debian; +$arch_linux2debian{$arch_debian2linux{$_}} = $_ + foreach keys %arch_debian2linux; + our $cfgvar_re = '[A-Z][0-9a-zA-Z-_]*'; #---------- static default config settings ---------- -- 2.39.5