From f6877fc5b609d43e861713f7afa6e5f1c6815fcf Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Sat, 15 Apr 2017 11:01:54 -0500
Subject: [PATCH] bb.org: stretch: add lxqt-xm for xm

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 configs/bb.org-debian-stretch-lxqt-v4.4.conf |   1 +
 configs/bb.org-debian-stretch-lxqt-xm.conf   | 165 +++++++++++++++++++
 publish/rcn-ee_bb.org-stable.sh              |  15 ++
 3 files changed, 181 insertions(+)
 create mode 100644 configs/bb.org-debian-stretch-lxqt-xm.conf

diff --git a/configs/bb.org-debian-stretch-lxqt-v4.4.conf b/configs/bb.org-debian-stretch-lxqt-v4.4.conf
index ec8b960f6..c4fc6a4c3 100644
--- a/configs/bb.org-debian-stretch-lxqt-v4.4.conf
+++ b/configs/bb.org-debian-stretch-lxqt-v4.4.conf
@@ -76,6 +76,7 @@ deb_include="	\
 	udhcpd	\
 	usb-modeswitch	\
 	usbutils	\
+	v4l-utils	\
 	vim	\
 	wget	\
 	wireless-tools	\
diff --git a/configs/bb.org-debian-stretch-lxqt-xm.conf b/configs/bb.org-debian-stretch-lxqt-xm.conf
new file mode 100644
index 000000000..336f134dd
--- /dev/null
+++ b/configs/bb.org-debian-stretch-lxqt-xm.conf
@@ -0,0 +1,165 @@
+##
+release="stretch"
+image_type="lxqt-xm"
+##
+##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="	\
+	at	\
+	apache2	\
+	apt-transport-https	\
+	automake	\
+	avahi-utils	\
+	bash-completion	\
+	bc	\
+	bluetooth	\
+	build-essential	\
+	ca-certificates	\
+	can-utils	\
+	curl	\
+	device-tree-compiler	\
+	dosfstools	\
+	dnsmasq	\
+	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	\
+	libiio-utils	\
+	libncurses5-dev	\
+	libnss-mdns	\
+	libtool	\
+	libdbus-1-dev	\
+	libusb-1.0-0-dev	\
+	linux-base	\
+	linux-cpupower	\
+	locales	\
+	lshw	\
+	lsof	\
+	lzma	\
+	lzop	\
+	memtester	\
+	net-tools	\
+	openssh-server	\
+	pastebinit	\
+	pkg-config	\
+	python-dev	\
+	rfkill	\
+	rsync	\
+	screen	\
+	ssl-cert	\
+	sudo	\
+	systemd	\
+	tmux	\
+	u-boot-tools	\
+	udhcpd	\
+	usb-modeswitch	\
+	usbutils	\
+	v4l-utils	\
+	vim	\
+	wget	\
+	wireless-tools	\
+	wpasupplicant	\
+"
+
+#
+deb_exclude=""
+#
+deb_components="main contrib non-free"
+deb_mirror=""
+##
+##Some packages fail to install via debootstrap: deb_additional_pkgs="<comma|space>"
+##
+#
+deb_additional_pkgs="	\
+	chromium	\
+	lightdm	\
+	lxqt-about	\
+	lxqt-admin	\
+	lxqt-common	\
+	lxqt-config	\
+	lxqt-panel	\
+	lxqt-qtplugin	\
+	lxqt-session	\
+	lxqt-sudo	\
+	lxqt-runner	\
+	pcmanfm-qt	\
+	qterminal	\
+	xserver-xorg-video-fbdev	\
+	xserver-xorg-video-omap	\
+"
+
+##
+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="lxqt"
+rfs_desktop_background="/opt/scripts/images/beaglebg.jpg"
+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-cape-overlays	\
+	bb-customizations	\
+	bb-node-red-installer	\
+	bb-wl18xx-firmware	\
+	bone101	\
+	bonescript	\
+	c9-core-installer	\
+	connman	\
+	doc-beaglebone-getting-started	\
+	doc-beaglebonegreen-getting-started	\
+	doc-seeed-bbgw-getting-started	\
+	linux-image-4.9.22-armv7-x4	\
+	mjpg-streamer	\
+	nodejs	\
+	rcn-ee-archive-keyring	\
+	roboticscape	\
+"
+
+##
+##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.9.22-armv7-x4"
+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 86cb37890..08c83c8b5 100755
--- a/publish/rcn-ee_bb.org-stable.sh
+++ b/publish/rcn-ee_bb.org-stable.sh
@@ -25,6 +25,8 @@ if [ ! -f jenkins.build ] ; then
 ./RootStock-NG.sh -c seeed-debian-jessie-iot-v4.4
 ./RootStock-NG.sh -c bb.org-debian-jessie-oemflasher
 ./RootStock-NG.sh -c bb.org-debian-stretch-iot-v4.4
+./RootStock-NG.sh -c bb.org-debian-stretch-lxqt-v4.4
+./RootStock-NG.sh -c bb.org-debian-stretch-lxqt-xm
 ./RootStock-NG.sh -c bb.org-debian-stretch-wayland-v4.4
 else
 	mkdir -p ${DIR}/deploy/ || true
@@ -45,6 +47,7 @@ debian_jessie_seeed_lxqt_4gb="debian-8.7-seeed-lxqt-4gb-armhf-${time}"
 
           debian_stretch_iot="debian-stretch-iot-armhf-${time}"
          debian_stretch_lxqt="debian-stretch-lxqt-armhf-${time}"
+      debian_stretch_lxqt_xm="debian-stretch-lxqt-xm-armhf-${time}"
       debian_stretch_wayland="debian-stretch-wayland-armhf-${time}"
 
 xz_img="xz -z -8"
@@ -244,6 +247,11 @@ options="--img-4gb bone-\${base_rootfs}       ${beaglebone} ${overlay}"
 options="--img-4gb bbx15-\${base_rootfs}      ${beagle_x15}"                           ; generate_img
 options="--img-4gb BBB-blank-\${base_rootfs}  ${beaglebone} ${overlay} --emmc-flasher" ; generate_img
 
+###lxqt image (stretch):
+base_rootfs="${debian_stretch_lxqt_xm}" ; blend="stretch-lxqt-xm" ; extract_base_rootfs
+
+options="--img-4gb bbxm-\${base_rootfs}  ${beagle_xm}" ; generate_img
+
 ### wayland image (stretch):
 base_rootfs="${debian_stretch_wayland}" ; blend="stretch-wayland" ; extract_base_rootfs
 
@@ -262,6 +270,8 @@ base_rootfs="${debian_jessie_oemflasher}"     ; blend="oemflasher"      ; archiv
 base_rootfs="${debian_jessie_seeed_iot}"      ; blend="seeed-iot"       ; archive_base_rootfs
 base_rootfs="${debian_jessie_seeed_lxqt_4gb}" ; blend="seeed-lxqt-4gb"  ; archive_base_rootfs
 base_rootfs="${debian_stretch_iot}"           ; blend="stretch-iot"     ; archive_base_rootfs
+base_rootfs="${debian_stretch_lxqt}"          ; blend="stretch-lxqt"    ; archive_base_rootfs
+base_rootfs="${debian_stretch_lxqt_xm}"       ; blend="stretch-lxqt-xm" ; archive_base_rootfs
 base_rootfs="${debian_stretch_wayland}"       ; blend="stretch-wayland" ; archive_base_rootfs
 
 ###archive *.img
@@ -347,6 +357,11 @@ wfile="bone-\${base_rootfs}-4gb"           ; archive_img
 wfile="BBB-blank-\${base_rootfs}-4gb"      ; archive_img
 wfile="bbx15-\${base_rootfs}-4gb"          ; archive_img
 
+###lxqt-xm image (stretch):
+base_rootfs="${debian_stretch_lxqt_xm}" ; blend="stretch-lxqt-xm"
+
+wfile="bbxm-\${base_rootfs}-4gb"      ; archive_img
+
 ### wayland image (stretch):
 base_rootfs="${debian_stretch_wayland}" ; blend="stretch-wayland"
 
-- 
GitLab