From patchwork Tue Jul 4 14:48:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 106979 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1089144qge; Tue, 4 Jul 2017 07:48:54 -0700 (PDT) X-Received: by 10.55.141.198 with SMTP id p189mr51799113qkd.97.1499179734598; Tue, 04 Jul 2017 07:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499179734; cv=none; d=google.com; s=arc-20160816; b=yZjCUr+YSzWOlwPSK/9VH0eITogJ0srPNpxyTXtusU9r+GJ/xcLoythP3C9gy4bNbU Pa7ezsXjo/yzgNP4C1vtuE4QeHwyaQd3Hc97Xi4imfrQhPX+nvzqSFH3/cs333KSZSxz Up4ggoWYomKsFz/TjsNAOMlpld77Qj9eB7CJPT3fTGMU8Gvf+08SFCQfu+FoBMGZ2ud7 eOxGxyb2H176Wj/ITo/2xthC/Vt3yyiY1k7q59FH5qXYhZRVBms2tmd0Z7OBTLPzRm8S kEhukUtruL20afTHzQrBCxjXGtFH0SBIum6VShhjCO3hypxzt6iPYWLZcZmjubquFwkq 5tzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=81S40Mta2D6KRS1shdF2cFudpSKzvnPh8QMj2aasreM=; b=BwcnPakpCddQc2OEevMN2nFnDDMabudTP5Urtkm1TAC/iuV7tx8K+Tb9oeTyQqoUSj fgllSTVTBnCfR5PwExfX8MTDckZ3EjBUzVUnjL9035J4kwLGwH3VqV0Bz4xdn75JjYcj jfc0qbZQ3g/uK7rXlK3wP+1LZ0UaqTyWS88zdxFcypvqbR03Ix7RuoDiQtHpLtiQYgAO VxOHrkKJNJKtVI4QfPZH/VCeZ8wTHpcHS89UC/UF+ga1/XhpIaTiMSj3UdHV7nZutkG6 P+LSt0UvZuVYhbaNi5dVafuUVH0vZKxE9qD4GjHbdyalzZfwD9qThS6wH23iNnNwkrPD teyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=bA3rHbXs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id a96si19122451qkh.92.2017.07.04.07.48.54 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 04 Jul 2017 07:48:54 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.b=bA3rHbXs; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP8E-0008El-9A for patch@linaro.org; Tue, 04 Jul 2017 10:48:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSP7h-0008Dg-TS for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSP7d-00013x-S0 for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:17 -0400 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]:35571) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSP7d-00013I-KF for qemu-devel@nongnu.org; Tue, 04 Jul 2017 10:48:13 -0400 Received: by mail-wr0-x231.google.com with SMTP id k67so249660520wrc.2 for ; Tue, 04 Jul 2017 07:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=81S40Mta2D6KRS1shdF2cFudpSKzvnPh8QMj2aasreM=; b=bA3rHbXs2OkJPZqPcAs5IVpe3tR6yWWTyXO8MtutwMFrUO+0F2grfHvV8q7Towxrdf 8BC1dhAHaCSwCPLWXoH8Lqu8N7/F/dVg475QbBr7gJtH++81Xyc51+LR97k2cFWW4S9j 2McpKy+xXKWbfmXgVxGCyCju18Oh6ks5uzCBI= 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:mime-version:content-transfer-encoding; bh=81S40Mta2D6KRS1shdF2cFudpSKzvnPh8QMj2aasreM=; b=VhsXO91xvOP6TQz3JV2hGzSyN+D7nYKKP2/QfCqme2artVA4ZhSltdYWGOq220wJaa CLmgt47FZO+BLFty3sHxQfkbQLxKIheeoV913pEafJGWqu4xtMTxkY6RK5CBSs7RKxwK Kl2U4RoNPN5KYzCMvyNDGWv+f3kYBQUdiFJ29AydfS1tH/JbXMmY1HW+Ca3MdKEaGzgD dqVkTR01RUm2z81qI5lODJl9BJEtORdzjM7FR/kgLKFYETU5e4x7JpwIOsuEgZ5Upd66 goNGyZy3/L+f1+UWVsS7EkPwUYR8fKPxQSjFFKLxQBJON+ZBoYlbyN9YuVJuOhjjedpG ny/g== X-Gm-Message-State: AKS2vOyB15XnCeSMUFhslRJ8S1faHtP1Qxxf6YeouEH9+i8pZU/j/Itu AnhWzzvaHZpTTmc/ X-Received: by 10.223.161.89 with SMTP id r25mr41518243wrr.162.1499179692439; Tue, 04 Jul 2017 07:48:12 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id g63sm20292382wrd.11.2017.07.04.07.48.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2017 07:48:09 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id E11813E21F6; Tue, 4 Jul 2017 15:49:10 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Tue, 4 Jul 2017 15:48:51 +0100 Message-Id: <20170704144859.17644-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170704144859.17644-1-alex.bennee@linaro.org> References: <20170704144859.17644-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::231 Subject: [Qemu-devel] [RISU PATCH 03/11] README: document --static builds X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-arm@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée --- README | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) -- 2.13.0 diff --git a/README b/README index 858a349..e0bf5c5 100644 --- a/README +++ b/README @@ -17,7 +17,7 @@ test blobs (which can be run anywhere), and a Linux executable 'risu' which runs on the target architecture (ie ARM). To build the executable part: - [VAR=VALUE] ... ./configure + [VAR=VALUE] ... ./configure [--static] make where [VAR=VALUE] ... allows you to specify any options. @@ -25,6 +25,10 @@ Most useful is CROSS_PREFIX= which specifies the cross compiler prefix; you'll need this if you're not building on the target system (Example: CROSS_PREFIX=arm-linux-gnueabihf- ) + +Passing --static will build a statically linked binary which is useful +if you don't want to mess around with chroot's to run the binary. + For other possibilities run 'configure --help'. Building into a separate build tree from the source code is supported: @@ -86,8 +90,14 @@ as simple as: However since you actually need to run it under qemu or similar you probably need an ARM chroot to run it in, and to do something -like - sudo chroot /srv/chroot/arm-mav /risu --host ipaddr vqshlimm.out +like: + + sudo chroot /srv/chroot/arm-mav /risu --host ipaddr vqshlimm.out + +If you built the binary statically you can simply run: + + /path/to/qemu ./risu --host ipaddr vqshlimm.out + When the apprentice connects to the master, they will both start running the binary and checking results with each other. When the