From patchwork Tue Sep 19 06:58:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajiv Ranganath X-Patchwork-Id: 9958295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D00466056D for ; Tue, 19 Sep 2017 07:01:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6B1228D1C for ; Tue, 19 Sep 2017 07:01:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C49D228DB1; Tue, 19 Sep 2017 07:01:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4C8D728D8E for ; Tue, 19 Sep 2017 07:01:07 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duCU2-0004jF-J0; Tue, 19 Sep 2017 06:58:14 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duCU1-0004j4-Pn for xen-devel@lists.xen.org; Tue, 19 Sep 2017 06:58:13 +0000 Received: from [85.158.137.68] by server-13.bemta-3.messagelabs.com id 61/3A-01916-400C0C95; Tue, 19 Sep 2017 06:58:12 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgleJIrShJLcpLzFFi42K5GHrgkC7LgQO RBu/WClos+biYxYHR4+ju30wBjFGsmXlJ+RUJrBlnJu1gLDjGX3H3AHsD42XeLkYuDiGBCYwS J5/OZwRxWAT2sUocvnoQzJEQOMgqMfXbZOYuRk4gJ09i7q6HLBB2mkTr5XXsEHaFRN/Tyawgt pCAlkTjgoNsEGM/MUo8eHUDrIFNwFhiyaHHbCC2iIC0xLXPl4E2cHAwC0hJnD5oDmIKC/hIfL 1pCVLBIqAqcW/3VbBqXgE3ianf/0GdICfRcP4+mM0p4C6x/swGJoi1bhLT/swGO0cUqGbl5RZ WiF5BiZMzn7BAbNKUWL9LHyTMLCAvsf3tHOYJjKKzkFTNQqiahaRqASPzKkaN4tSistQiXUND vaSizPSMktzEzBxdQwNjvdzU4uLE9NScxKRiveT83E2MwJhgAIIdjKt/Ox1ilORgUhLlFY3cH ynEl5SfUpmRWJwRX1Sak1p8iFGGg0NJgjc86ECkkGBRanpqRVpmDjA6YdISHDxKIryLQdK8xQ WJucWZ6RCpU4yWHBfuXPrDxHFgzy0g2XHz7h8mIZa8/LxUKXHevyANAiANGaV5cONgCeQSo6y UMC8j0IFCPAWpRbmZJajyrxjFORiVhHlLQKbwZOaVwG19BXQQE9BBLTv2gBxUkoiQkmpg3Hf7 11kHQ3Hnc1/eRhh/0znw3rtgcpV76PpkHvn7LWtnLOkN7U7eukaz08bzxrcNTUYzLqZ6vHd+s +ZS4w7rnYXdJyp5DWf6HmucFJJtxdx6xrooQNbywjHDTMnp9deCjWM45999cHfSDemlXuIyrg t8lzanSfzZeXiO+7qwgn62du9d51yvKLEUZyQaajEXFScCAK9eoPMbAwAA X-Env-Sender: rajiv.ranganath@atihita.com X-Msg-Ref: server-4.tower-31.messagelabs.com!1505804291!57354475!1 X-Originating-IP: [209.85.192.194] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 47884 invoked from network); 19 Sep 2017 06:58:12 -0000 Received: from mail-pf0-f194.google.com (HELO mail-pf0-f194.google.com) (209.85.192.194) by server-4.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 19 Sep 2017 06:58:12 -0000 Received: by mail-pf0-f194.google.com with SMTP id h4so1154735pfk.0 for ; Mon, 18 Sep 2017 23:58:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atihita-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=Fo++Xts0wKoblpLlQZtIZCq6a8nBReSldO3ugdcFJFI=; b=u8zpnKBxH7kPmQND2/ff6jf655fpY5LLUBKSr7EG0z2RYMxV0C3aNg0yeD8YWSWR5D aBYVAl24bzUY+7BfKSSf3gGLCuS1LC3WN53QIlLsoAfS030phLLAlef+8MelyLadIsMa xz/7en6AmVIt1ltzMDbcTyTjVL3OzVIdchibk8z10oIGSaVsIgEAGs2snQeGD5OKwtBE IaMELB9cSPdtEpoP+M1sGpSXsIGWuFgHTbFhaXqAI9Np6HrbKYxLd6EdZAys418iJ5em X21e6sEY3Yq75tx8NPOCSvPBE8V3krz3Ss8s8EHO23X0K19rBZSDcKG8xNGPMRq1UYIP cLsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Fo++Xts0wKoblpLlQZtIZCq6a8nBReSldO3ugdcFJFI=; b=iZ3iWfgI9obpHTwQgwlPtQnezrNu8bvJeveLymnlAzkIlxEi3lsi9CwbiN0vop5mW6 dPMpaP9jQgyKWjtjlU18+g2FKO9GQ/mrLJRXq3XCZDvLvRgstGpHTB82XcefebArvIJ3 0ooe/nq8xtGyCmvlHA5hRCBYGWo/CUKWuc+7xF/xMx/WnWFL/SWM/Osn1cCfICdY9okA aF6LU18VuQvSupiEOcR1YgvrOnMxIfpUY3HNgiiEUPxS9KWtllywcFb1xXNscoGnrl7O khSltNcrFSAhtrro/klrIJqw/DhoF7QfqKbArivKwtsjto+gXfSNdzjO5orHcZQb/H9O JU4Q== X-Gm-Message-State: AHPjjUhSBPfKLcFu01SB3NCaTW14PBFL6fFlhcTZXIensxs8T2nFEXGZ PFyYRjH8ZxYaEoiDQPY4E0pWPtkAo2A= X-Google-Smtp-Source: AOwi7QDv2q0asmGoVoZfum3NVjysFeRQ88zVCS+Ex2TkCjQD1GpT6BJQi3w27uCMNd+gMzhHJwRyuQ== X-Received: by 10.99.115.21 with SMTP id o21mr425600pgc.334.1505804290346; Mon, 18 Sep 2017 23:58:10 -0700 (PDT) Received: from localhost ([59.93.108.6]) by smtp.gmail.com with ESMTPSA id h82sm2499284pfd.148.2017.09.18.23.58.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Sep 2017 23:58:09 -0700 (PDT) From: Rajiv Ranganath To: xen-devel@lists.xen.org Date: Tue, 19 Sep 2017 12:28:07 +0530 Message-Id: <20170919065807.1913.49090.stgit@rajivs-macbook-pro.local> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170919065749.1913.30583.stgit@Rajivs-MacBook-Pro.local> References: <20170919065749.1913.30583.stgit@Rajivs-MacBook-Pro.local> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Cc: sstabellini@kernel.org Subject: [Xen-devel] [stage1-xen PATCH v2 02/11] build/fedora: Add `buildroot-README.md` X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Rajiv M Ranganath Signed-off-by: Rajiv Ranganath Reviewed-by: Stefano Stabellini --- build/fedora/buildroot-README.md | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 build/fedora/buildroot-README.md diff --git a/build/fedora/buildroot-README.md b/build/fedora/buildroot-README.md new file mode 100644 index 0000000..0efb150 --- /dev/null +++ b/build/fedora/buildroot-README.md @@ -0,0 +1,50 @@ +## stage1-xen Fedora Buildroot + +stage1-xen build artifacts for Fedora is built in two phases. In the first phase +a docker container is prepared with all the build dependencies. We refer to it +as `stage1-xen-fedora-buildroot`. In the next phase we execute the `run` script +that uses `stage1-xen-fedora-buildroot` and to produce the build artifacts. + +### Building `stage1-xen-fedora-buildroot` + +`stage1-xen-fedora-buildroot` has a external dependency +on [`binutils`](https://github.com/lambda-linux-fedora/binutils) package that is +compiled with `i386pe` support. You can download the pre-built RPMs +from [here](https://drive.google.com/open?id=0B_tTbuxmuRzIR05wQ3E1eWVyaGs). +Please download `binutils-2.26.1-1.1.fc25.tar`. + +To build docker image + +``` +cd stage1-xen/build/fedora + +docker build -f buildroot-Dockerfile -t stage1-xen-fedora-buildroot . +``` + +### Running `stage1-xen-fedora-buildroot` + +``` +cd stage1-xen + +docker run --rm \ + -v `pwd`:/root/gopath/src/github.com/rkt/stage1-xen \ + -v /tmp:/tmp \ + -t -i stage1-xen-fedora-buildroot \ + /sbin/my_init -- /root/bin/run +``` + +The generated build artifacts are in `/tmp` directory. + +To debug build issues - + +``` +cd stage1-xen + +docker run --rm \ + -v `pwd`:/root/gopath/src/github.com/rkt/stage1-xen \ + -v /tmp:/tmp \ + -t -i stage1-xen-fedora-buildroot \ + /sbin/my_init -- /bin/bash +``` + +Also see section on `ipdb` in `buildroot-Dockerfile`.