Skip to content
Snippets Groups Projects
Unverified Commit 29f7c8e1 authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

meta-oniro-blueprints: Remove layer

The layer will be migrated to:
https://booting.oniroproject.org/distro/meta-oniro-blueprints



Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent 204951f8
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 482 deletions
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Introduction
## Description
The `meta-oniro-blueprints` layer contains build metadata for Oniro Project
blueprints.
## Layer dependencies
The `meta-oniro-blueprints` layer depends on the following layers:
* openembedded-core
* URI: https://git.openembedded.org/openembedded-core
* bitbake
* URI: https://git.openembedded.org/bitbake/
* meta-homeassistant
* URI: https://github.com/meta-homeassistant/meta-homeassistant.git
* meta-openembedded
* URI: https://git.openembedded.org/meta-openembedded/
* layers: meta-oe
* meta-raspberrypi
* URI: https://git.yoctoproject.org/git/meta-raspberrypi
* oniro
* URI: https://booting.oniroproject.org/distro/oniro.git
* layers: meta-oniro-core
Note that the dependencies of the above layers should also be taken into
consideration.
# Contributing
## Merge requests
All contributions are to be handled as merge requests in the
[oniro Gitlab repository](https://booting.oniroproject.org/distro/oniro). For
more information on the contributing process, check the `CONRIBUTING.md` file.
## Maintainers
* Andrei Gherzan <andrei.gherzan@huawei.com>
* Eilís Ní Fhlannagáin <elizabeth.flanagan@huawei.com>
* Stefan Schmidt <stefan.schmidt@huawei.com>
# License
This layer is release under the licenses listed in the `LICENSES` root directory.
../SECURITY.md
\ No newline at end of file
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Distro configuration for the dashboard blueprint
require conf/distro/oniro-linux.conf
include conf/distro/include/ha-versions.inc
PREFERRED_VERSION_python3-pymetno = "0.7.0"
DISTRO = "oniro-linux-blueprint-dashboard"
DISTRO_NAME = "Oniro Project Dashboard Blueprint Linux Distro"
# Custom hostnames for easy DNS resolution for this blueprint.
# The gateway would run on a stm32mp1-av96 machine.
hostname_base-files_stm32mp1-av96 = "blueprint-dashboard-gateway"
# With our layer setup we would add any bbappend found from our
# layers.conf. This means blueprint-specific appends would leak
# into the package in our main distribution. To avoid this we
# mask out the blueprint layers in the main distro and unmask
# them only the blueprint distributions.
BBMASK = ""
# Avoid build warning(s) for ununsed extra partitions.
ST_VENDORFS = "0"
ST_USERFS = "0"
# Dynamic weston.ini configuration
WESTON_DYNAMIC_INI = "1"
WESTON_INI_NO_TOOLBAR = "1"
# Mask getty on tty1 to cleanup boot process
SYSTEMD_MASK_GETTY = "tty1"
EPIPHANY_APP = "HomeAssistant"
EPIPHANY_URL = "http://localhost:8123"
EPIPHANY_RDEPENDS = "python3-homeassistant"
EPIPHANY_SERVICE_ENABLED = "1"
WESTON_INI_BACKGROUND_IMAGE = "/usr/share/backgrounds/oniro-logo-small.png"
WESTON_INI_BACKGROUND_COLOR = "0xff0f0026"
WESTON_INI_BACKGROUND_TYPE = "centered"
# SmartHome IoT devices BLE interfaces MAC addresses
SMART_HOME_SENSORS_MAC ??= "C0:BA:DD:06:F0:0D"
SMART_HOME_SWITCH_MAC ??= "C0:BA:DD:06:F0:0E"
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Distro configuration for the dashboard blueprint
require conf/distro/oniro-linux.conf
DISTRO = "oniro-linux-blueprint-gateway"
DISTRO_NAME = "Oniro Project Gateway Blueprint Linux Distro"
# Custom hostnames for easy DNS resolution for this blueprint.
hostname_base-files = "blueprint-gateway"
DISTRO_FEATURES_append = " thread-border-router"
IMAGE_INSTALL_append = "\
packagegroup-thread-br \
packagegroup-thread-client \
mosquitto \
coap \
networkmanager-softap-config \
"
# Avoid build warning(s) for ununsed extra partitions.
ST_VENDORFS = "0"
ST_USERFS = "0"
# With our layer setup we would add any bbappend found from our
# layers.conf. This means blueprint-specific appends would leak
# into the package in our main distribution. To avoid this we
# mask out the blueprint layers in the main distro and unmask
# them only the blueprint distributions.
BBMASK = ""
# If dnsmaq runs as system service started by systemd it clashes with NM, which
# directly calls it.
SYSTEMD_AUTO_ENABLE_pn-dnsmasq = "disable"
# We have the dnsmasq feature disabled for networkmanager in core,
# but we need this for the gateway. Enable it for the blueprint only.
PACKAGECONFIG_append_pn-networkmanager = " dnsmasq"
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Distro configuration for the vending-machine blueprint
require conf/distro/oniro-linux.conf
DISTRO = "oniro-linux-blueprint-vending-machine"
DISTRO_NAME = "Oniro Project Vending-Machine Blueprint Linux Distro"
# With our layer setup we would add any bbappend found from our
# layers.conf. This means blueprint-specific appends would leak
# into the package in our main distribution. To avoid this we
# mask out the blueprint layers in the main distro and unmask
# them only the blueprint distributions.
BBMASK = ""
# Graphics system
DISTRO_FEATURES_remove = "x11"
# Lib configuration needed for some applications in layer
LVGL_CONFIG_LV_MEM_CUSTOM = "1"
LVGL_CONFIG_WAYLAND_HOR_RES ?= "1024"
LVGL_CONFIG_WAYLAND_VER_RES ?= "600"
# Dynamic weston.ini configuration
WESTON_DYNAMIC_INI = "1"
WESTON_INI_NO_TOOLBAR = "1"
WESTON_INI_SHELL_LOCKING = "false"
WESTON_IDLE_TIME = "0"
# I2C support
# See Hardware setup for more details.
ENABLE_I2C_rpi = "1"
KERNEL_MODULE_AUTOLOAD_append_rpi = " i2c-dev i2c-bcm2708"
KERNEL_MODULE_AUTOLOAD_append_seco-intel-b68 = " i2c-dev"
WAVESHARE_1024X600_C_2_1 = "1"
# Mask getty on tty1 to cleanup boot process
SYSTEMD_MASK_GETTY = "tty1"
# Cleanup screen
APPEND_remove = "console=tty0"
APPEND_append = " vt.global_cursor_default=0 quiet"
DISABLE_SPLASH_rpi = "1"
WIC_BOOOTLOADER_TIMEOUT = "0"
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Distro configuration for the dashboard blueprint
require conf/distro/oniro-zephyr.conf
DISTRO = "oniro-zephyr-blueprint-dashboard"
DISTRO_NAME = "Oniro Project Dashboard Blueprint Zephyr Distro"
# With our layer setup we would add any bbappend found from our
# layers.conf. This means blueprint-specific appends would leak
# into the package in our main distribution. To avoid this we
# mask out the blueprint layers in the main distro and unmask
# them only the blueprint distributions.
BBMASK = ""
# SmartHome IoT devices BLE interfaces MAC addresses
SMART_HOME_SENSORS_MAC ??= "C0:BA:DD:06:F0:0D"
SMART_HOME_SWITCH_MAC ??= "C0:BA:DD:06:F0:0E"
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Distro configuration for the dashboard blueprint
require conf/distro/oniro-zephyr.conf
DISTRO = "oniro-zephyr-blueprint-doorlock"
DISTRO_NAME = "Oniro Project Doorlock Blueprint Zephyr Distro"
# With our layer setup we would add any bbappend found from our
# layers.conf. This means blueprint-specific appends would leak
# into the package in our main distribution. To avoid this we
# mask out the blueprint layers in the main distro and unmask
# them only the blueprint distributions.
BBMASK = ""
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Distro configuration for the gateway blueprint
require conf/distro/oniro-zephyr.conf
DISTRO = "oniro-zephyr-blueprint-gateway"
DISTRO_NAME = "Oniro Project Gateway Blueprint Zephyr Distro"
# With our layer setup we would add any bbappend found from our
# layers.conf. This means blueprint-specific appends would leak
# into the package in our main distribution. To avoid this we
# mask out the blueprint layers in the main distro and unmask
# them only the blueprint distributions.
BBMASK = ""
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# Distro configuration for the keypad blueprint
require conf/distro/oniro-zephyr.conf
DISTRO = "oniro-zephyr-blueprint-keypad"
DISTRO_NAME = "Oniro Project Keypad Blueprint Zephyr Distro"
BBMASK = ""
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
# 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 += "oniro-blueprints"
BBFILE_PATTERN_oniro-blueprints = "^${LAYERDIR}/"
BBFILE_PRIORITY_oniro-blueprints = "6"
LAYERDEPENDS_oniro-blueprints = " \
core \
homeassistant \
openembedded-layer \
oniro-core \
oniro-staging \
raspberrypi"
LAYERSERIES_COMPAT_oniro-blueprints = "dunfell"
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
[Unit]
Description=Vending Machine Control Application
[Service]
Type=notify
EnvironmentFile=-/etc/vending-machine.env
ExecStart=/usr/bin/vending-machine-control-application
Restart=always
[Install]
WantedBy=multi-user.target
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
HOMEPAGE = "https://booting.oniroproject.org/distro/components/vending-machine-control-application"
SUMMARY = "Vending Machine control Application"
DESCRIPTION = "Vending machine server for UI app to control IO"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ba963850f6731c74878fe839d227e675"
SRC_URI = "git://booting.oniroproject.org/distro/components/${BPN};protocol=https;branch=main"
SRCREV = "e755ddda4fdd51a90e0448477183fb0bdede62fd"
SRC_URI += "file://${BPN}.service"
S = "${WORKDIR}/git"
DEPENDS="systemd pim435 i2c-tools json-c libwebsockets"
inherit pkgconfig features_check systemd
SYSTEMD_SERVICE_${PN} = "${BPN}.service"
REQUIRED_DISTRO_FEATURES = "systemd"
EXTRA_OEMAKE += "DESTDIR=${D}"
EXTRA_OEMAKE += "sysroot=${RECIPE_SYSROOT}"
VENDING_MACHINE_CONTROL_I2C_BUS ??= "0"
VENDING_MACHINE_CONTROL_I2C_BUS_rpi ?= "1"
VENDING_MACHINE_CONTROL_I2C_BUS_seco-intel-b68 ?= "2"
do_install() {
oe_runmake install
install -d "${D}${systemd_system_unitdir}/"
install -m 0644 "${WORKDIR}/${BPN}.service" "${D}${systemd_system_unitdir}/"
install -d "${D}${sysconfdir}"
echo "VENDING_MACHINE_CONTROL_I2C_BUS=${VENDING_MACHINE_CONTROL_I2C_BUS}" > \
"${D}${sysconfdir}/vending-machine.env"
}
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
[Unit]
Description=Vending Machine UI Application
Requires=weston@root.service
After=weston@root.service
After=vending-machine-control-application.service
[Service]
Environment="WAYLAND_DISPLAY=wayland-0"
Environment="XDG_RUNTIME_DIR=/run/user/0"
ExecStart=/usr/bin/vending-machine-ui-application
Restart=always
[Install]
WantedBy=multi-user.target
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
HOMEPAGE = "https://booting.oniroproject.org/distro/components/vending-machine-ui-application"
SUMMARY = "Vending Machine UI Application"
DESCRIPTION = "Vending machine front end client, it's a native GUI made with LVGL"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ba963850f6731c74878fe839d227e675"
SRC_URI = "git://booting.oniroproject.org/distro/components/${BPN};protocol=https;branch=main"
SRCREV = "3c87c70f679686d69dc5d08ec842daa61ba1f6a7"
SRC_URI += "file://${BPN}.service"
S = "${WORKDIR}/git"
DEPENDS= "json-c libwebsockets lv-drivers lv-lib-png lvgl"
inherit pkgconfig features_check systemd
SYSTEMD_SERVICE_${PN} = "${BPN}.service"
REQUIRED_DISTRO_FEATURES = "systemd wayland"
EXTRA_OEMAKE += "DESTDIR=${D}"
EXTRA_OEMAKE += "sysroot=${RECIPE_SYSROOT}"
do_install() {
oe_runmake install
install -d "${D}${systemd_system_unitdir}/"
install -m 0644 "${WORKDIR}/${BPN}.service" "${D}${systemd_system_unitdir}/"
}
# SPDX-FileCopyrightText: 2021 Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
do_install_append() {
# Install main.conf file and turn on AutoEnable flag
# to bring up BLE controller on boot.
if [ -f ${S}/src/main.conf ]; then
install -m 0644 ${S}/src/main.conf ${D}/${sysconfdir}/bluetooth/
sed -i 's/#AutoEnable=false/AutoEnable=true/g' \
${D}/${sysconfdir}/bluetooth/main.conf
fi
}
[connection]
id=SoftAP
uuid=3b73c72c-be72-4458-9fd7-e8b1d6ee4e8d
type=wifi
autoconnect=true
interface-name=wlan0
permissions=
[wifi]
band=bg
channel=6
mac-address-blacklist=
mode=ap
ssid=Oniro Project WiFi
[wifi-security]
group=ccmp;
key-mgmt=wpa-psk
pairwise=ccmp;
proto=rsn;
psk=12345678
[ipv4]
address1=172.16.47.1/24,172.16.47.1
dns-search=
method=shared
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto
[proxy]
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${ONIRO_COREBASE}/LICENSES/Apache-2.0.txt;md5=ef3dabb8f39493f4ea410bebc1d01755"
SRC_URI = "file://SoftAP.nmconnection"
do_install_append() {
install -D -m0600 ${WORKDIR}/SoftAP.nmconnection ${D}${libdir}/NetworkManager/system-connections/SoftAP.nmconnection
}
FILES_${PN} += "${libdir}/NetworkManager/system-connections/"
net.ipv6.conf.all.forwarding = 1
net.ipv4.ip_forward = 1
#!/bin/sh
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
set -e
# Bring up a OpenThread border router for the given configuration
ot-ctl thread stop
ot-ctl ifconfig down
ot-ctl dataset clear
ot-ctl dataset init new
ot-ctl dataset panid 0x1357
ot-ctl dataset extpanid 11112222deadbeef
ot-ctl dataset networkname OniroThread
ot-ctl dataset channel 26
#ot-ctl dataset masterkey 00112233445566778899aabbccddeeff
#ot-ctl dataset networkkey 00112233445566778899aabbccddeeff
# J01NME is the Commissioner Credential to be used in the Android app
# J01NU5 is the Joiner Credential, set in the node and QR code
ot-ctl dataset pskc $(pskc J01NME 11112222deadbeef OniroThread)
ot-ctl dataset commit active
#ot-ctl prefix add fd11:22::/64 pasor
ot-ctl ifconfig up
ot-ctl thread start
ot-ctl netdata register
#ot-ctl prefix add 2001::/64 paros
#ot-ctl dataset meshlocalprefix fdde:00be:ef00:aaaa::
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
[Unit]
Description=OpenThread Border Router Configuration
ConditionPathExists=/usr/sbin/otbr-configuration
After=sys-subsystem-net-devices-wpan0.device
BindsTo=sys-subsystem-net-devices-wpan0.device
[Service]
Type=oneshot
ExecStart=/usr/sbin/otbr-configuration
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment