From: George Dunlap Subject: [PATCH 6/8] raisin: Break build into components and allow the sub-steps to be called individually Date: Thu, 16 Apr 2015 17:19:40 +0100 Message-ID: <1429201182-1044-6-git-send-email-george.dunlap@eu.citrix.com> References: <1429201182-1044-1-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1429201182-1044-1-git-send-email-george.dunlap@eu.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: xen-devel@lists.xen.org Cc: George Dunlap , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org This makes it easier to debug just one aspect of the build. Signed-off-by: George Dunlap --- CC: Stefano Stabellini --- lib/commands.sh | 16 ++++++++++++---- raise | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/commands.sh b/lib/commands.sh index 17e2129..c5df9ad 100755 --- a/lib/commands.sh +++ b/lib/commands.sh @@ -45,17 +45,25 @@ function install-builddep() { YES=y check-builddep } -function build() { - check-builddep - +function build-only() { mkdir -p "$INST_DIR" &>/dev/null # build and install under $DESTDIR for_each_component build - +} + +function build-package() { build_package xen-system } +function build() { + check-builddep + + build-only + + build-package +} + function unraise() { for_each_component clean diff --git a/raise b/raise index bce6908..59de04a 100755 --- a/raise +++ b/raise @@ -64,7 +64,7 @@ do done case "$1" in - "install-builddep" | "build" | "install" | "configure" | "unraise" ) + "install-builddep" | "build" | "build-only" | "build-package" | "install" | "configure" | "unraise" ) COMMAND=$1 ;; *) -- 1.9.1