Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2014-03-10 00:40:21 +0100
committerPetter Reinholdtsen <pere@hungry.com>2014-03-10 00:40:21 +0100
commit268a0df64d5ef38e4d98b1ff46e762006c894656 (patch)
treec49ea66872f06e479d1013fbd982d4bc31016945 /bin
parentd069a4fe5346f4309afc5d70290d82cde6fca556 (diff)
parent62515a0584c90de7458cac3612af1306105e1986 (diff)
Merge from Nick.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mk_freedombox_image24
1 files changed, 20 insertions, 4 deletions
diff --git a/bin/mk_freedombox_image b/bin/mk_freedombox_image
index 8c21120..5c25fab 100755
--- a/bin/mk_freedombox_image
+++ b/bin/mk_freedombox_image
@@ -19,17 +19,23 @@ set -x # Enable debugging
IMAGE=$1
-MIRROR=http://http.debian.net/debian
-SUITE=jessie
-
+# Locate vmdebootstrap program fetched in Makefile
basedir=`pwd`
+vendor_dir="${basedir}/vendor"
+vmdebootstrap_dir="${vendor_dir}/vmdebootstrap"
+
+MIRROR=http://cdn.debian.net/debian
+SUITE=jessie
# Packages to install in all FreedomBox environments
base_pkgs="apt base-files ifupdown initramfs-tools \
logrotate module-init-tools netbase rsyslog udev debian-archive-keyring"
# Packages needed on the dreamplug
-dreamplug_pkgs="linux-image-kirkwood u-boot-tools u-boot uboot-mkimage"
+dreamplug_pkgs="linux-image-kirkwood u-boot-tools u-boot"
+
+# Packages needed for gui-based self-hosted development
+dev_pkgs="task-xfce-desktop emacs org-mode git mercurial iceweasel ca-certificates"
if [ -z "$ARCHITECTURE" ] ; then
ARCHITECTURE=i386
@@ -65,6 +71,16 @@ case "$MACHINE" in
" ;;
esac
+# allow for lots of extra fun customization options.
+for customization in "$CUSTOMIZATIONS"
+do
+ case "$customization" in
+ development)
+ extra_pkgs="$extra_pkgs $dev_pkgs"
+ ;;
+ esac
+done
+
for p in $base_pkgs $extra_pkgs; do
pkgopts="$pkgopts --package $p"
done