# This image extends fsl-image-multimedia with the following:
#   XFCE desktop
#   Disk formatting tools
#   Modem and wireless support

IMAGE_FEATURES += "\
    ${@base_contains('DISTRO_FEATURES', 'x11', 'x11-base', '', d)} \
"

LICENSE = "MIT"

inherit core-image

CORE_IMAGE_EXTRA_INSTALL += " \
    packagegroup-fsl-gstreamer \
    packagegroup-fsl-tools-gpu \
    ${@base_contains('DISTRO_FEATURES', 'directfb', 'packagegroup-core-directfb', '', d)} \
    ${@base_contains('DISTRO_FEATURES', 'x11', '', \
                      base_contains('DISTRO_FEATURES', 'wayland', \
                                    'weston weston-init weston-examples \
                                         gtk+3-demo clutter-1.0-examples', '', d), d)} \
"

CORE_IMAGE_EXTRA_INSTALL += " \
    packagegroup-fsl-gstreamer-full \
"

IMAGE_INSTALL_append = " e2fsprogs-mke2fs dosfstools"
IMAGE_INSTALL_append = " packagegroup-xfce-extended midori"
IMAGE_INSTALL_append = " ppp wvdial linux-firmware canutils"
IMAGE_INSTALL_append = " opal6-apps-led-demo opal6-apps-rs485-test"

Correct dependencies for XFCE demo image

# This image extends fsl-image-multimedia_full with the following:
#   XFCE desktop
#   Disk formatting tools
#   Modem and wireless support

require recipes-fsl/images/fsl-image-multimedia-full.bb

IMAGE_INSTALL_append = " e2fsprogs-mke2fs dosfstools"
IMAGE_INSTALL_append = " packagegroup-xfce-extended midori"
IMAGE_INSTALL_append = " ppp wvdial linux-firmware canutils"
IMAGE_INSTALL_append = " opal6-apps-led-demo opal6-apps-rs485-test"


DESCRIPTION = "Packages that are to be compiled nativly for the OpenSlug firmware"
LICENSE = MIT
PR = "r1"

INHIBIT_DEFAULT_DEPS = "1"
ALLOW_EMPTY = 1
PACKAGES = "${PN}"

OPENSLUG_NATIVE_PACKAGES = "\
	"

BROKEN_PACKAGES = "\
	"

DEPENDS = '${OPENSLUG_NATIVE_PACKAGES} \
	package-index'

Add a few packages to test with

DESCRIPTION = "Packages that are to be compiled nativly for the OpenSlug firmware"
LICENSE = MIT
PR = "r2"

INHIBIT_DEFAULT_DEPS = "1"
ALLOW_EMPTY = 1
PACKAGES = "${PN}"

# Just something the test with
OPENSLUG_NATIVE_PACKAGES = "\
	gzip \
	vlan \
	"

BROKEN_PACKAGES = "\
	"

DEPENDS = '${OPENSLUG_NATIVE_PACKAGES} \
	package-index'


SUMMARY = "Freedesktop sound theme"
HOMEPAGE = "http://freedesktop.org/wiki/Specifications/sound-theme-spec"
LICENSE = "GPLv2+ CC-BY-3.0 CC-BY-SA-3.0"
LIC_FILES_CHKSUM = "file://CREDITS;md5=3213e601ce34bb42ddc3498903ac4e69"

# glib-2.0 for glib-gettext.m4 which provides AM_GLIB_GNU_GETTEXT
# intltool for intltool.m4 which provides IT_PROG_INTLTOOL
DEPENDS = "glib-2.0 intltool-native"

inherit autotools gettext

DEPENDS += "glib-2.0-native intltool-native"

SRC_URI = "http://people.freedesktop.org/~mccann/dist/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "d7387912cfd275282d1ec94483cb2f62"
SRC_URI[sha256sum] = "cb518b20eef05ec2e82dda1fa89a292c1760dc023aba91b8aa69bafac85e8a14"

Fix license format QA error

SUMMARY = "Freedesktop sound theme"
HOMEPAGE = "http://freedesktop.org/wiki/Specifications/sound-theme-spec"
LICENSE = "GPLv2+ & CC-BY-3.0 & CC-BY-SA-3.0"
LIC_FILES_CHKSUM = "file://CREDITS;md5=3213e601ce34bb42ddc3498903ac4e69"

# glib-2.0 for glib-gettext.m4 which provides AM_GLIB_GNU_GETTEXT
# intltool for intltool.m4 which provides IT_PROG_INTLTOOL
DEPENDS = "glib-2.0 intltool-native"

inherit autotools gettext

DEPENDS += "glib-2.0-native intltool-native"

SRC_URI = "http://people.freedesktop.org/~mccann/dist/${BPN}-${PV}.tar.bz2"
SRC_URI[md5sum] = "d7387912cfd275282d1ec94483cb2f62"
SRC_URI[sha256sum] = "cb518b20eef05ec2e82dda1fa89a292c1760dc023aba91b8aa69bafac85e8a14"


SUMMARY = "Python client for Redis key-value store"
DESCRIPTION = "The Python interface to the Redis key-value store."
HOMEPAGE = "http://github.com/andymccurdy/redis-py"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=51d9ad56299ab60ba7be65a621004f27"

SRC_URI[md5sum] = "048348d8cfe0b5d0bba2f4d835005c3b"
SRC_URI[sha256sum] = "a22ca993cea2962dbb588f9f30d0015ac4afcc45bee27d3978c0dbe9e97c6c0f"

inherit pypi setuptools3

RDEPENDS_${PN} += "\
    ${PYTHON_PN}-datetime \
"

Add python3-cryptography to RDEPENDS for python3-redis

SUMMARY = "Python client for Redis key-value store"
DESCRIPTION = "The Python interface to the Redis key-value store."
HOMEPAGE = "http://github.com/andymccurdy/redis-py"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=51d9ad56299ab60ba7be65a621004f27"

SRC_URI[md5sum] = "048348d8cfe0b5d0bba2f4d835005c3b"
SRC_URI[sha256sum] = "a22ca993cea2962dbb588f9f30d0015ac4afcc45bee27d3978c0dbe9e97c6c0f"

inherit pypi setuptools3

RDEPENDS_${PN} += "\
    ${PYTHON_PN}-datetime \
    ${PYTHON_PN}-cryptography \
"


SUMMARY = "Basic X11 graphics image"

IMAGE_FEATURES += "splash package-management debug-tweaks ssh-server-openssh hwcodecs x11 tools-debug"

LICENSE = "MIT"

inherit core-image distro_features_check extrausers

# let's make sure we have a good image..
REQUIRED_DISTRO_FEATURES = "x11"

# make sure we boot to desktop
# by default and without x11-base in IMAGE_FEATURES we default to multi-user.target
SYSTEMD_DEFAULT_TARGET = "graphical.target"

CORE_IMAGE_BASE_INSTALL += " \
    alsa-utils-aplay \
    coreutils \
    glmark2 \
    gptfdisk \
    gstreamer1.0-plugins-bad-meta \
    gstreamer1.0-plugins-base-meta \
    gstreamer1.0-plugins-good-meta \
    gtkperf \
    kernel-modules \
    kmscube \
    mesa-demos \
    openbox \
    rsync \
"

Use features_check instead of distro_features_check

SUMMARY = "Basic X11 graphics image"

IMAGE_FEATURES += "splash package-management debug-tweaks ssh-server-openssh hwcodecs x11 tools-debug"

LICENSE = "MIT"

inherit core-image features_check extrausers

# let's make sure we have a good image..
REQUIRED_DISTRO_FEATURES = "x11"

# make sure we boot to desktop
# by default and without x11-base in IMAGE_FEATURES we default to multi-user.target
SYSTEMD_DEFAULT_TARGET = "graphical.target"

CORE_IMAGE_BASE_INSTALL += " \
    alsa-utils-aplay \
    coreutils \
    glmark2 \
    gptfdisk \
    gstreamer1.0-plugins-bad-meta \
    gstreamer1.0-plugins-base-meta \
    gstreamer1.0-plugins-good-meta \
    gtkperf \
    kernel-modules \
    kmscube \
    mesa-demos \
    openbox \
    rsync \
"


require connman.inc

SRCREV = "c80faf72bfdd1f78562504146f16a3b05874dd92"
SRC_URI  = "git://git.kernel.org/pub/scm/network/connman/connman.git \
            file://add_xuser_dbus_permission.patch \
            file://connman"
S = "${WORKDIR}/git"
PR = "${INC_PR}.0"

Update to connman version 1.3

require connman.inc

SRCREV = "3c0fa84091524c7cd6237744f2088ffee2f1d5ad"
SRC_URI  = "git://git.kernel.org/pub/scm/network/connman/connman.git \
            file://add_xuser_dbus_permission.patch \
            file://connman"
S = "${WORKDIR}/git"
PR = "${INC_PR}.1"


DESCRIPTION = "Lists available userspace I/O (UIO) devices"
SECTION = "tools"
DEPENDS = ""
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"

HOMEPAGE="http://www.osadl.org/UIO.uio.0.html"
SRC_URI="http://www.osadl.org/projects/downloads/UIO/user/lsuio-${PV}.tar.gz"
SRC_URI[md5sum] = "8da82b681c24e6c5b3518c99e7f961d7"
SRC_URI[sha256sum] = "c88b3850248b2d3419e025abd7b9b0991c8bd33a2d4983f9608408a29900bfb5"

# Make sure our source directory (for the build) matches the directory structure in the tarball
S = "${WORKDIR}/lsuio-${PV}"

inherit autotools
<<<<<<< HEAD

=======
>>>>>>> 9d5ccc3... Improve lsuio recipe description

Fix lsuio recipe from wrong merge


DESCRIPTION = "Lists available userspace I/O (UIO) devices"
SECTION = "tools"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
PR = "r0"

DEPENDS = ""

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"

HOMEPAGE="http://www.osadl.org/UIO.uio.0.html"
SRC_URI="http://www.osadl.org/projects/downloads/UIO/user/lsuio-${PV}.tar.gz"
SRC_URI[md5sum] = "8da82b681c24e6c5b3518c99e7f961d7"
SRC_URI[sha256sum] = "c88b3850248b2d3419e025abd7b9b0991c8bd33a2d4983f9608408a29900bfb5"

# Make sure our source directory (for the build) matches the directory structure in the tarball
S = "${WORKDIR}/lsuio-${PV}"

inherit autotools

Allow fixing a conflict when building petalinux SDK

DESCRIPTION = "Lists available userspace I/O (UIO) devices"
SECTION = "tools"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
PR = "r1"

DEPENDS = ""

HOMEPAGE="http://www.osadl.org/UIO.uio.0.html"
SRC_URI="http://www.osadl.org/projects/downloads/UIO/user/lsuio-${PV}.tar.gz"
SRC_URI[md5sum] = "8da82b681c24e6c5b3518c99e7f961d7"
SRC_URI[sha256sum] = "c88b3850248b2d3419e025abd7b9b0991c8bd33a2d4983f9608408a29900bfb5"

# Make sure our source directory (for the build) matches the directory structure in the tarball
S = "${WORKDIR}/lsuio-${PV}"

PACKAGES = "lsuio-dbg lsuio"

FILES_${PN}-dbg += " \
    /usr/bin/.debug \
    /usr/share \
"

inherit autotools


require kernel-module-mali-utgard.inc

LIC_FILES_CHKSUM = "file://driver/src/devicedrv/mali/readme.txt;md5=92d15b487d204ace57072c48697b4a89"

BRANCH="DX910-SW-99002-r9p0-01rel0_meson_gx"
SRC_URI = "git://github.com/superna9999/meson_gx_mali_450.git;branch=${BRANCH}"

SRCREV = "eb2c846fd78058def70b492f55e4c52fd7254da7"

S = "${WORKDIR}/git"

MALI_KCONFIG = "MALI_PLATFORM_FILES=platform/meson/meson.c \
		CONFIG_MALI_DMA_BUF_MAP_ON_ATTACH=y \
		CONFIG_MALI_QUIET=y \
"

MALI_FLAGS = "-DMALI_FAKE_PLATFORM_DEVICE=1 \
	      -DCONFIG_MALI_DMA_BUF_MAP_ON_ATTACH \
	      -DCONFIG_MALI_QUIET \
"

COMPATIBLE_MACHINE = "odroid-c2"

Fix vm_fault_t build error on v5.0

require kernel-module-mali-utgard.inc

LIC_FILES_CHKSUM = "file://driver/src/devicedrv/mali/readme.txt;md5=92d15b487d204ace57072c48697b4a89"

BRANCH="DX910-SW-99002-r9p0-01rel0_meson_gx"
SRC_URI = "git://github.com/superna9999/meson_gx_mali_450.git;branch=${BRANCH}"

SRCREV = "bff4613d70b95c783e514019d169b68bfbdd9f3b"

S = "${WORKDIR}/git"

MALI_KCONFIG = "MALI_PLATFORM_FILES=platform/meson/meson.c \
		CONFIG_MALI_DMA_BUF_MAP_ON_ATTACH=y \
		CONFIG_MALI_QUIET=y \
"

MALI_FLAGS = "-DMALI_FAKE_PLATFORM_DEVICE=1 \
	      -DCONFIG_MALI_DMA_BUF_MAP_ON_ATTACH \
	      -DCONFIG_MALI_QUIET \
"

COMPATIBLE_MACHINE = "odroid-c2"


DESCRIPTION = "Packages for IBM Bluemix & Watson platforms."
LICENSE = "MIT"

inherit packagegroup

PR = "r0"

RDEPENDS_${PN} = "\
	ibm-iotf-embeddedc \
	ibm-iotf-embeddedc-dev \
	ibm-iotf-embeddedc-samples \
	node-red-contrib-ibm-watson-iot \
	python-ibmiotf \
"

PACKAGES = "${PN}"

PACKAGECONFIG ??= "java"
PACKAGECONFIG[java] = "\
	, \
	, \
	, \
	ibm-iotf-java \
"

Choose which programming languages to support in the package group

DESCRIPTION = "Packages for IBM Bluemix & Watson platforms."
LICENSE = "MIT"

inherit packagegroup

PR = "r0"

PACKAGES = "${PN}"

PACKAGECONFIG ??= "c java python node-red"

PACKAGECONFIG[c] = "\
	, \
	, \
	, \
	ibm-iotf-embeddedc \
	ibm-iotf-embeddedc-dev \
	ibm-iotf-embeddedc-samples \
"

PACKAGECONFIG[java] = "\
	, \
	, \
	, \
	ibm-iotf-java \
"

PACKAGECONFIG[python] = "\
	, \
	, \
	, \
	python-ibmiotf \
"

PACKAGECONFIG[node-red] = "\
	, \
	, \
	, \
	node-red-contrib-ibm-watson-iot \
"


DESCRIPTION = "PetaLinux Qt additional supported packages"

inherit packagegroup distro_features_check

ANY_OF_DISTRO_FEATURES = "x11 fbdev wayland"

QT_EXTENDED_PACKAGES = " \
	ruby \
	packagegroup-petalinux-qt \
	qtbase-mkspecs \
	qtbase-plugins \
	qtsystems-mkspecs \
	qttranslations-qtbase \
	qttranslations-qthelp \
	qtconnectivity-mkspecs \
	qttranslations-qtconnectivity \
	qtdeclarative-mkspecs \
	qttranslations-qmlviewer \
	qttranslations-qtdeclarative \
	qtenginio-mkspecs \
	qtimageformats-plugins \
	qtlocation-mkspecs \
	qtlocation-plugins \
	qttranslations-qtmultimedia \
	qtscript-mkspecs \
	qttranslations-qtscript \
	qtsensors-mkspecs \
	qtsensors-plugins \
	qtserialport-mkspecs \
	qtsvg-mkspecs \
	qtsvg-plugins \
	qtwebsockets-mkspecs \
	qttranslations-qtwebsockets \
	qtwebchannel-mkspecs \
	qtxmlpatterns-mkspecs \
	qttranslations-qtxmlpatterns \
	qtwebkit-mkspecs \
	qtx11extras \
	"
RDEPENDS_${PN} = "${QT_EXTENDED_PACKAGES}"

Build qtx11extras only if distro contains X11

DESCRIPTION = "PetaLinux Qt additional supported packages"

inherit packagegroup distro_features_check

ANY_OF_DISTRO_FEATURES = "x11 fbdev wayland"

QT_EXTENDED_PACKAGES = " \
	ruby \
	packagegroup-petalinux-qt \
	qtbase-mkspecs \
	qtbase-plugins \
	qtsystems-mkspecs \
	qttranslations-qtbase \
	qttranslations-qthelp \
	qtconnectivity-mkspecs \
	qttranslations-qtconnectivity \
	qtdeclarative-mkspecs \
	qttranslations-qmlviewer \
	qttranslations-qtdeclarative \
	qtenginio-mkspecs \
	qtimageformats-plugins \
	qtlocation-mkspecs \
	qtlocation-plugins \
	qttranslations-qtmultimedia \
	qtscript-mkspecs \
	qttranslations-qtscript \
	qtsensors-mkspecs \
	qtsensors-plugins \
	qtserialport-mkspecs \
	qtsvg-mkspecs \
	qtsvg-plugins \
	qtwebsockets-mkspecs \
	qttranslations-qtwebsockets \
	qtwebchannel-mkspecs \
	qtxmlpatterns-mkspecs \
	qttranslations-qtxmlpatterns \
	qtwebkit-mkspecs \
	${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'qtx11extras', '', d)} \
	"
RDEPENDS_${PN} = "${QT_EXTENDED_PACKAGES}"


# based on OE-Core
require recipes-kernel/linux-libc-headers/linux-libc-headers.inc

# use the same kernel source as linux_git.bb
inherit linux-src

PROVIDES += "linux-libc-headers"

Fix oe_multilib_header cannot find asm/bpf_perf_event.h

# based on OE-Core
require recipes-kernel/linux-libc-headers/linux-libc-headers.inc

# The current version of linux-cip is 4.4 which does not provide 'asm/bpf_perf_event.h'
# Overwrite do_install_armmultilib to remove 'asm/bpf_perf_event.h'.
# Fix error:
#   | ERROR: linux-libc-headers-base-gitAUTOINC+94e27e1f56-r0 do_install: oe_multilib_header: Unable to find header asm/bpf_perf_event.h.
do_install_armmultilib () {
	oe_multilib_header asm/auxvec.h asm/bitsperlong.h asm/byteorder.h asm/fcntl.h asm/hwcap.h asm/ioctls.h asm/kvm.h asm/kvm_para.h asm/mman.h asm/param.h asm/perf_regs.h
	oe_multilib_header asm/posix_types.h asm/ptrace.h  asm/setup.h  asm/sigcontext.h asm/siginfo.h asm/signal.h asm/stat.h  asm/statfs.h asm/swab.h  asm/types.h asm/unistd.h
}

# use the same kernel source as linux_git.bb
inherit linux-src

PROVIDES += "linux-libc-headers"


#
# base recipe: meta/recipes-core/expat/expat_2.1.0.bb
# base branch: daisy
#

PR = "r0"

SUMMARY = "A stream-oriented XML parser library"
DESCRIPTION = "Expat is an XML parser library written in C. It is a stream-oriented parser in which an application registers handlers for things the parser might find in the XML document (like start tags)"

inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=1b71f681713d1256e1c23b0890920874"

inherit autotools lib_package gzipnative

# This package uses an archive format known to have issue with some
# versions of gzip
do_unpack[depends] += "gzip-native:do_populate_sysroot"

do_configure_prepend () {
        rm -f ${S}/conftools/libtool.m4
}

BBCLASSEXTEND = "native nativesdk"

LIC_FILES_CHKSUM = "file://COPYING;md5=1b71f681713d1256e1c23b0890920874"

SRC_URI[md5sum] = "dd7dab7a5fea97d2a6a43f511449b7cd"
SRC_URI[sha256sum] = "823705472f816df21c8f6aa026dd162b280806838bb55b3432b0fb1fcca7eb86"

Update recipe for expat package


require linux.inc

DESCRIPTION = "The Linux kernel for E-Ten Glofiish smartphones"

COMPATIBLE_HOST = "arm.*-linux"
COMPATIBLE_MACHINE = "eten-m800"

KERNEL_RELEASE = "2.6.28-rc4"
KERNEL_VERSION = "${KERNEL_RELEASE}"

# See http://wiki.openembedded.net/index.php/Versioning_Policy
PV = "2.6.27+${KERNEL_RELEASE}+${PR}+gitr${SRCREV}"
PR = "r2"

SRC_URI = "\
  git://git.openezx.org/gnufiish.git;protocol=git;branch=master \
  file://defconfig \
"
S = "${WORKDIR}/git"

CMDLINE = "root=/dev/mmcblk0p1 rootdelay=5"

Add ro to CMDLINE to work around a strange bug that the SD gets not mounted

require linux.inc

DESCRIPTION = "The Linux kernel for E-Ten Glofiish smartphones"

COMPATIBLE_HOST = "arm.*-linux"
COMPATIBLE_MACHINE = "eten-m800"

KERNEL_RELEASE = "2.6.28-rc4"
KERNEL_VERSION = "${KERNEL_RELEASE}"

# See http://wiki.openembedded.net/index.php/Versioning_Policy
PV = "2.6.27+${KERNEL_RELEASE}+${PR}+gitr${SRCREV}"
PR = "r2"

SRC_URI = "\
  git://git.openezx.org/gnufiish.git;protocol=git;branch=master \
  file://defconfig \
"
S = "${WORKDIR}/git"

CMDLINE = "root=/dev/mmcblk0p1 rootdelay=5 ro"


SUMMARY = "A collection of cross-platform QtQuick components for building fluid and dynamic applications"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = " \
    file://LICENSE.MPL2;md5=815ca599c9df247a0c7f619bab123dad \
"

inherit liri

SRC_URI += "file://0001-remove-Werror-from-build-flags.patch"
PV = "0.9.0+git${SRCPV}"
SRCREV = "db128f54be2c65b98bf32e5d60aa1b286f938bfa"
S = "${WORKDIR}/git"

DEPENDS += " \
    qtgraphicaleffects \
    qtquickcontrols2 \
    qtsvg \
"

do_configure_append() {
    (cd ${S} && ./scripts/fetch_icons.sh)
}

FILES_${PN} += "${OE_QMAKE_PATH_QML}"
FILES_${PN}-dev += "${libdir}/cmake"

Add mkspecs to dev subpackage

SUMMARY = "A collection of cross-platform QtQuick components for building fluid and dynamic applications"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = " \
    file://LICENSE.MPL2;md5=815ca599c9df247a0c7f619bab123dad \
"

inherit liri

SRC_URI += "file://0001-remove-Werror-from-build-flags.patch"
PV = "0.9.0+git${SRCPV}"
SRCREV = "a6103bd412abe49932964b9f09f69b1a28db530a"
S = "${WORKDIR}/git"

DEPENDS += " \
    qtgraphicaleffects \
    qtquickcontrols2 \
    qtsvg \
"

do_configure_append() {
    (cd ${S} && ./scripts/fetch_icons.sh)
}

FILES_${PN} += "${OE_QMAKE_PATH_QML}"
FILES_${PN}-dev += " \
    ${libdir}/cmake \
    ${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs \
"


inherit gpe

DEPENDS = "virtual/xserver libxtst libxau libxpm libgpelaunch"
DEPENDS_append_openzaurus = " display-brightness"
RDEPENDS_append_openzaurus = " display-brightness"

SECTION = "gpe"
LICENSE = "GPL"
DESCRIPTION = "A small utility for binding commands to a hot key.\
 Keylaunch is a minimal utility for associating commands with hot keys. This\
 GPE version is intended for use with the special keys found on most handheld\
 computers. You can connect each key to a program of your choice; if the\
 program is already running, keylaunch can bring its window to the front\
 rather than just running another copy."
PACKAGE_ARCH = "${MACHINE_ARCH}"
PR = "r5"

SRC_URI += " file://keylaunchrc"

do_install_prepend () {
	install ${WORKDIR}/keylaunchrc ${S}/keylaunchrc
}

export CVSBUILD="no"

Install configuration using update-alternatives, enables different key-bindings for different window managers

inherit gpe

DEPENDS = "virtual/xserver libxtst libxau libxpm libgpelaunch"
DEPENDS_append_openzaurus = " display-brightness"
RDEPENDS_append_openzaurus = " display-brightness"

SECTION = "gpe"
LICENSE = "GPL"
DESCRIPTION = "A small utility for binding commands to a hot key.\
 Keylaunch is a minimal utility for associating commands with hot keys. This\
 GPE version is intended for use with the special keys found on most handheld\
 computers. You can connect each key to a program of your choice; if the\
 program is already running, keylaunch can bring its window to the front\
 rather than just running another copy."
PACKAGE_ARCH = "${MACHINE_ARCH}"
PR = "r6"

SRC_URI += " file://keylaunchrc"

do_install_prepend () {
	install ${WORKDIR}/keylaunchrc ${S}/keylaunchrc
}

do_install_append() {
	# yeah I know...this is less than ideal
	mv ${D}/etc/keylaunchrc ${D}/etc/keylaunchrc.matchbox
}

export CVSBUILD="no"

pkg_postinst_${PN}() {
	update-alternatives --install /etc/keylaunchrc keylaunchrc /etc/keylaunchrc.matchbox 10
}

pkg_postrm_${PN}() {
       update-alternatives --remove keylaunchrc /etc/keylaunchrc.matchbox
}


FILESEXTRAPATHS_prepend := "${THISDIR}:"

DESCRIPTION = "ACME Utilities"
SECTION = "acme"
DEPENDS = ""
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=578ecfeb82fabd60bb6310f0bf6af799"

SRC_URI = "git://github.com/bayLibre-acme/acme-utils.git;branch=python-cli"
SRCREV = "python-cli"

S = "${WORKDIR}/git"

RDEPENDS_${PN} = "python3-modules"

inherit systemd

SYSTEMD_SERVICE_${PN} = "pyacmed.service"
SYSTEMD_PACKAGES = "${PN}"

do_compile() {
	     make -C api
}

do_install() {
	     install -d ${D}${bindir}
	     install -d ${D}${systemd_unitdir}/system/
	     install -m 0755 api/dut-hard-reset ${D}${bindir}
	     install -m 0755 api/dut-switch-*   ${D}${bindir}
	     install -m 0755 api/dut-dump-probe ${D}${bindir}
	     install -m 0755 pyacmed/pyacmed    ${D}${bindir}
	     install -m 0644 pyacmed/pyacmed.service ${D}${systemd_unitdir}/system
	     sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/pyacmed.service
}

Switch to master for acme-utils

FILESEXTRAPATHS_prepend := "${THISDIR}:"

DESCRIPTION = "ACME Utilities"
SECTION = "acme"
DEPENDS = ""
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=578ecfeb82fabd60bb6310f0bf6af799"

SRC_URI = "git://github.com/bayLibre-acme/acme-utils.git;branch=master"
SRCREV = "master"

S = "${WORKDIR}/git"

RDEPENDS_${PN} = "python3-modules"

inherit systemd

SYSTEMD_SERVICE_${PN} = "pyacmed.service"
SYSTEMD_PACKAGES = "${PN}"

do_compile() {
	     make -C api
}

do_install() {
	     install -d ${D}${bindir}
	     install -d ${D}${systemd_unitdir}/system/
	     install -m 0755 api/dut-hard-reset ${D}${bindir}
	     install -m 0755 api/dut-switch-*   ${D}${bindir}
	     install -m 0755 api/dut-dump-probe ${D}${bindir}
	     install -m 0755 pyacmed/pyacmed    ${D}${bindir}
	     install -m 0644 pyacmed/pyacmed.service ${D}${systemd_unitdir}/system
	     sed -i -e 's,@BINDIR@,${bindir},g' ${D}${systemd_unitdir}/system/pyacmed.service
}


#
# Meta-debian
#
DESCRIPTION = "The JasPer JPEG-2000 runtime library"
LICENSE = "Jasper-2.0"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=6fa5cfb08782fcab103fad4ebb2a01d7 \
		    file://LICENSE;md5=baa697d7510288a9cdcce9bd7edaf9bc"
SECTION = "graphics"
PR = "r1"

DEPENDS = "libjpeg-turbo"

EXTRA_OECONF += " --enable-shared=yes"

inherit autotools
inherit debian-package

PACKAGES =+ "libjasper "
FILES_libjasper = "${libdir}/libjasper.so.*"

DEBIANNAME_${PN}-dev = "libjasper-dev"
DEBIANNAME_${PN} = "libjasper-runtime"

Add recipe for native package and correct LICENSE

#
# Meta-debian
#
DESCRIPTION = "The JasPer JPEG-2000 runtime library"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=6fa5cfb08782fcab103fad4ebb2a01d7 \
		    file://LICENSE;md5=baa697d7510288a9cdcce9bd7edaf9bc"
SECTION = "graphics"
PR = "r1"

DEPENDS = "libjpeg-turbo"

EXTRA_OECONF += " --enable-shared=yes"

inherit autotools
inherit debian-package

PACKAGES =+ "libjasper "
FILES_libjasper = "${libdir}/libjasper.so.*"

DEBIANNAME_${PN}-dev = "libjasper-dev"
DEBIANNAME_${PN} = "libjasper-runtime"

BBCLASSEXTEND = "native"


require linaro-image-common.inc

IMAGE_INSTALL += " \
    apache2 \
    fwts \
    grub \
    mysql5-server \
    mysql5-client \
    php-fpm \
    php-fpm-apache2 \
    packagegroup-core-buildessential \
    ${SDK_IMAGE_INSTALL}"

IMAGE_FEATURES += "\
	dev-pkgs \
	staticdev-pkgs \
	tools-debug \
	tools-sdk \
	"

Revert "mongodb: remove from lamp temporarily"

require linaro-image-common.inc

IMAGE_INSTALL += " \
    apache2 \
    fwts \
    grub \
    mysql5-server \
    mysql5-client \
    mongodb \
    php-fpm \
    php-fpm-apache2 \
    packagegroup-core-buildessential \
    ${SDK_IMAGE_INSTALL}"

IMAGE_FEATURES += "\
	dev-pkgs \
	staticdev-pkgs \
	tools-debug \
	tools-sdk \
	"


LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=58ea69e00c0f1a17ba58451500255625"

require kde4.inc

DEPENDS = "virtuoso raptor"

SRC_URI = "git://anongit.kde.org/soprano.git;branch=master \
	   file://Fix-Redland-cross-compile-error.patch \
	   file://WORKAROUND-export-visibility.patch \
	  "

SRCREV = "2f5381c4c449f5c0b1390f7eaf00ef9216f8b5fa"

#Note: the cmake patch for redland could be resolved with a TryRun.cmake file, however since the cmake file will be installed for other programs it would be needed at every program using it.

FILES_${PN} =+ "${libdir}libsopranoserver.*"

EXTRA_OECMAKE =+ "\
		  -DBUILD_VIRTUOSO_BACKEND=TRUE \
		  -DBUILD_RAPTOR_PARSER=TRUE \
		  -DREDLAND_CONFIG_EXECUTABLE=${STAGING_DIR_TARGET}${bindir_crossscripts}/redland-config \
		 "

PV = "2.7.53+git${SRCPV}"

S = "${WORKDIR}/git"

Fix packaging, add necessary RDEPENDS

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=58ea69e00c0f1a17ba58451500255625"

require kde4.inc

DEPENDS = "virtuoso raptor"

RDEPENDS_${PN} = "virtuoso raptor rasqal redland"

SRC_URI = "git://anongit.kde.org/soprano.git;branch=master \
	   file://Fix-Redland-cross-compile-error.patch \
	   file://WORKAROUND-export-visibility.patch \
	  "

SRCREV = "2f5381c4c449f5c0b1390f7eaf00ef9216f8b5fa"

#Note: the cmake patch for redland could be resolved with a TryRun.cmake file, however since the cmake file will be installed for other programs it would be needed at every program using it.

FILES_${PN} =+ "${libdir}/soprano/* \
		${datadir}/dbus-1/* \
	       "

FILES_${PN}-dev += "${datadir}/soprano/cmake/*"

EXTRA_OECMAKE =+ "\
		  -DBUILD_VIRTUOSO_BACKEND=TRUE \
		  -DBUILD_RAPTOR_PARSER=TRUE \
		  -DREDLAND_CONFIG_EXECUTABLE=${STAGING_DIR_TARGET}${bindir_crossscripts}/redland-config \
		 "

PV = "2.7.53+git${SRCPV}"

S = "${WORKDIR}/git"


SUMMARY = "C++ bindings for the GTK+ toolkit V3"
HOMEPAGE = "http://www.gtkmm.org/"
SECTION = "libs"

LICENSE = "LGPL-2.1-only & GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
                    file://COPYING.tools;md5=751419260aa954499f7abaabaa882bbe"

DEPENDS = "glib-2.0-native atkmm pangomm glibmm gtk+3 cairomm gdk-pixbuf-native"

BPN = "gtkmm"

GNOMEBASEBUILDCLASS = "meson"

inherit gnomebase features_check

REQUIRED_DISTRO_FEATURES = "x11"

SRC_URI[archive.sha256sum] = "856333de86689f6a81c123f2db15d85db9addc438bc3574c36f15736aeae22e6"

EXTRA_OEMESON = "-Dbuild-demos=false"

FILES:${PN}-dev += "${libdir}/*/include ${libdir}/*/proc/m4"

Allow wayland or x11 in distro features

SUMMARY = "C++ bindings for the GTK+ toolkit V3"
HOMEPAGE = "http://www.gtkmm.org/"
SECTION = "libs"

LICENSE = "LGPL-2.1-only & GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
                    file://COPYING.tools;md5=751419260aa954499f7abaabaa882bbe"

DEPENDS = "glib-2.0-native atkmm pangomm glibmm gtk+3 cairomm gdk-pixbuf-native"

BPN = "gtkmm"

GNOMEBASEBUILDCLASS = "meson"

inherit gnomebase features_check

ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"

SRC_URI[archive.sha256sum] = "856333de86689f6a81c123f2db15d85db9addc438bc3574c36f15736aeae22e6"

EXTRA_OEMESON = "-Dbuild-demos=false"

FILES:${PN}-dev += "${libdir}/*/include ${libdir}/*/proc/m4"


DESCRIPTION = "TI Cryptography Example Applications"
HOMEPAGE = "http://arago-project.org/git/projects/?p=crypto-example-apps.git;a=summary"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://AES/aes_256.c;beginline=9;endline=35;md5=8edbb4dee965d2f2eb5ca2822addcae5"
SECTION = "console"
DEPENDS += "openssl"

PR = "r6"

BRANCH ?= "master"
SRCREV = "616ca5b6a0feefc1ba2e876c7ced4407f927ef1b"

SRC_URI = "git://arago-project.org/git/projects/crypto-example-apps.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git/"

do_compile() {
    export CROSS_COMPILE=${TARGET_PREFIX}
    export CFLAGS='${TARGET_CC_ARCH}'
    # build the release version
    oe_runmake release
}

do_install() {
    oe_runmake DESTDIR=${D} install
}

Update commit to fix mknod issues

DESCRIPTION = "TI Cryptography Example Applications"
HOMEPAGE = "http://arago-project.org/git/projects/?p=crypto-example-apps.git;a=summary"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://AES/aes_256.c;beginline=9;endline=35;md5=8edbb4dee965d2f2eb5ca2822addcae5"
SECTION = "console"
DEPENDS += "openssl"

PR = "r7"

BRANCH ?= "master"
SRCREV = "6f4b09fffe970bb6b448369875874e798ef282f6"

SRC_URI = "git://arago-project.org/git/projects/crypto-example-apps.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git/"

do_compile() {
    export CROSS_COMPILE=${TARGET_PREFIX}
    export CFLAGS='${TARGET_CC_ARCH}'
    # build the release version
    oe_runmake release
}

do_install() {
    oe_runmake DESTDIR=${D} install
}


require u-boot.inc

FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-omap3-git/${MACHINE}"

SRCREV = "160b30a7f315ea2c7d76dd19250d723eedb283ee"

PV = "2008.10-rc3+${PR}+git${SRCREV}"
PR="r0"

SRC_URI = "git://www.sakoman.net/git/u-boot-omap3.git;branch=overo;protocol=git \
          "

UBOOT_MACHINE_beagleboard = "omap3_beagle_config"
UBOOT_MACHINE_omap3evm = "omap3_evm_config"
UBOOT_MACHINE_overo = "omap3_overo_config"

S = "${WORKDIR}/git"

PACKAGE_ARCH = "${MACHINE_ARCH}"

Switch to evmmux branch to put some mileage on the patches to be submitted upstream

require u-boot.inc

FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-omap3-git/${MACHINE}"

SRCREV = "486ad6069e804bcc98004f197f01b7ef267dc408"

PV = "2008.10+${PR}+git${SRCREV}"
PR="r0"

SRC_URI = "git://www.sakoman.net/git/u-boot-omap3.git;branch=evmmux;protocol=git \
          "

UBOOT_MACHINE_beagleboard = "omap3_beagle_config"
UBOOT_MACHINE_omap3evm = "omap3_evm_config"
UBOOT_MACHINE_overo = "omap3_overo_config"

S = "${WORKDIR}/git"

PACKAGE_ARCH = "${MACHINE_ARCH}"


DESCRIPTION = "Linux kernel based on nilrt branch"

require linux-nilrt.inc

NI_RELEASE_VERSION = "17.1"
LINUX_VERSION = "4.6"
LINUX_VERSION_EXTENSION = "-nilrt"
KBRANCH = "nilrt/${NI_RELEASE_VERSION}/${LINUX_VERSION}"
KBRANCH_n310 = "dev/bmouring/nilrt/cardassia/${LINUX_VERSION}"

# Subfolder of the same name will be added to FILESEXTRAPATHS and also
# used for nilrt-specific config fragment manipulation during build.
# Provide a unique name for each recipe saved in the same source folder.
KBUILD_FRAGMENTS_LOCATION = "nilrt"

Update release name for Cardassia

DESCRIPTION = "Linux kernel based on nilrt branch"

require linux-nilrt.inc

NI_RELEASE_VERSION = "cardassia"
LINUX_VERSION = "4.6"
LINUX_VERSION_EXTENSION = "-nilrt"
KBRANCH = "nilrt/${NI_RELEASE_VERSION}/${LINUX_VERSION}"
KBRANCH_n310 = "dev/bmouring/nilrt/cardassia/${LINUX_VERSION}"

# Subfolder of the same name will be added to FILESEXTRAPATHS and also
# used for nilrt-specific config fragment manipulation during build.
# Provide a unique name for each recipe saved in the same source folder.
KBUILD_FRAGMENTS_LOCATION = "nilrt"


HOMEPAGE = "http://www.oberhumer.com/opensource/ucl/"
SUMMARY = "Data compression library"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=dfeaf3dc4beef4f5a7bdbc35b197f39e"

SRC_URI = " \
    http://www.oberhumer.com/opensource/ucl/download/ucl-1.03.tar.gz \
    file://0001-configure.ac-Fix-with-current-autoconf.patch \
    file://0002-acinclude.m4-Provide-missing-macros.patch"

SRC_URI[md5sum] = "852bd691d8abc75b52053465846fba34"
SRC_URI[sha256sum] = "b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348"

inherit autotools

CFLAGS += "-std=c90"

BBCLASSEXTEND = "native"

Fix gcc6 ACC conformance test configure error for ucl-native too

HOMEPAGE = "http://www.oberhumer.com/opensource/ucl/"
SUMMARY = "Data compression library"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=dfeaf3dc4beef4f5a7bdbc35b197f39e"

SRC_URI = " \
    http://www.oberhumer.com/opensource/ucl/download/ucl-1.03.tar.gz \
    file://0001-configure.ac-Fix-with-current-autoconf.patch \
    file://0002-acinclude.m4-Provide-missing-macros.patch"

SRC_URI[md5sum] = "852bd691d8abc75b52053465846fba34"
SRC_URI[sha256sum] = "b865299ffd45d73412293369c9754b07637680e5c826915f097577cd27350348"

inherit autotools

CFLAGS_append = " -std=c90"

BBCLASSEXTEND = "native"


SUMMARY = "A simple presentation tool for hackers"
DESCRIPTION = "Pinpoint is a simple presentation tool that hopes to avoid audience death \
               by bullet point and instead encourage presentations containing beautiful \
               images and small amounts of concise text in slides."
SECTION = "x11/multimedia"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24 \
                    file://pinpoint.c;beginline=6;endline=17;md5=201d438283607da393fae6aca085454c"

DEPENDS = "glib-2.0 gdk-pixbuf cogl-1.0 clutter-1.0 clutter-gst-3.0 librsvg"

inherit autotools gettext pkgconfig

SRC_URI = "git://git.gnome.org/pinpoint"

SRCREV = "80a056c57e819d0b75035424638813b0670830e1"
PV = "0.1.4+gitr${SRCPV}"

S = "${WORKDIR}/git"

RRECOMMENDS_${PN} = "gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-png"

Add dependency on opengl for cogl

SUMMARY = "A simple presentation tool for hackers"
DESCRIPTION = "Pinpoint is a simple presentation tool that hopes to avoid audience death \
               by bullet point and instead encourage presentations containing beautiful \
               images and small amounts of concise text in slides."
SECTION = "x11/multimedia"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24 \
                    file://pinpoint.c;beginline=6;endline=17;md5=201d438283607da393fae6aca085454c"

DEPENDS = "glib-2.0 gdk-pixbuf cogl-1.0 clutter-1.0 clutter-gst-3.0 librsvg"

inherit autotools gettext pkgconfig distro_features_check

# cogl requires opengl
REQUIRED_DISTRO_FEATURES = "opengl"

SRC_URI = "git://git.gnome.org/pinpoint"

SRCREV = "80a056c57e819d0b75035424638813b0670830e1"
PV = "0.1.4+gitr${SRCPV}"

S = "${WORKDIR}/git"

RRECOMMENDS_${PN} = "gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-png"


SUMMARY = "MagOS image for production"

LICENSE = "MIT"

IMAGE_FEATURES += "ssh-server-dropbear package-management"

IMAGE_INSTALL = " \
    packagegroup-magos-base \
    packagegroup-magos-mmctools \
    packagegroup-core-full-cmdline \
    packagegroup-core-lsb \
"

IMAGE_LINGUAS = " "

inherit core-image

Remove packagegroup-core-lsb from images, for now, since it requires x11.

SUMMARY = "MagOS image for production"

LICENSE = "MIT"

IMAGE_FEATURES += "ssh-server-dropbear package-management"

IMAGE_INSTALL = " \
    packagegroup-magos-base \
    packagegroup-magos-mmctools \
    packagegroup-core-full-cmdline \
"

IMAGE_LINGUAS = " "

inherit core-image


DESCRIPTION = "PWM drivers for omap3 processors"
HOMEPAGE = "https://github.com/scottellis/omap3-pwm"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://../git/pwm.c;endline=28;md5=c8448052329697f9239ac2d919535901"
PR="r2"

inherit module

COMPATIBLE_MACHINE = "overo"

SRCREV = "dc40d9296054e7e26c89586c1bd01199e1593017"
SRC_URI = "git://github.com/scottellis/omap3-pwm.git;protocol=git"

S = "${WORKDIR}/git"

do_compile() {
  unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
  oe_runmake 'KERNELDIR=${STAGING_KERNEL_DIR}'
}

do_install() {
  install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/${PN}
  install -m 0644 pwm${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/${PN}
}

Update license and code for OMAP3 PWM

DESCRIPTION = "PWM drivers for omap3 processors"
HOMEPAGE = "https://github.com/scottellis/omap3-pwm"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

inherit module

COMPATIBLE_MACHINE = "omap3"

SRCREV = "ccee3524b0bc063f968eef3d7963e613dd0beb1b"
SRC_URI = "git://github.com/scottellis/omap3-pwm.git;protocol=git"

S = "${WORKDIR}/git"

do_compile() {
  unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
  oe_runmake 'KERNELDIR=${STAGING_KERNEL_DIR}'
}

do_install() {
  install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/${PN}
  install -m 0644 pwm${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/${PN}
}


DESCRIPTION = "Media controller control application"
LICENSE = "LGPLv2+"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=d749e86a105281d7a44c2328acebc4b0"

SRC_URI = "git://git.ideasonboard.org/media-ctl.git;protocol=git"
SRCREV = "f2f1e160ce411a08836e31c36a09c9dd55ec9784"

PV = "0.0.1"
PR = "r2"
S = "${WORKDIR}/git"

inherit autotools

# It needs some kernel definitions only for v4l2, so it isn't machine specific
EXTRA_OECONF = "--with-kernel-headers=${STAGING_KERNEL_DIR}"

PACKAGES =+ "libmediactl libv4l2subdev"
FILES_libmediactl = "${libdir}/libmediactl${SOLIBS}"
FILES_libv4l2subdev = "${libdir}/libv4l2subdev${SOLIBS}"

Update to latest upstream to fix build with latest autotools

DESCRIPTION = "Media controller control application"
LICENSE = "LGPLv2+"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=d749e86a105281d7a44c2328acebc4b0"

SRC_URI = "git://git.ideasonboard.org/media-ctl.git;protocol=git"
SRCREV = "a6ec4a37028952ffd6e62eb52648cf66248eb519"

PV = "0.0.1"
PR = "r3"
S = "${WORKDIR}/git"

inherit autotools

# It needs some kernel definitions only for v4l2, so it isn't machine specific
EXTRA_OECONF = "--with-kernel-headers=${STAGING_KERNEL_DIR}"

PACKAGES =+ "libmediactl libv4l2subdev"
FILES_libmediactl = "${libdir}/libmediactl${SOLIBS}"
FILES_libv4l2subdev = "${libdir}/libv4l2subdev${SOLIBS}"


DESCRIPTION = "Linux kernel for Beck IPC Hardware"

require recipes-kernel/linux/linux.inc
require recipes-kernel/linux/linux-dtb.inc

COMPATIBLE_MACHINE = "(sc145-db150|sc165-db150|sc165-cti1*)"

PV = "4.9.18"

SRCREV_pn-${PN} = "b6b23aaf48c153ed3bfc0f4b7b3b19d3f0a95797"

SRC_URI += "git://github.com/beck-ipc/kernel-at-chip.git;protocol=https;branch=v4.9-beck; \
            file://defconfig"

S = "${WORKDIR}/git"

Update to latest state, add support for sc145 based cti

DESCRIPTION = "Linux kernel for Beck IPC Hardware"

require recipes-kernel/linux/linux.inc
require recipes-kernel/linux/linux-dtb.inc

COMPATIBLE_MACHINE = "(sc145-db150|sc165-db150|sc165-cti1*|sc145-cti1*)"

PV = "4.9.18"

SRCREV_pn-${PN} = "99e5b2a76ac48cdff1c3ef3f6191c00aec6f93d9"

SRC_URI += "git://github.com/beck-ipc/kernel-at-chip.git;protocol=https;branch=v4.9-beck; \
            file://defconfig"

S = "${WORKDIR}/git"


DESCRIPTION = "Python applets manager"
SECTION = "x11"
LICENSE = "GPL"
DEPENDS += "python-pygame virtual/libsdl libsdl-image python-dbus python-pygobject"
PV = "0.1+svnr${SRCREV}"
PR = "r0.01"

SRC_URI = "svn://svn.projects.openmoko.org/svnroot;module=tichy;proto=http"
S = "${WORKDIR}/tichy"

inherit distutils

FILES_${PN} += "${datadir}"
RDEPENDS_${PN} += "python-pygame"
# This is because pkg-config --libs --cflags sdl doesn't return the correct path (bug in libsdl recipe ?)
CFLAGS += -I${STAGING_INCDIR}/SDL

Revert "[tichy] Apply Charlie's change"

DESCRIPTION = "Python applets manager"
SECTION = "x11"
LICENSE = "GPL"
DEPENDS = "python-pygame"
PV = "0.1+svnr${SRCREV}"
PR = "r0"

SRC_URI = "svn://svn.projects.openmoko.org/svnroot;module=tichy;proto=http"
S = "${WORKDIR}/tichy"

inherit distutils

FILES_${PN} += "${datadir}"
RDEPENDS_${PN} += "python-pygame"


require swupdate.inc
require swupdate_tools.inc

DEFAULT_PREFERENCE = "-1"

SRCREV = '8a2ff356c3d93bb4f681a511e6b42ed64dcf6409'

Allow .bbappend files to overwrite SRCREV

require swupdate.inc
require swupdate_tools.inc

DEFAULT_PREFERENCE = "-1"

SRCREV ?= '8a2ff356c3d93bb4f681a511e6b42ed64dcf6409'


LINUX_VERSION = "5.15.19"
KBRANCH="xlnx_rebase_v5.15_LTS"
SRCREV = "b0c1be301e78c320df8c4d93b18393bfd7fd4e9d"

KCONF_AUDIT_LEVEL="0"

include linux-xlnx.inc

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"

Update branch and SRCREV for update release

LINUX_VERSION = "5.15.19"
KBRANCH="xlnx_rebase_v5.15_LTS_2022.1_update"
SRCREV = "5ead03b6e64b5072737c653bb20ebcd88704e3d1"

KCONF_AUDIT_LEVEL="0"

include linux-xlnx.inc

FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"


#NOTE: This package is currently only supported for the Angstrom
#      distribution.  Other distributions and toolchains may or
#      may not work.

DESCRIPTION = "AM Benchmarks"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_benchmarks/"
LICENSE = "BSD"
SECTION = "system"
PRIORITY = "optional"

SRCREV = "59"
PR = "r2+svnr${SRCPV}"

COMPATIBLE_MACHINE = "(dm365|omapl138|omap3|ti816x)"

ARCHITECTURE_dm365 = "arm9"
ARCHITECTURE_omapl138 = "arm9"
ARCHITECTURE_omap3 = "cortex-a8"
ARCHITECTURE_ti816x = "cortex-a8"

INSANE_SKIP_${PN} = "True"

SRC_URI = "svn://gforge.ti.com/svn/am_benchmarks/;module=trunk;proto=https;user=anonymous;pswd=''"

S = "${WORKDIR}/trunk/${ARCHITECTURE}"

do_compile() {
	# don't build debug version
	touch debug
	export CROSS_COMPILE=${TARGET_PREFIX}
	make release
}

do_install() {
	make DESTDIR=${D} install
}

Add support for am387x-evm machine

#NOTE: This package is currently only supported for the Angstrom
#      distribution.  Other distributions and toolchains may or
#      may not work.

DESCRIPTION = "AM Benchmarks"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_benchmarks/"
LICENSE = "BSD"
SECTION = "system"
PRIORITY = "optional"

SRCREV = "60"
PR = "r2+svnr${SRCPV}"

COMPATIBLE_MACHINE = "(dm365|omapl138|omap3|ti816x|ti814x)"

ARCHITECTURE_dm365 = "arm9"
ARCHITECTURE_omapl138 = "arm9"
ARCHITECTURE_omap3 = "cortex-a8"
ARCHITECTURE_ti816x = "cortex-a8"
ARCHITECTURE_ti814x = "cortex-a8"

INSANE_SKIP_${PN} = "True"

SRC_URI = "svn://gforge.ti.com/svn/am_benchmarks/;module=trunk;proto=https;user=anonymous;pswd=''"

S = "${WORKDIR}/trunk/${ARCHITECTURE}"

do_compile() {
	# don't build debug version
	touch debug
	export CROSS_COMPILE=${TARGET_PREFIX}
	make release
}

do_install() {
	make DESTDIR=${D} install
}


# (c) Copyright 2012  Hewlett-Packard Development Company, L.P.

DESCRIPTION = "A base class for browser plugins loaded by webOS."
LICENSE = "Apache-2.0"
SECTION = "Linux/System"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

DEPENDS = "glib-2.0 npapi-headers"
PR = "r0"

inherit autotools
inherit webos_public_repo
inherit webos_submissions

WEBOS_GIT_TAG = "${WEBOS_SUBMISSION}"
SRC_URI = "${ISIS-PROJECT_GIT_REPO}/AdapterBase;tag=${WEBOS_GIT_TAG};protocol=git"
S = "${WORKDIR}/git"

ALLOW_EMPTY_${PN} = "1"

do_configure() {
    # remove these from staging to ensure we are picking up
    # the correct versions during compilation.
    rm -f ${D}${includedir}/AdapterBase.h
    rm -f ${D}${libdir}/AdapterBase.a
}

do_compile() {
    LUNA_STAGING="." make
}

do_install() {
    install -d ${D}${includedir}
    install -m 444 AdapterBase.h ${D}${includedir}
    install -m 444 AdapterBase.a ${D}${libdir}
}

Create install directory for AdapterBase.a library

# (c) Copyright 2012  Hewlett-Packard Development Company, L.P.

DESCRIPTION = "A base class for browser plugins loaded by webOS."
LICENSE = "Apache-2.0"
SECTION = "Linux/System"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

DEPENDS = "glib-2.0 npapi-headers"
PR = "r1"

inherit autotools
inherit webos_public_repo
inherit webos_submissions

WEBOS_GIT_TAG = "${WEBOS_SUBMISSION}"
SRC_URI = "${ISIS-PROJECT_GIT_REPO}/AdapterBase;tag=${WEBOS_GIT_TAG};protocol=git"
S = "${WORKDIR}/git"

ALLOW_EMPTY_${PN} = "1"

do_configure() {
    # remove these from staging to ensure we are picking up
    # the correct versions during compilation.
    rm -f ${D}${includedir}/AdapterBase.h
    rm -f ${D}${libdir}/AdapterBase.a
}

do_compile() {
    LUNA_STAGING="." make
}

do_install() {
    install -d ${D}${includedir}
    install -m 444 AdapterBase.h ${D}${includedir}
    install -d ${D}${libdir}
    install -m 444 AdapterBase.a ${D}${libdir}
}


DESCRIPTION = "Libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities."
PRIORITY = "optional"
SECTION = "libs"
LICENSE = "GPL"
DEPENDS = "bison-native flex-native"

SRC_URI = "http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/libcap-${PV}.tar.bz2 \
	   file://makenames.patch;patch=1 \
	   file://make.patch;patch=1 "

S = "${WORKDIR}/libcap-${PV}"

do_stage() {
	install -d ${STAGING_INCDIR}/sys
	install -m 0644 libcap/include/sys/capability.h ${STAGING_INCDIR}/sys/
	oe_libinstall -s -C libcap libcap ${STAGING_LIBDIR}
}

do_install() {
	install -d ${D}${includedir}/sys
	install -m 0644 libcap/include/sys/capability.h ${D}${includedir}/sys/
	install -d ${D}${libdir}
	oe_libinstall -s -C libcap libcap ${D}${libdir}
}

FILES_${PN} = "${libdir}"
FILES_${PN}-dev = "${includedir}"

Append include directory to CFLAGS. Reenables compilation and fixes 1628. Seizing the opportunity to remove some cruft and beautify the bb. RP approved.

DESCRIPTION = "Libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities."
PRIORITY = "optional"
SECTION = "libs"
LICENSE = "GPL"
DEPENDS = "bison-native flex-native"

CFLAGS_append = " -I${S}/libcap/include"

SRC_URI = "http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/${PN}-${PV}.tar.bz2 \
	   file://makenames.patch;patch=1 \
	   file://make.patch;patch=1 "

FILES_${PN} = "${libdir}"
FILES_${PN}-dev = "${includedir}"
#S = "${WORKDIR}/libcap-${PV}"

do_install() {
	install -d ${D}${includedir}/sys
	install -m 0644 libcap/include/sys/capability.h ${D}${includedir}/sys/
	install -d ${D}${libdir}
	oe_libinstall -s -C libcap libcap ${D}${libdir}
}

do_stage() {
	install -d ${STAGING_INCDIR}/sys
	install -m 0644 libcap/include/sys/capability.h ${STAGING_INCDIR}/sys/
	oe_libinstall -s -C libcap libcap ${STAGING_LIBDIR}
}


SUMMARY  = "Appling JSON patches in Python 2.6+ and 3.x"
HOMEPAGE = "https://github.com/stefankoegl/python-json-patch"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=32b15c843b7a329130f4e266a281ebb3"

inherit pypi setuptools

SRC_URI[md5sum] = "cf4fbad8188f1389363433dbf867109f"
SRC_URI[sha256sum] = "776d828d6f7b4581862529cf413439a652d74b9e3a0261fa08c36fd761a78b4a"

RDEPENDS_${PN} += "python-re python-json python-jsonpointer"

Fix RDEPENDS to work on minimal python install

SUMMARY  = "Appling JSON patches in Python 2.6+ and 3.x"
HOMEPAGE = "https://github.com/stefankoegl/python-json-patch"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=32b15c843b7a329130f4e266a281ebb3"

inherit pypi setuptools

SRC_URI[md5sum] = "cf4fbad8188f1389363433dbf867109f"
SRC_URI[sha256sum] = "776d828d6f7b4581862529cf413439a652d74b9e3a0261fa08c36fd761a78b4a"

RDEPENDS_${PN} += "${PYTHON_PN}-json ${PYTHON_PN}-jsonpointer ${PYTHON_PN}-netclient ${PYTHON_PN}-re ${PYTHON_PN}-stringold"


DESCRIPTION = "Provides library for handling packet descriptors for keystone devices"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"

DEPENDS = "common-csl-ip rm-lld qmss-lld cppi-lld"
COMPATIBLE_MACHINE = "keystone"

BRANCH = "master"
SRC_URI = "git://git.ti.com/keystone-rtos/pktlib.git;protocol=git;branch=${BRANCH}"

# Corresponds to DEV.PKTLIB.2.1.0.4
SRCREV = "a9aa56afed54b0a04f36d2fdb248cad5dcac6ff6"
PV = "2.1.0.4"

S = "${WORKDIR}/git/ti/runtime/pktlib"

EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}"

do_compile () {
	oe_runmake lib
}

do_install () {
	oe_runmake install
}

Update to new version 2.1.0.5

DESCRIPTION = "Provides library for handling packet descriptors for keystone devices"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462"

DEPENDS = "common-csl-ip rm-lld qmss-lld cppi-lld"
COMPATIBLE_MACHINE = "keystone"

BRANCH = "master"
SRC_URI = "git://git.ti.com/keystone-rtos/pktlib.git;protocol=git;branch=${BRANCH}"

# Corresponds to DEV.PKTLIB.2.1.0.5
SRCREV = "d757026f3d6a837711f4b44b5ffdefed761fc186"
PV = "2.1.0.5"

S = "${WORKDIR}/git/ti/runtime/pktlib"

EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}"

do_compile () {
	oe_runmake lib
}

do_install () {
	oe_runmake install
}


SUMMARY = "UpdateHub - System Inquiry"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2"

SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https"
SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e"

S = "${WORKDIR}/git"

PV = "0.0+${SRCPV}"

inherit allarch

do_install() {
    install -Dm755 product-uid ${D}${datadir}/updatehub/product-uid
    install -Dm755 version ${D}${datadir}/updatehub/version
    install -Dm755 hardware ${D}${datadir}/updatehub/hardware
}

FILES_${PN} += "${datadir}/updatehub"

Add os-release and updatehub-machine-info to RDEPENDS

SUMMARY = "UpdateHub - System Inquiry"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2"

SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https"
SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e"

S = "${WORKDIR}/git"

PV = "0.0+${SRCPV}"

inherit allarch

do_install() {
    install -Dm755 product-uid ${D}${datadir}/updatehub/product-uid
    install -Dm755 version ${D}${datadir}/updatehub/version
    install -Dm755 hardware ${D}${datadir}/updatehub/hardware
}

FILES_${PN} += "${datadir}/updatehub"

RDEPENDS_${PN} += " \
    os-release \
    updatehub-machine-info \
"


DESCRIPTION = "Library for reading mod-like audio files."
HOMEPAGE = "http://modplug-xmms.sf.net"
SECTION = "libs"
LICENSE = "GPL"

PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/modplug-xmms/libmodplug-${PV}.tar.gz"

inherit autotools pkgconfig

# NOTE: autotools_stage_all does nothing here, we need to do it manually
do_install_append() {
	install -d ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/
}

SRC_URI[md5sum] = "d2d9ccd8da22412999caed076140f786"
SRC_URI[sha256sum] = "3cfdebb60833a082e2f2b8faa3892bc9201d05c64051503e8007d8c98ae9e4c2"

Update LICENSE field version to PD

DESCRIPTION = "Library for reading mod-like audio files."
HOMEPAGE = "http://modplug-xmms.sf.net"
SECTION = "libs"
LICENSE = "PD"

PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/modplug-xmms/libmodplug-${PV}.tar.gz"

inherit autotools pkgconfig

# NOTE: autotools_stage_all does nothing here, we need to do it manually
do_install_append() {
	install -d ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/libmodplug
	install -m 0644 ${S}/src/modplug.h ${D}${includedir}/
}

SRC_URI[md5sum] = "d2d9ccd8da22412999caed076140f786"
SRC_URI[sha256sum] = "3cfdebb60833a082e2f2b8faa3892bc9201d05c64051503e8007d8c98ae9e4c2"


DESCRIPTION = "Raspberry Pi U-Boot environment script"

SRC_URI = " \
    file://${MACHINE}-boot.txt \
    file://LICENSE \
    "

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=956139f0411412ea77671fedb9915d38"

S = "${WORKDIR}"

inherit deploy kernel-uimage

DEPENDS = "u-boot-mkimage-native"
RDEPENDS_${PN} = "rpi-config"

COMPATIBLE_MACHINE = "raspberrypi(1|2)"

PR = "r1"

do_uboot_mkimage() {
    uboot-mkimage -A arm -O linux -T script -C none -d ${S}/${MACHINE}-boot.txt boot.scr
}

do_deploy() {
    install -m 0644 boot.scr ${DEPLOYDIR}/boot.scr
}

addtask uboot_mkimage before do_install after do_compile
addtask deploy before do_build after do_compile

Add script name to u-boot env.

DESCRIPTION = "Raspberry Pi U-Boot environment script"

SRC_URI = " \
    file://${MACHINE}-boot.txt \
    file://LICENSE \
    "

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=956139f0411412ea77671fedb9915d38"

S = "${WORKDIR}"

inherit deploy kernel-uimage

DEPENDS = "u-boot-mkimage-native"
RDEPENDS_${PN} = "rpi-config"

COMPATIBLE_MACHINE = "raspberrypi(1|2)"

PR = "r1"

do_uboot_mkimage() {
    uboot-mkimage -T script -C none -n boot.scr -d ${S}/${MACHINE}-boot.txt boot.scr
}

do_deploy() {
    install -m 0644 boot.scr ${DEPLOYDIR}/boot.scr
}

addtask uboot_mkimage before do_install after do_compile
addtask deploy before do_build after do_compile


# This is a dummy recipe, only meant to populate a sysroot that the tests can
# use, and not meant for real building.

DEPENDS = "mender-artifact-native"

inherit native

LICENSE = "Apache-2.0"

do_compile() {
    bbfatal 'This is not meant to be built, should be invoked with "-c prepare_recipe_sysroot" only.'
}

Make sure fdisk and debugfs are available during our tests.

# This is a dummy recipe, only meant to populate a sysroot that the tests can
# use, and not meant for real building.

DEPENDS = "mender-artifact-native e2fsprogs-native util-linux-native"

inherit native

LICENSE = "Apache-2.0"

do_compile() {
    bbfatal 'This is not meant to be built, should be invoked with "-c prepare_recipe_sysroot" only.'
}


# (c) Copyright 2012  Hewlett-Packard Development Company, L.P.

DESCRIPTION = "webOS Universal Search Manager"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
SECTION = "None"

PROVIDES = "luna-universalsearchmanager"

inherit webos_component
inherit webos_public_repo
inherit webos_submissions
inherit webos_cmake
inherit webos_system_bus

WEBOS_GIT_TAG = "${WEBOS_SUBMISSION}"
SRC_URI = "${OPENWEBOS_GIT_REPO}/${PN};tag=${WEBOS_GIT_TAG};protocol=git"
S = "${WORKDIR}/git"

Fix recipe dependencies for searchmgr

# (c) Copyright 2012  Hewlett-Packard Development Company, L.P.

DESCRIPTION = "webOS Universal Search Manager"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
SECTION = "None"

DEPENDS = "libxml2"

PROVIDES = "luna-universalsearchmanager"

inherit webos_component
inherit webos_public_repo
inherit webos_submissions
inherit webos_cmake
inherit webos_system_bus

WEBOS_GIT_TAG = "${WEBOS_SUBMISSION}"
SRC_URI = "${OPENWEBOS_GIT_REPO}/${PN};tag=${WEBOS_GIT_TAG};protocol=git"
S = "${WORKDIR}/git"


DESCRIPTION = "Libraries and test programs for decoding mpeg-2 and mpeg-1 video streams"
HOMEPAGE = "http://libmpeg2.sourceforge.net/"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "virtual/libsdl"
PR = "r5"

SRC_URI = "http://libmpeg2.sourceforge.net/files/mpeg2dec-${PV}.tar.gz"
S = "${WORKDIR}/mpeg2dec-0.4.0"

inherit autotools pkgconfig

EXTRA_OECONF = "--enable-shared"

PACKAGES += "libmpeg2 libmpeg2-dev libmpeg2convert libmpeg2convert-dev"

FILES_${PN} = "${bindir}/*"
FILES_libmpeg2 = "${libdir}/libmpeg2.so.*"
FILES_libmpeg2convert = "${libdir}/libmpeg2convert.so.*"

SRC_URI[md5sum] = "52d10ea80595ec83d8557ba7ac6dc8e6"
SRC_URI[sha256sum] = "9416376952812e5b479745d67a2bf874fbcad10137517314ce7de37abb756df8"

Update LICENSE field version to GPLv2

DESCRIPTION = "Libraries and test programs for decoding mpeg-2 and mpeg-1 video streams"
HOMEPAGE = "http://libmpeg2.sourceforge.net/"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2+"
DEPENDS = "virtual/libsdl"
PR = "r6"

SRC_URI = "http://libmpeg2.sourceforge.net/files/mpeg2dec-${PV}.tar.gz"
S = "${WORKDIR}/mpeg2dec-0.4.0"

inherit autotools pkgconfig

EXTRA_OECONF = "--enable-shared"

PACKAGES += "libmpeg2 libmpeg2-dev libmpeg2convert libmpeg2convert-dev"

FILES_${PN} = "${bindir}/*"
FILES_libmpeg2 = "${libdir}/libmpeg2.so.*"
FILES_libmpeg2convert = "${libdir}/libmpeg2convert.so.*"

SRC_URI[md5sum] = "52d10ea80595ec83d8557ba7ac6dc8e6"
SRC_URI[sha256sum] = "9416376952812e5b479745d67a2bf874fbcad10137517314ce7de37abb756df8"


SUMMARY = "Netfilter packet queue access library"
DESCRIPTION = "Userspace library providing a programming interface (API) to access the Linux kernel netfilter packet queue"
HOMEPAGE = "http://www.netfilter.org/projects/libnetfilter_queue/index.html"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
DEPENDS = "libnfnetlink"

SRC_URI = "http://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-${PV}.tar.bz2;name=tar"
SRC_URI[tar.md5sum] = "df09befac35cb215865b39a36c96a3fa"
SRC_URI[tar.sha256sum] = "838490eb5dbe358f9669823704982f5313a8d397111562373200203f93ac1a32"

S = "${WORKDIR}/libnetfilter_queue-${PV}"

inherit autotools pkgconfig

Add missing libmnl to DEPENDS

SUMMARY = "Netfilter packet queue access library"
DESCRIPTION = "Userspace library providing a programming interface (API) to access the Linux kernel netfilter packet queue"
HOMEPAGE = "http://www.netfilter.org/projects/libnetfilter_queue/index.html"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
DEPENDS = "libnfnetlink libmnl"

SRC_URI = "http://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-${PV}.tar.bz2;name=tar"
SRC_URI[tar.md5sum] = "df09befac35cb215865b39a36c96a3fa"
SRC_URI[tar.sha256sum] = "838490eb5dbe358f9669823704982f5313a8d397111562373200203f93ac1a32"

S = "${WORKDIR}/libnetfilter_queue-${PV}"

inherit autotools pkgconfig


require wireguard.inc

SRCREV = "122f06bfd8fc7b06a0899fa9adc4ce8e06900d98"

SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat"

inherit module kernel-module-split

DEPENDS = "virtual/kernel libmnl"

# This module requires Linux 3.10 higher and several networking related
# configuration options. For exact kernel requirements visit:
# https://www.wireguard.io/install/#kernel-requirements

EXTRA_OEMAKE_append = " \
    KERNELDIR=${STAGING_KERNEL_DIR} \
    "

MAKE_TARGETS = "module"

RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit"
MODULE_NAME = "wireguard"

module_do_install() {
    install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}
    install -m 0644 ${MODULE_NAME}.ko \
    ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko
}

# WireGuard has been merged into Linux kernel >= 5.6 and therefore this compatibility module is no longer required.
# OE-core post dunfell has moved to use kernel 5.8 which now means we cant build this module in world builds
# for reference machines e.g. qemu
EXCLUDE_FROM_WORLD = "1"

Stop overriding modules_install in the recipe

require wireguard.inc

SRCREV = "122f06bfd8fc7b06a0899fa9adc4ce8e06900d98"

SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat"

inherit module kernel-module-split

DEPENDS = "virtual/kernel libmnl"

# This module requires Linux 3.10 higher and several networking related
# configuration options. For exact kernel requirements visit:
# https://www.wireguard.io/install/#kernel-requirements

EXTRA_OEMAKE_append = " \
    KERNELDIR=${STAGING_KERNEL_DIR} \
    "

MAKE_TARGETS = "module"
MODULES_INSTALL_TARGET = "module-install"

RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit"
MODULE_NAME = "wireguard"

# WireGuard has been merged into Linux kernel >= 5.6 and therefore this compatibility module is no longer required.
# OE-core post dunfell has moved to use kernel 5.8 which now means we cant build this module in world builds
# for reference machines e.g. qemu
EXCLUDE_FROM_WORLD = "1"


SUMMARY = "Linux CAN network development utilities"
DESCRIPTION = "Linux CAN network development"
LICENSE = "GPLv2 & BSD-3-Clause"
LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=43;md5=390a2c9a3c5e3595a069ac1436553ee7"

DEPENDS = "libsocketcan"

SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=git;branch=master"
SRCREV = "67a2bdcd336e6becfa5784742e18c88dbeddc973"

PV = "0.0+gitr${SRCPV}"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

Update to tip of master

SUMMARY = "Linux CAN network development utilities"
DESCRIPTION = "Linux CAN network development"
LICENSE = "GPLv2 & BSD-3-Clause"
LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=43;md5=390a2c9a3c5e3595a069ac1436553ee7"

DEPENDS = "libsocketcan"

SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=git;branch=master"
SRCREV = "4c8fb05cb4d6ddcd67299008db54af423f86fd05"

PV = "0.0+gitr${SRCPV}"

S = "${WORKDIR}/git"

inherit autotools pkgconfig


DESCRIPTION = "ARM Trusted Firmware Poplar"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://license.rst;md5=33065335ea03d977d0569f270b39603e"
DEPENDS += "u-boot-poplar"
SRCREV = "812fae9e5ee80ddad6bae6bf1c403c9ffaaae984"

SRC_URI = "git://github.com/linaro/poplar-arm-trusted-firmware.git;name=atf;branch=latest"

S = "${WORKDIR}/git"

require atf.inc

COMPATIBLE_MACHINE = "poplar"

# ATF requires u-boot.bin file. Ensure it's deployed before we compile.
do_compile[depends] += "u-boot-poplar:do_deploy"

do_compile() {
    oe_runmake \
      CROSS_COMPILE=${TARGET_PREFIX} \
      all \
      fip \
      PLAT=${COMPATIBLE_MACHINE} \
      SPD=none \
      BL33=${DEPLOY_DIR_IMAGE}/u-boot.bin
}

Update SRCREV to latest SHA and install shared header.

DESCRIPTION = "ARM Trusted Firmware Poplar"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://license.rst;md5=33065335ea03d977d0569f270b39603e"
DEPENDS += "u-boot-poplar"
SRCREV = "812fae9e5ee80ddad6bae6bf1c403c9ffaaae984"

SRC_URI = "git://github.com/linaro/poplar-arm-trusted-firmware.git;name=atf;branch=latest"

S = "${WORKDIR}/git"

require atf.inc

COMPATIBLE_MACHINE = "poplar"

# ATF requires u-boot.bin file. Ensure it's deployed before we compile.
do_compile[depends] += "u-boot-poplar:do_deploy"

do_compile() {
    oe_runmake \
      CROSS_COMPILE=${TARGET_PREFIX} \
      all \
      fip \
      PLAT=${COMPATIBLE_MACHINE} \
      SPD=none \
      BL33=${DEPLOY_DIR_IMAGE}/u-boot.bin
}

do_install_append() {
           install -Dm644 ${WORKDIR}/git/plat/hisilicon/poplar/include/poplar_layout.h ${D}${includedir}/poplar_layout.h
}


SUMMARY = "Init script used for booting older NILRT runmode initramfs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

SRC_URI = "\
	file://init-runmode-ramfs.sh	\
"

RDEPENDS_${PN} += "bash"

do_install() {
	install -m 0755 ${WORKDIR}/init-runmode-ramfs.sh ${D}/init
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

FILES_${PN} += "/init-ramfs.common /init"

Remove unneeded init-ramfs.common from FILES

SUMMARY = "Init script used for booting older NILRT runmode initramfs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

SRC_URI = "\
	file://init-runmode-ramfs.sh	\
"

RDEPENDS_${PN} += "bash"

do_install() {
	install -m 0755 ${WORKDIR}/init-runmode-ramfs.sh ${D}/init
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

FILES_${PN} += "/init"


SUMMARY = "GENIVI Node State Manager"
DESCRIPTION = "The GENIVI Node State Manager \
		- is the central repository for information \
		- regarding the states/sessions \
		- inside the node. \
		"

HOMEPAGE = "https://www.genivi.org/"
SECTION = "base"

LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=815ca599c9df247a0c7f619bab123dad"

SRC_URI = "git://git.projects.genivi.org/lifecycle/node-state-manager.git;protocol=git;tag=4e48024924d9441cc4431b26bf6e1c9d1f3697e8"
PR = "r2"

DEPENDS = "glib-2.0 dlt-daemon"

S = "${WORKDIR}/git"

inherit autotools systemd

SYSTEMD_SERVICE = "nodestatemanager-daemon.service"
SYSTEMD_AUTO_ENABLE = "disable"

FILES_${PN} += "\
    ${datadir}/dbus-1/system-services/org.genivi.NodeStateManager.LifeCycleControl.service \
    ${systemd_unitdir}/system/nodestatemanager-daemon.service \
    "

Add --with-systemdsystemunitdir when DISTRO_FEATURES contains the systemd feature.

SUMMARY = "GENIVI Node State Manager"
DESCRIPTION = "The GENIVI Node State Manager \
		- is the central repository for information \
		- regarding the states/sessions \
		- inside the node. \
		"

HOMEPAGE = "https://www.genivi.org/"
SECTION = "base"

LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=815ca599c9df247a0c7f619bab123dad"

SRC_URI = "git://git.projects.genivi.org/lifecycle/node-state-manager.git;protocol=git;tag=4e48024924d9441cc4431b26bf6e1c9d1f3697e8"
PR = "r3"

EXTRA_OECONF = "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '', d)}"

DEPENDS = "glib-2.0 dlt-daemon"

S = "${WORKDIR}/git"

inherit autotools systemd

SYSTEMD_SERVICE = "nodestatemanager-daemon.service"
SYSTEMD_AUTO_ENABLE = "disable"

FILES_${PN} += "\
    ${datadir}/dbus-1/system-services/org.genivi.NodeStateManager.LifeCycleControl.service \
    ${systemd_unitdir}/system/nodestatemanager-daemon.service \
    "


SECTION = "unknown"
LICENSE = "GPL"
inherit autotools gtk-icon-cache

# Override RDEPENDS_${PN} = hicolor-icon-theme from gtk-icon-cache
RDEPENDS_${PN} = ""
RDEPENDS_${PN} = ""
PR = "r1"

SRC_URI = "http://icon-theme.freedesktop.org/releases/${P}.tar.gz"

PACKAGE_ARCH = "all"

FILES_${PN} += "${datadir}/icons"

SRC_URI[md5sum] = "5cf5527e803a554f43319ee53c771e0b"
SRC_URI[sha256sum] = "44eb1f158a9b2a92cd626541a24c44387162b3d792e4b238c84e6f3d8ed1dd9a"

Update LICENSE field version to GPLv2

SECTION = "unknown"
LICENSE = "GPLv2"
inherit autotools gtk-icon-cache

# Override RDEPENDS_${PN} = hicolor-icon-theme from gtk-icon-cache
RDEPENDS_${PN} = ""
RDEPENDS_${PN} = ""
PR = "r2"

SRC_URI = "http://icon-theme.freedesktop.org/releases/${P}.tar.gz"

PACKAGE_ARCH = "all"

FILES_${PN} += "${datadir}/icons"

SRC_URI[md5sum] = "5cf5527e803a554f43319ee53c771e0b"
SRC_URI[sha256sum] = "44eb1f158a9b2a92cd626541a24c44387162b3d792e4b238c84e6f3d8ed1dd9a"


SUMMARY = "A development image with Qt embedded and some Syntro apps"
HOMEPAGE = "http://www.jumpnowtek.com"
LICENSE = "MIT"

require console-image.bb

PR = "0"

QT_TOOLS = " \
    qt4-embedded-dev\
    qt4-embedded \
 "

SYNTRO = " \
    syntrocore \
    syntrocore-dev \
    syntrolcam \
    syntrolcam-init \
 "

IMAGE_INSTALL += " \
    ${QT_TOOLS} \
    ${SYNTRO} \
 "

export IMAGE_BASENAME = "qte-image"

Add tslib and psplash to qte image

SUMMARY = "A development image with Qt embedded and some Syntro apps"
HOMEPAGE = "http://www.jumpnowtek.com"
LICENSE = "MIT"

require console-image.bb

PR = "0"

QT_TOOLS = " \
    qt4-embedded-dev\
    qt4-embedded \
 "

SYNTRO = " \
    syntrocore \
    syntrocore-dev \
    syntrolcam \
    syntrolcam-init \
 "

TS_TOOLS = " \
    tslib-calibrate \
    tslib-tests \
    tslib-conf \
 "

IMAGE_INSTALL += " \
    ${QT_TOOLS} \
    ${SYNTRO} \
    ${TS_TOOLS} \
    psplash \
 "

export IMAGE_BASENAME = "qte-image"


require recipes-graphics/xorg-driver/xorg-driver-video.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=f8ad89d9d9a024f19d7dcc5acb044a42"

DESCRIPTION = "X.org server -- Geode GX2/LX display driver"
PR = "${INC_PR}.0"

SRC_URI[md5sum] = "a99c521db731c2f1df309057a8465e4c"
SRC_URI[sha256sum] = "28d845d727d99bfa4d4b93c5486ec01b72eb222e0910a766089db1103b1c2d92"

COMPATIBLE_HOST = "i.86.*-linux"

Add rdepends on EXA Xorg module

require recipes-graphics/xorg-driver/xorg-driver-video.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=f8ad89d9d9a024f19d7dcc5acb044a42"

DESCRIPTION = "X.org server -- Geode GX2/LX display driver"
PR = "${INC_PR}.1"

SRC_URI[md5sum] = "a99c521db731c2f1df309057a8465e4c"
SRC_URI[sha256sum] = "28d845d727d99bfa4d4b93c5486ec01b72eb222e0910a766089db1103b1c2d92"

COMPATIBLE_HOST = "i.86.*-linux"

RDEPENDS_${PN} += "xserver-xorg-module-exa"


DESCRIPTION = "PackageKit package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)"
RDEPENDS_${PN} = "opkg"
PV = "0.2.3+gitr${SRCREV}"
PR = "r9"

SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git \
           file://disable-docbook2man.patch;patch=1 \
           file://d1e096c3267c1c9492041382b954e9327bc8bbec.patch;patch=0"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg --enable-opkg"

do_configure_prepend() {
        echo "EXTRA_DIST=" > gtk-doc.make
}
do_stage () {
        autotools_stage_all
}

FILES_${PN} += "${libdir}/packagekit-backend/*.so ${datadir}/dbus-1/system-services/"
FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so "

Modify packagekit to make it patch successful

DESCRIPTION = "PackageKit package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)"
RDEPENDS_${PN} = "opkg"
PV = "0.2.3+gitr${SRCREV}"
PR = "r10"

SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git \
           file://disable-docbook2man.patch;patch=1 \
           file://d1e096c3267c1c9492041382b954e9327bc8bbec.patch;patch=1"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg --enable-opkg"

do_configure_prepend() {
        echo "EXTRA_DIST=" > gtk-doc.make
}
do_stage () {
        autotools_stage_all
}

FILES_${PN} += "${libdir}/packagekit-backend/*.so ${datadir}/dbus-1/system-services/"
FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so "


DESCRIPTION = "GSM/GPRS mux tools"
LICENSE  = "GPL"
SECTION = "gpe"
PRIORITY = "optional"
DEPENDS  = "glibc"
PR = "r0"

inherit gpephone

SRC_URI = "${GPEPHONE_MIRROR}/GPRS/GPRS-${PV}.tar.bz2"

S  = ${WORKDIR}/GPRS/connect

do_compile() {
        oe_runmake PREFIX=${prefix}
}

do_install() {
	install -d  ${D}/${prefix}/bin
        install -m755 connect ${D}/${prefix}/bin
        install -m755 disconnect ${D}/${prefix}/bin
}

Work around broken OE install-sh.

DESCRIPTION = "GSM/GPRS mux tools"
LICENSE  = "GPL"
SECTION = "gpe"
PRIORITY = "optional"
DEPENDS  = "glibc"
PR = "r0"

inherit gpephone

SRC_URI = "${GPEPHONE_MIRROR}/GPRS/GPRS-${PV}.tar.bz2"

S  = ${WORKDIR}/GPRS/connect

do_compile() {
        oe_runmake PREFIX=${prefix}
}

do_install() {
	install -d  ${D}/${prefix}/bin
        install -m 755 connect ${D}/${prefix}/bin
        install -m 755 disconnect ${D}/${prefix}/bin
}


DESCRIPTION = "NNginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server."
HOMEPAGE = "http://wiki.nginx.org"
SECTION = "net"
PRIORITY = "optional"
LICENSE = "BSD"
SRCNAME = "nginx"
PR = "r27"

SRC_URI = "http://nginx.org/download/nginx-${PV}.tar.gz \
           file://allow-cross.patch"

S = "${WORKDIR}/${PN}-${PV}"

do_configure() {
    export cross_compiling="yes"
    ${S}/configure --with-cc=/home/user/openembedded-rascal/tmp/sysroots/i686-linux/usr/armv5te/bin/arm-angstrom-linux-gnueabi-gcc --without-http_rewrite_module --sbin-path=${S}/usr/sbin --error-log-path=/var/log/nginx/error --conf-path=/etc/nginx/nginx.conf
}

do_install() {
    make DESTDIR=${S} install
}

do_package() {

}

SRC_URI[md5sum] = "5751c920c266ea5bb5fc38af77e9c71c"
SRC_URI[sha256sum] = "3de3d6caeed56751c24ebc5cfb03475620b9eb0fa999c766a01d44dca674c001"

Remove hardcoded paths from nginx compile step

DESCRIPTION = "Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server."
HOMEPAGE = "http://wiki.nginx.org"
SECTION = "net"
PRIORITY = "optional"
LICENSE = "BSD"
SRCNAME = "nginx"
PR = "r28"

SRC_URI = "http://nginx.org/download/nginx-${PV}.tar.gz \
           file://allow-cross.patch"

S = "${WORKDIR}/${PN}-${PV}"

do_configure() {
    export cross_compiling="yes"
    ${S}/configure --with-cc=${HOST_PREFIX}gcc --without-http_rewrite_module --sbin-path=${S}${sbindir} --error-log-path=${localstatedir}/log/nginx/error --conf-path=${sysconfdir}/nginx/nginx.conf
}

do_install() {
    make DESTDIR=${S} install
}

do_package() {

}

SRC_URI[md5sum] = "5751c920c266ea5bb5fc38af77e9c71c"
SRC_URI[sha256sum] = "3de3d6caeed56751c24ebc5cfb03475620b9eb0fa999c766a01d44dca674c001"


DESCRIPTION = "Test applications for OMAP DRM interface"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://viddec3test.c;beginline=1;endline=16;md5=c391f44e40a29096285e3121923041df"
DEPENDS += "libav libdce libdrm libgbm omap5-sgx-ddk-um-linux wayland"

inherit autotools pkgconfig

PR = "r7"
SRCREV = "a2f483ef833ce7a6f3e0b975d9e49267960b288e"

SRC_URI = "git://git.ti.com/glsdk/omapdrmtest.git;protocol=git"

S = "${WORKDIR}/git"

TARGET_CC_ARCH += "${LDFLAGS}"

Update SRCREV with bug fixes

DESCRIPTION = "Test applications for OMAP DRM interface"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://viddec3test.c;beginline=1;endline=16;md5=c391f44e40a29096285e3121923041df"
DEPENDS += "libav libdce libdrm libgbm omap5-sgx-ddk-um-linux wayland"

inherit autotools pkgconfig

PR = "r9"
SRCREV = "152713c45d7972ed08f506255c43ce7ff634a9f5"

SRC_URI = "git://git.ti.com/glsdk/omapdrmtest.git;protocol=git"

S = "${WORKDIR}/git"

TARGET_CC_ARCH += "${LDFLAGS}"


require recipes-extended/gperf/gperf_3.0.4.bb

inherit debian-package
DEBIAN_SECTION = "devel"

LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

#
# Debian Native Test
#
inherit debian-test

SRC_URI_DEBIAN_TEST = "\
        file://gperf-native-test/run_native_test_gperf \
        file://gperf-native-test/run_with_option-L \
        file://gperf-native-test/run_with_option-N \
        file://gperf-native-test/run_with_option-H \
        file://gperf-native-test/run_with_option-Z \
        file://gperf-native-test/command_line_options.gperf \
"

DEBIAN_NATIVE_TESTS = "run_native_test_gperf"
TEST_DIR = "${B}/native-test"

Update recipe for gperf package

#
# base recipe: meta/recipes-extended/gperf/gperf_3.0.4.bb
# branch: daisy
#

PR = "r0"

inherit debian-package

LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

inherit autotools

# autoreconf couldn't find acinclude.m4 when stepping into subdirectory. Instead of
# duplicating acinclude.m4 in every subdirectory, use absolute include path to aclocal
EXTRA_AUTORECONF += " -I ${S}"

do_configure_prepend() {
        if [ ! -e ${S}/acinclude.m4 ]; then
                cat ${S}/aclocal.m4 > ${S}/acinclude.m4
        fi
}

BBCLASSEXTEND = "native"

#
# Debian Native Test
#
inherit debian-test

SRC_URI_DEBIAN_TEST = "\
        file://gperf-native-test/run_native_test_gperf \
        file://gperf-native-test/run_with_option-L \
        file://gperf-native-test/run_with_option-N \
        file://gperf-native-test/run_with_option-H \
        file://gperf-native-test/run_with_option-Z \
        file://gperf-native-test/command_line_options.gperf \
"

DEBIAN_NATIVE_TESTS = "run_native_test_gperf"
TEST_DIR = "${B}/native-test"


require linux.inc
require linux-dtb.inc

DESCRIPTION = "Linux kernel for the lager board"
COMPATIBLE_MACHINE = "lager"

PR = "r7"
PV_append = "+git${SRCREV}"

SRCREV = "33b4bbf492ee0cf39ea830a38a12e3c2565c12d5"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-5.3"

S = "${WORKDIR}/git"

FILESEXTRAPATHS_prepend_lager := "${THISDIR}/${PN}:"

KERNEL_DEFCONFIG = "lager_defconfig"

do_configure_prepend() {
        install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}

Enable creating bootz image and uImage with DTB

require linux.inc
require linux-dtb.inc
require linux-dtb-append.inc

DESCRIPTION = "Linux kernel for the lager board"
COMPATIBLE_MACHINE = "lager"

PR = "r8"
PV_append = "+git${SRCREV}"

SRCREV = "33b4bbf492ee0cf39ea830a38a12e3c2565c12d5"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-5.3"

S = "${WORKDIR}/git"

FILESEXTRAPATHS_prepend_lager := "${THISDIR}/${PN}:"

KERNEL_DEFCONFIG = "lager_defconfig"

do_configure_prepend() {
        install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}


DESCRIPTION = "PackageKit package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)"
RDEPENDS_${PN} = "opkg"
PV = "0.2.3+gitr${SRCREV}"
PR = "r13"

SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git \
           file://disable-docbook2man.patch;patch=1 \
           file://repository-ping.patch;patch=1 "

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg --enable-opkg"

do_configure_prepend() {
        echo "EXTRA_DIST=" > gtk-doc.make
}
do_stage () {
        autotools_stage_all
}

FILES_${PN} += "${libdir}/packagekit-backend/*.so ${datadir}/dbus-1/system-services/"
FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so "

Add a patch to packagekit Make packagekit can remove packagekit without regarding the dependency. (So that can remove packages such as splinter depended by tasks)

DESCRIPTION = "PackageKit package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)"
RDEPENDS_${PN} = "opkg"
PV = "0.2.3+gitr${SRCREV}"
PR = "r13"

SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git \
           file://disable-docbook2man.patch;patch=1 \
           file://repository-ping.patch;patch=1 \
           file://force_depends.patch;patch=1 \
           "

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg --enable-opkg"

do_configure_prepend() {
        echo "EXTRA_DIST=" > gtk-doc.make
}
do_stage () {
        autotools_stage_all
}

FILES_${PN} += "${libdir}/packagekit-backend/*.so ${datadir}/dbus-1/system-services/"
FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so "


require fftw.inc

SRC_URI[md5sum] = "2edab8c06b24feeb3b82bbb3ebf3e7b3"
SRC_URI[sha256sum] = "8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982"

Build native version as well

require fftw.inc

SRC_URI[md5sum] = "2edab8c06b24feeb3b82bbb3ebf3e7b3"
SRC_URI[sha256sum] = "8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982"

BBCLASSEXTEND = "native"


require xorg-lib-common.inc
DESCRIPTION = "X11 Video extension library"
LICENSE = "GPL"
DEPENDS += "libxext videoproto"
PR = "${INC_PR}.0"

SRC_URI[archive.md5sum] = "e292445a64b63e918bbc8b6aae6391dd"
SRC_URI[archive.sha256sum] = "e20f8e594bb0f44f3fbd25996945730391d72acbe5eaac760429fd6579caf5ee"

XORG_PN = "libXv"

Update LICENSE field version to MIT-style

require xorg-lib-common.inc
DESCRIPTION = "X11 Video extension library"
LICENSE = "MIT-style"
DEPENDS += "libxext videoproto"
PR = "${INC_PR}.1"

SRC_URI[archive.md5sum] = "e292445a64b63e918bbc8b6aae6391dd"
SRC_URI[archive.sha256sum] = "e20f8e594bb0f44f3fbd25996945730391d72acbe5eaac760429fd6579caf5ee"

XORG_PN = "libXv"


#
#   Copyright (C) 2016 Pelagicore AB
#
DESCRIPTION = "Image for creating a Pelux image"

inherit core-image-bistro

# Pelux components
IMAGE_INSTALL += "softwarecontainer"

Fix syntax mistake when inheriting core-image-bistro

#
#   Copyright (C) 2016 Pelagicore AB
#
DESCRIPTION = "Image for creating a Pelux image"

require recipes-core/images/core-image-bistro.bb

# Pelux components
IMAGE_INSTALL += "softwarecontainer"


## Reminder:  The correct spacing for a variable is FOO = "BAR"  in : PR="r1"
DESCRIPTION = "BeagleBoard test scripts"
HOMEPAGE = "http://beagleboad.org/support"
PR = "r2"

SRC_URI = "git://gitorious.org/beagleboard-validation/scripts.git;protocol=git \
"

SRCREV = "473dd2ab20d866be6168c9f992c2c9e74e485c9d"
S = "${WORKDIR}/git"

do_install() {
  TEST_FILES=" \
    testaudio \
    testcamera \
    testdsp \
    testedid \
    testled \
    testmem \
    testneon \
    testsvideo \
    testuserbtn \
    editbootscr \
    edituserscr \
    readgpio \
  "
  install -d ${D}/${bindir}
  for i in ${TEST_FILES}; do
    install -m 0755 ${S}/${i} ${D}/${bindir}
  done
}

Add a script flash-fs.sh for flashing NAND

## Reminder:  The correct spacing for a variable is FOO = "BAR"  in : PR="r1"
DESCRIPTION = "BeagleBoard test scripts"
HOMEPAGE = "http://beagleboad.org/support"
PR = "r3"

SRC_URI = "git://gitorious.org/~joelf/beagleboard-validation/validation-scripts.git;protocol=git \
"

SRCREV = "2df76857155fbd462527c2b00ee83214483f0594"
S = "${WORKDIR}/git"

inherit update-rc.d
INITSCRIPT_NAME = "flash-nand-fs.sh"
INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."

do_install() {
  TEST_FILES=" \
    testaudio \
    testcamera \
    testdsp \
    testedid \
    testled \
    testmem \
    testneon \
    testsvideo \
    testuserbtn \
    editbootscr \
    edituserscr \
    readgpio \
  "
  install -d ${D}/${bindir}
  for i in ${TEST_FILES}; do
    install -m 0755 ${S}/${i} ${D}/${bindir}
  done
  # A script to flash NAND if the board has it, and if there is valid image to flash on the SD Card.
  # We also register it as an init script so that the SD Card auto-flashes to NAND during boot.
  install -d ${D}/${sysconfdir}/init.d/
  install -m 0755 ${S}/flashing/flash-nand-fs.sh ${D}/${sysconfdir}/init.d/flash-nand-fs.sh
}


SUMMARY = "A small python tool for downloading bootloader to ddr through serial port"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=219f23a516954274fab23350ce921da3"

SRCREV = "bee2ea1660f3a03df8d391fb75aa08dbc3441856"
SRC_URI = "git://github.com/96boards-hikey/burn-boot.git;protocol=https"

S = "${WORKDIR}/git"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${S}/hisi-idt.py ${D}${bindir}
}

RDEPENDS_${PN} += "python-pyserial"

inherit deploy

do_deploy() {
    install -D -p -m 0755 ${S}/hisi-idt.py ${DEPLOYDIR}/bootloader/hisi-idt.py
}

addtask deploy before do_build after do_compile

BBCLASSEXTEND = "native"

Add missing python to rdeps

SUMMARY = "A small python tool for downloading bootloader to ddr through serial port"

LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=219f23a516954274fab23350ce921da3"

SRCREV = "bee2ea1660f3a03df8d391fb75aa08dbc3441856"
SRC_URI = "git://github.com/96boards-hikey/burn-boot.git;protocol=https"

S = "${WORKDIR}/git"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 ${S}/hisi-idt.py ${D}${bindir}
}

RDEPENDS_${PN} += "python python-pyserial"

inherit deploy

do_deploy() {
    install -D -p -m 0755 ${S}/hisi-idt.py ${DEPLOYDIR}/bootloader/hisi-idt.py
}

addtask deploy before do_build after do_compile

BBCLASSEXTEND = "native"


DESCRIPTION = "Task to install additional scripts and applications into the SDK"
LICENSE = "MIT"
PR = "r3"

inherit packagegroup

PACKAGE_ARCH = "${MACHINE_ARCH}"

# Choose the kernel and u-boot recipe sources to use
U-BOOT_SRC = ""
KERNEL_SRC = ""

U-BOOT_SRC_am335x-evm = "u-boot-src"
KERNEL_SRC_am335x-evm = "linux-am335x-src"

TOOLS = "pinmux-utility"
TOOLS_am37x-evm_append = " flash-utility"
TOOLS_am3517-evm_append = " flash-utility"

RDEPENDS_${PN} = "\
    ${TOOLS} \
    ti-tisdk-setup \
    board-port-labs-src \
    ti-tisdk-makefile \
    ${U-BOOT_SRC} \
    ${KERNEL_SRC} \
"

Use generic name for sources

DESCRIPTION = "Task to install additional scripts and applications into the SDK"
LICENSE = "MIT"
PR = "r4"

inherit packagegroup

PACKAGE_ARCH = "${MACHINE_ARCH}"

# Choose the kernel and u-boot recipe sources to use

U-BOOT_SRC = "${PREFERRED_PROVIDER_virtual/bootloader}-src"
KERNEL_SRC = "${PREFERRED_PROVIDER_virtual/kernel}-src"

TOOLS = "pinmux-utility"
TOOLS_am37x-evm_append = " flash-utility"
TOOLS_am3517-evm_append = " flash-utility"

RDEPENDS_${PN} = "\
    ${TOOLS} \
    ti-tisdk-setup \
    board-port-labs-src \
    ti-tisdk-makefile \
    ${U-BOOT_SRC} \
    ${KERNEL_SRC} \
"


DESCRIPTION = "MPEG Audio Decoder Library"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "libid3tag"
LICENSE = "GPL"
PR = "r5"

SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz \
           file://add-pkgconfig.patch \
	   file://mad.diff \
	   file://mad-mips-h-constraint.patch"

S = "${WORKDIR}/libmad-${PV}"

SRC_URI_append_avr32 = " file://libmad-0.15.1b-avr32-optimization.patch"

inherit autotools pkgconfig

EXTRA_OECONF = "-enable-speed --enable-shared"
# The ASO's don't take any account of thumb...
EXTRA_OECONF_append_thumb = " --disable-aso --enable-fpm=default"
EXTRA_OECONF_append_arm = " --enable-fpm=arm"

do_configure_prepend () {
#	damn picky automake...
	touch NEWS AUTHORS ChangeLog
}

ARM_INSTRUCTION_SET = "arm"

SRC_URI[md5sum] = "1be543bc30c56fb6bea1d7bf6a64e66c"
SRC_URI[sha256sum] = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690"

Update LICENSE field version to GPLv2

DESCRIPTION = "MPEG Audio Decoder Library"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "libid3tag"
LICENSE = "GPLv2"
PR = "r6"

SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz \
           file://add-pkgconfig.patch \
	   file://mad.diff \
	   file://mad-mips-h-constraint.patch"

S = "${WORKDIR}/libmad-${PV}"

SRC_URI_append_avr32 = " file://libmad-0.15.1b-avr32-optimization.patch"

inherit autotools pkgconfig

EXTRA_OECONF = "-enable-speed --enable-shared"
# The ASO's don't take any account of thumb...
EXTRA_OECONF_append_thumb = " --disable-aso --enable-fpm=default"
EXTRA_OECONF_append_arm = " --enable-fpm=arm"

do_configure_prepend () {
#	damn picky automake...
	touch NEWS AUTHORS ChangeLog
}

ARM_INSTRUCTION_SET = "arm"

SRC_URI[md5sum] = "1be543bc30c56fb6bea1d7bf6a64e66c"
SRC_URI[sha256sum] = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690"


DEFAULT_PREFERENCE = "-1"

DESCRIPTION = "Configuration applets for GPE"
SECTION = "gpe"
PRIORITY = "optional"
LICENSE = "GPL"

DEPENDS = "gtk+ libgpewidget libxsettings libxsettings-client pcmcia-cs xst xset ntp gpe-login gpe-icons"
RDEPENDS_${PN} = "xst tzdata xset ntpdate gpe-login gpe-icons"
RDEPENDS_gpe-conf-panel = "gpe-conf"

inherit autotools gpe

PV = "0.2.5+svn${SRCDATE}"
PR = "r1"

SRC_URI = "${GPE_SVN}"
S = "${WORKDIR}/${PN}"

PACKAGES = "${PN}-dbg gpe-conf gpe-conf-panel"

FILES_${PN} = "${sysconfdir} ${bindir} ${datadir}/pixmaps \
                ${datadir}/applications/gpe-conf-* ${datadir}/gpe/pixmaps \
                ${datadir}/gpe-conf"
FILES_gpe-conf-panel = "${datadir}/applications/gpe-conf.desktop"

Update svn recipe to new version and use of SRCREV.

DEFAULT_PREFERENCE = "-1"

DESCRIPTION = "Configuration applets for GPE"
SECTION = "gpe"
PRIORITY = "optional"
LICENSE = "GPL"

DEPENDS = "gtk+ libgpewidget libxsettings libxsettings-client pcmcia-cs xst xset ntp gpe-login gpe-icons"
RDEPENDS_${PN} = "xst tzdata xset ntpdate gpe-login gpe-icons"
RDEPENDS_gpe-conf-panel = "gpe-conf"

inherit autotools gpe

PV = "0.2.7+svnr${SRCREV}"
PR = "r0"

SRC_URI = "${GPE_SVN}"
S = "${WORKDIR}/${PN}"

PACKAGES = "${PN}-dbg gpe-conf gpe-conf-panel"

FILES_${PN} = "${sysconfdir} ${bindir} ${datadir}/pixmaps \
                ${datadir}/applications/gpe-conf-* ${datadir}/gpe/pixmaps \
                ${datadir}/gpe-conf"
FILES_gpe-conf-panel = "${datadir}/applications/gpe-conf.desktop"


SUMMARY = "A very basic Wayland image with a terminal"

IMAGE_FEATURES += "splash package-management ssh-server-dropbear hwcodecs"

LICENSE = "MIT"

inherit core-image distro_features_check

REQUIRED_DISTRO_FEATURES = "wayland"

CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples clutter-1.0-examples"

DESCRIPTION = "A weston image with Tizen common."

IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
#IMAGE_INSTALL += "crosswalk"

Add missing driver for weston

SUMMARY = "A very basic Wayland image with a terminal"

IMAGE_FEATURES += "splash package-management ssh-server-dropbear hwcodecs"

LICENSE = "MIT"

inherit core-image distro_features_check

REQUIRED_DISTRO_FEATURES = "wayland"

CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples clutter-1.0-examples"

DESCRIPTION = "A weston image with Tizen common."

DEPENDS += " tar-replacement-native "

IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
IMAGE_INSTALL += "mesa-driver-i965"
#IMAGE_INSTALL += "crosswalk"


include recipes-core/images/core-image-base.bb

IMAGE_FEATURES += "debug-tweaks"

# SOC_EXTRA_IMAGE_FEATURES ?= "tools-testapps"
SOC_EXTRA_IMAGE_FEATURES=""

# Add extra image features
EXTRA_IMAGE_FEATURES += " \
    ${SOC_EXTRA_IMAGE_FEATURES} \
    nfs-server \
    tools-debug \
    tools-profile \
"

IMAGE_INSTALL += " \
    dropbear \
    xbmc \
    xbmc-nm-addon \
    networkmanager \
    procps \
    util-linux-mount \
    libntfs-3g \
    ntfsprogs \
    ntfs-3g \
    ntp \
    ntp-utils \
    tvheadend \
    util-linux \
    firmware-imx-vpu-imx6d \
    fsl-rc-local \
    xbmc-image-custom-rfs \
"

export IMAGE_BASENAME = "xbmc-image"

Add native SDK in image

include recipes-core/images/core-image-base.bb

IMAGE_FEATURES += "debug-tweaks"

# SOC_EXTRA_IMAGE_FEATURES ?= "tools-testapps"
SOC_EXTRA_IMAGE_FEATURES=""

# Add extra image features
EXTRA_IMAGE_FEATURES += " \
    ${SOC_EXTRA_IMAGE_FEATURES} \
    nfs-server \
    tools-debug \
    tools-profile \
"

IMAGE_INSTALL += " \
    dropbear \
    xbmc \
    xbmc-nm-addon \
    networkmanager \
    procps \
    util-linux-mount \
    libntfs-3g \
    ntfsprogs \
    ntfs-3g \
    ntp \
    ntp-utils \
    tvheadend \
    util-linux \
    firmware-imx-vpu-imx6d \
    fsl-rc-local \
    xbmc-image-custom-rfs \
    packagegroup-core-sdk \
    joe \
"

export IMAGE_BASENAME = "xbmc-image"


# Add opencv and qte to the console image

require jumpnow-console-image.bb

QT_TOOLS = " \
    qt4-embedded-dev\
    qt4-embedded \
    qt4-embedded-plugin-mousedriver-tslib \
 "

TS_TOOLS = " \
    tslib-calibrate \
    tslib-tests \
    tslib-conf \
 "

#OPENCV_DEV = " \
#    opencv-dev \
#    opencv-samples-dev \
# "

DEMOS = " \
    sample-qt \
 "

IMAGE_INSTALL += " \
    ${QT_TOOLS} \
    ${TS_TOOLS} \
    ${DEMOS} \
    psplash \
 "

Add opencv to IMAGE_INSTALL of qte image

# Add opencv and qte to the console image

require jumpnow-console-image.bb

QT_TOOLS = " \
    qt4-embedded-dev\
    qt4-embedded \
    qt4-embedded-plugin-mousedriver-tslib \
 "

TS_TOOLS = " \
    tslib-calibrate \
    tslib-tests \
    tslib-conf \
 "

OPENCV_DEV = " \
    opencv-dev \
    opencv-samples-dev \
 "

DEMOS = " \
    sample-qt \
 "

IMAGE_INSTALL += " \
    ${QT_TOOLS} \
    ${OPENCV_DEV} \
    ${TS_TOOLS} \
    ${DEMOS} \
    psplash \
 "


require u-boot.inc

FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-omap3-git/"

SRCREV = "35e1a9b87750483027f1114364d7980d71cd936d"

PV = "2009.08+${PR}+git${SRCREV}"
PR = "r6"
PE = "1"

SRC_URI = "git://git.denx.de/u-boot-ti.git;protocol=git \
           file://fw-env.config \
           file://dss2.patch;patch=1 \
           file://tincan.patch;patch=1 \
           file://smsc911x.patch;patch=1 \
           file://rootfs.patch;patch=1 \
          "

S = "${WORKDIR}/git"

Change SRCREV to commit prior to build breakage

require u-boot.inc

FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-omap3-git/"

SRCREV = "f5d89a12bc201e7040f1d3262222cc2f1958cee5"

PV = "2009.08+${PR}+git${SRCREV}"
PR = "r7"
PE = "1"

SRC_URI = "git://git.denx.de/u-boot-ti.git;protocol=git \
           file://fw-env.config \
           file://dss2.patch;patch=1 \
           file://tincan.patch;patch=1 \
           file://smsc911x.patch;patch=1 \
           file://rootfs.patch;patch=1 \
          "

S = "${WORKDIR}/git"


require linux.inc
require linux-dtb.inc

DESCRIPTION = "Linux kernel for the koelsch board"
COMPATIBLE_MACHINE = "koelsch"

PR = "r1"
PV_append = "+git${SRCREV}"

SRCREV = "77d929639b4354d660fd3b6d808603ab625f69c5"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-4"

S = "${WORKDIR}/git"

FILESEXTRAPATHS_prepend_koelsch := "${THISDIR}/${PN}:"

KERNEL_DEFCONFIG = "koelsch_defconfig"

do_configure_prepend() {
        install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}

Update to gent2-5 (version 0.5.0)

require linux.inc
require linux-dtb.inc

DESCRIPTION = "Linux kernel for the koelsch board"
COMPATIBLE_MACHINE = "koelsch"

PR = "r2"
PV_append = "+git${SRCREV}"

SRCREV = "f49d2c9098ac09ebfe174564259c287f9644fd7f"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-5"

S = "${WORKDIR}/git"

FILESEXTRAPATHS_prepend_koelsch := "${THISDIR}/${PN}:"

KERNEL_DEFCONFIG = "koelsch_defconfig"

do_configure_prepend() {
        install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}


SUMMARY = "Utilities for manipulating filesystem extended attributes"
HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
SECTION = "libs"

DEPENDS = "virtual/libintl"

LICENSE = "LGPLv2.1+ & GPLv2+"
LICENSE_${PN} = "GPLv2+"
LICENSE_lib${BPN} = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
                    file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
                    file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb"

inherit debian-package
require recipes-debian/sources/attr.inc

inherit autotools gettext update-alternatives

BBCLASSEXTEND = "native nativesdk"

ALTERNATIVE_PRIORITY = "100"
ALTERNATIVE_${PN} = "setfattr"
ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr"

PACKAGES =+ "lib${BPN}"

Add a lucking license file name to LIC_FILES_CHKSUM.

SUMMARY = "Utilities for manipulating filesystem extended attributes"
HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
SECTION = "libs"

DEPENDS = "virtual/libintl"

LICENSE = "LGPLv2.1+ & GPLv2+"
LICENSE_${PN} = "GPLv2+"
LICENSE_lib${BPN} = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
                    file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \
                    file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
                    file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb"

inherit debian-package
require recipes-debian/sources/attr.inc

inherit autotools gettext update-alternatives

BBCLASSEXTEND = "native nativesdk"

ALTERNATIVE_PRIORITY = "100"
ALTERNATIVE_${PN} = "setfattr"
ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr"

PACKAGES =+ "lib${BPN}"


SUMMARY = "Xilinx HDMI Linux Kernel module"
DESCRIPTION = "Out-of-tree HDMI kernel modules provider for MPSoC EG/EV devices"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=570506b747d768e7802376f932dff926"

XLNX_HDMI_VERSION = "5.4.0"
PV = "${XLNX_HDMI_VERSION}"

S = "${WORKDIR}/git"

BRANCH ?= "master"
REPO   ?= "git://github.com/Xilinx/hdmi-modules.git;protocol=https"
SRCREV = "007af0d54fdccd7fdd93095511b5a5a886aea30b"

BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"

inherit module

EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"

Update commit id for 2021.1

SUMMARY = "Xilinx HDMI Linux Kernel module"
DESCRIPTION = "Out-of-tree HDMI kernel modules provider for MPSoC EG/EV devices"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=570506b747d768e7802376f932dff926"

XLNX_HDMI_VERSION = "5.4.0"
PV = "${XLNX_HDMI_VERSION}"

S = "${WORKDIR}/git"

BRANCH ?= "master"
REPO   ?= "git://github.com/Xilinx/hdmi-modules.git;protocol=https"
SRCREV = "24697db95e9b173333e17c4e31c03068e69a9102"

BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"

inherit module

EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"


DESCRIPTION = "Image update is used to update alternate image on SOM."
SUMMARY = "Image update is used to update alternate image on SOM. \
	If the current image is ImageA, ImageB will get updated and vice versa. \
	Usage: image_update <Input Image File>"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSES/MIT;md5=2ac09a7a37dd6ee0ba23ce497d57d09b"

SRC_URI = "git://github.com/Xilinx/linux-image_update.git;protocol=https"
SRCREV = "1a5bcd9fbae931f221106c6707e5c974a18b3be6"

RDEPENDS_${PN} += "fru-print"

S = "${WORKDIR}/git"

COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"

do_install () {
    install -d ${D}${bindir}
    install -m 0755 ${S}/image_update ${D}${bindir}/
}

INSANE_SKIP_${PN} = "ldflags"

Update SRCREV to reflect latest changes

DESCRIPTION = "Image update is used to update alternate image on SOM."
SUMMARY = "Image update is used to update alternate image on SOM. \
	If the current image is ImageA, ImageB will get updated and vice versa. \
	Usage: image_update <Input Image File>"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSES/MIT;md5=2ac09a7a37dd6ee0ba23ce497d57d09b"

SRC_URI = "git://github.com/Xilinx/linux-image_update.git;protocol=https"
SRCREV = "df3d9b4868ecc02ac6bb77baf806d4de4d67ddbf"

RDEPENDS_${PN} += "fru-print"

S = "${WORKDIR}/git"

COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"

do_install () {
    install -d ${D}${bindir}
    install -m 0755 ${S}/image_update ${D}${bindir}/
}

INSANE_SKIP_${PN} = "ldflags"


SECTION = "console/network"

DEPENDS = "openssl"
DESCRIPTION = "Extremely simple MTA to get mail off the system to a mail hub."
PR = "r3"

SRC_URI = "${DEBIAN_MIRROR}/main/s/ssmtp/ssmtp_${PV}.orig.tar.gz \
           file://ldflags.patch;patch=1 \
           file://configure.patch;patch=1 \
           file://libs-lcrypto.patch;patch=1 \
           file://ssmtp.conf"
S = "${WORKDIR}/${PN}-2.61"
LICENSE = "GPL"
CONFFILE = "${sysconfdir}/ssmtp/ssmtp.conf"
inherit autotools

EXTRA_OECONF = "--enable-ssl"
do_compile () {
	oe_runmake 'LDFLAGS=${LDFLAGS}'
}

do_install () {
	oe_runmake 'prefix=${D}${prefix}' 'exec_prefix=${D}${exec_prefix}' \
		   'bindir=${D}${bindir}' 'mandir=${D}${mandir}' \
		   'etcdir=${D}${sysconfdir}' GEN_CONFIG="`which echo`" install
	install -d ${D}${sysconfdir}/ssmtp
	install -m 0644 ${WORKDIR}/ssmtp.conf ${D}${sysconfdir}/ssmtp/ssmtp.conf
}

pkg_postinst () {
	update-alternatives --install ${sbindir}/sendmail sendmail ${bindir}/ssmtp 90
}

pkg_postrm () {
	update-alternatives --remove ${sbindir}/sendmail sendmail
}

Update ssmtp u-a priority to be less than postfix's

SECTION = "console/network"

DEPENDS = "openssl"
DESCRIPTION = "Extremely simple MTA to get mail off the system to a mail hub."
PR = "r4"

SRC_URI = "${DEBIAN_MIRROR}/main/s/ssmtp/ssmtp_${PV}.orig.tar.gz \
           file://ldflags.patch;patch=1 \
           file://configure.patch;patch=1 \
           file://libs-lcrypto.patch;patch=1 \
           file://ssmtp.conf"
S = "${WORKDIR}/${PN}-2.61"
LICENSE = "GPL"
#CONFFILES = "${sysconfdir}/ssmtp/ssmtp.conf ${sysconfdir}/ssmtp/revaliases"
inherit autotools

EXTRA_OECONF = "--enable-ssl"
do_compile () {
	oe_runmake 'LDFLAGS=${LDFLAGS}'
}

do_install () {
	oe_runmake 'prefix=${D}${prefix}' 'exec_prefix=${D}${exec_prefix}' \
		   'bindir=${D}${bindir}' 'mandir=${D}${mandir}' \
		   'etcdir=${D}${sysconfdir}' GEN_CONFIG="`which echo`" install
	install -d ${D}${sysconfdir}/ssmtp
	install -m 0644 ${WORKDIR}/ssmtp.conf ${D}${sysconfdir}/ssmtp/ssmtp.conf
}

pkg_postinst () {
	update-alternatives --install ${sbindir}/sendmail sendmail ${bindir}/ssmtp 30
}

pkg_postrm () {
	update-alternatives --remove ${sbindir}/sendmail sendmail
}