mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
* This change is only aesthetic (unlike indentation in Python tasks). * Some recipes were using tabs. * Some were using 8 spaces. * Some were using mix or different number of spaces. * Make them consistently use 4 spaces everywhere. * Yocto styleguide advises to use tabs (but the only reason to keep tabs is the need to update a lot of recipes). Lately this advice was also merged into the styleguide on the OE wiki. * Using 4 spaces in both types of tasks is better because it's less error prone when someone is not sure if e.g. do_generate_toolchain_file() is Python or shell task and also allows to highlight every tab used in .bb, .inc, .bbappend, .bbclass as potentially bad (shouldn't be used for indenting of multiline variable assignments and cannot be used for Python tasks). * Don't indent closing quote on multiline variables we're quite inconsistent wheater it's first character on line under opening quote or under first non-whitespace character in previous line. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Koen Kooi <koen@dominion.thruhere.net>
62 lines
2.1 KiB
BlitzBasic
62 lines
2.1 KiB
BlitzBasic
# This recipe is intended as a 'simpler' replacement for packagegroup-base.
|
|
# Please communicate your use cases and suggestions to the mailinglist(s)
|
|
|
|
DESCRIPTION = "Basic task to get a device online"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
|
|
|
|
PR = "r13"
|
|
|
|
inherit packagegroup
|
|
|
|
# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
|
|
#
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
# Poke extra recomendations into the list using your machine.conf
|
|
#
|
|
MACHINE_EXTRA_RRECOMMENDS ?= ""
|
|
|
|
#
|
|
# Select between dropbear and openssh
|
|
# Set TASK_BASIC_SSHDAEMON = "openssh-sshd openssh-sftp openssh-sftp-server" in your DISTRO config to get openssh(d)
|
|
#
|
|
TASK_BASIC_SSHDAEMON ?= "dropbear openssh-sftp openssh-sftp-server"
|
|
|
|
RPROVIDES_${PN} += "task-basic"
|
|
RREPLACES_${PN} += "task-basic"
|
|
RCONFLICTS_${PN} += "task-basic"
|
|
#
|
|
# The section below is designed to match with packagegroup-boot, but doesn't depend on it to allow for more freedom
|
|
# when writing image recipes.
|
|
# It also avoids the choice between connman/networkmanager/ifupdown since that is an image feature, not a
|
|
# distro feature.
|
|
#
|
|
# Util-linux (u)mount is included because the busybox one can't handle /etc/mtab being symlinked to /proc/mounts
|
|
#
|
|
RDEPENDS_${PN} = "\
|
|
${TASK_BASIC_SSHDAEMON} \
|
|
avahi-daemon avahi-utils \
|
|
"
|
|
|
|
#
|
|
# The following section is split in 3:
|
|
# 1) Machine features: kernel modules and userspace helpers for those
|
|
# 2) Distro features: packages associated with those
|
|
# 3) Nice to have: packages that are nice to have, but aren't strictly needed
|
|
#
|
|
RRECOMMENDS_${PN} = "\
|
|
${MACHINE_EXTRA_RRECOMMENDS} \
|
|
${@base_contains("MACHINE_FEATURES", "usbhost", "usbutils", "", d)} \
|
|
${@base_contains("MACHINE_FEATURES", "alsa", "alsa-utils-alsamixer", "", d)} \
|
|
${@base_contains("MACHINE_FEATURES", "usbgadget", "kernel-module-g-ether kernel-module-g-serial kernel-module-g-mass-storage", "", d)} \
|
|
\
|
|
${@base_contains("DISTRO_FEATURES", "bluetooth", "bluez4", "", d)} \
|
|
${@base_contains("DISTRO_FEATURES", "wifi", "iw wpa-supplicant", "", d)} \
|
|
\
|
|
tzdata \
|
|
\
|
|
cpufrequtils \
|
|
htop \
|
|
"
|