Compare commits

...

9 Commits

Author SHA1 Message Date
Alexandre Bard 10c6f4e374 WIP: be compatible with both kirkstone and dunfell 2023-07-27 16:11:22 +02:00
Alexandre Bard 34c69f68ab Merge branch 'develop' into kirkstone 2023-07-24 15:01:19 +02:00
Alexandre Bard b28ef280d8 til-wl18xx: Fix linker error
Part of yocto upgrade from dunfell to kirkstone
2022-08-12 10:38:12 +02:00
Alexandre Bard fec0fc1b4f distro: netmodule-linux: Fix ssl packageconfigs for curl and wget
Part of update to kirkstone:
	* ssl is now named openssl
	* wget default to gnutls, we need to manually set openssl

Part of yocto upgrade from dunfell to kirkstone
2022-08-03 10:26:23 +02:00
Alexandre Bard 9314315326 packagegroups: Add relevant networkmanager packages
With update to kirkstone, networkmanager has been splitted in different
packages. This commit adds them back where they make sense.

Part of yocto upgrade from dunfell to kirkstone
2022-08-03 10:26:16 +02:00
Marc Mattmueller aa192ec85a conf/distro/ostree.conf: exchange include order of sota and netmodule
for the SOURCE_DATE_EPOCH export the include order was changed
so that the python3 setuptools especially zip does not throw an
error. Zip does not support files before 1980

Part of yocto upgrade from dunfell to kirkstone
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-08-03 10:26:03 +02:00
Marc Mattmueller c8ed1a7bf9 conf,netmodule-linux-image: made networkmanager build and fixed typo
Part of yocto upgrade from dunfell to kirkstone
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-08-03 10:25:57 +02:00
Marc Mattmueller 0e7e2bcfe3 conf/distro/netmodule-linux: set SOURCE_DATE_EPOCH to 1st July '22
setting the SOURCE_DATE_EPOCH to 1st of July 2022 (right after the
release date of version 1.5.2) for reproducible builds and to make
the date compatible with python zip which does not support files
with timestamps before 1980.

Part of yocto upgrade from dunfell to kirkstone
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-08-03 10:25:44 +02:00
Marc Mattmueller 730b1f554d yocto env: migrated recipes and conf file from dunfell to kirkstone
Part of yocto upgrade from dunfell to kirkstone
Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
2022-08-03 10:25:19 +02:00
58 changed files with 203 additions and 139 deletions

View File

@ -1,6 +1,6 @@
DESCRIPTION = "vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s)." DESCRIPTION = "vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s)."
HOMEPAGE = "https://humdi.net/vnstat/" HOMEPAGE = "https://humdi.net/vnstat/"
LICENSE = "GPLv2" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SECTION = "net" SECTION = "net"
DEPENDS = "gd sqlite3" DEPENDS = "gd sqlite3"
@ -13,7 +13,7 @@ inherit autotools pkgconfig systemd
EXTRA_OECONF = "--disable-extra-paths" EXTRA_OECONF = "--disable-extra-paths"
do_configure_append() { do_configure:append() {
# enable a volatile and persistent path for reading and writing the data base: # enable a volatile and persistent path for reading and writing the data base:
sed -i 's|ReadWritePaths=\/var\/lib|ReadWritePaths=\/var\/lib \/run\/|g' ${S}/examples/systemd/vnstat.service sed -i 's|ReadWritePaths=\/var\/lib|ReadWritePaths=\/var\/lib \/run\/|g' ${S}/examples/systemd/vnstat.service
@ -25,8 +25,8 @@ do_configure_append() {
} }
do_install_append() { do_install:append() {
install -Dm644 ${S}/examples/systemd/vnstat.service "${D}${systemd_system_unitdir}/vnstat.service" install -Dm644 ${S}/examples/systemd/vnstat.service "${D}${systemd_system_unitdir}/vnstat.service"
} }
SYSTEMD_SERVICE_${PN} = "vnstat.service" SYSTEMD_SERVICE:${PN} = "vnstat.service"

View File

@ -2,7 +2,7 @@ SUMMARY = "Display or change ethernet card settings"
DESCRIPTION = "A small utility for examining and tuning the settings of your ethernet-based network interfaces." DESCRIPTION = "A small utility for examining and tuning the settings of your ethernet-based network interfaces."
HOMEPAGE = "http://www.kernel.org/pub/software/network/ethtool/" HOMEPAGE = "http://www.kernel.org/pub/software/network/ethtool/"
SECTION = "console/network" SECTION = "console/network"
LICENSE = "GPLv2+" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
file://ethtool.c;beginline=4;endline=17;md5=c19b30548c582577fc6b443626fc1216" file://ethtool.c;beginline=4;endline=17;md5=c19b30548c582577fc6b443626fc1216"

View File

@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f7d9aab84ec6567139a4755c48d147fb"
DEPENDS:append = " libevent libssh msgpack-c ncurses" DEPENDS:append = " libevent libssh msgpack-c ncurses"
SRC_URI = "\ SRC_URI = "\
git://github.com/tmate-io/tmate.git;protocol=https \ git://github.com/tmate-io/tmate.git;protocol=https;branch=master \
" "
SRCREV = "5e00bfa5e137e76c81888727712ced2b3fd99f5b" SRCREV = "5e00bfa5e137e76c81888727712ced2b3fd99f5b"

View File

@ -1,8 +1,8 @@
BASEFILESISSUEINSTALL = "do_install_basefilesissue" BASEFILESISSUEINSTALL = "do_install_basefilesissue"
DISTROVERSION-ISSUE = "\S{PRETTY_NAME}\n" DISTROVERSION-ISSUE = "\S{PRETTY_NAME}\n"
DISTROVERSION-ISSUE_append= "kernel \\\r\n" DISTROVERSION-ISSUE:append= "kernel \\\r\n"
DISTROVERSION-ISSUE_append = "\\\n @ \\\l\n" DISTROVERSION-ISSUE:append = "\\\n @ \\\l\n"
#r: kernel version #r: kernel version
#n: hostname #n: hostname

View File

@ -5,7 +5,7 @@
# #
# More details can be found in the Kernel Dev Manual # More details can be found in the Kernel Dev Manual
# http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#changing-the-configuration # http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#changing-the-configuration
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI += " \ SRC_URI += " \
file://no_rfkill.cfg \ file://no_rfkill.cfg \

View File

@ -1,6 +1,6 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
do_install_append() { do_install:append() {
# Remove default network configurations # Remove default network configurations
rm -rf ${D}${systemd_unitdir}/network rm -rf ${D}${systemd_unitdir}/network
} }

View File

@ -1,8 +1,8 @@
PACKAGECONFIG_remove = "nss-resolve resolved" PACKAGECONFIG:remove = "nss-resolve resolved"
ALTERNATIVE_${PN} = "halt reboot shutdown poweroff runlevel ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'resolv-conf', '', d)}" ALTERNATIVE:${PN} = "halt reboot shutdown poweroff runlevel ${@bb.utils.contains('PACKAGECONFIG', 'resolved', 'resolv-conf', '', d)}"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI_append = " \ SRC_URI:append = " \
file://journald.conf \ file://journald.conf \
" "
@ -10,9 +10,9 @@ SRC_URI_append = " \
# Having this dependency leads to a rebuild of systemd when os-release is rebuilt, # Having this dependency leads to a rebuild of systemd when os-release is rebuilt,
# even when the recommendations are excluded. # even when the recommendations are excluded.
# It may not be required with future releases of yocto. # It may not be required with future releases of yocto.
RRECOMMENDS_${PN}_remove = "os-release" RRECOMMENDS:${PN}:remove = "os-release"
do_install_append() { do_install:append() {
# Remove default network configurations # Remove default network configurations
rm -rf ${D}${systemd_unitdir}/network rm -rf ${D}${systemd_unitdir}/network

View File

@ -1 +0,0 @@
SRCREV = "42e96b13dda2afabbcec2622612d13495a415caa"

View File

@ -1,8 +1,8 @@
# Copyright (C) 2020 Ramon Moesching <ramon.moesching@netmodule.com> # Copyright (C) 2020 Ramon Moesching <ramon.moesching@netmodule.com>
# Released under the MIT license (see COPYING.MIT for the terms) # Released under the MIT license (see COPYING.MIT for the terms)
FILESEXTRAPATHS_prepend:= "${THISDIR}/files:" FILESEXTRAPATHS:prepend:= "${THISDIR}/files:"
do_install_append () { do_install:append () {
if ${@bb.utils.contains("MACHINE_FEATURES", "pps", "true", "false", d)}; then if ${@bb.utils.contains("MACHINE_FEATURES", "pps", "true", "false", d)}; then
sed -i '/^#refclock PPS.*/s/^#//' ${D}/${sysconfdir}/chrony.conf sed -i '/^#refclock PPS.*/s/^#//' ${D}/${sysconfdir}/chrony.conf
fi fi
@ -12,7 +12,7 @@ do_install_append () {
# thus gpsd daemon needs to start with -n paramteter. # thus gpsd daemon needs to start with -n paramteter.
# Patching at installation time gpsd configuration file # Patching at installation time gpsd configuration file
# to apply this parameter # to apply this parameter
pkg_postinst_${PN}_prepend () { pkg_postinst:${PN}:prepend () {
GPSD_CONF=$D${sysconfdir}/default/gpsd.default GPSD_CONF=$D${sysconfdir}/default/gpsd.default

View File

@ -1,8 +1,8 @@
PACKAGECONFIG_append = " dbus" PACKAGECONFIG:append = " dbus"
SYSTEMD_AUTO_ENABLE = "disable" SYSTEMD_AUTO_ENABLE = "disable"
do_install_append () { do_install:append () {
install -d ${D}${localstatedir}/lib/misc/ install -d ${D}${localstatedir}/lib/misc/
} }

View File

@ -1,3 +1,3 @@
FILESEXTRAPATHS_prepend:= "${THISDIR}/patches:" FILESEXTRAPATHS:prepend:= "${THISDIR}/patches:"
SRC_URI_prepend_mx8 = " file://start-daemon-with-data-arg-16.patch " SRC_URI:prepend_mx8 = " file://start-daemon-with-data-arg-16.patch "

View File

@ -1,3 +1,3 @@
ROOTFS_BOOTSTRAP_INSTALL_append = " \ ROOTFS_BOOTSTRAP_INSTALL:append = " \
packagegroup-nm-wifi-minimal \ packagegroup-nm-wifi-minimal \
" "

View File

@ -1,3 +0,0 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://0001-Remove-log-info-from-init.patch"

View File

@ -2,11 +2,9 @@ require netmodule-linux.conf
DISTRO = "netmodule-linux-minimal" DISTRO = "netmodule-linux-minimal"
DISTRO_VARIANT = " for minimal fitImage" DISTRO_VARIANT = " for minimal fitImage"
INHERIT += "reproducible_build_simple" include ${LAYERSERIES_CORENAMES}/distro-minimal.inc
export SOURCE_DATE_EPOCH ?= "0"
REPRODUCIBLE_TIMESTAMP_ROOTFS = ""
PREFERRED_PROVIDER_virtual/netmodule-image = "netmodule-fitimage" PREFERRED_PROVIDER_virtual/netmodule-image = "netmodule-fitimage"
INITRAMFS_IMAGE_pn-netmodule-fitimage = "netmodule-linux-image-minimal" INITRAMFS_IMAGE:pn-netmodule-fitimage = "netmodule-linux-image-minimal"
IMAGE_FSTYPES = "cpio.gz cpio.gz.u-boot" IMAGE_FSTYPES = "cpio.gz cpio.gz.u-boot"

View File

@ -1,5 +1,5 @@
require netmodule-linux.conf
require conf/distro/sota.conf.inc require conf/distro/sota.conf.inc
require netmodule-linux.conf
DISTRO = "netmodule-linux-ostree" DISTRO = "netmodule-linux-ostree"
DISTRO_VARIANT = " with ostree" DISTRO_VARIANT = " with ostree"
@ -12,7 +12,7 @@ OSTREE_INITRAMFS_FSTYPES = "ext4.gz.u-boot"
OSTREE_COMMIT_SUBJECT = "${IMAGE_BASENAME};${DISTRO_VERSION}" OSTREE_COMMIT_SUBJECT = "${IMAGE_BASENAME};${DISTRO_VERSION}"
# Unneeded tools added by sota class # Unneeded tools added by sota class
IMAGE_INSTALL_remove = "aktualizr aktualizr-info" IMAGE_INSTALL:remove = "aktualizr aktualizr-info"
SOTA_CLIENT = " " SOTA_CLIENT = " "
SOTA_CLIENT_PROV = " " SOTA_CLIENT_PROV = " "

View File

@ -20,6 +20,8 @@ DISTRO = "netmodule-linux"
DISTRO_NAME = "NetModule Linux Distribution" DISTRO_NAME = "NetModule Linux Distribution"
DISTRO_VERSION ?= "x.y.z.develop" DISTRO_VERSION ?= "x.y.z.develop"
export SOURCE_DATE_EPOCH = "1656633600"
INIT_MANAGER = "systemd" INIT_MANAGER = "systemd"
KERNEL_MODULE_AUTOLOAD += "cryptodev" KERNEL_MODULE_AUTOLOAD += "cryptodev"
@ -28,22 +30,26 @@ DISTRO_FEATURES = "bluetooth usbhost pci ipv4 ipv6 wifi multiarch usrmerge"
# The BACKFILLed features are features which were defaults in previous # The BACKFILLed features are features which were defaults in previous
# yocto versions but are now optional. # yocto versions but are now optional.
# Adding them to this variable allow us to remove them. # Adding them to this variable allow us to remove them.
DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio gobject-introspection-data ldconfig" DISTRO_FEATURES_BACKFILL_CONSIDERED = "pulseaudio ldconfig"
EXTRA_IMAGECMD_append_ext4 = " -O ^64bit" EXTRA_IMAGECMD:append_ext4 = " -O ^64bit"
EXTRA_IMAGECMD_append_ota-ext4 = " -O ^64bit" EXTRA_IMAGECMD:append_ota-ext4 = " -O ^64bit"
# Packages # Packages
PACKAGECONFIG_append_pn-curl = " tftp ssl" PACKAGECONFIG:append:pn-curl = " tftp openssl"
PACKAGECONFIG_remove_pn-curl = "gnutls" PACKAGECONFIG:remove:pn-curl = "gnutls"
PACKAGECONFIG_append_pn-libgpiod = " python3" PACKAGECONFIG:append:pn-wget = " openssl"
PACKAGECONFIG_append_pn-networkmanager = " modemmanager" PACKAGECONFIG:remove:pn-wget = "gnutls"
PACKAGECONFIG_pn-gpsd = ""
PACKAGECONFIG_append_pn-openssl = " cryptodev-linux" PACKAGECONFIG:append:pn-libgpiod = " python3"
PACKAGECONFIG_pn-lmsensors = "" PACKAGECONFIG:append:pn-networkmanager = " modemmanager"
PACKAGECONFIG_pn-libqmi = "" PACKAGECONFIG:pn-gpsd = ""
PACKAGECONFIG:append:pn-openssl = " cryptodev-linux"
PACKAGECONFIG:pn-lmsensors = ""
PACKAGECONFIG:pn-libqmi = ""
# These rules may make gpsd start automatically when detecting a # These rules may make gpsd start automatically when detecting a
# receiver. We don't want that since gpsd is started by gnss-mgr # receiver. We don't want that since gpsd is started by gnss-mgr
@ -55,3 +61,6 @@ SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}"
SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}" SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}"
SDK_VENDOR = "-netmodule" SDK_VENDOR = "-netmodule"
SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}" SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
# Changes specific to current yocto version
include ${LAYERSERIES_CORENAMES}/distro.inc

View File

@ -19,4 +19,4 @@ LAYERVERSION_netmodule-distro = "1"
LAYERDEPENDS_netmodule-distro = "core" LAYERDEPENDS_netmodule-distro = "core"
LAYERSERIES_COMPAT_netmodule-distro = "dunfell" LAYERSERIES_COMPAT_netmodule-distro = "dunfell kirkstone"

View File

@ -1,25 +1,25 @@
BB_NUMBER_THREADS ?= "4" BB_NUMBER_THREADS ?= "4"
PARALLEL_MAKE ?= "-j 4" PARALLEL_MAKE ?= "-j 4"
PACKAGE_CLASSES ?= "package_rpm" PACKAGE_CLASSES ?= "package_rpm"
USER_CLASSES ?= "buildstats image-mklibs image-prelink" USER_CLASSES ?= "buildstats image-prelink"
PATCHRESOLVE = "noop" PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\ BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \ STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \ STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \ STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \ STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \ HALT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \ HALT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \ HALT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K" HALT,/tmp,10M,1K"
ASSUME_PROVIDED += "libsdl-native" ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1" CONF_VERSION = "1"
EXTRA_IMAGE_FEATURES_append = " debug-tweaks" EXTRA_IMAGE_FEATURES:append = " debug-tweaks"
INHERIT += "rm_work" INHERIT += "rm_work"
ERROR_QA_remove += "version-going-backwards" ERROR_QA:remove = "version-going-backwards"
WARN_QA_append += "version-going-backwards" WARN_QA:append = " version-going-backwards"
INHERIT += "buildhistory" INHERIT += "buildhistory"
BUILDHISTORY_COMMIT = "1" BUILDHISTORY_COMMIT = "1"

View File

@ -0,0 +1,3 @@
INHERIT += "reproducible_build_simple"
export SOURCE_DATE_EPOCH ?= "0"
REPRODUCIBLE_TIMESTAMP_ROOTFS = ""

15
dunfell/distro.inc Normal file
View File

@ -0,0 +1,15 @@
# in newer versions, networkmanager is splitted
PACKAGES:append:pn-networkmanager += "networkmanager-wwan \
networkmanager-wifi \
networkmanager-bluetooth \
networkmanager-nmcli \
"
ALLOW_EMPTY_networkmanager-wwan = "1"
ALLOW_EMPTY_networkmanager-wifi = "1"
ALLOW_EMPTY_networkmanager-bluetooth = "1"
ALLOW_EMPTY_networkmanager-nmcli = "1"
# ssl the former equivalent of openssl
PACKAGECONFIG:append:pn-curl = " ssl"
PACKAGECONFIG:remove:pn-curl = " openssl"

5
dunfell/licenses.inc Normal file
View File

@ -0,0 +1,5 @@
LIC_FILES_CHKSUM = "${@bb.utils.contains('LICENSE', 'GPL-2.0-only', \
'file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6', \
'', \
d)}"

View File

@ -1,7 +1,9 @@
DESCRIPTION = "CPU Benchmarking bin" DESCRIPTION = "CPU Benchmarking bin"
HOMEPAGE = "http://www.netmodule.com/" HOMEPAGE = "http://www.netmodule.com/"
LICENSE = "GPLv2" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
include ${LAYERSERIES_CORENAMES}/licenses.inc
LIC_FILES_CHKSUM ?= "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6"
PROVIDES = "benchmarking-cpu" PROVIDES = "benchmarking-cpu"
@ -13,7 +15,7 @@ SRC_URI = " \
file://memspeed \ file://memspeed \
" "
FILES_${PN} += "/usr/bin/*" FILES:${PN} += "/usr/bin/*"
S = "${WORKDIR}" S = "${WORKDIR}"

View File

@ -2,7 +2,7 @@ require netmodule-linux-image.bb
SUMMARY = "netmodule image for developement only" SUMMARY = "netmodule image for developement only"
IMAGE_FEATURES_append = " \ IMAGE_FEATURES:append = " \
tools-debug \ tools-debug \
" "
@ -36,12 +36,12 @@ EASY_EDITOR = " \
nano \ nano \
" "
BENCH_TOOLS_cortexa9hf-neon_append = " cpuburn-neon " BENCH_TOOLS_cortexa9hf-neon:append = " cpuburn-neon "
BENCH_TOOLS_cortexa8hf-neon_append = " cpuburn-neon " BENCH_TOOLS_cortexa8hf-neon:append = " cpuburn-neon "
IMAGE_INSTALL_remove_aarch64 = "benchmarking-cpu" IMAGE_INSTALL:remove:aarch64 = "benchmarking-cpu"
IMAGE_INSTALL_append = " \ IMAGE_INSTALL:append = " \
lrzsz \ lrzsz \
${BENCH_TOOLS} \ ${BENCH_TOOLS} \
${EASY_EDITOR} \ ${EASY_EDITOR} \

View File

@ -5,7 +5,7 @@ require includes/image-preprocessing.inc
SUMMARY = "NetModule Linux Distro Image" SUMMARY = "NetModule Linux Distro Image"
PROVIDES += "virtual/netmodule-image" PROVIDES += "virtual/netmodule-image"
IMAGE_FEATURES_append = " \ IMAGE_FEATURES:append = " \
package-management \ package-management \
" "
@ -16,7 +16,7 @@ IMAGE_INSTALL = " \
" "
IMAGE_INSTALL_append_sota = " mount-overlay" IMAGE_INSTALL:append:sota = " mount-overlay"
LICENSE = "BSD" LICENSE = "BSD"

View File

@ -2,6 +2,6 @@ inherit packagegroup
PACKAGES = "${PN}-minimal ${PN}-base ${PN}-extended" PACKAGES = "${PN}-minimal ${PN}-base ${PN}-extended"
SUMMARY_${PN}-minimal = "Minimal packages for ${PN}" SUMMARY:${PN}-minimal = "Minimal packages for ${PN}"
SUMMARY_${PN}-base = "Base packages for ${PN}" SUMMARY:${PN}-base = "Base packages for ${PN}"
SUMMARY_${PN}-extended = "Extended packages for ${PN}" SUMMARY:${PN}-extended = "Extended packages for ${PN}"

View File

@ -5,11 +5,12 @@ require packagegroup-feature.inc
PACKAGE_ARCH = "${MACHINE_ARCH}" PACKAGE_ARCH = "${MACHINE_ARCH}"
RDEPENDS_${PN}-base = " \ RDEPENDS:${PN}-base = " \
networkmanager-bluetooth \
${@bb.utils.contains("MACHINE_FEATURES", "tibluetooth", "tibluetooth", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "tibluetooth", "tibluetooth", "", d)} \
" "
RDEPENDS_${PN}-extended = " \ RDEPENDS:${PN}-extended = " \
bluez5-obex \ bluez5-obex \
bluez5-noinst-tools \ bluez5-noinst-tools \
" "

View File

@ -5,6 +5,6 @@ require packagegroup-feature.inc
PACKAGE_ARCH = "${MACHINE_ARCH}" PACKAGE_ARCH = "${MACHINE_ARCH}"
RDEPENDS_${PN}-extended = " \ RDEPENDS:${PN}-extended = " \
${@bb.utils.contains("MACHINE_FEATURES", "imx-boot", "", "bootloader-config", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "imx-boot", "", "bootloader-config", d)} \
" "

View File

@ -3,10 +3,10 @@ LICENSE = "MIT"
require packagegroup-feature.inc require packagegroup-feature.inc
RDEPENDS_${PN}-base = " \ RDEPENDS:${PN}-base = " \
can-utils \ can-utils \
" "
RDEPENDS_${PN}-extended = " \ RDEPENDS:${PN}-extended = " \
cannelloni \ cannelloni \
" "

View File

@ -3,6 +3,6 @@ LICENSE = "MIT"
require packagegroup-feature.inc require packagegroup-feature.inc
RDEPENDS_${PN}-base = " \ RDEPENDS:${PN}-base = " \
fpga-image \ fpga-image \
" "

View File

@ -6,7 +6,7 @@ require packagegroup-feature.inc
PACKAGE_ARCH = "${MACHINE_ARCH}" PACKAGE_ARCH = "${MACHINE_ARCH}"
RDEPENDS_${PN}-extended = " \ RDEPENDS:${PN}-extended = " \
gpsd \ gpsd \
gpsd-conf \ gpsd-conf \
gps-utils \ gps-utils \

View File

@ -3,6 +3,6 @@ LICENSE = "MIT"
require packagegroup-feature.inc require packagegroup-feature.inc
RDEPENDS_${PN}-extended = " \ RDEPENDS:${PN}-extended = " \
imu-setup \ imu-setup \
" "

View File

@ -4,19 +4,20 @@ LICENSE = "MIT"
require packagegroup-feature.inc require packagegroup-feature.inc
# less is needed for nmcli to show proper output # less is needed for nmcli to show proper output
RDEPENDS_${PN}-minimal = " \ RDEPENDS:${PN}-minimal = " \
networkmanager \ networkmanager \
networkmanager-nmcli \
less \ less \
" "
RDEPENDS_${PN}-base = " \ RDEPENDS:${PN}-base = " \
iproute2 \ iproute2 \
packagegroup-core-ssh-openssh \ packagegroup-core-ssh-openssh \
openssh-sftp-server \ openssh-sftp-server \
ethtool \ ethtool \
" "
RDEPENDS_${PN}-extended= " \ RDEPENDS:${PN}-extended= " \
iptables \ iptables \
iptables-module-ipt-masquerade \ iptables-module-ipt-masquerade \
iptables-module-ip6t-masquerade \ iptables-module-ip6t-masquerade \

View File

@ -3,6 +3,6 @@ LICENSE = "MIT"
require packagegroup-feature.inc require packagegroup-feature.inc
RDEPENDS_${PN}-base = " \ RDEPENDS:${PN}-base = " \
spitools \ spitools \
" "

View File

@ -3,7 +3,7 @@ LICENSE = "MIT"
require packagegroup-feature.inc require packagegroup-feature.inc
RDEPENDS_${PN}-extended = " \ RDEPENDS:${PN}-extended = " \
util-linux-rtcwake \ util-linux-rtcwake \
chrony \ chrony \
chronyc \ chronyc \

View File

@ -3,6 +3,6 @@ LICENSE = "MIT"
require packagegroup-feature.inc require packagegroup-feature.inc
RDEPENDS_${PN}-base = " \ RDEPENDS:${PN}-base = " \
socket-uart \ socket-uart \
" "

View File

@ -3,6 +3,6 @@ LICENSE = "MIT"
require packagegroup-feature.inc require packagegroup-feature.inc
RDEPENDS_${PN}-extended = " \ RDEPENDS:${PN}-extended = " \
v2x-ieee802.11p \ v2x-ieee802.11p \
" "

View File

@ -3,6 +3,6 @@ LICENSE = "MIT"
require packagegroup-feature.inc require packagegroup-feature.inc
RDEPENDS_${PN}-extended = " \ RDEPENDS:${PN}-extended = " \
wakeup-timer \ wakeup-timer \
" "

View File

@ -23,13 +23,16 @@ UBLOX_WIFI = " \
" "
RDEPENDS_${PN}-minimal = " \ RDEPENDS:${PN}-minimal = " \
${@bb.utils.contains("MACHINE_FEATURES", "ti-wifi", "${TI_WIFI}", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "ti-wifi", "${TI_WIFI}", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "ath-wifi", "${ATH_WIFI}", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "ath-wifi", "${ATH_WIFI}", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "ublox-wifi", "${UBLOX_WIFI}", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "ublox-wifi", "${UBLOX_WIFI}", "", d)} \
" "
RDEPENDS:${PN}-base = " \
networkmanager-wifi \
"
RDEPENDS_${PN}-extended = " \ RDEPENDS:${PN}-extended = " \
hostapd \ hostapd \
" "

View File

@ -3,7 +3,11 @@ LICENSE = "MIT"
require packagegroup-feature.inc require packagegroup-feature.inc
RDEPENDS_${PN}-extended = " \ RDEPENDS:${PN}-base = " \
networkmanager-wwan \
"
RDEPENDS:${PN}-extended = " \
modemmanager \ modemmanager \
wwan-config \ wwan-config \
" "

View File

@ -4,7 +4,7 @@ LICENSE = "MIT"
require packagegroup-nm.inc require packagegroup-nm.inc
FEATURE_LEVEL = "base" FEATURE_LEVEL = "base"
RDEPENDS_${PN} = " \ RDEPENDS:${PN} = " \
packagegroup-nm-minimal \ packagegroup-nm-minimal \
bash \ bash \
curl \ curl \

View File

@ -4,7 +4,7 @@ LICENSE = "MIT"
require packagegroup-nm.inc require packagegroup-nm.inc
FEATURE_LEVEL = "extended" FEATURE_LEVEL = "extended"
RDEPENDS_${PN} = " \ RDEPENDS:${PN} = " \
packagegroup-nm-base \ packagegroup-nm-base \
packagegroup-base \ packagegroup-base \
nmhw-auto-part \ nmhw-auto-part \
@ -22,7 +22,7 @@ RDEPENDS_${PN} = " \
" "
# Hacks for V2X-GNSS-HUB power sequence on HW23 # Hacks for V2X-GNSS-HUB power sequence on HW23
RDEPENDS_${PN}_append_imx8-nmhw23 = " \ RDEPENDS:${PN}:append_imx8-nmhw23 = " \
usb-hub-reset \ usb-hub-reset \
gnss-init \ gnss-init \
" "

View File

@ -4,7 +4,7 @@ LICENSE = "MIT"
require packagegroup-nm.inc require packagegroup-nm.inc
FEATURE_LEVEL = "minimal" FEATURE_LEVEL = "minimal"
RDEPENDS_${PN} = " \ RDEPENDS:${PN} = " \
packagegroup-core-boot \ packagegroup-core-boot \
util-linux-agetty \ util-linux-agetty \
systemd-serialgetty \ systemd-serialgetty \

View File

@ -3,7 +3,7 @@ inherit packagegroup
PACKAGE_ARCH = "${MACHINE_ARCH}" PACKAGE_ARCH = "${MACHINE_ARCH}"
# FEATURE_LEVEL must be defined by including file # FEATURE_LEVEL must be defined by including file
RDEPENDS_${PN}_append = " \ RDEPENDS:${PN}:append = " \
\ \
packagegroup-nm-net-${FEATURE_LEVEL} \ packagegroup-nm-net-${FEATURE_LEVEL} \
packagegroup-nm-boot-tools-${FEATURE_LEVEL} \ packagegroup-nm-boot-tools-${FEATURE_LEVEL} \

View File

@ -4,7 +4,7 @@ LICENSE = "MIT"
inherit populate_sdk inherit populate_sdk
TOOLCHAIN_TARGET_TASK_append = " \ TOOLCHAIN_TARGET_TASK:append = " \
cpputest-staticdev \ cpputest-staticdev \
libnmapp-staticdev \ libnmapp-staticdev \
libc-staticdev \ libc-staticdev \

View File

@ -15,7 +15,7 @@ BUILD_NUMBER = "11"
JVM_VERSION = "compact1" JVM_VERSION = "compact1"
FILESEXTRAPATHS_append := ":${THISDIR}/download" FILESEXTRAPATHS:append := ":${THISDIR}/download"
LIC_FILES_CHKSUM = "file://${WORKDIR}/ejdk1.8.0_${PV_UPDATE}/linux_armv6_vfp_hflt/compact1/COPYRIGHT;md5=a762796b2a8989b8952b653a178607a1" LIC_FILES_CHKSUM = "file://${WORKDIR}/ejdk1.8.0_${PV_UPDATE}/linux_armv6_vfp_hflt/compact1/COPYRIGHT;md5=a762796b2a8989b8952b653a178607a1"
LICENSE = "Oracle_Binary_Code_License_Agreement" LICENSE = "Oracle_Binary_Code_License_Agreement"
@ -28,7 +28,7 @@ SRC_URI[sha256sum] = "5dcc644c999e7109efe46669ac717f3b96f3bbdeac3cb66f072ca4dfbc
S = "${WORKDIR}" S = "${WORKDIR}"
FILES_${PN} = "${bindir}/*" FILES:${PN} = "${bindir}/*"
do_install() { do_install() {
install -d ${D}${bindir}/ejdk1.8.0 install -d ${D}${bindir}/ejdk1.8.0
@ -39,6 +39,6 @@ do_install() {
} }
INSANE_SKIP_${PN} += "dev-so already-stripped ldflags file-rdeps " INSANE_SKIP:${PN} += "dev-so already-stripped ldflags file-rdeps "
EXCLUDE_FROM_SHLIBS = "1" EXCLUDE_FROM_SHLIBS = "1"

View File

@ -3,9 +3,9 @@
inherit systemd inherit systemd
LICENSE = "MIT" LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
FILESEXTRAPATHS_prepend := "${THISDIR}/config:" FILESEXTRAPATHS:prepend := "${THISDIR}/config:"
RDEPENDS_${PN} = "bash" RDEPENDS:${PN} = "bash"
SRC_URI = " \ SRC_URI = " \
file://imu-setup.service \ file://imu-setup.service \
@ -14,9 +14,9 @@ SRC_URI = " \
file://imu-lsm6ds3.conf \ file://imu-lsm6ds3.conf \
" "
FILES_${PN} = "${systemd_unitdir}/system ${bindir} /etc" FILES:${PN} = "${systemd_unitdir}/system ${bindir} /etc"
SYSTEMD_SERVICE_${PN} =" \ SYSTEMD_SERVICE:${PN} =" \
imu-setup.service \ imu-setup.service \
" "

View File

@ -15,10 +15,10 @@ S = "${WORKDIR}"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1" INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
SYSTEMD_SERVICE_${PN} = "mount-overlay.service" SYSTEMD_SERVICE:${PN} = "mount-overlay.service"
SYSTEMD_AUTO_ENABLE ?= "enable" SYSTEMD_AUTO_ENABLE ?= "enable"
FILES_${PN}_append = " \ FILES:${PN}:append = " \
/lib \ /lib \
/usr \ /usr \
" "

View File

@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ce5d5f1fe02bcd1343ced64a06fd4177"
inherit autotools inherit autotools
SRC_URI = "git://github.com/cpputest/cpputest.git;protocol=https" SRC_URI = "git://github.com/cpputest/cpputest.git;protocol=https;branch=master"
SRCREV = "bbe3801b990d281cf251cc6e6107256808ea6d19" SRCREV = "bbe3801b990d281cf251cc6e6107256808ea6d19"
PV = "3.8+git${SRCPV}" PV = "3.8+git${SRCPV}"
@ -15,6 +15,6 @@ S = "${WORKDIR}/git"
# Required to add the libary to the SDK. # Required to add the libary to the SDK.
# ${PN}-dev depends on ${PN} which is empty because # ${PN}-dev depends on ${PN} which is empty because
# only the static library is built # only the static library is built
ALLOW_EMPTY_${PN} = "1" ALLOW_EMPTY:${PN} = "1"
BBCLASSEXTEND = "native nativesdk" BBCLASSEXTEND = "native nativesdk"

View File

@ -0,0 +1,25 @@
From 061f3fda77feb2f7c8e111c5e169d460893f7210 Mon Sep 17 00:00:00 2001
From: Alexandre Bard <alexandre.bard@netmodule.com>
Date: Thu, 4 Aug 2022 13:49:17 +0200
Subject: [PATCH] Remove variable defined in header file
linker is complaining about multiple definitions of this variable.
Signed-off-by: Alexandre Bard <alexandre.bard@netmodule.com>
---
plt.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plt.h b/plt.h
index 8b534a9..43d5dbc 100644
--- a/plt.h
+++ b/plt.h
@@ -399,7 +399,7 @@ enum EFUSE_PARAMETER_TYPE_ENMT {
TX_BIP_PD_BUFFER_VBIAS_ERROR_E,
EFUSE_NUMBER_OF_PARAMETERS_E,
EFUSE_LAST_PARAMETER_E = (EFUSE_NUMBER_OF_PARAMETERS_E - 1)
-} EFUSE_PARAMETER_TYPE_ENM;
+};
int get_mac_addr(int ifc_num, unsigned char *mac_addr);

View File

@ -1,5 +1,5 @@
DESCRIPTION = "Configuration utility for TI wireless drivers" DESCRIPTION = "Configuration utility for TI wireless drivers"
LICENSE = "GPLv2" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://README;md5=df1ae7fbe1a166f497f944d67efbf088" LIC_FILES_CHKSUM = "file://README;md5=df1ae7fbe1a166f497f944d67efbf088"
# Based on TI meta-arago-extras # Based on TI meta-arago-extras
@ -10,7 +10,9 @@ PV = "R8.7+git${SRCPV}"
PR = "r1" PR = "r1"
SRCREV = "39542357111d1f24e866c2857d561a348c04cce4" SRCREV = "39542357111d1f24e866c2857d561a348c04cce4"
SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git" SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git;branch=master \
file://0001-Remove-variable-defined-in-header-file.patch \
"
DEPENDS = "libnl" DEPENDS = "libnl"
@ -21,7 +23,7 @@ EXTRA_OEMAKE = "CFLAGS+="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32
CC="${CC}" \ CC="${CC}" \
NLVER=3" NLVER=3"
S = "${WORKDIR}/git/" S = "${WORKDIR}/git"
# Install calibrator # Install calibrator
do_install() { do_install() {

View File

@ -2,11 +2,11 @@ SUMMARY = "Battery Test tool"
DESCRIPTION = "Read battery state, remaining time and other informations from battery" DESCRIPTION = "Read battery state, remaining time and other informations from battery"
AUTHOR = "Ramon Mösching (ramon.moesching@netmodule.com)" AUTHOR = "Ramon Mösching (ramon.moesching@netmodule.com)"
SECTION = "core" SECTION = "core"
LICENSE = "GPLv2+" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
PR = "r0" PR = "r0"
RDEPENDS_${PN} = "python3-core python3-smbus" RDEPENDS:${PN} = "python3-core python3-smbus"
SRC_URI = "git://git.netmodule.intranet/nm-tools/smart-battery.git;protocol=ssh;user=gitea;branch=master " SRC_URI = "git://git.netmodule.intranet/nm-tools/smart-battery.git;protocol=ssh;user=gitea;branch=master "
@ -14,7 +14,7 @@ SRCREV ?= "7caae36f50ea23f69458fc50887c5ab59b4d48f3"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
FILES_${PN} = "${bindir}/* batterytest.py " FILES:${PN} = "${bindir}/* batterytest.py "
do_install () { do_install () {

View File

@ -1,6 +1,6 @@
SUMMARY = "NetModule shared library" SUMMARY = "NetModule shared library"
SECTION = "base" SECTION = "base"
LICENSE = "GPLv2+" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1f002990697cc3f88357d1c0790d47b2" LIC_FILES_CHKSUM = "file://LICENSE;md5=1f002990697cc3f88357d1c0790d47b2"
SRC_URI = "git://gitlab.com/netmodule/tools/libnmapp.git;protocol=ssh;user=git;branch=develop" SRC_URI = "git://gitlab.com/netmodule/tools/libnmapp.git;protocol=ssh;user=git;branch=develop"
@ -10,18 +10,18 @@ PV = "0.0.1+git${SRCPV}"
LIB_SHORT_NAME = "nmapp" LIB_SHORT_NAME = "nmapp"
LIB_PKG_NAME = "libnmapp.a" LIB_PKG_NAME = "libnmapp.a"
DEPENDS_append = " libevent systemd" DEPENDS:append = " libevent systemd"
# Required to add the libary to the SDK. # Required to add the libary to the SDK.
# ${PN}-dev depends on ${PN} which is empty because # ${PN}-dev depends on ${PN} which is empty because
# only the static library is built # only the static library is built
ALLOW_EMPTY_${PN} = "1" ALLOW_EMPTY:${PN} = "1"
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
B = "${S}/build" B = "${S}/build"
# build variables for the target (rest is default) # build variables for the target (rest is default)
EXTRA_OEMAKE_append = " 'BUILD_TARGET=target' 'BUILD_CONFIG=rls' 'USE_INITSYS_DUMMY=0' 'SYSROOT=${STAGING_DIR_TARGET}'" EXTRA_OEMAKE:append = " 'BUILD_TARGET=target' 'BUILD_CONFIG=rls' 'USE_INITSYS_DUMMY=0' 'SYSROOT=${STAGING_DIR_TARGET}'"
do_install() { do_install() {
install -d ${D}${libdir} install -d ${D}${libdir}

View File

@ -1,11 +1,11 @@
SUMMARY = "Adds a script and a systemd service to partition the drives of the system on the first boot." SUMMARY = "Adds a script and a systemd service to partition the drives of the system on the first boot."
DESCRIPTION = "Adds a script and a systemd service to partition the drives of the system on the first boot." DESCRIPTION = "Adds a script and a systemd service to partition the drives of the system on the first boot."
PR = "r1" PR = "r1"
LICENSE = "GPLv3+" LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=2f31b266d3440dd7ee50f92cf67d8e6c" LIC_FILES_CHKSUM = "file://COPYING;md5=2f31b266d3440dd7ee50f92cf67d8e6c"
RDEPENDS_${PN} += "e2fsprogs-resize2fs \ RDEPENDS:${PN} += "e2fsprogs-resize2fs \
e2fsprogs-mke2fs \ e2fsprogs-mke2fs \
bash \ bash \
parted \ parted \
@ -23,6 +23,6 @@ do_install () {
install -m 755 nmhw-auto-part ${D}${bindir}/ install -m 755 nmhw-auto-part ${D}${bindir}/
} }
FILES_${PN} = " \ FILES:${PN} = " \
${bindir}/nmhw-auto-part \ ${bindir}/nmhw-auto-part \
" "

View File

@ -3,10 +3,10 @@ DESCRIPTION = "Generic NetModule update tool for firmware, bootloaders, etc"
AUTHOR = "Alexandre Bard" AUTHOR = "Alexandre Bard"
SECTION = "core" SECTION = "core"
LICENSE = "GPLv2+" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=e45effb5e2fdf3ead60ab663bccdc4b8"
RDEPENDS_${PN} = " \ RDEPENDS:${PN} = " \
wget \ wget \
bash \ bash \
coreutils \ coreutils \
@ -14,13 +14,13 @@ RDEPENDS_${PN} = " \
" "
SRC_URI = " \ SRC_URI = " \
git://gitlab.com/netmodule/tools/nmhw-fwupdate.git;user=git;protocol=ssh; \ git://gitlab.com/netmodule/tools/nmhw-fwupdate.git;user=git;protocol=ssh;;branch=master \
" "
SRCREV ?= "68b84ce457e8cd4a59e2f366114edf0098acbe4d" SRCREV ?= "68b84ce457e8cd4a59e2f366114edf0098acbe4d"
S = "${WORKDIR}/git/src" S = "${WORKDIR}/git/src"
FILES_${PN} = " \ FILES:${PN} = " \
/lib \ /lib \
/usr \ /usr \
" "

View File

@ -1,6 +1,6 @@
SUMMARY = "NetModule system-state-framework manager" SUMMARY = "NetModule system-state-framework manager"
SECTION = "base" SECTION = "base"
LICENSE = "GPLv2+" LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6f1c528c9a0010ef398e26c661ff286e" LIC_FILES_CHKSUM = "file://LICENSE;md5=6f1c528c9a0010ef398e26c661ff286e"
SRC_URI = "git://gitlab.com/netmodule/tools/ssf-mgr.git;protocol=ssh;user=git;branch=develop" SRC_URI = "git://gitlab.com/netmodule/tools/ssf-mgr.git;protocol=ssh;user=git;branch=develop"
@ -9,24 +9,24 @@ SRCREV ?= "eead025f7135b28cb6e3e1e68bd636e93b74798b"
PV = "0.0.1+git${SRCPV}" PV = "0.0.1+git${SRCPV}"
DEPENDS_append = " libnmapp" DEPENDS:append = " libnmapp"
RDEPENDS_${PN} = " packagegroup-system-state-framework" RDEPENDS:${PN} = " packagegroup-system-state-framework"
inherit systemd inherit systemd
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
B = "${S}/build" B = "${S}/build"
SYSTEMD_SERVICE_${PN} = "ssf-mgr.service" SYSTEMD_SERVICE:${PN} = "ssf-mgr.service"
FILES_${PN} += " \ FILES:${PN} += " \
${bindir}/ssf-mgr \ ${bindir}/ssf-mgr \
${systemd_system_unitdir}/ssf-mgr.service \ ${systemd_system_unitdir}/ssf-mgr.service \
${sysconfdir}/ssf-mgr/ssf-mgr.conf \ ${sysconfdir}/ssf-mgr/ssf-mgr.conf \
" "
# build variables for the target (rest is default) # build variables for the target (rest is default)
EXTRA_OEMAKE_append = " 'BUILD_TARGET=target' 'BUILD_CONFIG=rls' 'SYSROOT=${STAGING_DIR_TARGET}'" EXTRA_OEMAKE:append = " 'BUILD_TARGET=target' 'BUILD_CONFIG=rls' 'SYSROOT=${STAGING_DIR_TARGET}'"
do_install() { do_install() {
install -d ${D}${bindir} install -d ${D}${bindir}

View File

@ -9,23 +9,23 @@ SRCREV ?= "dbdbc1e31816239586b4706d962a16feb77bd1cf"
PV = "0.0.1+git${SRCPV}" PV = "0.0.1+git${SRCPV}"
DEPENDS_append = " libnmapp" DEPENDS:append = " libnmapp"
inherit systemd inherit systemd
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
B = "${S}/build" B = "${S}/build"
SYSTEMD_SERVICE_${PN} = "sys-mon.service" SYSTEMD_SERVICE:${PN} = "sys-mon.service"
FILES_${PN} += " \ FILES:${PN} += " \
${bindir}/sys-mon \ ${bindir}/sys-mon \
${systemd_system_unitdir}/sys-mon.service \ ${systemd_system_unitdir}/sys-mon.service \
${sysconfdir}/sys-mon/sys-mon.conf \ ${sysconfdir}/sys-mon/sys-mon.conf \
" "
# build variables for the target (rest is default) # build variables for the target (rest is default)
EXTRA_OEMAKE_append = " 'BUILD_TARGET=target' 'BUILD_CONFIG=rls' 'SYSROOT=${STAGING_DIR_TARGET}'" EXTRA_OEMAKE:append = " 'BUILD_TARGET=target' 'BUILD_CONFIG=rls' 'SYSROOT=${STAGING_DIR_TARGET}'"
do_install() { do_install() {
install -d ${D}${bindir} install -d ${D}${bindir}

View File

@ -15,16 +15,16 @@ SRC_URI = " \
S = "${WORKDIR}" S = "${WORKDIR}"
RDEPENDS_${PN} = "socat um-service-cfg" RDEPENDS:${PN} = "socat um-service-cfg"
SYSTEMD_SERVICE_${PN} = " \ SYSTEMD_SERVICE:${PN} = " \
socket-uart.service \ socket-uart.service \
socket-kline.service \ socket-kline.service \
socket-lin.service \ socket-lin.service \
" "
FILES_${PN} = "${systemd_unitdir}/system ${bindir} " FILES:${PN} = "${systemd_unitdir}/system ${bindir} "
do_install() { do_install() {
install -d ${D}${systemd_unitdir}/system install -d ${D}${systemd_unitdir}/system

View File

@ -3,10 +3,10 @@
inherit systemd inherit systemd
LICENSE = "MIT" LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
FILESEXTRAPATHS_prepend := "${THISDIR}/config:" FILESEXTRAPATHS:prepend := "${THISDIR}/config:"
ALTERNATIVE_PRIORITY[netcat] = "100" ALTERNATIVE_PRIORITY[netcat] = "100"
RDEPENDS_${PN} = "netcat" RDEPENDS:${PN} = "netcat"
SRC_URI = " \ SRC_URI = " \
file://um-service-config.service \ file://um-service-config.service \
@ -18,9 +18,9 @@ SRC_URI = " \
file://ports-v2 \ file://ports-v2 \
" "
FILES_${PN} = "${systemd_unitdir}/system ${bindir} /etc/user-module" FILES:${PN} = "${systemd_unitdir}/system ${bindir} /etc/user-module"
SYSTEMD_SERVICE_${PN} =" \ SYSTEMD_SERVICE:${PN} =" \
um-service-config.service \ um-service-config.service \
um-rgpio-config.service \ um-rgpio-config.service \
user-module.target \ user-module.target \