From patchwork Thu Sep 10 21:12:10 2015
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Angelo Compagnucci
X-Patchwork-Id: 516461
Return-Path:
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@bilbo.ozlabs.org
Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])
by ozlabs.org (Postfix) with ESMTP id DFD49140784
for ;
Fri, 11 Sep 2015 07:12:28 +1000 (AEST)
Authentication-Results: ozlabs.org;
dkim=fail reason="signature verification failed" (2048-bit key;
unprotected) header.d=gmail.com header.i=@gmail.com header.b=cjnWAmMM;
dkim-atps=neutral
Received: from localhost (localhost [127.0.0.1])
by fraxinus.osuosl.org (Postfix) with ESMTP id 396DAA32BC;
Thu, 10 Sep 2015 21:12:28 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from fraxinus.osuosl.org ([127.0.0.1])
by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id LCrISipkH0V0; Thu, 10 Sep 2015 21:12:27 +0000 (UTC)
Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34])
by fraxinus.osuosl.org (Postfix) with ESMTP id 83023A32A3;
Thu, 10 Sep 2015 21:12:27 +0000 (UTC)
X-Original-To: buildroot@lists.busybox.net
Delivered-To: buildroot@osuosl.org
Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])
by ash.osuosl.org (Postfix) with ESMTP id 6DEEA1C0F1E
for ;
Thu, 10 Sep 2015 21:12:26 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by whitealder.osuosl.org (Postfix) with ESMTP id 69E328C028
for ;
Thu, 10 Sep 2015 21:12:26 +0000 (UTC)
X-Virus-Scanned: amavisd-new at osuosl.org
Received: from whitealder.osuosl.org ([127.0.0.1])
by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id l1xtp9ROb+1O for ;
Thu, 10 Sep 2015 21:12:25 +0000 (UTC)
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6
Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com
[209.85.212.182])
by whitealder.osuosl.org (Postfix) with ESMTPS id 82EFF8FF42
for ; Thu, 10 Sep 2015 21:12:25 +0000 (UTC)
Received: by wicgb1 with SMTP id gb1so40260389wic.1
for ; Thu, 10 Sep 2015 14:12:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=from:to:cc:subject:date:message-id;
bh=0YWE8ZlGJrJ2pJ0b8R6yVOHUHrukpcdP8Lc5hnYlQpM=;
b=cjnWAmMM4tX5Om6i1mJ8RMoIMs6k5eTZJTL0JArSyNv3ow+qwOzHcoX2A9nhqEbd4x
nmaEY6CkVaoLDQ3/QNtKdQPptZ/kYW3hMGxmoHwN6FtXqFbpw49jgbelrjO4nbg8Hypt
KifXyFrzzFiSYyKx6PtmCPr8APxAcdJaTwC1e2eROgHp43QrUOP69mxztRaAjmo9g1Bf
ncBY3pE25ok/HlaS9uBfOo5Z5K7NV/0fSQwDCzMecklAC1ZiXYnYxXJILuC6Zy4Tjq5/
wpyI6nvbEmkal22WnMVXFc1MpEW7HeGOtHjK6NjL8RlIgXaMHBZ/NCNBjfr0zLE1mCMZ
bVJQ==
X-Received: by 10.180.91.12 with SMTP id ca12mr10108725wib.4.1441919544106;
Thu, 10 Sep 2015 14:12:24 -0700 (PDT)
Received: from localhost.localdomain ([89.202.204.147])
by smtp.gmail.com with ESMTPSA id
hr17sm11202910wib.16.2015.09.10.14.12.22
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
Thu, 10 Sep 2015 14:12:23 -0700 (PDT)
From: Angelo Compagnucci
To: buildroot@buildroot.org
Date: Thu, 10 Sep 2015 23:12:10 +0200
Message-Id: <1441919530-5421-1-git-send-email-angelo.compagnucci@gmail.com>
X-Mailer: git-send-email 1.9.1
Subject: [Buildroot] [RFC v2] support/misc: Adding Vagrant file for
provisioning
X-BeenThere: buildroot@busybox.net
X-Mailman-Version: 2.1.18-1
Precedence: list
List-Id: Discussion and development of buildroot
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
MIME-Version: 1.0
Errors-To: buildroot-bounces@busybox.net
Sender: "buildroot"
This patch adds a Vagrant file to buildroot. With this file
you can provision a complete buildroot developing environment
in minutes on all major platforms.
Signed-off-by: Angelo Compagnucci
---
Changelog:
v1->v2:
* Autodetecting of latest buildroot version from CHANGES file.
* Better documentation
docs/manual/getting.txt | 14 ++++++++++++++
docs/website/download.html | 16 ++++++++++++++++
support/misc/Vagrantfile | 47 ++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 77 insertions(+)
create mode 100644 support/misc/Vagrantfile
diff --git a/docs/manual/getting.txt b/docs/manual/getting.txt
index 3437f93..8b3ebb0 100644
--- a/docs/manual/getting.txt
+++ b/docs/manual/getting.txt
@@ -10,6 +10,20 @@ November. Release numbers are in the format YYYY.MM, so for example
Release tarballs are available at http://buildroot.org/downloads/[].
+An official Vagrantfile is distributed within buildroot for your needs.
+If you want to setup an isolated buildroot environment on Linux or
+Mac Os X, paste this line onto your terminal:
+
+--------------------
+curl -O http://git.buildroot.net/buildroot/tree/support/misc/Vagrantfile; vagrant up
+--------------------
+
+If you are on windows, paste this into your powershell:
+
+--------------------
+Invoke-WebRequest http://git.buildroot.net/buildroot/tree/support/misc/Vagrantfile -OutFile Vagrantfile; vagrant up
+--------------------
+
If you want to follow development, you can use the daily snapshots or
make a clone of the Git repository. Refer to the
http://buildroot.org/download[Download page] of the Buildroot website
diff --git a/docs/website/download.html b/docs/website/download.html
index ef87b1c..7d3fd1b 100644
--- a/docs/website/download.html
+++ b/docs/website/download.html
@@ -32,6 +32,22 @@ This and earlier releases (and their PGP signatures) can always be downloaded fr
+
+An official Vagrantfile is distributed within buildroot for your needs.
+If you want to setup an isolated buildroot environment on Linux or
+Mac Os X, paste this line onto your terminal:
+
+
+curl -O http://git.buildroot.net/buildroot/tree/support/misc/Vagrantfile; vagrant up
+
+
+If you are on windows, paste this into your powershell:
+
+
+Invoke-WebRequest http://git.buildroot.net/buildroot/tree/support/misc/Vagrantfile -OutFile Vagrantfile; vagrant up
+
+
+
You can also obtain daily snapshots of the latest Buildroot source tree if you
want to follow development, but cannot or do not wish to use Git.
diff --git a/support/misc/Vagrantfile b/support/misc/Vagrantfile
new file mode 100644
index 0000000..36cb3e0
--- /dev/null
+++ b/support/misc/Vagrantfile
@@ -0,0 +1,47 @@
+################################################################################
+#
+# Vagrantfile
+#
+################################################################################
+
+### Change here for more memory/cores or different version ###
+VM_MEMORY=1024
+VM_CORES=1
+
+require 'open-uri'
+open("http://git.buildroot.net/buildroot/plain/CHANGES") do |f|
+ BUILDROOT_VERSION=f.read.lines.first.split(",")[0]
+end
+
+$sudo_script = <