From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST 3/8] ts-kernel-build: Refactor $archparams::DefConfig selection Date: Fri, 2 Oct 2015 10:26:13 +0100 Message-ID: <1443777978-11119-3-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 This is always either "foo_defconfig" or "defconfig". Record only "foo" or undef and construct the name. This makes the $archparams less verbose. Signed-off-by: Ian Campbell --- ts-kernel-build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ts-kernel-build b/ts-kernel-build index 9d6cd9e..8443754 100755 --- a/ts-kernel-build +++ b/ts-kernel-build @@ -42,9 +42,9 @@ selectbuildhost(\@ARGV); builddirsprops(); my $archparms = { - 'armhf' => { DefConfig => 'multi_v7_defconfig', KernelImage => 'arch/arm/boot/zImage' }, - 'i386' => { DefConfig => 'defconfig', KernelImage => 'arch/x86/boot/bzImage' }, - 'amd64' => { DefConfig => 'defconfig', KernelImage => 'arch/x86/boot/bzImage' } + 'armhf' => { DefConfig => 'multi_v7', KernelImage => 'arch/arm/boot/zImage' }, + 'i386' => { KernelImage => 'arch/x86/boot/bzImage' }, + 'amd64' => { KernelImage => 'arch/x86/boot/bzImage' } }; my $parms = $archparms->{ $r{arch} }; @@ -330,11 +330,13 @@ END target_putfilecontents_stash($ho,100,enable_xen_config(), "$builddir/enable-xen-config"); + my $defconfig = $parms->{DefConfig} ? + $parms->{DefConfig}."_defconfig" : "defconfig"; target_cmd_build($ho, 1000, $builddir, <{DefConfig} + make $defconfig # ARM defconfig omits modules for some reason... sed -e "s/^# CONFIG_MODULES is not set\$/CONFIG_MODULES=y/g" -i .config ../enable-xen-config .config -- 2.5.3