From 2cc61fa593b49fd2e29a90b8c731d52336b3e76f Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Thu, 27 Oct 2016 16:05:04 -0500
Subject: [PATCH] bb.org: stetch add wayland (wip)

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 configs/bb.org-debian-stretch-iot-v4.9.conf   |   2 +
 .../bb.org-debian-stretch-wayland-v4.4.conf   | 139 ++++++++++++++++++
 publish/rcn-ee_bb.org-stable.sh               |  33 +++--
 3 files changed, 164 insertions(+), 10 deletions(-)
 create mode 100644 configs/bb.org-debian-stretch-wayland-v4.4.conf

diff --git a/configs/bb.org-debian-stretch-iot-v4.9.conf b/configs/bb.org-debian-stretch-iot-v4.9.conf
index d6c6efe76..f8b8ffacd 100644
--- a/configs/bb.org-debian-stretch-iot-v4.9.conf
+++ b/configs/bb.org-debian-stretch-iot-v4.9.conf
@@ -32,6 +32,7 @@ deb_include="	\
 	firmware-ti-connectivity	\
 	firmware-zd1211	\
 	git-core	\
+	haveged	\
 	hdparm	\
 	hexedit	\
 	hostapd	\
@@ -103,6 +104,7 @@ rfs_ssh_user_pass="enable"
 ##enable kernel repo: http://repos.rcn-ee.com/(debian|ubuntu)
 repo_rcnee="enable"
 repo_rcnee_pkg_list="	\
+	bb-customizations	\
 	linux-image-4.9.0-rc2-bone0	\
 	nodejs	\
 	rcn-ee-archive-keyring	\
diff --git a/configs/bb.org-debian-stretch-wayland-v4.4.conf b/configs/bb.org-debian-stretch-wayland-v4.4.conf
new file mode 100644
index 000000000..524704bf6
--- /dev/null
+++ b/configs/bb.org-debian-stretch-wayland-v4.4.conf
@@ -0,0 +1,139 @@
+##
+release="stretch"
+image_type="wayland"
+##
+##Debootstrap: https://wiki.debian.org/Debootstrap
+##
+##debootstrap --arch=${deb_arch} --include=${deb_include} --exclude=${deb_exclude} \
+##--components=${deb_components} --foreign ${deb_codename} /tmp/tmp.dir/ http://${deb_mirror}
+##
+##Debian Jessie armhf
+##
+deb_distribution="debian"
+deb_codename="stretch"
+deb_arch="armhf"
+#
+deb_include="	\
+	apache2	\
+	apt-transport-https	\
+	avahi-daemon	\
+	bash-completion	\
+	bc	\
+	bluetooth	\
+	ca-certificates	\
+	connman	\
+	curl	\
+	dosfstools	\
+	firmware-atheros	\
+	firmware-brcm80211	\
+	firmware-libertas	\
+	firmware-misc-nonfree	\
+	firmware-realtek	\
+	firmware-ti-connectivity	\
+	firmware-zd1211	\
+	git-core	\
+	haveged	\
+	hdparm	\
+	hexedit	\
+	hostapd	\
+	htop	\
+	i2c-tools	\
+	initramfs-tools	\
+	iperf	\
+	iw	\
+	libncurses5-dev	\
+	libnss-mdns	\
+	libtool	\
+	libdbus-1-dev	\
+	libusb-1.0-0-dev	\
+	linux-base	\
+	linux-cpupower	\
+	locales	\
+	lshw	\
+	lsof	\
+	lzma	\
+	lzop	\
+	memtester	\
+	openssh-server	\
+	pastebinit	\
+	rfkill	\
+	rsync	\
+	screen	\
+	ssl-cert	\
+	sudo	\
+	systemd	\
+	tmux	\
+	u-boot-tools	\
+	udhcpd	\
+	usb-modeswitch	\
+	usbutils	\
+	vim	\
+	weston	\
+	wget	\
+	wireless-tools	\
+	wpasupplicant	\
+"
+
+#
+deb_exclude=""
+#
+deb_components="main contrib non-free"
+deb_mirror="deb.debian.org/debian/"
+##
+##Some packages fail to install via debootstrap: deb_additional_pkgs="<comma|space>"
+##
+#python-2.7: due to: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769106
+#
+deb_additional_pkgs=""
+
+##
+rfs_username="debian"
+rfs_fullname="Demo User"
+rfs_password="temppwd"
+rfs_hostname="beaglebone"
+rfs_startup_scripts="enable"
+rfs_opt_scripts="https://github.com/RobertCNelson/boot-scripts"
+rfs_default_desktop=""
+rfs_desktop_background=""
+rfs_default_locale="en_US.UTF-8"
+rfs_etc_dogtag="BeagleBoard.org Debian Image"
+rfs_console_banner="Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian"
+rfs_console_user_pass="enable"
+rfs_ssh_banner="Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian"
+rfs_ssh_user_pass="enable"
+##
+##enable kernel repo: http://repos.rcn-ee.com/(debian|ubuntu)
+repo_rcnee="enable"
+repo_rcnee_pkg_list="	\
+	bb-customizations	\
+	dsptop	\
+	firmware-am57xx-opencl-monitor	\
+	ipumm-dra7xx-installer	\
+	linux-image-4.4.27-ti-r62	\
+	nodejs	\
+	rcn-ee-archive-keyring	\
+	ti-c6000-cgt-v8.1.x-installer	\
+	ti-llvm-3.6	\
+	ti-opencl	\
+	ti-pru-cgt-installer	\
+	ti-wlconf	\
+	tiomapconf	\
+	vpdma-dra7xx-installer	\
+"
+
+##
+##nodejs: https://github.com/nodesource/distributions
+#repo_nodesource="node_0.12"
+repo_nodesource="node_4.x"
+#repo_nodesource="node_6.x"
+repo_nodesource_dist="jessie"
+##
+repo_rcnee_pkg_version="4.4.27-ti-r62"
+include_firmware="enable"
+#
+chroot_COPY_SETUP_SDCARD="enable"
+chroot_before_hook=""
+chroot_after_hook=""
+chroot_script="beagleboard.org-stretch.sh"
+chroot_post_uenv_txt=""
+chroot_tarball="enable"
diff --git a/publish/rcn-ee_bb.org-stable.sh b/publish/rcn-ee_bb.org-stable.sh
index a8b203db0..07d396ec9 100755
--- a/publish/rcn-ee_bb.org-stable.sh
+++ b/publish/rcn-ee_bb.org-stable.sh
@@ -23,6 +23,7 @@ if [ ! -f jenkins.build ] ; then
 ./RootStock-NG.sh -c seeed-debian-jessie-lxqt-4gb-v4.4
 ./RootStock-NG.sh -c seeed-debian-jessie-iot-v4.4
 ./RootStock-NG.sh -c bb.org-debian-stretch-iot-v4.9
+./RootStock-NG.sh -c bb.org-debian-stretch-wayland-v4.4
 else
 	mkdir -p ${DIR}/deploy/ || true
 fi
@@ -37,6 +38,7 @@ fi
 debian_jessie_seeed_lxqt_4gb="debian-8.6-seeed-lxqt-4gb-armhf-${time}"
      debian_jessie_seeed_iot="debian-8.6-seeed-iot-armhf-${time}"
           debian_stretch_iot="debian-stretch-iot-armhf-${time}"
+      debian_stretch_wayland="debian-stretch-wayland-armhf-${time}"
 
 archive="xz -z -8"
 
@@ -217,17 +219,23 @@ base_rootfs="${debian_stretch_iot}" ; blend="stretch-iot" ; extract_base_rootfs
 
 options="--img-4gb bone-\${base_rootfs}       ${beaglebone}"                 ; generate_img
 
+###stretch wayland image
+base_rootfs="${debian_stretch_wayland}" ; blend="stretch-wayland" ; extract_base_rootfs
+
+options="--img-4gb bbx15-\${base_rootfs}      ${beagle_x15}"                 ; generate_img
+
 ###archive *.tar
-base_rootfs="${debian_wheezy_machinekit}"     ; blend="machinekit"     ; archive_base_rootfs
-base_rootfs="${debian_jessie_machinekit}"     ; blend="machinekit"     ; archive_base_rootfs
-base_rootfs="${debian_jessie_lxqt_4gb}"       ; blend="lxqt-4gb"       ; archive_base_rootfs
-base_rootfs="${debian_jessie_lxqt_2gb}"       ; blend="lxqt-2gb"       ; archive_base_rootfs
-base_rootfs="${debian_jessie_lxqt_xm_4gb}"    ; blend="lxqt-xm-4gb"    ; archive_base_rootfs
-base_rootfs="${debian_jessie_iot}"            ; blend="iot"            ; archive_base_rootfs
-base_rootfs="${debian_jessie_console}"        ; blend="console"        ; archive_base_rootfs
-base_rootfs="${debian_jessie_seeed_lxqt_4gb}" ; blend="seeed-lxqt-4gb" ; archive_base_rootfs
-base_rootfs="${debian_jessie_seeed_iot}"      ; blend="seeed-iot"      ; archive_base_rootfs
-base_rootfs="${debian_stretch_iot}"           ; blend="stretch-iot"    ; archive_base_rootfs
+base_rootfs="${debian_wheezy_machinekit}"     ; blend="machinekit"      ; archive_base_rootfs
+base_rootfs="${debian_jessie_machinekit}"     ; blend="machinekit"      ; archive_base_rootfs
+base_rootfs="${debian_jessie_lxqt_4gb}"       ; blend="lxqt-4gb"        ; archive_base_rootfs
+base_rootfs="${debian_jessie_lxqt_2gb}"       ; blend="lxqt-2gb"        ; archive_base_rootfs
+base_rootfs="${debian_jessie_lxqt_xm_4gb}"    ; blend="lxqt-xm-4gb"     ; archive_base_rootfs
+base_rootfs="${debian_jessie_iot}"            ; blend="iot"             ; archive_base_rootfs
+base_rootfs="${debian_jessie_console}"        ; blend="console"         ; archive_base_rootfs
+base_rootfs="${debian_jessie_seeed_lxqt_4gb}" ; blend="seeed-lxqt-4gb"  ; archive_base_rootfs
+base_rootfs="${debian_jessie_seeed_iot}"      ; blend="seeed-iot"       ; archive_base_rootfs
+base_rootfs="${debian_stretch_iot}"           ; blend="stretch-iot"     ; archive_base_rootfs
+base_rootfs="${debian_stretch_wayland}"       ; blend="stretch-wayland" ; archive_base_rootfs
 
 ###archive *.img
 base_rootfs="${debian_wheezy_machinekit}" ; blend="machinekit"
@@ -298,6 +306,11 @@ base_rootfs="${debian_stretch_iot}" ; blend="stretch-iot"
 
 wfile="bone-\${base_rootfs}-4gb"       ; archive_img
 
+#
+base_rootfs="${debian_stretch_wayland}" ; blend="stretch-wayland"
+
+wfile="bbx15-\${base_rootfs}-4gb"       ; archive_img
+
 __EOF__
 
 chmod +x ${DIR}/deploy/gift_wrap_final_images.sh
-- 
GitLab