Initial commit

Signed-off-by: Richard Weinberger <richard@nod.at>
diff --git a/meta-itsyndikat/conf/distro/its.conf b/meta-itsyndikat/conf/distro/its.conf
new file mode 100644
index 0000000..faeba3e
--- /dev/null
+++ b/meta-itsyndikat/conf/distro/its.conf
@@ -0,0 +1,21 @@
+require conf/distro/poky.conf
+
+MAINTAINER = "Richard Weinberger <richard@sigma-star.at>"
+
+INHERIT += "buildstats"
+INHERIT += "image-prelink"
+INHERIT += "image-mklibs"
+
+DISTRO = "its"
+DISTRO_NAME = "itsyndikat"
+DISTRO_VERSION = "v1"
+DISTRO_CODENAME = "sheep"
+
+DISTRO_FEATURES += " pam systemd audit wifi"
+
+DISTRO_FEATURES_remove = " 3g bluetooth irda nfc x11"
+
+DISTRO_FEATURES_BACKFILL_CONSIDERED += " sysvinit"
+VIRTUAL-RUNTIME_init_manager = "systemd"
+VIRTUAL-RUNTIME_dev_manager = "udev"
+VIRTUAL-RUNTIME_initscripts = ""
diff --git a/meta-itsyndikat/conf/layer.conf b/meta-itsyndikat/conf/layer.conf
new file mode 100644
index 0000000..cf1863a
--- /dev/null
+++ b/meta-itsyndikat/conf/layer.conf
@@ -0,0 +1,13 @@
+# We have a conf and classes directory, add to BBPATH
+BBPATH .= ":${LAYERDIR}"
+
+# We have recipes-* directories, add to BBFILES
+BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
+            ${LAYERDIR}/recipes-*/*/*.bbappend"
+
+BBFILE_COLLECTIONS += "meta-itsyndikat"
+BBFILE_PATTERN_meta-itsyndikat = "^${LAYERDIR}/"
+BBFILE_PRIORITY_meta-itsyndikat = "6"
+
+LAYERDEPENDS_meta-itsyndikat = "core"
+LAYERSERIES_COMPAT_meta-itsyndikat = "hardknott"
diff --git a/meta-itsyndikat/recipes-core/systemd-conf/files/eth.network b/meta-itsyndikat/recipes-core/systemd-conf/files/eth.network
new file mode 100644
index 0000000..737986d
--- /dev/null
+++ b/meta-itsyndikat/recipes-core/systemd-conf/files/eth.network
@@ -0,0 +1,5 @@
+[Match]
+Name=eth*
+
+[Network]
+DHCP=v4
diff --git a/meta-itsyndikat/recipes-core/systemd-conf/systemd-conf_%.bbappend b/meta-itsyndikat/recipes-core/systemd-conf/systemd-conf_%.bbappend
new file mode 100644
index 0000000..d36687a
--- /dev/null
+++ b/meta-itsyndikat/recipes-core/systemd-conf/systemd-conf_%.bbappend
@@ -0,0 +1,14 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += " \
+	file://eth.network \
+"
+
+FILES_${PN} += " \
+	${sysconfdir}/systemd/network/eth.network \
+"
+
+do_install_append() {
+	install -d ${D}${sysconfdir}/systemd/network
+	install -m 0644 ${WORKDIR}/eth.network ${D}${sysconfdir}/systemd/network
+}
diff --git a/meta-itsyndikat/recipes-core/systemd/systemd_%.bbappend b/meta-itsyndikat/recipes-core/systemd/systemd_%.bbappend
new file mode 100644
index 0000000..2599176
--- /dev/null
+++ b/meta-itsyndikat/recipes-core/systemd/systemd_%.bbappend
@@ -0,0 +1 @@
+PACKAGECONFIG += " networkd resolved kmod pam"
diff --git a/meta-itsyndikat/recipes-its/images/its-image.bb b/meta-itsyndikat/recipes-its/images/its-image.bb
new file mode 100644
index 0000000..7257dd7
--- /dev/null
+++ b/meta-itsyndikat/recipes-its/images/its-image.bb
@@ -0,0 +1,45 @@
+DESCRIPTION = "itsyndikat image"
+
+require recipes-core/images/core-image-minimal.bb
+
+LICENSE = "MIT"
+
+RPI_STUFF = " \
+	linux-firmware-rpidistro-bcm43430 \
+	linux-firmware-rpidistro-bcm43455 \
+	linux-firmware-rpidistro-bcm43456 \
+	python3-image \
+	python3-pip \
+	python3-spidev \
+	raspi-gpio \
+	rpi-gpio \
+	udev-rules-rpi \
+	"
+
+IMAGE_INSTALL += " \
+	bash \
+	bash-completion \
+	coreutils \
+	glibc-utils \
+	kernel-modules \
+	less \
+	localedef \
+	ncurses \
+	ncurses-terminfo \
+	ncurses-tools \
+	openssh \
+	procps \
+	udev-extraconf \
+	util-linux \
+	wireless-regdb-static \
+	wpa-supplicant \
+	"
+
+IMAGE_INSTALL += "${RPI_STUFF}"
+
+IMAGE_FEATURES += " \
+	allow-empty-password \
+	empty-root-password \
+	package-management \
+	splash \
+"