Initial support for build weston for mtk.

Change-Id: Iabfb2f883d0049fc103c143705c9ee253b945282
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..24715bd
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+weston-mtk (2.0.0-1) mendel-chef; urgency=medium
+
+  * Initial release
+
+ -- Coral <coral-support@google.com>  Tue, 25 Jun 2019 10:45:53 -0800
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..d2a22cf
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,56 @@
+Source: weston-mtk
+Section: x11
+Priority: optional
+Maintainer: Coral <coral-support@google.com>
+Build-Depends:
+ debhelper (>= 10),
+ quilt,
+ pkg-config,
+ libpixman-1-dev (>= 0.25.2),
+ libpng-dev,
+ libjpeg-dev,
+ libdrm2,
+ libdrm-dev,
+ libcolord-dev (>= 0.1.27),
+ mesa-common-dev,
+ libglu1-mesa-dev,
+ libegl1-mesa-dev (>= 9.0~),
+ libgles2-mesa-dev (>= 9.0~),
+ libwayland-dev (>= 1.11.91),
+ libxcb1-dev,
+ libxcb-composite0-dev,
+ libxcb-xfixes0-dev,
+ libxcb-xkb-dev,
+ libx11-xcb-dev,
+ libx11-dev,
+ libudev-dev (>= 136),
+ libgbm-dev (>= 10.2),
+ libxkbcommon-dev (>= 0.3.0),
+ libcairo2-dev (>= 1.10.0),
+ libpango1.0-dev,
+ libgdk-pixbuf2.0-dev,
+ libxcursor-dev,
+ libmtdev-dev,
+ libpam0g-dev,
+ libvpx-dev,
+ libsystemd-dev,
+ libinput-dev (>= 0.8.0),
+ wayland-protocols (>= 1.7),
+Standards-Version: 4.1.1
+
+Package: weston-mtk
+Section: libdevel
+Architecture: any
+Priority: extra
+Depends:
+ libinput10,
+ libxcb-shape0,
+ libxcb-composite0,
+ ${shlibs:Depends},
+ ${misc:Depends}
+Multi-Arch: foreign
+Provides: weston
+Conflicts: weston
+Description: Weston compositor w/ MTK support.
+ Patched version of Weston compositor, with
+ extra support for the MTK platform.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ff62785
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,43 @@
+Upstream-Name: weston-mtk
+Upstream-Contact: wayland-devel@lists.freedesktop.org
+Source: https://wayland.freedesktop.org/releases/
+
+Files: debian/*
+Copyright: © 2016 Héctor Orón Martínez <zumbi@debian.org>
+License: Expat
+
+Files: *
+Copyright: © 2008-2013 Kristian Høgsberg
+		   © 2010-2013 Intel Corporation
+		   © 2013      Rafael Antognolli
+		   © 2013      Jasper St. Pierre
+		   © 2014      Jonas Ådahl
+		   © 2014      Jason Ekstrand
+		   © 2014-2015 Collabora, Ltd.
+		   © 2015      Red Hat Inc.
+License: Expat
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice (including the next
+paragraph) shall be included in all copies or substantial portions of the
+Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+---
+
+The above is the version of the MIT "Expat" License used by X.org:
+
+    http://cgit.freedesktop.org/xorg/xserver/tree/COPYING
diff --git a/debian/etc/xdg/weston/weston.ini b/debian/etc/xdg/weston/weston.ini
new file mode 100644
index 0000000..8fde5e3
--- /dev/null
+++ b/debian/etc/xdg/weston/weston.ini
@@ -0,0 +1,15 @@
+[core]
+shell=desktop-shell.so
+xwayland=true
+
+[shell]
+background-image=/usr/share/weston/background.png
+background-type=scale
+allow-zap=false
+
+[keyboard]
+vt-switching=true
+
+[output]
+name=HDMI-A-1
+mode=1920x1080
diff --git a/debian/lib/systemd/system/weston.service b/debian/lib/systemd/system/weston.service
new file mode 100644
index 0000000..01057b4
--- /dev/null
+++ b/debian/lib/systemd/system/weston.service
@@ -0,0 +1,40 @@
+[Unit]
+Description=Weston Wayland Compositor (on tty7)
+RequiresMountsFor=/run
+Conflicts=getty@tty7.service plymouth-quit.service
+After=systemd-user-sessions.service getty@tty7.service plymouth-quit-wait.service
+
+[Service]
+User=mendel
+WorkingDirectory=/home/mendel
+PermissionsStartOnly=true
+Restart=always
+
+# Log us in via PAM so we get our XDG & co. environment and
+# are treated as logged in so we can use the tty:
+PAMName=login
+
+# Grab tty7
+UtmpIdentifier=tty7
+TTYPath=/dev/tty7
+TTYReset=yes
+TTYVHangup=yes
+TTYVTDisallocate=yes
+
+# stderr to journal so our logging doesn't get thrown into /dev/null
+StandardOutput=tty
+StandardInput=tty
+StandardError=journal
+
+EnvironmentFile=-/etc/default/weston
+
+# Weston does not successfully change VT, nor does systemd place us on
+# the VT it just activated for us. Switch manually:
+ExecStartPre=/bin/chvt 7
+ExecStart=/usr/bin/weston-launch -- --log=${XDG_RUNTIME_DIR}/weston.log
+
+IgnoreSIGPIPE=no
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644
index 0000000..39364ff
--- /dev/null
+++ b/debian/lintian-overrides
@@ -0,0 +1,5 @@
+weston-mtk: package-name-doesnt-match-sonames libweston-2-0 libweston-desktop-2-0
+weston-mtk: non-empty-dependency_libs-in-la-file *
+weston-mtk: non-dev-pkg-with-shlib-symlink *
+weston-mtk: shlib-in-multi-arch-foreign-package *
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..da2effd
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,11 @@
+#!/usr/bin/make -f
+
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- CFLAGS="-I/usr/include/libdrm" --enable-demo-clients-install --enable-xwayland --enable-drm-compositor --enable-wayland-compositor
+
+override_dh_auto_test:
+	true
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/weston-imx.install b/debian/weston-imx.install
new file mode 100644
index 0000000..b2d36bb
--- /dev/null
+++ b/debian/weston-imx.install
@@ -0,0 +1,2 @@
+debian/etc /
+debian/lib /