From patchwork Wed Mar 19 11:47:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 26557 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f70.google.com (mail-oa0-f70.google.com [209.85.219.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 265B120534 for ; Wed, 19 Mar 2014 11:51:09 +0000 (UTC) Received: by mail-oa0-f70.google.com with SMTP id n16sf32736587oag.5 for ; Wed, 19 Mar 2014 04:51:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=4f5D+2JJBhjoC77ute2nE3k1zOsiU6WqmmyyHyswhTw=; b=OQHk8YMKHTyVrAC2CQD9AcRfaus1Y0mdN+uneBkTOZ3WFf0Hvrtv+cG86UyxRn2Pao qId2jSNetkJrYxVqnwB3kpQDbA+WcsQ48QlZmpsE8FHb805ovTDNjtzi8klf3ZssCGW+ T6dQczic8UkLM+UcDAiYTxOjUl3TuBkrNhi4iLlr+hRG5FTGUfVjWaRUfAD4ndmdOlEy uEl1geG9nYiLmqH+mGgmZk753Mn5H1+W8owGu2AXxhwda4Qoo+YGJW1xJh/fOCwkST9K eTOUs7z9g23paty1yj6EUiD34sjszUkdwJUJ9rBxJotXsm0UFSvxdd0aIhy7HOZKF+cX Iymw== X-Gm-Message-State: ALoCoQnrzQkR8gv+fLaDN3nxu+/Vr1cyoXM3gRnV5mJ4gX19vEhp0UjOCE8PJG28FSv/V7tKC0R1 X-Received: by 10.182.28.67 with SMTP id z3mr824740obg.12.1395229869581; Wed, 19 Mar 2014 04:51:09 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.94.78 with SMTP id f72ls1979535qge.86.gmail; Wed, 19 Mar 2014 04:51:09 -0700 (PDT) X-Received: by 10.220.12.140 with SMTP id x12mr19615524vcx.19.1395229869430; Wed, 19 Mar 2014 04:51:09 -0700 (PDT) Received: from mail-ve0-f177.google.com (mail-ve0-f177.google.com [209.85.128.177]) by mx.google.com with ESMTPS id cb3si3308071vdc.131.2014.03.19.04.51.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 04:51:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.177; Received: by mail-ve0-f177.google.com with SMTP id sa20so8492818veb.8 for ; Wed, 19 Mar 2014 04:51:09 -0700 (PDT) X-Received: by 10.221.40.10 with SMTP id to10mr12970638vcb.22.1395229869315; Wed, 19 Mar 2014 04:51:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.78.9 with SMTP id i9csp292228vck; Wed, 19 Mar 2014 04:51:08 -0700 (PDT) X-Received: by 10.42.121.147 with SMTP id j19mr28769468icr.13.1395229868595; Wed, 19 Mar 2014 04:51:08 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id rp5si29659130igb.33.2014.03.19.04.50.38 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 19 Mar 2014 04:51:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xen.org designates 50.57.142.19 as permitted sender) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WQEyX-0001hF-15; Wed, 19 Mar 2014 11:48:01 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WQEyU-0001gN-VG for xen-devel@lists.xen.org; Wed, 19 Mar 2014 11:47:59 +0000 Received: from [85.158.143.35:28429] by server-1.bemta-4.messagelabs.com id 38/5C-09853-EE389235; Wed, 19 Mar 2014 11:47:58 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-6.tower-21.messagelabs.com!1395229670!3186470!3 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6481 invoked from network); 19 Mar 2014 11:47:57 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-6.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 19 Mar 2014 11:47:57 -0000 X-IronPort-AV: E=Sophos;i="4.97,685,1389744000"; d="scan'208";a="112814428" Received: from accessns.citrite.net (HELO FTLPEX01CL03.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 19 Mar 2014 11:47:56 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.80) with Microsoft SMTP Server id 14.2.342.4; Wed, 19 Mar 2014 07:47:56 -0400 Received: from spare.cam.xci-test.com ([10.80.2.80] helo=kazak.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1WQEyR-0006YN-QW; Wed, 19 Mar 2014 11:47:55 +0000 From: Ian Campbell To: Date: Wed, 19 Mar 2014 11:47:53 +0000 Message-ID: <1395229675-13658-2-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1395229554.10203.74.camel@kazak.uk.xensource.com> References: <1395229554.10203.74.camel@kazak.uk.xensource.com> MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell , xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH OSSTEST 2/4] import enable-xen-config from xen.git, use for ts-kernel-build X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: I plan to remove it from xen.git. Take the version from a03984e7bcdf which hasn't changed since 8dedf6431393 in 2010. Update ts-kernel-build to not require xen.git. config_intree_buildconfigs was unused so remove it. Signed-off-by: Ian Campbell --- enable-xen-config | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ mfi-common | 2 - ts-kernel-build | 21 +-------- 3 files changed, 129 insertions(+), 21 deletions(-) create mode 100755 enable-xen-config diff --git a/enable-xen-config b/enable-xen-config new file mode 100755 index 0000000..7ee4d37 --- /dev/null +++ b/enable-xen-config @@ -0,0 +1,127 @@ +#!/bin/sh + +set -e + +if [ $# -ne 1 ] ; then + echo "Usage $(basename $0) " 1>&2 + exit 1 +fi + +CONFIG=$1 + +setopt() +{ + OPTION=$1 + VALUE=$2 + + # First remove any existing instances of this option + sed -e "s/^# ${OPTION} is not set$//g ; s/^${OPTION}=.*$//g" -i "${CONFIG}" + + # Then append the new value + case ${VALUE} in + n) echo "# ${OPTION} is not set" >> "${CONFIG}" ;; + y|m|*) echo "${OPTION}=${VALUE}" >> "${CONFIG}" ;; + esac +} + +setopt CONFIG_PARAVIRT y +setopt CONFIG_PARAVIRT_DEBUG y +setopt CONFIG_PARAVIRT_GUEST y +setopt CONFIG_PARAVIRT_SPINLOCKS y + +setopt CONFIG_XEN y +setopt CONFIG_XEN_BLKDEV_FRONTEND y +setopt CONFIG_XEN_NETDEV_FRONTEND y +setopt CONFIG_XEN_KBDDEV_FRONTEND y +setopt CONFIG_XEN_FBDEV_FRONTEND y +setopt CONFIG_XEN_PCIDEV_FRONTEND y +setopt CONFIG_XEN_BALLOON y +setopt CONFIG_XEN_SCRUB_PAGES y +setopt CONFIG_XEN_DEV_EVTCHN y +setopt CONFIG_XEN_BACKEND y +setopt CONFIG_XEN_BLKDEV_BACKEND y +setopt CONFIG_XEN_BLKDEV_TAP y +setopt CONFIG_XEN_NETDEV_BACKEND y +setopt CONFIG_XEN_PCIDEV_BACKEND y +setopt CONFIG_XEN_PCIDEV_BACKEND_VPCI y +setopt CONFIG_XEN_PCIDEV_BACKEND_PASS n +setopt CONFIG_XEN_PCIDEV_BACKEND_SLOT n +setopt CONFIG_XEN_PCIDEV_BE_DEBUG n +setopt CONFIG_XENFS y +setopt CONFIG_XEN_COMPAT_XENFS y +setopt CONFIG_XEN_PCI_PASSTHROUGH y +setopt CONFIG_HVC_XEN y +setopt CONFIG_XEN_MAX_DOMAIN_MEMORY 32 +setopt CONFIG_XEN_DEBUG_FS y +setopt CONFIG_XEN_DOM0 y +setopt CONFIG_XEN_SYS_HYPERVISOR y +setopt CONFIG_XEN_GNTDEV y +setopt CONFIG_XEN_PLATFORM_PCI y + +setopt CONFIG_VMI y +setopt CONFIG_TUN y + +setopt CONFIG_KVM y +setopt CONFIG_KVM_INTEL y +setopt CONFIG_KVM_AMD y +setopt CONFIG_KVM_CLOCK y +setopt CONFIG_KVM_GUEST n +setopt CONFIG_KVM_TRACE n + +setopt CONFIG_LGUEST n + +setopt CONFIG_LOCALVERSION_AUTO n + +setopt CONFIG_BRIDGE y + +setopt CONFIG_DEBUG_STACK_USAGE n + +setopt CONFIG_MEMORY_HOTPLUG y +setopt CONFIG_MEMORY_HOTREMOVE y + +setopt CONFIG_MIGRATION n + +setopt CONFIG_ACPI_HOTPLUG_MEMORY n + +# Should all be set one way or another in defconfig but aren't +setopt CONFIG_NUMA n +setopt CONFIG_X86_VSMP n +setopt CONFIG_X86_UV n +setopt CONFIG_CALGARY_IOMMU n +setopt CONFIG_AMD_IOMMU n +setopt CONFIG_MAXSMP n +setopt CONFIG_SPARSEMEM_VMEMMAP n +setopt CONFIG_I7300_IDLE n +setopt CONFIG_DMAR n +setopt CONFIG_INTR_REMAP n +setopt CONFIG_GFS2_FS n +setopt CONFIG_IOMMU_DEBUG n +setopt CONFIG_X86_MCE_INTEL n +setopt CONFIG_X86_MCE_AMD n +setopt CONFIG_CRYPTO_AES_NI_INTEL n +setopt CONFIG_CISS_SCSI_TAPE n + +setopt CONFIG_FUSION y +setopt CONFIG_FUSION_SPI m +setopt CONFIG_FUSION_SAS m +setopt CONFIG_FUSION_FC m +setopt CONFIG_FUSION_MAX_SGE 128 +setopt CONFIG_FUSION_CTL n +setopt CONFIG_FUSION_LOGGING n + +setopt CONFIG_BLK_CPQ_CISS_DA m + +case ${XEN_TARGET_ARCH} in + x86_32) setopt CONFIG_64BIT n ;; + x86_64) + setopt CONFIG_64BIT y + setopt CONFIG_IA32_EMULATION y + setopt CONFIG_IA32_AOUT n + setopt CONFIG_CRYPTO_AES_X86_64 n + setopt CONFIG_CRYPTO_SALSA20_X86_64 n + setopt CONFIG_CRYPTO_TWOFISH_X86_64 n + ;; + *) ;; +esac + +exit 0 diff --git a/mfi-common b/mfi-common index 52ed4d4..df7f8b0 100644 --- a/mfi-common +++ b/mfi-common @@ -153,11 +153,9 @@ create_build_jobs () { ./cs-job-create $flight build-$arch-pvops build-kern \ arch=$arch kconfighow=xen-enable-xen-config \ - tree_xen=$TREE_XEN \ $RUNVARS $BUILD_RUNVARS $BUILD_LINUX_RUNVARS $arch_runvars \ $suite_runvars \ host_hostflags=$build_hostflags \ - revision_xen=$REVISION_XEN \ $pvops_kernel $pvops_kconfig_overrides \ ${TREEVCS_LINUX:+treevcs_linux=}${TREEVCS_LINUX} \ tree_linuxfirmware=$TREE_LINUXFIRMWARE \ diff --git a/ts-kernel-build b/ts-kernel-build index 05d9e96..f80d857 100755 --- a/ts-kernel-build +++ b/ts-kernel-build @@ -41,8 +41,6 @@ my $archparms = { sub checkout () { target_cmd($ho, "rm -rf $builddir && mkdir $builddir", 600); - build_clone($ho, 'xen', $builddir, 'xen-unstable'); - build_clone($ho, 'linux', $builddir, 'linux'); if (length($r{tree_pq_linux})) { @@ -250,8 +248,9 @@ $config_features $config_runvars END + target_putfile($ho, 1000, "enable-xen-config", "$builddir/enable-xen-config"); + target_cmd_build($ho, 1000, $builddir, <enable-device-configs - ed <$edscript enable-device-configs - chmod +x enable-device-configs - cd linux - make -f buildconfigs/Rules.mk defconfig