From patchwork Thu Jan 23 04:43:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Kerr X-Patchwork-Id: 1227594 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4838nR2W6mz9sSH for ; Thu, 23 Jan 2020 15:44:27 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=vig3KLG+; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4838nR0pCwzDqVk for ; Thu, 23 Jan 2020 15:44:27 +1100 (AEDT) X-Original-To: petitboot@lists.ozlabs.org Delivered-To: petitboot@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4838nH2k3bzDqMG for ; Thu, 23 Jan 2020 15:44:19 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=vig3KLG+; dkim-atps=neutral Received: by ozlabs.org (Postfix, from userid 1023) id 4838nG4kZQz9sSH; Thu, 23 Jan 2020 15:44:18 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1579754658; bh=nFQQTCsxhZ/+EiUY6cHrAj+4QUQtBi5HI1VRC3tjOZU=; h=From:To:Subject:Date:From; b=vig3KLG+KglGSLfw/zPbOP3v/w+lGqFJhadM4/sBWlmJketz+wHHZqQGzAYOA0WPB Hyn/xVIKcUjq8AiH937AM/vrucjn1c9Z6Nm15zycFX7to5tDjp4M1+nrzROsIXMLeb RqSAPSRCmb/Jr4wRfXDLcMI/+f8VocFfbgwOYxrNPDGQ5BnL/xb7zor1XuLsOQ/VRc h69OuxNS90Goa6BjVxTXIleEcPjvVY0WsNsKRkQCQcg9DG6lAIocr8d2+4Y8F7o4gg cDkOq0O84eHuWY9mmt3/51KgdjA8SeQi1xwWWDQiWoXtkf90MTiojzxdLTuvVI+3Zl 2vM+kDwvwUm7g== From: Jeremy Kerr To: petitboot@lists.ozlabs.org Subject: [PATCH,RFC] docker: build petitboot outside of the source dir Date: Thu, 23 Jan 2020 12:43:41 +0800 Message-Id: <20200123044341.12277-1-jk@ozlabs.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" Ensure that srcdir != builddir builds will keep working. Signed-off-by: Jeremy Kerr --- docker/build-pb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/build-pb b/docker/build-pb index 6229550..e892177 100755 --- a/docker/build-pb +++ b/docker/build-pb @@ -137,4 +137,4 @@ cd "${TOP_DIR}" docker_args="${docker_base_args} ${docker_user_args}" run_cmd "docker run ${docker_args} ${DOCKER_TAG} /bin/bash \ -e ${bash_debug} \ - -c './bootstrap && ${flags} ./configure ${configure_opts[@]} && ${makecmd} && ${docker_extra}'" + -c './bootstrap && d=\$(mktemp -d) && cd \$d && ${flags} /opt/pb/configure ${configure_opts[@]} && ${makecmd} && ${docker_extra}'"