Skip to content
Snippets Groups Projects
Commit 2fa2f891 authored by Stefan Schmidt's avatar Stefan Schmidt
Browse files

packagegroup-base: Add DISTRO_FEATURES and groups for Thread feature

Thread connectivity is a feature that can come as a full border router
or simple client flavour. They both drag in different dependencies
through the matching packagegroup. Demonstrate the use in our gateway
blueprint.

Fixes: https://git.ostc-eu.org/OSTC/planning/blueprints/-/issues/7



Signed-off-by: default avatarStefan Schmidt <stefan.schmidt@huawei.com>
parent 5268dd88
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,13 @@ DISTRO_NAME = "All Scenarios OS Gateway Blueprint Linux Distro" ...@@ -12,6 +12,13 @@ DISTRO_NAME = "All Scenarios OS Gateway Blueprint Linux Distro"
# Custom hostnames for easy DNS resolution for this blueprint. # Custom hostnames for easy DNS resolution for this blueprint.
hostname_base-files = "blueprint-gateway" hostname_base-files = "blueprint-gateway"
#DISTRO_FEATURES_append = " thread-client"
DISTRO_FEATURES_append = " thread-border-router"
IMAGE_INSTALL_append = "\
packagegroup-thread-br \
packagegroup-thread-client \
"
# Avoid build warning(s) for ununsed extra partitions. # Avoid build warning(s) for ununsed extra partitions.
ST_VENDORFS = "0" ST_VENDORFS = "0"
ST_USERFS = "0" ST_USERFS = "0"
......
...@@ -7,10 +7,3 @@ require recipes-core/images/allscenarios-image-base.bb ...@@ -7,10 +7,3 @@ require recipes-core/images/allscenarios-image-base.bb
SUMMARY = "Gateway blueprint image" SUMMARY = "Gateway blueprint image"
DESCRIPTION = "Smart home gateway device" DESCRIPTION = "Smart home gateway device"
LICENSE = "Apache-2.0" LICENSE = "Apache-2.0"
IMAGE_INSTALL_append = "\
ot-br-posix \
wpantund \
hostapd \
iptables \
"
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
PACKAGES_append = "\
packagegroup-thread-br \
packagegroup-thread-client \
"
RDEPENDS_packagegroup-thread-br = "\
${@bb.utils.contains("DISTRO_FEATURES", "thread-border-router", "ot-br-posix", "", d)} \
${@bb.utils.contains("DISTRO_FEATURES", "thread-border-router", "wpantund", "", d)} \
hostapd \
iptables \
"
RDEPENDS_packagegroup-thread-client = "\
${@bb.utils.contains("DISTRO_FEATURES", "thread-client", "ot-daemon", "", d)} \
"
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