From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST 1/8] Osstest: Add %arch_debian2linux (and inverse) Date: Fri, 2 Oct 2015 10:26:11 +0100 Message-ID: <1443777978-11119-1-git-send-email-ian.campbell@citrix.com> References: <1443777956.11707.61.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1443777956.11707.61.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org Modelled after %arch_debian2xen. Will be used in ts-kernel-build. Signed-off-by: Ian Campbell --- Osstest.pm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Osstest.pm b/Osstest.pm index fc8334d..118b7d9 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,12 @@ 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.5.3