Add mtk ubooot mkimage package.
Change-Id: Idd9dc9ae742204fb6c845cd3e55b92723fb8fc50
diff --git a/arch.mk b/arch.mk
new file mode 100644
index 0000000..b223373
--- /dev/null
+++ b/arch.mk
@@ -0,0 +1,146 @@
+# Copyright 2018 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Preamble. Don't define any targets in this file! This is effectively just a
+# common header where useful global vars go.
+
+LOG := @$(ROOTDIR)/build/log.sh
+
+ifeq (,$(wildcard /etc/dpkg/origins/glinux))
+ifeq (,$(wildcard /google))
+ IS_EXTERNAL ?= true
+endif
+endif
+
+FETCH_PACKAGES ?= false
+ifeq ($(IS_EXTERNAL),)
+ PREBUILT_DOCKER_ROOT ?= /google/data/ro/teams/spacepark/enterprise/kokoro/prod/spacepark/enterprise/docker/
+ FETCH_PBUILDER_DIRECTORY ?= /google/data/ro/teams/spacepark/enterprise/kokoro/prod/spacepark/enterprise/pbuilder/
+ ROOTFS_RAW_CACHE_DIRECTORY ?= /google/data/ro/teams/spacepark/enterprise/kokoro/prod/spacepark/enterprise/rootfs/latest/
+endif
+
+USERSPACE_ARCH ?= arm64
+
+# Architecture specific defines here
+ifeq (armhf,$(USERSPACE_ARCH))
+ QEMU_ARCH := arm
+endif
+
+ifeq (arm64,$(USERSPACE_ARCH))
+ QEMU_ARCH := aarch64
+endif
+
+PACKAGES_EXTRA := \
+ alsa-utils \
+ apt-transport-https \
+ apt-listchanges \
+ apt-utils \
+ aptitude \
+ avahi-daemon \
+ bash-completion \
+ build-essential \
+ cpio \
+ cron \
+ curl \
+ dbus \
+ debconf-i18n \
+ debian-archive-keyring \
+ debian-faq \
+ dialog \
+ dmidecode \
+ dnsmasq \
+ doc-debian \
+ ethtool \
+ file \
+ firmware-atheros \
+ gettext-base \
+ gnupg \
+ hdparm \
+ i2c-tools \
+ ifupdown \
+ init \
+ iptables \
+ iputils-ping \
+ isc-dhcp-client \
+ isc-dhcp-common \
+ kbd \
+ krb5-locales \
+ less \
+ libc++1 \
+ libc++abi1 \
+ libclass-isa-perl \
+ libinput10 \
+ liblockfile-bin \
+ libnss-mdns \
+ libpam-systemd \
+ libswitch-perl \
+ libwayland-cursor0 \
+ libwayland-egl1-mesa \
+ libxcb-composite0 \
+ libxcb-shape0 \
+ libxcursor1 \
+ libxkbcommon0 \
+ linux-base \
+ lm-sensors \
+ locales \
+ logrotate \
+ lrzsz \
+ lsof \
+ man-db \
+ manpages \
+ nano \
+ ncurses-term \
+ net-tools \
+ netbase \
+ netcat-traditional \
+ network-manager \
+ openssh-server \
+ parted \
+ pciutils \
+ psmisc \
+ pulseaudio \
+ python \
+ python-minimal \
+ python2.7 \
+ python3-gst-1.0 \
+ python3-jwt \
+ python3-numpy \
+ python3-pip \
+ python3-reportbug \
+ python3-setuptools \
+ python3-wheel \
+ reportbug \
+ rsync \
+ rsyslog \
+ software-properties-common \
+ sudo \
+ systemd \
+ systemd-sysv \
+ tasksel \
+ telnet \
+ traceroute \
+ unattended-upgrades \
+ unzip \
+ v4l-utils \
+ vim \
+ wamerican \
+ wget \
+ whiptail \
+ wireless-tools \
+ wpasupplicant \
+ xdg-user-dirs \
+ xwayland
+
+BOOT_SIZE_MB := 128
+ROOTFS_SIZE_MB := 4096
diff --git a/bootloader.mk b/bootloader.mk
new file mode 100644
index 0000000..65bbf54
--- /dev/null
+++ b/bootloader.mk
@@ -0,0 +1,24 @@
+# Copyright 2018 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+ifeq ($(ROOTDIR),)
+$(error $$ROOTDIR IS NOT DEFINED -- don\'t forget to source setup.sh)
+endif
+
+include $(ROOTDIR)/build/preamble.mk
+
+bootloader:
+ @echo "Building lk"
+
+.PHONY:: bootloader
diff --git a/packages.mk b/packages.mk
new file mode 100644
index 0000000..2aa3a49
--- /dev/null
+++ b/packages.mk
@@ -0,0 +1,15 @@
+# Copyright 2018 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+$(eval $(call make-pbuilder-bsp-package-target,u-boot-mkimage,bootloader/mtk-tools/u-boot-mkimage))
diff --git a/project.sh b/project.sh
new file mode 100644
index 0000000..2b7d251
--- /dev/null
+++ b/project.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+#
+# Copyright 2018 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+export PROJECT_NAME=mt8167s_excelsior
+export PLATFORM=mtk
+
diff --git a/rootfs.mk b/rootfs.mk
new file mode 100644
index 0000000..e202271
--- /dev/null
+++ b/rootfs.mk
@@ -0,0 +1,18 @@
+# Copyright 2018 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+BSP_BASE_PACKAGES :=
+
+
+BSP_GUI_PACKAGES :=