commit 8909b17f62e224af7fa830fe03e993e3db6960c2 Author: michirod Date: Fri Apr 9 14:56:53 2021 +0200 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..deeb2d7 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# meta-m4ss + +Yocto Distro layer for M4SS diff --git a/conf/distro/m4ss.conf b/conf/distro/m4ss.conf new file mode 100644 index 0000000..736d3a9 --- /dev/null +++ b/conf/distro/m4ss.conf @@ -0,0 +1,33 @@ +# Use Poky as base +require conf/distro/poky.conf + +DISTRO = "m4ss-linux" +DISTRO_VERSION = "1.0" +DISTRO_NAME = "M4SS Embedded Linux" +SDK_VENDOR = "-m4sssdk" +SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}" + +TARGET_VENDOR = "-m4ss" + +DISTRO_FEATURES_append = " virtualization" + +DISTRO_FEATURES_append = " systemd" +VIRTUAL-RUNTIME_init_manager = "systemd" +DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit" +VIRTUAL-RUNTIME_initscripts = "" + +CORE_IMAGE_EXTRA_INSTALL += " \ + init-configuration \ + network-configuration \ + drive-configuration \ + wireguard-tools \ + docker \ +" + +#IMAGE_INSTALL_append = " libstdc++" +#TOOLCHAIN_TARGET_TASK += "libc++-dev" +#TOOLCHAIN_HOST_TASK_append = ' nativesdk-ninja' +# +#hostname_pn-base-files = "cubbit-cell.local" +# +#DISTRO_FEATURES_append = " zeroconf" diff --git a/conf/layer.conf b/conf/layer.conf new file mode 100644 index 0000000..d3b52a3 --- /dev/null +++ b/conf/layer.conf @@ -0,0 +1,14 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have a recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend \ + ${LAYERDIR}/classes/*.bbclass \ +" + +BBFILE_COLLECTIONS += "m4ss" +BBFILE_PATTERN_m4ss = "^${LAYERDIR}/" +BBFILE_PRIORITY_m4ss = "7" + +LAYERDEPENDS_m4ss = "core yocto intel virtualization-layer mender"