DESCRIPTION = "libmikmod is a module player library supporting many formats, including mod, s3m, it, and xm."
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "LGPL"
PR = "r4"

SRC_URI = "\
  ${SOURCEFORGE_MIRROR}/mikmod/libmikmod-${PV}.tar.gz \
  file://m4.patch \
  file://autofoo.patch \
  file://ldflags.patch \
  file://CVE-2010-2971.patch \
"

inherit autotools binconfig

EXTRA_OECONF = "\
  --disable-af \
  --enable-alsa \
  --disable-esd \
  --enable-oss \
  --disable-sam9407 \
  --disable-ultra \
  --disable-esdtest \
  --enable-threads \
"

SRC_URI[md5sum] = "9f3c740298260d5f88981fc0d51f6f16"
SRC_URI[sha256sum] = "891a2b780306e6ef86e381f459e71a085d4e7f56c970a879d3bf341c01bdfc32"

Update LICENSE field version to LGPLv2.1

DESCRIPTION = "libmikmod is a module player library supporting many formats, including mod, s3m, it, and xm."
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "LGPLv2.1"
PR = "r5"

SRC_URI = "\
  ${SOURCEFORGE_MIRROR}/mikmod/libmikmod-${PV}.tar.gz \
  file://m4.patch \
  file://autofoo.patch \
  file://ldflags.patch \
  file://CVE-2010-2971.patch \
"

inherit autotools binconfig

EXTRA_OECONF = "\
  --disable-af \
  --enable-alsa \
  --disable-esd \
  --enable-oss \
  --disable-sam9407 \
  --disable-ultra \
  --disable-esdtest \
  --enable-threads \
"

SRC_URI[md5sum] = "9f3c740298260d5f88981fc0d51f6f16"
SRC_URI[sha256sum] = "891a2b780306e6ef86e381f459e71a085d4e7f56c970a879d3bf341c01bdfc32"


DESCRIPTION = "Stream Benchmark"
HOMEPAGE = "http://www.cs.virginia.edu/stream/"
LICENSE = "Stream_Benchmark_License"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bca8cbe07976fe64c8946378d08314b0"
SECTION = "system"

PR = "r1"

BRANCH ?= "master"
SRCREV = "bd474633b7b0352211b48d84065bf7b7e166e4c2"

SRC_URI = "git://git.ti.com/sitara-linux/stream.git;branch=${BRANCH}"

S = "${WORKDIR}/git"

do_compile() {
	# build the release version
	oe_runmake stream_linux
}

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

Update commit to include building openmp version of stream

DESCRIPTION = "Stream Benchmark"
HOMEPAGE = "http://www.cs.virginia.edu/stream/"
LICENSE = "Stream_Benchmark_License"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bca8cbe07976fe64c8946378d08314b0"
SECTION = "system"

PR = "r2"

BRANCH ?= "master"
SRCREV = "b66f2bab5d6d0b35732ef8406ae03873725a3306"

SRC_URI = "git://git.ti.com/sitara-linux/stream.git;branch=${BRANCH}"

S = "${WORKDIR}/git"

PACKAGES =+ "${PN}-openmp"

do_compile() {
	# build the release version
	oe_runmake
}

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

FILES_${PN}-openmp = "${bindir}/stream_c_openmp"


SUMMARY = "Diagnostic tool for TI K3 processors"

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://common/k3conf.c;beginline=1;endline=34;md5=7154c0ffcd418064ffa528e34e70ca9d"

PV = "0.2+git${SRCPV}"

COMPATIBLE_MACHINE = "k3"

BRANCH ?= "master"
SRCREV = "79f007cd462384ce22e750e9002b714878f56892"

SRC_URI = "git://git.ti.com/k3conf/k3conf.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"

do_compile () {
    oe_runmake CC="${CC}" CROSS_COMPILE=${TARGET_PREFIX} all
}

do_install () {
    install -d ${D}${bindir}
    install ${S}/k3conf ${D}${bindir}
}

Update SRCREV to pick AM62x support

SUMMARY = "Diagnostic tool for TI K3 processors"

LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://common/k3conf.c;beginline=1;endline=34;md5=7154c0ffcd418064ffa528e34e70ca9d"

PV = "0.2+git${SRCPV}"

COMPATIBLE_MACHINE = "k3"

BRANCH ?= "master"
SRCREV = "966a5695b73bc53039ca60d196b77de0640088d4"

SRC_URI = "git://git.ti.com/k3conf/k3conf.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"

do_compile () {
    oe_runmake CC="${CC}" CROSS_COMPILE=${TARGET_PREFIX} all
}

do_install () {
    install -d ${D}${bindir}
    install ${S}/k3conf ${D}${bindir}
}


require u-boot-ti.inc

PR = "r26"

BRANCH = "ti-u-boot-2020.01"

SRCREV = "c32cf0dd6bc60911927548ad20973c71fce95661"

Update to the latest commit

require u-boot-ti.inc

PR = "r27"

BRANCH = "ti-u-boot-2020.01"

SRCREV = "7b6b1a17bfdae5e4f6fd13f208c36814803f3ba7"


## 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
}


LICENSE = "GPLv2"
DEPENDS = "libxml-simple-perl-native"

SRC_URI = "http://tango.freedesktop.org/releases/icon-naming-utils-${PV}.tar.gz"

S = "${WORKDIR}/icon-naming-utils-${PV}"

inherit autotools native

SRC_URI[md5sum] = "4abe604721ce2ccb67f451aa7ceb44d6"
SRC_URI[sha256sum] = "1cb49ce6a04626939893a447da696f20003903d61bd80c6d74d29dd79ca340d2"

Fix long path to perl in icon-name-mapping

LICENSE = "GPLv2"
DEPENDS = "libxml-simple-perl-native"
PR = "r1"
SRC_URI = "http://tango.freedesktop.org/releases/icon-naming-utils-${PV}.tar.gz"

S = "${WORKDIR}/icon-naming-utils-${PV}"

inherit autotools native

do_configure_append() {
	# replace paths to STAGING_BINDIR_NATIVE/perl with ${bindir}/perl
	sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${S}/icon-name-mapping.pl.in
}

SRC_URI[md5sum] = "4abe604721ce2ccb67f451aa7ceb44d6"
SRC_URI[sha256sum] = "1cb49ce6a04626939893a447da696f20003903d61bd80c6d74d29dd79ca340d2"


require qt5-git.inc
require ${PN}.inc

QT_MODULE_BRANCH = "stable"

# qtsystems wasn't released yet, last tag before this SRCREV is 5.0.0-beta1
# qt5-git PV is only to indicate that this recipe is compatible with qt5 5.2.1

SRCREV = "aa651c73bf7bc57c1b6b1bfcfa9afe901884a102"

Change branch from stable to 5.3

require qt5-git.inc
require ${PN}.inc

QT_MODULE_BRANCH = "5.3"

# qtsystems wasn't released yet, last tag before this SRCREV is 5.0.0-beta1
# qt5-git PV is only to indicate that this recipe is compatible with qt5 5.2.1

SRCREV = "aa651c73bf7bc57c1b6b1bfcfa9afe901884a102"


DESCRIPTION = "Linux kernel for Beck IPC Hardware"
KERNEL_IMAGETYPE = "zImage"

require recipes-kernel/linux/linux.inc

COMPATIBLE_MACHINE = "(sc145-db150)"

PV = "4.9.13"
PR = "r0"
SRCREV_pn-${PN} = "c34101cdc6acb0c056d07c0bc9e7c1df4758f76e"

SRC_URI += "git://git.kernelconcepts.de/linux-beck.git;protocol=git;branch=v4.9-beck; \
            file://defconfig"

S = "${WORKDIR}/git"

Update kernel to fetch from GitHub Build devicetree and update revision.

DESCRIPTION = "Linux kernel for Beck IPC Hardware"
KERNEL_IMAGETYPE = "zImage"

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

COMPATIBLE_MACHINE = "(sc145-db150)"

PV = "4.9.13"
PR = "r0"
SRCREV_pn-${PN} = "c29e52f4aa3d42338c3234d73a19723e9267a46a"

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

S = "${WORKDIR}/git"


#
# Base recipe: meta/recipes-graphics/xorg-lib/libpthread-stubs_0.3.bb
# Branch: daisy
#

SUMMARY = "Library that provides weak aliases for pthread functions"
DESCRIPTION = "This library provides weak aliases for pthread functions \
not provided in libc or otherwise available by default."
HOMEPAGE = "http://xcb.freedesktop.org"
BUGTRACKER = "http://bugs.freedesktop.org/buglist.cgi?product=XCB"

PR = "r0"

inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=6edc1fea03d959f0c2d743fe5ca746ad"

# Avoid a parallel build problem
PARALLEL_MAKE = ""

inherit autotools pkgconfig

BBCLASSEXTEND = "native nativesdk"

# There is no Debian's patch
DEBIAN_PATCH_TYPE = "nopatch"

# Correct the package name follow Debian
DEBIANNAME_${PN}-dev = "${PN}0-dev"

Correct the package name follow Debian

#
# Base recipe: meta/recipes-graphics/xorg-lib/libpthread-stubs_0.3.bb
# Branch: daisy
#

SUMMARY = "Library that provides weak aliases for pthread functions"
DESCRIPTION = "This library provides weak aliases for pthread functions \
not provided in libc or otherwise available by default."
HOMEPAGE = "http://xcb.freedesktop.org"
BUGTRACKER = "http://bugs.freedesktop.org/buglist.cgi?product=XCB"

PR = "r0"

inherit debian-package

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=6edc1fea03d959f0c2d743fe5ca746ad"

# Avoid a parallel build problem
PARALLEL_MAKE = ""

inherit autotools pkgconfig

BBCLASSEXTEND = "native nativesdk"

# There is no Debian's patch
DEBIAN_PATCH_TYPE = "nopatch"

# Create package follow Debian.
PACKAGES = "${PN}0-dev"

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


DESCRIPTION = "Locations is a GPS location based application that lets you save and send your favorite locations to friends."
HOMEPAGE = "http://wiki.openmoko.org/wiki/Om2008.8_Locations"
SECTION = "openmoko/applications"
LICENSE = "GPL"
DEPENDS = "eet evas edje ecore edbus etk"
RDEPENDS_${PN} = "diversity-daemon"
PV = "0.2+gitr${SRCREV}"
PR = "r1.04"

SRC_URI = "git://git.openmoko.org/git/om-locations.git;protocol=git"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc"

do_configure_prepend() {
       autopoint --force
}

PKG_TAGS_${PN} = "alias::Om_Locations"

Revert "[Descriptions] Adding more description to applications"

DESCRIPTION = "Locations - a GPS location based communicative application"
HOMEPAGE = "http://wiki.openmoko.org/wiki/Om2008.8_Locations"
SECTION = "openmoko/applications"
LICENSE = "GPL"
DEPENDS = "eet evas edje ecore edbus etk"
RDEPENDS_${PN} = "diversity-daemon"
PV = "0.2+gitr${SRCREV}"
PR = "r1.03"

SRC_URI = "git://git.openmoko.org/git/om-locations.git;protocol=git"

S = "${WORKDIR}/git"

inherit autotools pkgconfig

EXTRA_OECONF = "--with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc"

do_configure_prepend() {
       autopoint --force
}

PKG_TAGS_${PN} = "group::communication alias::Om_Locations"


require recipes-devtools/qemu/qemu.inc
require qemu-xilinx.inc

BBCLASSEXTEND = "nativesdk"

RDEPENDS_${PN}_class-target += "bash"

EXTRA_OECONF_append_class-target = " --target-list=${@get_qemu_target_list(d)}"
EXTRA_OECONF_append_class-nativesdk = " --target-list=${@get_qemu_target_list(d)}"

do_install_append_class-nativesdk() {
    ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)}
}

Enable qemu-xilinx to provide nativesdk-qemu

require recipes-devtools/qemu/qemu.inc
require qemu-xilinx.inc

BBCLASSEXTEND = "nativesdk"

RDEPENDS_${PN}_class-target += "bash"

PROVIDES_class-nativesdk = "nativesdk-qemu"
RPROVIDES_${PN}_class-nativesdk = "nativesdk-qemu"

EXTRA_OECONF_append_class-target = " --target-list=${@get_qemu_target_list(d)}"
EXTRA_OECONF_append_class-nativesdk = " --target-list=${@get_qemu_target_list(d)}"

do_install_append_class-nativesdk() {
    ${@bb.utils.contains('PACKAGECONFIG', 'gtk+', 'make_qemu_wrapper', '', d)}
}


SUMMARY = "Building and installing bootgen"
DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d526b6d0807bf263b97da1da876f39b1"

S = "${WORKDIR}/git"

DEPENDS += "openssl"
RDEPENDS:${PN} += "openssl"

REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https"
BRANCH ?= "xlnx_rel_v2022.2"
SRCREV = "d890ba298685b73307a01a9dbcc8702f9afcdbcc"

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

EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}'
CXXFLAGS:append = " -std=c++0x"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install() {
    install -d ${D}${bindir}
    install -Dm 0755 ${S}/bootgen ${D}${bindir}
}

FILES:${PN} = "${bindir}/bootgen"

BBCLASSEXTEND = "native nativesdk"

Update to bootgen SRCREV to point to latest commit

SUMMARY = "Building and installing bootgen"
DESCRIPTION = "Building and installing bootgen, a Xilinx tool that lets you stitch binary files together and generate device boot images"

LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d526b6d0807bf263b97da1da876f39b1"

S = "${WORKDIR}/git"

DEPENDS += "openssl"
RDEPENDS:${PN} += "openssl"

REPO ?= "git://github.com/Xilinx/bootgen.git;protocol=https"
BRANCH ?= "xlnx_rel_v2022.2"
SRCREV = "8c303a5f9c1db67a9f8b7643678740d007bf567c"

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

EXTRA_OEMAKE += 'CROSS_COMPILER="${CXX}" -C ${S}'
CXXFLAGS:append = " -std=c++0x"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install() {
    install -d ${D}${bindir}
    install -Dm 0755 ${S}/bootgen ${D}${bindir}
}

FILES:${PN} = "${bindir}/bootgen"

BBCLASSEXTEND = "native nativesdk"


# Released under the MIT license (see COPYING.MIT for the terms)

require ktap.inc

SUMMARY = "KTAP is a scripting dynamic tracing tool for Linux"
DEPENDS = "ktap-module"

#Available package configs:
# libelf - needed to resolve symbols in DSO and for sdt
# ffi    - only supports x86_64 for now!. Needs to be enabled for ktap-module too.
PACKAGECONFIG ?= "libelf"

PACKAGECONFIG[libelf] = ",,elfutils"

# Only build the userspace app
EXTRA_OEMAKE = "${@base_contains('PACKAGECONFIG', 'libelf', '', 'NO_LIBELF=1', d)} \
             ${@base_contains('PACKAGECONFIG', 'ffi', 'FFI=1', '', d)} \
             ktap"

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

RDEPENDS_${PN} = "kernel-module-ktapvm"

Set MACHINE_ARCH because of ktap-module runtime dependency

# Released under the MIT license (see COPYING.MIT for the terms)

require ktap.inc

SUMMARY = "KTAP is a scripting dynamic tracing tool for Linux"
DEPENDS = "ktap-module"

#Available package configs:
# libelf - needed to resolve symbols in DSO and for sdt
# ffi    - only supports x86_64 for now!. Needs to be enabled for ktap-module too.
PACKAGECONFIG ?= "libelf"

PACKAGECONFIG[libelf] = ",,elfutils"

# Only build the userspace app
EXTRA_OEMAKE = "${@base_contains('PACKAGECONFIG', 'libelf', '', 'NO_LIBELF=1', d)} \
             ${@base_contains('PACKAGECONFIG', 'ffi', 'FFI=1', '', d)} \
             ktap"

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

PACKAGE_ARCH = "${MACHINE_ARCH}"
RDEPENDS_${PN} = "kernel-module-ktapvm"


SUMMARY = "A console-only image with a development/debug \
environment suitable for building GNURadio installed."

#require version-image.inc

IMAGE_FEATURES += "splash ssh-server-openssh tools-sdk \
                   debug-tweaks \
                   dev-pkgs \
                  "

EXTRA_IMAGE_FEATURES += "package-management"

LICENSE = "MIT"

CORE_IMAGE_EXTRA_INSTALL = "\
    i2c-tools \
    devmem2 \
    screen \
    vim \
    vim-vimrc \
    git \
    swig \
    boost \
    cmake \
    gsl \
    python \
    python-mako \
    python-modules \
    python-argparse \
    python-distutils \
    python-numpy \
    htop \
    glib-2.0 \
    orc \
    overlay-script \
    libudev \
    iperf3 \
    openssh-sftp \
    openssh-sftp-server \
    fftwf-wisdom \
    uhd \
    uhd-examples \
    python3-pip \
    ethtool \
    sshfs-fuse \
    tzdata \
    trousers \
    tpm-tools \
    "

#eeprom-hostname-systemd
#migrate-netcfg-systemd
#usrp-hwd
#openocd
#salt-minion

inherit core-image image-buildinfo

#MENDER_DATA_PART_DIR_append = "${DEPLOY_DIR_IMAGE}/persist"

Add mpmd to installed packages on dev image

SUMMARY = "A console-only image with a development/debug \
environment suitable for building GNURadio installed."

#require version-image.inc

IMAGE_FEATURES += "splash ssh-server-openssh tools-sdk \
                   debug-tweaks \
                   dev-pkgs \
                  "

EXTRA_IMAGE_FEATURES += "package-management"

LICENSE = "MIT"

CORE_IMAGE_EXTRA_INSTALL = "\
    i2c-tools \
    devmem2 \
    screen \
    vim \
    vim-vimrc \
    git \
    swig \
    boost \
    cmake \
    gsl \
    python \
    python-mako \
    python-modules \
    python-argparse \
    python-distutils \
    python-numpy \
    htop \
    glib-2.0 \
    mpmd \
    orc \
    overlay-script \
    libudev \
    iperf3 \
    openssh-sftp \
    openssh-sftp-server \
    fftwf-wisdom \
    uhd \
    uhd-examples \
    python3-pip \
    ethtool \
    sshfs-fuse \
    tzdata \
    trousers \
    tpm-tools \
    "

#eeprom-hostname-systemd
#migrate-netcfg-systemd
#openocd
#salt-minion

inherit core-image image-buildinfo

#MENDER_DATA_PART_DIR_append = "${DEPLOY_DIR_IMAGE}/persist"


PR = "r0"

inherit debian-package allarch
PV = "1.5.56+deb8u1"

SUMMARY = "Debian configuration management system"
DESCRIPTION = "\
 Debconf is a configuration management system for debian packages. Packages\
 use Debconf to ask questions when they are installed.\
"
LICENSE = "BSD-2-Clause"
SECTION = "admin"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=1aa3b78d3182195ba56c01cb7227ead3"

DEBIAN_PATCH_TYPE = "nopatch"

do_configure() {
	:
}

do_compile() {
	:
}

do_install() {
	prefix="${D}" oe_runmake install-utils
	prefix="${D}" oe_runmake install-rest
}

do_install_class-native () {
	prefix="${D}${STAGING_DIR_NATIVE}" oe_runmake install
}

PACKAGES =+ "${PN}-utils"
FILES_${PN}-utils = " \
${bindir}/debconf-get-selections \
${bindir}/debconf-getlang \
${bindir}/debconf-loadtemplate \
${bindir}/debconf-mergetemplate \
"
FILES_${PN} += "${datadir} ${libdir}"

BBCLASSEXTEND = "native"

Use nativeperl for the perl script

PR = "r0"

inherit debian-package allarch
PV = "1.5.56+deb8u1"

SUMMARY = "Debian configuration management system"
DESCRIPTION = "\
 Debconf is a configuration management system for debian packages. Packages\
 use Debconf to ask questions when they are installed.\
"
LICENSE = "BSD-2-Clause"
SECTION = "admin"
LIC_FILES_CHKSUM = "file://debian/copyright;md5=1aa3b78d3182195ba56c01cb7227ead3"

DEBIAN_PATCH_TYPE = "nopatch"

inherit perlnative

do_configure() {
	:
}

do_compile() {
	:
}

do_install() {
	prefix="${D}" oe_runmake install-utils
	prefix="${D}" oe_runmake install-rest
}

do_install_class-native () {
	prefix="${D}${STAGING_DIR_NATIVE}" oe_runmake install

	# Use /usr/bin/env nativeperl for the perl script.
	for f in `grep -rIl '#! */usr/bin/perl' ${D}`; do
		sed -i -e 's|/usr/bin/perl.*|/usr/bin/env nativeperl|' $f
	done
}

PACKAGES =+ "${PN}-utils"
FILES_${PN}-utils = " \
${bindir}/debconf-get-selections \
${bindir}/debconf-getlang \
${bindir}/debconf-loadtemplate \
${bindir}/debconf-mergetemplate \
"
FILES_${PN} += "${datadir} ${libdir}"

BBCLASSEXTEND = "native"


SUMMARY = "The core of the ament buildsystem in CMake."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://package.xml;beginline=17;endline=17;md5=12c26a18c7f493fdc7e8a93b16b7c04f"
DEPENDS = "ament-package-native ${PYTHON_PN}-pyparsing"

include ament-cmake.inc

RDEPENDS_${PN} += "ament-package cmake"

Fix the dependency on ${PYTHON_PN}-pyparsing

SUMMARY = "The core of the ament buildsystem in CMake."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://package.xml;beginline=17;endline=17;md5=12c26a18c7f493fdc7e8a93b16b7c04f"
DEPENDS = "ament-package-native ${PYTHON_PN}-pyparsing-native"

include ament-cmake.inc

RDEPENDS_${PN} += "ament-package cmake"


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

PR = "r5"

IMAGE_INSTALL += "packagegroup-core-ssh-openssh"
IMAGE_INSTALL += "iproute2"
IMAGE_INSTALL += "binutils"
IMAGE_INSTALL += "nano"
IMAGE_INSTALL += "mtd-utils"
IMAGE_INSTALL += "mtd-utils-ubifs"
IMAGE_INSTALL += "canutils"
IMAGE_INSTALL += "vbusenable"
IMAGE_INSTALL += "flashubi"
IMAGE_INSTALL += "wireless-tools"
IMAGE_INSTALL += "wpa-supplicant"
IMAGE_INSTALL += "wpa-supplicant-cli"
IMAGE_INSTALL += "wpa-supplicant-passphrase"
IMAGE_INSTALL += "iw"
IMAGE_INSTALL += "curl"
IMAGE_INSTALL += "binutils"
IMAGE_INSTALL += "bash"
IMAGE_INSTALL += "cellularctl"
IMAGE_INSTALL += "ppp"
IMAGE_INSTALL += "ppp-configuration"
IMAGE_INSTALL += "gpsd"
IMAGE_INSTALL += "gdbserver"
IMAGE_INSTALL += "openssh-sftp-server"
IMAGE_INSTALL += "usbutils"
IMAGE_INSTALL += "bsp-version"

Replace canutils package with can-utils package

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

PR = "r5"

IMAGE_INSTALL += "packagegroup-core-ssh-openssh"
IMAGE_INSTALL += "iproute2"
IMAGE_INSTALL += "binutils"
IMAGE_INSTALL += "nano"
IMAGE_INSTALL += "mtd-utils"
IMAGE_INSTALL += "mtd-utils-ubifs"
IMAGE_INSTALL += "can-utils"
IMAGE_INSTALL += "vbusenable"
IMAGE_INSTALL += "flashubi"
IMAGE_INSTALL += "wireless-tools"
IMAGE_INSTALL += "wpa-supplicant"
IMAGE_INSTALL += "wpa-supplicant-cli"
IMAGE_INSTALL += "wpa-supplicant-passphrase"
IMAGE_INSTALL += "iw"
IMAGE_INSTALL += "curl"
IMAGE_INSTALL += "binutils"
IMAGE_INSTALL += "bash"
IMAGE_INSTALL += "cellularctl"
IMAGE_INSTALL += "ppp"
IMAGE_INSTALL += "ppp-configuration"
IMAGE_INSTALL += "gpsd"
IMAGE_INSTALL += "gdbserver"
IMAGE_INSTALL += "openssh-sftp-server"
IMAGE_INSTALL += "usbutils"
IMAGE_INSTALL += "bsp-version"


SUMMARY = "A fast JSON parser/generator for C++ with both SAX/DOM style API"
HOMEPAGE = "http://rapidjson.org/"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://license.txt;md5=ba04aa8f65de1396a7e59d1d746c2125"

SRC_URI = "git://github.com/miloyip/rapidjson.git;nobranch=1 \
           file://remove-march-native-from-CMAKE_CXX_FLAGS.patch \
"

SRCREV = "e5635fb27feab7f6e8d7b916aa20ad799045a641"

PV = "1.1.0+git${SRCPV}"

S = "${WORKDIR}/git"

inherit cmake

EXTRA_OECMAKE += "-DRAPIDJSON_BUILD_DOC=OFF -DRAPIDJSON_BUILD_TESTS=OFF -DRAPIDJSON_BUILD_EXAMPLES=OFF"

# RapidJSON is a header-only C++ library, so the main package will be empty.

RDEPENDS_${PN}-dev = ""

BBCLASSEXTEND = "native nativesdk"

Update to newer 1.1.0 + git

SUMMARY = "A fast JSON parser/generator for C++ with both SAX/DOM style API"
HOMEPAGE = "http://rapidjson.org/"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://license.txt;md5=ba04aa8f65de1396a7e59d1d746c2125"

SRC_URI = "git://github.com/miloyip/rapidjson.git;nobranch=1"

SRCREV = "6a905f9311f82d306da77bd963ec5aa5da07da9c"

PV = "1.1.0+git${SRCPV}"

S = "${WORKDIR}/git"

inherit cmake

EXTRA_OECMAKE += "-DRAPIDJSON_BUILD_DOC=OFF -DRAPIDJSON_BUILD_TESTS=OFF -DRAPIDJSON_BUILD_EXAMPLES=OFF"

# RapidJSON is a header-only C++ library, so the main package will be empty.

RDEPENDS_${PN}-dev = ""

BBCLASSEXTEND = "native nativesdk"


require recipes-graphics/xorg-app/xorg-app-common.inc

SUMMARY = "X.Org X11 X client utilities"
HOMEPAGE = "http://cgit.freedesktop.org/xorg/app/xstdcmap"
DESCRIPTION = "The xstdcmap utility can be used to selectively define \
standard colormap properties."
SECTION = "x11/app"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=2b08d9e2e718ac83e6fe2b974d4b5fd8"

RDEPENDS_${PN} = "libxmu"
BBCLASSEXTEND = "native"

SRC_URI[md5sum] = "eb5473acaef15a5db9b50df29c6a7f90"
SRC_URI[sha256sum] = "f648e2b0cf16aa29856de998e2c7204be39dc1f8daeda9464d32288e0b580fc1"

PNBLACKLIST[xstdcmap] ?= "Fails to build with RSS http://errors.yoctoproject.org/Errors/Details/130660/ - the recipe will be removed on 2017-09-01 unless the issue is fixed"

Change libxmu from RDEPENDS -> DEPENDS and unblacklist xstdcmap

require recipes-graphics/xorg-app/xorg-app-common.inc

SUMMARY = "X.Org X11 X client utilities"
HOMEPAGE = "http://cgit.freedesktop.org/xorg/app/xstdcmap"
DESCRIPTION = "The xstdcmap utility can be used to selectively define \
standard colormap properties."
SECTION = "x11/app"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=2b08d9e2e718ac83e6fe2b974d4b5fd8"

DEPENDS += "libxmu"
BBCLASSEXTEND = "native"

SRC_URI[md5sum] = "eb5473acaef15a5db9b50df29c6a7f90"
SRC_URI[sha256sum] = "f648e2b0cf16aa29856de998e2c7204be39dc1f8daeda9464d32288e0b580fc1"


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

KERNEL_IMAGETYPE = "zImage"

COMPATIBLE_MACHINE = "overo"

RDEPENDS_kernel-base += "kernel-devicetree"

KERNEL_DEVICETREE = " \
    omap3-overo-storm-tobi.dtb \
    omap3-overo-storm-tobiduo.dtb \
    omap3-overo-tobi.dts \
    omap3-overo-tobiduo.dts \
 "

LINUX_VERSION = "4.4"
LINUX_VERSION_EXTENSION = "-jumpnow"

FILESEXTRAPATHS_prepend := "${THISDIR}/linux-stable-4.4:"

S = "${WORKDIR}/git"

PR = "r0"

# v4.4.8
SRCREV = "8c9aef03d3b540b6885e7534a885ea25f62dd9ed"
SRC_URI = " \
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=linux-4.4.y \
    file://defconfig \
    file://0001-spidev-Add-a-generic-compatible-id.patch \
 "

Remove spidev patch, keep it vanilla

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

KERNEL_IMAGETYPE = "zImage"

COMPATIBLE_MACHINE = "overo"

RDEPENDS_kernel-base += "kernel-devicetree"

KERNEL_DEVICETREE = " \
    omap3-overo-storm-tobi.dtb \
    omap3-overo-tobi.dtb \
 "

LINUX_VERSION = "4.4"
LINUX_VERSION_EXTENSION = "-jumpnow"

FILESEXTRAPATHS_prepend := "${THISDIR}/linux-stable-4.4:"

S = "${WORKDIR}/git"

PR = "r0"

# v4.4.8
SRCREV = "8c9aef03d3b540b6885e7534a885ea25f62dd9ed"
SRC_URI = " \
    git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git;branch=linux-4.4.y \
    file://defconfig \
 "


DESCRIPTION = "Demo application to showcase 3D graphics on SGX using kms and gbm"
HOMEPAGE = "http://git.ti.com"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://kmscube.c;beginline=1;endline=23;md5=e760965096e52da8f3969dd53b6bf158"

DEPENDS = "libdrm virtual/libgbm virtual/egl virtual/libgles2"

COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3"
PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit autotools pkgconfig

PR = "r13"
SRCREV = "456cabc661caac5c60729751d45efd668faa8e97"

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

SRC_URI_append = " \
"

S = "${WORKDIR}/git"

INSANE_SKIP_kmscube += "dev-deps"

Update SRCREV for connector-ID fix

DESCRIPTION = "Demo application to showcase 3D graphics on SGX using kms and gbm"
HOMEPAGE = "http://git.ti.com"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://kmscube.c;beginline=1;endline=23;md5=e760965096e52da8f3969dd53b6bf158"

DEPENDS = "libdrm virtual/libgbm virtual/egl virtual/libgles2"

COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3"
PACKAGE_ARCH = "${MACHINE_ARCH}"

inherit autotools pkgconfig

PR = "r14"
SRCREV = "7bc7ff6c4ead19761003ed4a08d00ce64effe38b"

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

SRC_URI_append = " \
"

S = "${WORKDIR}/git"

INSANE_SKIP_kmscube += "dev-deps"


DESCRIPTION = "Configuration files for online package repositories of Openmoko community repository feeds"
PR = "r0.02"

do_compile() {
    mkdir -p ${S}/${sysconfdir}/opkg
    for feed in Multiverse; do
        echo "src/gz daily-${feed} ${OPENMOKO_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
    done
}
do_install () {
        install -d ${D}${sysconfdir}/opkg
        install -m 0644  ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

CONFFILES_${PN} += "${sysconfdir}/opkg/community-repository-feed.conf"

PKG_TAGS_${PN} = "group::repos"

OPENMOKO_URI = "http://downloads.openmoko.org/repository"

Fix the feed configuration Make the package buildable again

DESCRIPTION = "Configuration files for online package repositories of Openmoko community repository feeds"
PR = "r0.02"

do_compile() {
    mkdir -p ${S}/${sysconfdir}/opkg
    for feed in Multiverse; do
        echo "src/gz daily-${feed} ${OPENMOKO_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf
    done
}
do_install () {
        install -d ${D}${sysconfdir}/opkg
        install -m 0644  ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

CONFFILES_${PN} += "${sysconfdir}/opkg/Multiverse-feed.conf"

PKG_TAGS_${PN} = "group::repos"

OPENMOKO_URI = "http://downloads.openmoko.org/repository"


require ttf.inc

DESCRIPTION = "Junction Fonts - OTF Edition"
LICENSE = "OFL"
PR = "r0"

SRC_URI = "http://www.linuxtogo.org/~mickeyl/misc/junction.zip"
S = "${WORKDIR}"

do_install() {
	install -d ${D}${datadir}/fonts/${PN}
	install -m 0644 */*.otf ${D}${datadir}/fonts/${PN}/
}

SRC_URI[md5sum] = "fe26a1f85d7f367781e0f8764552dff7"
SRC_URI[sha256sum] = "cab8f3f546c49f2aae9855c252e898cb1951a50a5638080cc713d8987520b366"

FILES_${PN} += "${datadir}/fonts/${PN}/*.otf"

Switch to subdir= in SRC_URI

require ttf.inc

DESCRIPTION = "Junction Fonts - OTF Edition"
LICENSE = "OFL"
PR = "r0"

SRC_URI = "http://www.linuxtogo.org/~mickeyl/misc/junction.zip;subdir=${BPN}-${PV}"
SRC_URI[md5sum] = "fe26a1f85d7f367781e0f8764552dff7"
SRC_URI[sha256sum] = "cab8f3f546c49f2aae9855c252e898cb1951a50a5638080cc713d8987520b366"

do_install() {
	install -d ${D}${datadir}/fonts/${PN}
	install -m 0644 */*.otf ${D}${datadir}/fonts/${PN}/
}

FILES_${PN} += "${datadir}/fonts/${PN}/*.otf"


SUMMARY = "Memory Efficient Serialization Library"
HOMEPAGE = "https://github.com/google/flatbuffers"
SECTION = "console/tools"
LICENSE = "Apache-2.0"

PACKAGE_BEFORE_PN = "${PN}-compiler"

RDEPENDS_${PN}-compiler = "${PN}"
RDEPENDS_${PN}-dev += "${PN}-compiler"

LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"

SRCREV = "6df40a2471737b27271bdd9b900ab5f3aec746c7"

SRC_URI = "git://github.com/google/flatbuffers.git"

# Make sure C++11 is used, required for example for GCC 4.9
CXXFLAGS += "-std=c++11 -fPIC"
BUILD_CXXFLAGS += "-std=c++11 -fPIC"

# BUILD_TYPE=Release is required, otherwise flatc is not installed
EXTRA_OECMAKE += "\
    -DCMAKE_BUILD_TYPE=Release \
    -DFLATBUFFERS_BUILD_TESTS=OFF \
    -DFLATBUFFERS_BUILD_SHAREDLIB=ON \
"

inherit cmake

S = "${WORKDIR}/git"

FILES_${PN}-compiler = "${bindir}"

BBCLASSEXTEND = "native nativesdk"

Remove workarounds for gcc < 6

SUMMARY = "Memory Efficient Serialization Library"
HOMEPAGE = "https://github.com/google/flatbuffers"
SECTION = "console/tools"
LICENSE = "Apache-2.0"

PACKAGE_BEFORE_PN = "${PN}-compiler"

RDEPENDS_${PN}-compiler = "${PN}"
RDEPENDS_${PN}-dev += "${PN}-compiler"

LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"

SRCREV = "6df40a2471737b27271bdd9b900ab5f3aec746c7"

SRC_URI = "git://github.com/google/flatbuffers.git"

CXXFLAGS += "-fPIC"
BUILD_CXXFLAGS += "-fPIC"

# BUILD_TYPE=Release is required, otherwise flatc is not installed
EXTRA_OECMAKE += "\
    -DCMAKE_BUILD_TYPE=Release \
    -DFLATBUFFERS_BUILD_TESTS=OFF \
    -DFLATBUFFERS_BUILD_SHAREDLIB=ON \
"

inherit cmake

S = "${WORKDIR}/git"

FILES_${PN}-compiler = "${bindir}"

BBCLASSEXTEND = "native nativesdk"


DESCRIPTION = "Task to install graphics binaries"
LICENSE = "MIT"
PR = "r18"

inherit packagegroup

#    wayland-ivi-extension
GRAPHICS_WAYLAND = "\
    weston \
    weston-init \
    weston-examples \
"

GRAPHICS_WAYLAND_append_omap-a15 = "\
    chromium-wayland \
"

GRAPHICS_RDEPENDS = "\
    libgbm \
    ti-sgx-ddk-km \
    ti-sgx-ddk-um \
    glmark2 \
"

GRAPHICS_RDEPENDS_append_omap-a15 = "\
    ti-gc320-tests \
    ti-gc320-driver \
    ti-gc320-libs  \
"

RDEPENDS_${PN} = "\
    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', "${GRAPHICS_WAYLAND}", '', d)} \
    ${GRAPHICS_RDEPENDS} \
"

Add util-scripts into the image

DESCRIPTION = "Task to install graphics binaries"
LICENSE = "MIT"
PR = "r19"

inherit packagegroup

#    wayland-ivi-extension
GRAPHICS_WAYLAND = "\
    weston \
    weston-init \
    weston-examples \
"

GRAPHICS_WAYLAND_append_omap-a15 = "\
    chromium-wayland \
"

GRAPHICS_RDEPENDS = "\
    libgbm \
    ti-sgx-ddk-km \
    ti-sgx-ddk-um \
    glmark2 \
"

GRAPHICS_DISPLAY_UTILS = "\
"

GRAPHICS_DISPLAY_UTILS_append_omap-a15  = "\
    glsdk-util-scripts \
"

GRAPHICS_RDEPENDS_append_omap-a15 = "\
    ti-gc320-tests \
    ti-gc320-driver \
    ti-gc320-libs  \
"

RDEPENDS_${PN} = "\
    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', "${GRAPHICS_WAYLAND}", '', d)} \
    ${GRAPHICS_RDEPENDS} \
    ${GRAPHICS_DISPLAY_UTILS} \
"


SUMMARY = "Stressful Application Test"
DESCRIPTION = "Stressful Application Test (or stressapptest, its unix name) \
 is a memory interface test. It tries to maximize randomized traffic to memory \
 from processor and I/O, with the intent of creating a realistic high load \
 situation in order to test the existing hardware devices in a computer. \
"
HOMEPAGE = "https://github.com/stressapptest/stressapptest"
SECTION = "benchmark"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=55ea9d559f985fb4834317d8ed6b9e58"

SRC_URI = "https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz \
           file://libcplusplus-compat.patch \
           file://read_sysfs_for_cachesize.patch \
          "

SRC_URI[md5sum] = "d3a526c174c049dd7a1068dc74a62be2"
SRC_URI[sha256sum] = "2ba470587ad4f6ae92057d427c3a2a2756e5f10bd25cd91e62eaef55a40b30a1"

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

inherit autotools

Use git SHA instead of git archive

SUMMARY = "Stressful Application Test"
DESCRIPTION = "Stressful Application Test (or stressapptest, its unix name) \
 is a memory interface test. It tries to maximize randomized traffic to memory \
 from processor and I/O, with the intent of creating a realistic high load \
 situation in order to test the existing hardware devices in a computer. \
"
HOMEPAGE = "https://github.com/stressapptest/stressapptest"
SECTION = "benchmark"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=55ea9d559f985fb4834317d8ed6b9e58"

SRCREV = "fb72e5e5f0879231f38e0e826a98a6ca2d1ca38e"

SRC_URI = "git://github.com/stressapptest/stressapptest \
           file://libcplusplus-compat.patch \
           file://read_sysfs_for_cachesize.patch \
          "

S = "${WORKDIR}/git"

inherit autotools


SUMMARY  = "pandas library for high-performance data analysis tools"
DESCRIPTION = "pandas is an open source, BSD-licensed library providing \
high-performance, easy-to-use data structures and data analysis tools for \
the Python programming language."
HOMEPAGE = "http://pandas.pydata.org/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c2a8f987b2ce77c368c6b3e1b5b10774"

SRC_URI[md5sum] = "512da48424b85bf198002bdbdf38af5a"
SRC_URI[sha256sum] = "b39508562ad0bb3f384b0db24da7d68a2608b9ddc85b1d931ccaaa92d5e45273"

inherit pypi setuptools3

DEPENDS += " \
    ${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \
"

RDEPENDS_${PN} += " \
    ${PYTHON_PN}-json \
    ${PYTHON_PN}-numpy \
    ${PYTHON_PN}-dateutil \
    ${PYTHON_PN}-pytz \
"

Add workaround to fix build with clang

SUMMARY  = "pandas library for high-performance data analysis tools"
DESCRIPTION = "pandas is an open source, BSD-licensed library providing \
high-performance, easy-to-use data structures and data analysis tools for \
the Python programming language."
HOMEPAGE = "http://pandas.pydata.org/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c2a8f987b2ce77c368c6b3e1b5b10774"

SRC_URI[md5sum] = "512da48424b85bf198002bdbdf38af5a"
SRC_URI[sha256sum] = "b39508562ad0bb3f384b0db24da7d68a2608b9ddc85b1d931ccaaa92d5e45273"

inherit pypi setuptools3

DEPENDS += " \
    ${PYTHON_PN}-numpy-native ${PYTHON_PN}-cython-native \
"

CFLAGS_append_toolchain-clang = " -Wno-error=deprecated-declarations"

RDEPENDS_${PN} += " \
    ${PYTHON_PN}-json \
    ${PYTHON_PN}-numpy \
    ${PYTHON_PN}-dateutil \
    ${PYTHON_PN}-pytz \
"


DESCRIPTION = "Kernel drivers for the Vivante GC320 chipset found in TI SoCs"
HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-driver"
LICENSE = "MIT | GPLv2"
LIC_FILES_CHKSUM = "file://../LICENSE;md5=78d9818a51b9a8e9bb89dea418bac297"

inherit module

MACHINE_KERNEL_PR_append = "g"
PR = "${MACHINE_KERNEL_PR}"

# Need to branch out with ${PV} var
BRANCH = "ti-${PV}-k5.4"

SRCREV = "bd1c9751af7c693bdf1a0e6b8b96226305d45a8c"

SRC_URI = "git://git.ti.com/graphics/ti-gc320-driver.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git/src"

EXTRA_OEMAKE += "-f Kbuild AQROOT=${S} KERNEL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_PATH=${TOOLCHAIN_PATH} CROSS_COMPILE=${TARGET_PREFIX} ARCH_TYPE=${TARGET_ARCH}"

do_install() {
    install -d ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
    install -m 644 ${S}/galcore.ko ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
}

COMPATIBLE_HOST ?= "null"
COMPATIBLE_HOST_ti-soc = "(.*)"

Update srcrev to pick dma api fixes

DESCRIPTION = "Kernel drivers for the Vivante GC320 chipset found in TI SoCs"
HOMEPAGE = "https://git.ti.com/graphics/ti-gc320-driver"
LICENSE = "MIT | GPLv2"
LIC_FILES_CHKSUM = "file://../LICENSE;md5=78d9818a51b9a8e9bb89dea418bac297"

inherit module

MACHINE_KERNEL_PR_append = "h"
PR = "${MACHINE_KERNEL_PR}"

# Need to branch out with ${PV} var
BRANCH = "ti-${PV}-k5.4"

SRCREV = "2a4fbe8353fa56011a613aeeaf69e274cd07a825"

SRC_URI = "git://git.ti.com/graphics/ti-gc320-driver.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git/src"

EXTRA_OEMAKE += "-f Kbuild AQROOT=${S} KERNEL_DIR=${STAGING_KERNEL_DIR} TOOLCHAIN_PATH=${TOOLCHAIN_PATH} CROSS_COMPILE=${TARGET_PREFIX} ARCH_TYPE=${TARGET_ARCH}"

do_install() {
    install -d ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
    install -m 644 ${S}/galcore.ko ${D}/${base_libdir}/modules/${KERNEL_VERSION}/extra
}

COMPATIBLE_HOST ?= "null"
COMPATIBLE_HOST_ti-soc = "(.*)"


DESCRIPTION = "logging framework for Erlang"
SECTION = "devel"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ff253ad767462c46be284da12dda33e8"

SRCREV = "e58a33d095962ff5774e9c9011afd3d3200003e1"
PR = "r0"

SRC_URI = "git://github.com/basho/lager.git;protocol=git \
	   file://add-tetrapak.patch;apply=yes"

DEPENDS_append = " erlang-goldrush "
RDEPENDS_${PN}_append = " erlang-goldrush "

S = "${WORKDIR}/git"

inherit tetrapak

python () {
    erlang_def_package("lager", "lager-*", "ebin", "include src test LICENSE README.md", d)
}

Make lager work for the api

DESCRIPTION = "logging framework for Erlang"
SECTION = "devel"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ff253ad767462c46be284da12dda33e8"

SRCREV = "8d9ad6fbae6d1a7648164b9c5c9b181b17d017d5"
PR = "r1"

SRC_URI = "git://github.com/travelping/lager.git;protocol=git \
	   file://add-tetrapak.patch;apply=yes"

DEPENDS_append = " erlang-goldrush "
RDEPENDS_${PN}_append = " erlang-goldrush "

S = "${WORKDIR}/git"

inherit tetrapak

python () {
    erlang_def_package("lager", "lager-*", "ebin", "include src test LICENSE README.md", d)
}


require schroedinger.inc

PR = "${INC_PR}.0"

inherit autotools

SRC_URI[schroedingertargz.md5sum] = "d67ec48b7c506db8c8b49156bf409e60"
SRC_URI[schroedingertargz.sha256sum] = "345abcaa72ff0f2e9c1075e22f7141475ee4e6eea23a7f568b69ffc13cc1c723"

PACKAGES =+ "gst-plugin-schroedinger-dbg gst-plugin-schroedinger-dev gst-plugin-schroedinger"
FILES_gst-plugin-schroedinger = "${libdir}/gstreamer-0.10/*.so"
FILES_gst-plugin-schroedinger-dbg = "${libdir}/gstreamer-0.10/.debug"
FILES_gst-plugin-schroedinger-dev = "${libdir}/gstreamer-0.10/*.*a"

Update LICENSE field version to GPLv2 and LPGLv2

require schroedinger.inc

LICENSE = "MPL-1.1 | LGPLv2 | GPLv2 | MIT"

PR = "${INC_PR}.1"

inherit autotools

SRC_URI[schroedingertargz.md5sum] = "d67ec48b7c506db8c8b49156bf409e60"
SRC_URI[schroedingertargz.sha256sum] = "345abcaa72ff0f2e9c1075e22f7141475ee4e6eea23a7f568b69ffc13cc1c723"

PACKAGES =+ "gst-plugin-schroedinger-dbg gst-plugin-schroedinger-dev gst-plugin-schroedinger"
FILES_gst-plugin-schroedinger = "${libdir}/gstreamer-0.10/*.so"
FILES_gst-plugin-schroedinger-dbg = "${libdir}/gstreamer-0.10/.debug"
FILES_gst-plugin-schroedinger-dev = "${libdir}/gstreamer-0.10/*.*a"


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 pam"

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

DESCRIPTION = "A weston image with Tizen common."

DEPENDS += " tar-replacement-native "

CORE_IMAGE_BASE_INSTALL += "connman"
CORE_IMAGE_BASE_INSTALL += "weston-common"
CORE_IMAGE_BASE_INSTALL += "mesa-megadriver"
CORE_IMAGE_BASE_INSTALL += "meta-common"
CORE_IMAGE_BASE_INSTALL += "pam"
CORE_IMAGE_BASE_INSTALL += "weston-common-tz-launcher"
CORE_IMAGE_BASE_INSTALL += "weston-common-config"
CORE_IMAGE_BASE_INSTALL += "user-session-units"
CORE_IMAGE_BASE_INSTALL += "default-ac-domains"
CORE_IMAGE_BASE_INSTALL += "desktop-skin"
CORE_IMAGE_BASE_INSTALL += "rpm-security-plugin"
CORE_IMAGE_EXTRA_INSTALL += "config-image"

export SYSROOT = "${IMAGE_ROOTFS}"

Add kernel modules to images

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 pam"

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

DESCRIPTION = "A weston image with Tizen common."

DEPENDS += " tar-replacement-native "

CORE_IMAGE_BASE_INSTALL += "connman"
CORE_IMAGE_BASE_INSTALL += "weston-common"
CORE_IMAGE_BASE_INSTALL += "mesa-megadriver"
CORE_IMAGE_BASE_INSTALL += "meta-common"
CORE_IMAGE_BASE_INSTALL += "pam"
CORE_IMAGE_BASE_INSTALL += "weston-common-tz-launcher"
CORE_IMAGE_BASE_INSTALL += "weston-common-config"
CORE_IMAGE_BASE_INSTALL += "user-session-units"
CORE_IMAGE_BASE_INSTALL += "default-ac-domains"
CORE_IMAGE_BASE_INSTALL += "desktop-skin"
CORE_IMAGE_BASE_INSTALL += "rpm-security-plugin"
CORE_IMAGE_EXTRA_INSTALL += "config-image"
CORE_IMAGE_BASE_INSTALL += "kernel-modules"

export SYSROOT = "${IMAGE_ROOTFS}"


SUMMARY = "Test applications for OMAP DRM interface"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://viddec3test.c;beginline=1;endline=16;md5=c391f44e40a29096285e3121923041df"

DEPENDS = "ffmpeg libdce libdrm libgbm ti-sgx-ddk-um wayland"

inherit autotools pkgconfig

PR = "r19"
SRCREV = "47bbb6b2ec48bbee35f9dc7192c05e48fd1a2589"

EXTRA_OEMAKE = "CC="${CC}""
TARGET_CC_ARCH += "${LDFLAGS}"

SRC_URI = "git://git.ti.com/glsdk/omapdrmtest.git;protocol=git \
           file://0001-configure.ac-also-check-for-libavcodec-library.patch"

S = "${WORKDIR}/git"

Update tests to handle disabled HDMI

SUMMARY = "Test applications for OMAP DRM interface"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://viddec3test.c;beginline=1;endline=16;md5=c391f44e40a29096285e3121923041df"

DEPENDS = "ffmpeg libdce libdrm libgbm ti-sgx-ddk-um wayland"

inherit autotools pkgconfig

PR = "r21"
SRCREV = "809e72b2c5ebe45bb7ba13bcfe964b1ef69f98f0"

EXTRA_OEMAKE = "CC="${CC}""
TARGET_CC_ARCH += "${LDFLAGS}"

SRC_URI = "git://git.ti.com/glsdk/omapdrmtest.git;protocol=git \
           file://0001-configure.ac-also-check-for-libavcodec-library.patch \
"

S = "${WORKDIR}/git"


SUMMARY = "Test applications for OMAP DRM interface"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://viddec3test.c;beginline=1;endline=16;md5=c391f44e40a29096285e3121923041df"

DEPENDS = "ffmpeg libdce libdrm libgbm ti-sgx-ddk-um wayland"

inherit autotools pkgconfig

PR = "r27"
SRCREV = "b6c02d24be6f8dae939168c154cf2345b33e459d"

EXTRA_OEMAKE = "CC="${CC}""
TARGET_CC_ARCH += "${LDFLAGS}"

SRC_URI = "git://git.ti.com/glsdk/omapdrmtest.git;protocol=git \
        file://0001-Makefile.am-lblah-flags-belong-to-LDADD-not-LDFLAGS.patch \
"

S = "${WORKDIR}/git"

Update SRCREV with latest fix

SUMMARY = "Test applications for OMAP DRM interface"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://viddec3test.c;beginline=1;endline=16;md5=c391f44e40a29096285e3121923041df"

DEPENDS = "ffmpeg libdce libdrm libgbm ti-sgx-ddk-um wayland"

inherit autotools pkgconfig

PR = "r28"
SRCREV = "20338b9f575ffe9c18c12bbed41c16069d27ccf4"

EXTRA_OEMAKE = "CC="${CC}""
TARGET_CC_ARCH += "${LDFLAGS}"

SRC_URI = "git://git.ti.com/glsdk/omapdrmtest.git;protocol=git \
        file://0001-Makefile.am-lblah-flags-belong-to-LDADD-not-LDFLAGS.patch \
"

S = "${WORKDIR}/git"


require linux.inc

DESCRIPTION = "Linux kernel for the OpenPandora handheld"
KERNEL_IMAGETYPE = "uImage"

COMPATIBLE_MACHINE = "raspberrypi"

# This is on the rpi-patches branch
SRCREV = "2fb814968753d0d4a5fdf056a3a8c9eee3c41aa6"

SRC_URI = " \
           git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-patches \
"

PV = "3.1.9-rpi+${PR}+git${SRCREV}"

S = "${WORKDIR}/git"

# NOTE: For now we pull in the default config from the RPi kernel GIT tree.

KERNEL_DEFCONFIG = "bcmrpi_defconfig"

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

Use zImage not uImage as the bootloader is not uBoot ;).

require linux.inc

DESCRIPTION = "Linux kernel for the RaspberryPi board"
KERNEL_IMAGETYPE = "zImage"

COMPATIBLE_MACHINE = "raspberrypi"

# This is on the rpi-patches branch
SRCREV = "2fb814968753d0d4a5fdf056a3a8c9eee3c41aa6"

SRC_URI = " \
           git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-patches \
"

PV = "3.1.9-rpi+${PR}+git${SRCREV}"

S = "${WORKDIR}/git"

# NOTE: For now we pull in the default config from the RPi kernel GIT tree.

KERNEL_DEFCONFIG = "bcmrpi_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 = "Xilinx DisplayPort Linux Kernel module"
DESCRIPTION = "Out-of-tree DisplayPort(DP) kernel modules provider for aarch64 devices"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eb723b61539feef013de476e68b5c50a"

XLNX_DP_VERSION = "5.4.0"
PV = "${XLNX_DP_VERSION}"

S = "${WORKDIR}/git"

BRANCH ?= "master"
REPO   ?= "git://github.com/xilinx/dp-modules.git;protocol=https"
SRCREV ?= "a3a7dfe17cf610fd4186b11638e1ce6b78dc958a"

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"

PACKAGE_ARCH = "${SOC_FAMILY_ARCH}"

Update commit id and branch for 2020.2

SUMMARY = "Xilinx DisplayPort Linux Kernel module"
DESCRIPTION = "Out-of-tree DisplayPort(DP) kernel modules provider for aarch64 devices"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=eb723b61539feef013de476e68b5c50a"

XLNX_DP_VERSION = "5.4.0"
PV = "${XLNX_DP_VERSION}"

S = "${WORKDIR}/git"

BRANCH ?= "rel-v2020.2"
REPO   ?= "git://github.com/xilinx/dp-modules.git;protocol=https"
SRCREV ?= "f3b3bf11ee30a2bea2b268b935640e2ad525e88f"

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"

PACKAGE_ARCH = "${SOC_FAMILY_ARCH}"


UBOOT_VERSION = "v2021.01"

UBRANCH ?= "xlnx_rebase_v2022.01"

SRCREV = "c50d6c48f4e1368cd38699278e35563cb4b0e444"

include u-boot-xlnx.inc
include u-boot-spl-zynq-init.inc

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=4;md5=744e7e3bb0c94b4b9f6b3db3bf893897"

# u-boot-xlnx has support for these
HAS_PLATFORM_INIT ?= " \
		xilinx_zynqmp_virt_config \
		xilinx_zynq_virt_defconfig \
		xilinx_versal_vc_p_a2197_revA_x_prc_01_revA \
		"

Update branch and SRCREV for update release

UBOOT_VERSION = "v2021.01"

UBRANCH ?= "xlnx_rebase_v2022.01_2022.1_update"

SRCREV = "a807cf8f6ce03ef1441c246a90aefbc8b6ea4c43"

include u-boot-xlnx.inc
include u-boot-spl-zynq-init.inc

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=4;md5=744e7e3bb0c94b4b9f6b3db3bf893897"

# u-boot-xlnx has support for these
HAS_PLATFORM_INIT ?= " \
		xilinx_zynqmp_virt_config \
		xilinx_zynq_virt_defconfig \
		xilinx_versal_vc_p_a2197_revA_x_prc_01_revA \
		"


require recipes-extended/gzip/gzip.inc

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

LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = " \
	file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
	file://gzip.h;beginline=8;endline=20;md5=6e47caaa630e0c8bf9f1bc8d94a8ed0e \
"

PROVIDES_append_class-native = " gzip-replacement-native"

BBCLASSEXTEND = "native"

Fix build with glibc 2.28

require recipes-extended/gzip/gzip.inc

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

LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = " \
	file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
	file://gzip.h;beginline=8;endline=20;md5=6e47caaa630e0c8bf9f1bc8d94a8ed0e \
"

FILESPATH_append = ":${COREBASE}/meta/recipes-extended/gzip/gzip-1.9"
SRC_URI += "file://gnulib.patch"

PROVIDES_append_class-native = " gzip-replacement-native"

BBCLASSEXTEND = "native"


SUMMARY = "A behavior-driven development framework, Python style"
HOMEPAGE = "https://github.com/behave/behave"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d950439e8ea6ed233e4288f5e1a49c06"

SRC_URI[md5sum] = "3f05c859a1c45f5ed33e925817ad887d"
SRC_URI[sha256sum] = "b9662327aa53294c1351b0a9c369093ccec1d21026f050c3bd9b3e5cccf81a86"

inherit pypi setuptools3

RDEPENDS:${PN} += " \
    ${PYTHON_PN}-parse-type \
    ${PYTHON_PN}-setuptools \
    ${PYTHON_PN}-six \
    "

Switch to using github src_uri

SUMMARY = "A behavior-driven development framework, Python style"
HOMEPAGE = "https://github.com/behave/behave"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d950439e8ea6ed233e4288f5e1a49c06"

PV .= "+git${SRCREV}"
SRCREV = "9520119376046aeff73804b5f1ea05d87a63f370"
SRC_URI += "git://github.com/behave/behave;branch=master"

S = "${WORKDIR}/git"

inherit setuptools3

RDEPENDS:${PN} += " \
    ${PYTHON_PN}-parse-type \
    ${PYTHON_PN}-setuptools \
    ${PYTHON_PN}-six \
    "


require recipes/images/minimal-image.bb

IMAGE_INSTALL += "\
        ack \
        avahi-autoipd \
        avahi-daemon \
        binutils \
        control-freak \
        cpp \
        cpp-symlinks \
        curl \
        gcc \
        gcc-symlinks \
        git \
        htop \
        i2c-tools \
        iotop \
        iperf \
        libgcc-dev \
        libxml2 \
        logrotate \
        make \
        mtr \
        nano \
        nginx \
        ntpdate \
        openssh \
        openssh-sftp-server \
        perl \
        perl-modules \
        python \
        python-daemon \
        python-dev \
        python-flask \
        python-imaging \
        python-jinja2 \
        python-misc \
        python-modules \
        python-numpy \
        python-pip \
        python-pyserial \
        python-pytronics \
        python-simplejson \
        python-sqlalchemy \
        python-werkzeug \
        ruby \
        sysstat \
        usbutils \
        usb-gadget-mode \
        uwsgi \
        vim \
        vim-syntax \
        vim-vimrc \
    "

export IMAGE_BASENAME = "rascal-image"

Add ipython and matplotlib to the image

require recipes/images/minimal-image.bb

IMAGE_INSTALL += "\
        ack \
        avahi-autoipd \
        avahi-daemon \
        binutils \
        control-freak \
        cpp \
        cpp-symlinks \
        curl \
        gcc \
        gcc-symlinks \
        git \
        htop \
        i2c-tools \
        iotop \
        iperf \
        ipython \
        libgcc-dev \
        libxml2 \
        logrotate \
        make \
        mtr \
        nano \
        nginx \
        ntpdate \
        openssh \
        openssh-sftp-server \
        perl \
        perl-modules \
        python \
        python-daemon \
        python-dev \
        python-flask \
        python-imaging \
        python-jinja2 \
        python-matplotlib \
        python-misc \
        python-modules \
        python-numpy \
        python-pip \
        python-pyserial \
        python-pytronics \
        python-simplejson \
        python-sqlalchemy \
        python-werkzeug \
        ruby \
        sysstat \
        usbutils \
        usb-gadget-mode \
        uwsgi \
        vim \
        vim-syntax \
        vim-vimrc \
    "

export IMAGE_BASENAME = "rascal-image"


DESCRIPTION = "library for easy implementation of a RDP/VNC server"
HOMEPAGE = "https://libvnc.github.io"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=361b6b837cad26c6900a926b62aada5f"

PACKAGECONFIG ??= " \
    gcrypt \
    gnutls \
    jpeg \
    png \
    ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)} \
    sdl \
    zlib \
"
PACKAGECONFIG[gcrypt] = ",,libgcrypt,libgcrypt"
PACKAGECONFIG[gnutls] = ",,gnutls"
PACKAGECONFIG[jpeg] = ",-DWITH_JPEG=OFF,jpeg"
PACKAGECONFIG[openssl] = ",-DWITH_OPENSSL=OFF,openssl"
PACKAGECONFIG[png] = ",-DWITH_PNG=OFF,libpng,libpng"
PACKAGECONFIG[systemd] = ",,systemd"
PACKAGECONFIG[sdl] = ",,libsdl2"
PACKAGECONFIG[zlib] = ",,zlib"

inherit cmake

SRC_URI = "git://github.com/LibVNC/libvncserver"
SRCREV = "f997b5a75fa171d79c5e568b7157fba83c8d8355"

S = "${WORKDIR}/git"

Update to latest commit post 0.9.12

DESCRIPTION = "library for easy implementation of a RDP/VNC server"
HOMEPAGE = "https://libvnc.github.io"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=361b6b837cad26c6900a926b62aada5f"

PACKAGECONFIG ??= " \
    gcrypt \
    gnutls \
    jpeg \
    lzo \
    png \
    ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)} \
    sdl \
    zlib \
"
PACKAGECONFIG[gcrypt] = ",,libgcrypt,libgcrypt"
PACKAGECONFIG[gnutls] = ",,gnutls"
PACKAGECONFIG[jpeg] = ",-DWITH_JPEG=OFF,jpeg"
PACKAGECONFIG[lzo] = ",-DWITH_LZO=OFF,lzo"
PACKAGECONFIG[openssl] = ",-DWITH_OPENSSL=OFF,openssl"
PACKAGECONFIG[png] = ",-DWITH_PNG=OFF,libpng,libpng"
PACKAGECONFIG[systemd] = ",,systemd"
PACKAGECONFIG[sdl] = ",,libsdl2"
PACKAGECONFIG[zlib] = ",,zlib"

inherit cmake

SRC_URI = "git://github.com/LibVNC/libvncserver"
SRCREV = "c0a23857a5c42b45b6d22ccf7218becd1fa69402"

S = "${WORKDIR}/git"


require wireguard.inc

SRCREV = "3ba6527130c502144e7388b900138bca6260f4e8"
SRC_URI = "git://git.zx2c4.com/wireguard-tools;branch=master"

inherit bash-completion systemd pkgconfig

DEPENDS += "libmnl"

do_install () {
    oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
        SYSTEMDUNITDIR="${systemd_system_unitdir}" \
        WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
        WITH_BASHCOMPLETION=yes \
        WITH_WGQUICK=yes \
        install
}

FILES:${PN} = " \
    ${sysconfdir} \
    ${systemd_system_unitdir} \
    ${bindir} \
"

RDEPENDS:${PN} = "bash"
RRECOMMENDS:${PN} = "kernel-module-wireguard"

Add a new package for wg-quick

require wireguard.inc

SRCREV = "3ba6527130c502144e7388b900138bca6260f4e8"
SRC_URI = "git://git.zx2c4.com/wireguard-tools;branch=master"

inherit bash-completion systemd pkgconfig

DEPENDS += "libmnl"

do_install () {
    oe_runmake DESTDIR="${D}" PREFIX="${prefix}" SYSCONFDIR="${sysconfdir}" \
        SYSTEMDUNITDIR="${systemd_system_unitdir}" \
        WITH_SYSTEMDUNITS=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'yes', '', d)} \
        WITH_BASHCOMPLETION=yes \
        WITH_WGQUICK=yes \
        install
}

PACKAGES += "${PN}-wg-quick"

FILES:${PN} = " \
    ${bindir}/wg \
    ${sysconfdir} \
"
FILES:${PN}-wg-quick = " \
    ${bindir}/wg-quick \
    ${systemd_system_unitdir} \
"

RDEPENDS:${PN}-wg-quick = "${PN} bash"
RRECOMMENDS:${PN} = " \
    kernel-module-wireguard \
    ${PN}-wg-quick \
    "


DESCRIPTION = "GStreamer elements to use the multimedia accelerators available on some TI parts"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

require gst-plugins-ti.inc

PR = "${INC_PR}.0"
SRCREV = "c50cc9132010bde7f4cb9efc04ca3eba536d26f9"

SRC_URI = "git://git.ti.com/glsdk/gst-plugin-ducati.git;protocol=git"

Support encoder and bug fix updates

DESCRIPTION = "GStreamer elements to use the multimedia accelerators available on some TI parts"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

require gst-plugins-ti.inc

PR = "${INC_PR}.1"
SRCREV = "6ca21aa3ec8b88b051013af503ef6b702d3c5477"

SRC_URI = "git://git.ti.com/glsdk/gst-plugin-ducati.git;protocol=git"


SECTION = "kernel"
DESCRIPTION = "handhelds.org Linux kernel 2.6 for PocketPCs and other consumer handheld devices."
LICENSE = "GPL"
PV = "${K_MAJOR}.${K_MINOR}.${K_MICRO}-hh${HHV}+cvs${SRCDATE}"
PR = "r0"

DEFAULT_PREFERENCE = "-1"

# Override where to look for defconfigs and patches,
# we have per-kernel-release sets.
FILESPATH = "${FILE_DIRNAME}/linux-handhelds-2.6-2.6.21/${MACHINE}:${FILE_DIRNAME}/linux-handhelds-2.6-2.6.21"

K_MAJOR = "2"
K_MINOR = "6"
K_MICRO = "21"
HHV     = "20"

SRC_URI = "${HANDHELDS_CVS};module=linux/kernel26  \
           file://defconfig"

require linux-handhelds-2.6.inc

Update cvs recipe to use the patches from 2.6.21-hh20 recipe. This makes it compile again.

SECTION = "kernel"
DESCRIPTION = "handhelds.org Linux kernel 2.6 for PocketPCs and other consumer handheld devices."
LICENSE = "GPL"
PV = "${K_MAJOR}.${K_MINOR}.${K_MICRO}-hh${HHV}+cvs${SRCDATE}"
PR = "r1"

DEFAULT_PREFERENCE = "-1"

# Override where to look for defconfigs and patches,
# we have per-kernel-release sets.
FILESPATH = "${FILE_DIRNAME}/linux-handhelds-2.6-2.6.21/${MACHINE}:${FILE_DIRNAME}/linux-handhelds-2.6-2.6.21"

K_MAJOR = "2"
K_MINOR = "6"
K_MICRO = "21"
HHV     = "20"

SRC_URI = "${HANDHELDS_CVS};module=linux/kernel26 \
           file://linux-2.6.git-9d20fdd58e74d4d26dc5216efaaa0f800c23dd3a.patch;patch=1 \
           http://www.rpsys.net/openzaurus/patches/archive/export_atags-r0a.patch;patch=1 \
           file://gcc4x-limits.patch;patch=1 \
           file://0001-time-prevent-the-loop-in-timespec_add_ns-from-bei.patch;patch=1 \
           file://defconfig"

require linux-handhelds-2.6.inc


DESCRIPTION = "GNU cpio is a program to manage archives of files."
HOMEPAGE = "http://www.gnu.org/software/cpio/"
SECTION = "console"
LICENSE = "GPL"
PR = "r3"

DEPENDS += " texinfo-native "

SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \
	   file://install.patch;patch=1"
S = "${WORKDIR}/cpio-${PV}"

inherit autotools

do_install () {
	autotools_do_install
	mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN}
}

pkg_postinst_${PN} () {
	update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 50
}

pkg_prerm_${PN} () {
	update-alternatives --remove rmt rmt.${PN}
}

Move cpio from /usr/bin to /bin and use update-alternatives to select it in preference to the busybox cpio.

DESCRIPTION = "GNU cpio is a program to manage archives of files."
HOMEPAGE = "http://www.gnu.org/software/cpio/"
SECTION = "console"
LICENSE = "GPL"
PR = "r4"

DEPENDS += " texinfo-native "

SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \
	   file://install.patch;patch=1"
S = "${WORKDIR}/cpio-${PV}"

inherit autotools

do_install () {
	autotools_do_install
	install -d ${D}${base_bindir}/
	mv ${D}${bindir}/cpio ${D}${base_bindir}/cpio.${PN}
	mv ${D}${libexecdir}/rmt ${D}${libexecdir}/rmt.${PN}
}

pkg_postinst_${PN} () {
	update-alternatives --install ${base_bindir}/cpio cpio cpio.${PN} 100
	update-alternatives --install ${libexecdir}/rmt rmt rmt.${PN} 50
}

pkg_prerm_${PN} () {
	update-alternatives --remove cpio cpio.${PN}
	update-alternatives --remove rmt rmt.${PN}
}


require linux.inc

DESCRIPTION = "Linux kernel for OMAP processors"
KERNEL_IMAGETYPE = "uImage"

COMPATIBLE_MACHINE = "overo"

#BOOT_SPLASH ?= "logo_linux_clut224-generic.ppm"
BOOT_SPLASH = ""

PV = "3.2"

S = "${WORKDIR}/git"

SRCREV = "${AUTOREV}"
SRC_URI = "git://www.sakoman.com/git/linux-omap-2.6.git;branch=omap-3.2;protocol=git \
	   file://defconfig \
           file://libertas-async-fwload.patch \
           "

Change url to sakoman linux repo

require linux.inc

DESCRIPTION = "Linux kernel for OMAP processors"
KERNEL_IMAGETYPE = "uImage"

COMPATIBLE_MACHINE = "overo"

#BOOT_SPLASH ?= "logo_linux_clut224-generic.ppm"
BOOT_SPLASH = ""

PV = "3.2"

S = "${WORKDIR}/git"

SRCREV = "${AUTOREV}"
SRC_URI = "git://www.sakoman.com/git/linux.git;branch=omap-3.2;protocol=git \
	   file://defconfig \
           file://libertas-async-fwload.patch \
           "


SUMMARY = "Key/value database library with extensible hashing"
HOMEPAGE = "http://www.gnu.org/software/gdbm/"
SECTION = "libs"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=d8e20eece214df8ef953ed5857862150"

PR = "r4"

SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \
	   file://makefile.patch \
           file://libtool-mode.patch \
           file://ldflags.patch"

SRC_URI[md5sum] = "1d1b1d5c0245b1c00aff92da751e9aa1"
SRC_URI[sha256sum] = "cc340338a2e28b40058ab9eb5354a21d53f88a1582ea21ba0bb185c37a281dc9"

inherit autotools

BBCLASSEXTEND = "native nativesdk"

#
#Meta-debian
#
inherit debian-package
DPR = "0"

SRC_URI += " \
	   file://makefile.patch \
           file://libtool-mode.patch \
           file://ldflags.patch"

do_configure_prepend() {
	sed -i -e "s/-lgdbm//g" ${S}/Makefile.in
}

Update recipe for gdbm package

#
# base recipe: meta/recipes-support/gdbm/gdbm_1.8.3.bb
# base branch: daisy
#

PR = "r0"

inherit debian-package

SUMMARY = "Key/value database library with extensible hashing"
HOMEPAGE = "http://www.gnu.org/software/gdbm/"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=d8e20eece214df8ef953ed5857862150"

inherit autotools

BBCLASSEXTEND = "native nativesdk"

SRC_URI += " \
	   file://makefile.patch \
           file://libtool-mode.patch \
           file://ldflags.patch"

do_configure_prepend() {
	sed -i -e "s/-lgdbm//g" ${S}/Makefile.in
}


SUMMARY = "Resin Package Groups"
LICENSE = "Apache-2.0"

PR = "r1"

inherit packagegroup

RESIN_INIT_PACKAGE ?= "resin-init"
RESIN_STAGING_ADDONS = "iozone3 nano"

RDEPENDS_${PN} = "\
	${@bb.utils.contains('DISTRO_FEATURES', 'resin-staging', '${RESIN_STAGING_ADDONS}', '', d)} \
	${RESIN_INIT_PACKAGE} \
	linux-firmware-ath9k \
	linux-firmware-ralink \
	linux-firmware-rtl8192cu \
	kernel-modules \
	wireless-tools \
	parted \
	lvm2 \
	openssl \
	dosfstools \
	e2fsprogs \
	connman \
	connman-client \
	btrfs-tools \
	apt \
	rce \
	tar \
	util-linux \
	socat \
	jq curl \
	resin-device-register \
	resin-device-progress \
	resin-device-update \
	resin-btrfs-balance \
	supervisor-init \
	vpn-init \
	bridge-utils \
	"

Add systemd-analyze to resin-image if systemd is in DISTRO_FEATURES

SUMMARY = "Resin Package Groups"
LICENSE = "Apache-2.0"

PR = "r1"

inherit packagegroup

RESIN_INIT_PACKAGE ?= "resin-init"
RESIN_STAGING_ADDONS = "iozone3 nano"

RDEPENDS_${PN} = "\
	${@bb.utils.contains('DISTRO_FEATURES', 'resin-staging', '${RESIN_STAGING_ADDONS}', '', d)} \
	${RESIN_INIT_PACKAGE} \
	linux-firmware-ath9k \
	linux-firmware-ralink \
	linux-firmware-rtl8192cu \
	kernel-modules \
	wireless-tools \
	parted \
	lvm2 \
	openssl \
	dosfstools \
	e2fsprogs \
	connman \
	connman-client \
	btrfs-tools \
	apt \
	rce \
	tar \
	util-linux \
	socat \
	jq curl \
	resin-device-register \
	resin-device-progress \
	resin-device-update \
	resin-btrfs-balance \
	supervisor-init \
	vpn-init \
	bridge-utils \
	${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-analyze', '', d)} \
	"


# xen 4.16.1 release sha
SRCREV ?= "f26544492298cb82d66f9bf36e29d2f75b3133f2"

XEN_REL ?= "4.16"
XEN_BRANCH ?= "stable-${XEN_REL}"

SRC_URI = " \
    git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
    "

LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"

PV = "${XEN_REL}+stable${SRCPV}"

S = "${WORKDIR}/git"

require xen.inc
require xen-tools.inc

Fix build with GCC 12

# xen 4.16.1 release sha
SRCREV ?= "f26544492298cb82d66f9bf36e29d2f75b3133f2"

XEN_REL ?= "4.16"
XEN_BRANCH ?= "stable-${XEN_REL}"

SRC_URI = " \
    git://xenbits.xen.org/xen.git;branch=${XEN_BRANCH} \
    file://0001-python-pygrub-pass-DISTUTILS-xen-4.15.patch \
    file://xen-fix-gcc12-build-issues.patch \
    "

LIC_FILES_CHKSUM ?= "file://COPYING;md5=419739e325a50f3d7b4501338e44a4e5"

PV = "${XEN_REL}+stable${SRCPV}"

S = "${WORKDIR}/git"

require xen.inc
require xen-tools.inc


#
# This file is the aie-plio recipe.
#

SUMMARY = "Simple AIE matrix multiplication application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "git://gitenterprise.xilinx.com/ai-engine/xgemm.git;protocol=https;branch=rel-v2020.1"
SRCREV = "2141ce072a25dbe9fddb192e13c778dc88485713"

DEPENDS = "ai-engine-driver"
RDEPENDS_${PN}  = "ai-engine-driver"
INSANE_SKIP_${PN} += " arch"

S = "${WORKDIR}/git/"

do_install() {
	install -d ${D}${bindir}
	install -m 0755 aie-matrix-multiplication ${D}${bindir}
	install -d ${D}/lib/firmware/aie/
	cp -r ${S}/Work ${D}/lib/firmware/aie
}

FILES_${PN} += " \
	/lib/firmware/aie/Work \
	${bindir}/aie-matrix-multiplication \
"

Enable aie matrix multiplication for versal only

#
# This file is the aie-plio recipe.
#

SUMMARY = "Simple AIE matrix multiplication application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

SRC_URI = "git://gitenterprise.xilinx.com/ai-engine/xgemm.git;protocol=https;branch=rel-v2020.1"
SRCREV = "2141ce072a25dbe9fddb192e13c778dc88485713"

DEPENDS = "ai-engine-driver"
RDEPENDS_${PN}  = "ai-engine-driver"
INSANE_SKIP_${PN} += " arch"

COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_versal = "versal"

S = "${WORKDIR}/git/"

do_install() {
	install -d ${D}${bindir}
	install -m 0755 aie-matrix-multiplication ${D}${bindir}
	install -d ${D}/lib/firmware/aie/
	cp -r ${S}/Work ${D}/lib/firmware/aie
}

FILES_${PN} += " \
	/lib/firmware/aie/Work \
	${bindir}/aie-matrix-multiplication \
"


SUMMARY = "U-Boot libraries and tools to acces environment"
DEPENDS += "mtd-utils"

DESCRIPTION = "This package contains tools and libraries to read \
and modify U-Boot environment"

HOMEPAGE = "https://github.com/sbabic/libubootenv"
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
SECTION = "libs"

SRC_URI = "git://github.com/sbabic/libubootenv;protocol=https"
SRCREV = "8a7d4030bcb106de11632e85b6a0e7b7d4cb47af"
PV_append = "+git${SRCPV}"

S = "${WORKDIR}/git"

inherit cmake

PACKAGE_ARCH = "${MACHINE_ARCH}"

PROVIDES += "u-boot-fw-utils"
RPROVIDES_${PN} += "u-boot-fw-utils"

BBCLASSEXTEND = "cross"

Add CMAKE_BUILD_TYPE option to EXTRA_OECMAKE

SUMMARY = "U-Boot libraries and tools to acces environment"
DEPENDS += "mtd-utils"

DESCRIPTION = "This package contains tools and libraries to read \
and modify U-Boot environment"

HOMEPAGE = "https://github.com/sbabic/libubootenv"
LICENSE = "LGPL-2.1"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
SECTION = "libs"

SRC_URI = "git://github.com/sbabic/libubootenv;protocol=https"
SRCREV = "8a7d4030bcb106de11632e85b6a0e7b7d4cb47af"
PV_append = "+git${SRCPV}"

S = "${WORKDIR}/git"

inherit cmake

EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release"

PACKAGE_ARCH = "${MACHINE_ARCH}"

PROVIDES += "u-boot-fw-utils"
RPROVIDES_${PN} += "u-boot-fw-utils"

BBCLASSEXTEND = "cross"


#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
}


DESCRIPTION = "Python template engine and code generation tool"
SECTION = "devel/python"
PRIORITY = "optional"
LICENSE = "MIT"
SRCNAME = "Cheetah"
PR = "r1"

SRC_URI = "http://pypi.python.org/packages/source/C/Cheetah/Cheetah-${PV}.tar.gz"
S = "${WORKDIR}/${SRCNAME}-${PV}"

inherit setuptools

RDEPENDS_${PN} = "python-pickle python-pprint"

NATIVE_INSTALL_WORKS = "1"
BBCLASSEXTEND = "native"

SRC_URI[md5sum] = "853917116e731afbc8c8a43c37e6ddba"
SRC_URI[sha256sum] = "be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550"

Split src package (save flash space)

DESCRIPTION = "Python template engine and code generation tool"
SECTION = "devel/python"
PRIORITY = "optional"
LICENSE = "MIT"
SRCNAME = "Cheetah"
PR = "r2"

SRC_URI = "http://pypi.python.org/packages/source/C/Cheetah/Cheetah-${PV}.tar.gz"
S = "${WORKDIR}/${SRCNAME}-${PV}"

inherit setuptools

PACKAGES =+ "${PN}-src"
RDEPENDS_{PN}-src = "${PN}"
FILES_${PN}-src = " \
        ${libdir}/${PYTHON_DIR}/site-packages/*/*.py \
        ${libdir}/${PYTHON_DIR}/site-packages/*/*/*.py \
        "

RDEPENDS_${PN} = "python-pickle python-pprint"

NATIVE_INSTALL_WORKS = "1"
BBCLASSEXTEND = "native"

SRC_URI[md5sum] = "853917116e731afbc8c8a43c37e6ddba"
SRC_URI[sha256sum] = "be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550"


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

DESCRIPTION = "A small image just capable of allowing a device to boot and \
run Erlang/Elixir with ssh access."

IMAGE_INSTALL += "\
    axon \
    erlang \
    erlang-tools \
    elixir \
    "

IMAGE_FEATURES += "ssh-server-dropbear"

Drop ssh support for no

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

DESCRIPTION = "A small image just capable of allowing a device to boot and \
run Erlang/Elixir."

IMAGE_INSTALL += "\
    erlang \
    erlang-tools \
    elixir \
    "


HOMEPAGE = "http://www.alumnit.ca/wiki/?WvDial"
DESCRIPTION = "WvDial is a program that makes it easy to connect your Linux workstation to the Internet."

LICENSE = "LGPL"
SRC_URI = "http://www.alumnit.ca/download/wvdial-1.60.tar.gz"

DEPENDS = "wvstreams"
RDEPENDS = "ppp"

EXTRA_OEMAKE = ""
export WVLINK="${LD}"

do_install() {
    oe_runmake prefix=${D}/usr PPPDIR=${D}/etc install
}

Install the peers file into the right place

HOMEPAGE = "http://www.alumnit.ca/wiki/?WvDial"
DESCRIPTION = "WvDial is a program that makes it easy to connect your Linux workstation to the Internet."

PR = "r1"

LICENSE = "LGPL"
SRC_URI = "http://www.alumnit.ca/download/wvdial-1.60.tar.gz"

DEPENDS = "wvstreams"
RDEPENDS = "ppp"

EXTRA_OEMAKE = ""
export WVLINK="${LD}"

do_install() {
    oe_runmake prefix=${D}/usr PPPDIR=${D}/etc/ppp/peers install
}


require qt5-git.inc
require ${PN}.inc

# qtwayland wasn't released yet, last tag before this SRCREV is 5.0.0-beta1
PV = "4.999+5.0.0-beta1+git${SRCPV}"

PR = "${INC_PR}.1"

SRCREV = "5cb159395eccb1d96fb73a78e499eef30aacb46d"

Add temporary hack to build for Qt 5.0.2

require qt5-git.inc
require ${PN}.inc

# qtwayland wasn't released yet, last tag before this SRCREV is 5.0.0-beta1
PV = "4.999+5.0.0-beta1+git${SRCPV}"

PR = "${INC_PR}.1"

SRCREV = "5cb159395eccb1d96fb73a78e499eef30aacb46d"

do_configure_prepend() {
    # Temporary hack to get qtwayland build for Qt 5.0.2
    if ! grep -q MODULE_VERSION ${S}/.qmake.conf; then
        echo "MODULE_VERSION = 0.0.0" >> ${S}/.qmake.conf
    fi
}


DESCRIPTION = "This package contains the DNS.pm module with friends."

SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+"

LIC_FILES_CHKSUM = "file://README;md5=92d93d8c5bf22de77578531e283dd219"

DEPENDS += "perl"

SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz"

SRC_URI[md5sum] = "4fa45b0dfe79667453c1553e16e52c2a"
SRC_URI[sha256sum] = "ebe53e7f433138fb9a7845b4edae6b8f4dc227da97eaf6b347584816ec63a525"

S = "${WORKDIR}/Net-DNS-${PV}"

EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"

inherit cpan

do_compile() {
    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
    cpan_do_compile
}
BBCLASSEXTEND = "native"

Add HOMEPAGE info into recipe file.

DESCRIPTION = "This package contains the DNS.pm module with friends."
HOMEPAGE = "http://www.net-dns.org/"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0+"

LIC_FILES_CHKSUM = "file://README;md5=92d93d8c5bf22de77578531e283dd219"

DEPENDS += "perl"

SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz"

SRC_URI[md5sum] = "4fa45b0dfe79667453c1553e16e52c2a"
SRC_URI[sha256sum] = "ebe53e7f433138fb9a7845b4edae6b8f4dc227da97eaf6b347584816ec63a525"

S = "${WORKDIR}/Net-DNS-${PV}"

EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"

inherit cpan

do_compile() {
    export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
    cpan_do_compile
}
BBCLASSEXTEND = "native"


SUMMARY = "A GNSS-SDR monitor based on Qt5"
DESCRIPTION = "A graphical user interface developed with Qt5 for monitoring the status of GNSS-SDR in real time."
AUTHOR = "Alvaro Cebrian Juan <acebrianjuan@gmail.com>"
HOMEPAGE = "https://github.com/acebrianjuan/gnss-sdr-monitor"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
PR = "r1"

DEPENDS = "boost protobuf protobuf-native qtbase qtdeclarative \
    qtquickcontrols qtquickcontrols2 qtlocation qtcharts \
"

PV = "1.0.git"

SRCREV = "55037f5dcadebac249834efb3b3dca10b84a2d84"

inherit qmake5 cmake_qt5

# Make it easy to test against branches
GIT_BRANCH = "master"

SRC_URI = "git://github.com/acebrianjuan/gnss-sdr-monitor.git;branch=${GIT_BRANCH};protocol=https "

S = "${WORKDIR}/git"

PACKAGES = "gnss-sdr-monitor"

FILES_${PN} += " ${bindir}/gnss-sdr-monitor"

Package debug files in gnss-sdr-monitor recipe

SUMMARY = "A GNSS-SDR monitor based on Qt5"
DESCRIPTION = "A graphical user interface developed with Qt5 for monitoring the status of GNSS-SDR in real time."
AUTHOR = "Alvaro Cebrian Juan <acebrianjuan@gmail.com>"
HOMEPAGE = "https://github.com/acebrianjuan/gnss-sdr-monitor"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
PR = "r2"

DEPENDS = "boost protobuf protobuf-native qtbase qtdeclarative \
    qtquickcontrols qtquickcontrols2 qtlocation qtcharts \
"

PV = "1.0.git"

SRCREV = "55037f5dcadebac249834efb3b3dca10b84a2d84"

inherit qmake5 cmake_qt5

# Make it easy to test against branches
GIT_BRANCH = "master"

SRC_URI = "git://github.com/acebrianjuan/gnss-sdr-monitor.git;branch=${GIT_BRANCH};protocol=https "

S = "${WORKDIR}/git"

PACKAGES = "gnss-sdr-monitor gnss-sdr-monitor-dbg"

FILES_${PN} += " ${bindir}/gnss-sdr-monitor"

FILES_${PN}-dbg += " \
     ${bindir}/.debug/* \
"


DESCRIPTION = "Command-line (scriptable) Music Player Daemon (mpd) Client"
HOMEPAGE = "http://www.musicpd.org/mpc.shtml"
LICENSE = "GPLv2"
SECTION = "console/multimedia"
PR = "r0"

SRC_URI = "http://mercury.chem.pitt.edu/~shank/mpc-${PV}.tar.gz"

inherit autotools

Fix cross compile badness; missing --with-iconv-*.

DESCRIPTION = "Command-line (scriptable) Music Player Daemon (mpd) Client"
HOMEPAGE = "http://www.musicpd.org/mpc.shtml"
LICENSE = "GPLv2"
SECTION = "console/multimedia"
PR = "r1"

SRC_URI = "http://mercury.chem.pitt.edu/~shank/mpc-${PV}.tar.gz"
EXTRA_OECONF = "--with-iconv-libraries=${STAGING_LIBDIR} \
		--with-iconv-includes=${STAGING_INCDIR}"

inherit autotools


require swupdate.inc

DEFAULT_PREFERENCE = "-1"

Fix build of TOT after reorganizing utilities

require swupdate.inc

DEFAULT_PREFERENCE = "-1"

do_compile() {
  unset LDFLAGS

  oe_runmake
  cp swupdate_unstripped swupdate
  cp tools/progress_unstripped progress

}


DESCRIPTION = "A a package of utilities for doing and managing mounts of the Linux CIFS filesystem."
HOMEPAGE = "http://wiki.samba.org/index.php/LinuxCIFS_utils"

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

PV = "5.9"
PR = "r1"

SRCREV = "353d491dcb5d69d31434abeb962c8e9a49c36867"
SRC_URI = "git://git.samba.org/cifs-utils.git"

S = "${WORKDIR}/git"

PACKAGECONFIG ??= ""
PACKAGECONFIG[cap] = "--with-libcap,--without-libcap,libcap"

inherit autotools pkgconfig

do_install_append() {
    # Remove empty /usr/bin and /usr/sbin directories since the mount helper
    # is installed to /sbin
    rmdir --ignore-fail-on-non-empty ${D}${bindir} ${D}${sbindir}
}

RRECOMMENDS_${PN} = "kernel-module-cifs"

Add PACKAGECONFIG for cifscreds, cifsupcall

DESCRIPTION = "A a package of utilities for doing and managing mounts of the Linux CIFS filesystem."
HOMEPAGE = "http://wiki.samba.org/index.php/LinuxCIFS_utils"

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

PV = "5.9"
PR = "r1"

SRCREV = "353d491dcb5d69d31434abeb962c8e9a49c36867"
SRC_URI = "git://git.samba.org/cifs-utils.git"

S = "${WORKDIR}/git"

PACKAGECONFIG ??= ""
PACKAGECONFIG[cap] = "--with-libcap,--without-libcap,libcap"
# when enabled, it creates ${bindir}/cifscreds and --ignore-fail-on-non-empty in do_install_append is needed
PACKAGECONFIG[cifscreds] = "--enable-cifscreds,--disable-cifscreds,keyutils"
# when enabled, it creates ${sbindir}/cifs.upcall and --ignore-fail-on-non-empty in do_install_append is needed
PACKAGECONFIG[cifsupcall] = "--enable-cifsupcall,--disable-cifsupcall,krb5 talloc keyutils"

inherit autotools pkgconfig

do_install_append() {
    # Remove empty /usr/bin and /usr/sbin directories since the mount helper
    # is installed to /sbin
    rmdir --ignore-fail-on-non-empty ${D}${bindir} ${D}${sbindir}
}

RRECOMMENDS_${PN} = "kernel-module-cifs"


SUMMARY = "C++11 command line parser"
DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface."
HOMEPAGE = "https://github.com/CLIUtils/CLI11"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b73927b18d5c6cd8d2ed28a6ad539733"
SRCREV = "13becaddb657eacd090537719a669d66d393b8b2"
PV .= "+git${SRCPV}"

SRC_URI += "gitsm://github.com/CLIUtils/CLI11 \
            file://0001-Add-CLANG_TIDY-check.patch \
           "

S = "${WORKDIR}/git"

inherit cmake
inherit ptest

EXTRA_OECMAKE += "-DCLANG_TIDY=OFF"
DEPENDS += "boost"

Remove dev pkg dep to main pkg

SUMMARY = "C++11 command line parser"
DESCRIPTION = "A command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface."
HOMEPAGE = "https://github.com/CLIUtils/CLI11"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=b73927b18d5c6cd8d2ed28a6ad539733"
SRCREV = "13becaddb657eacd090537719a669d66d393b8b2"
PV .= "+git${SRCPV}"

SRC_URI += "gitsm://github.com/CLIUtils/CLI11 \
            file://0001-Add-CLANG_TIDY-check.patch \
           "

S = "${WORKDIR}/git"

inherit cmake
inherit ptest

EXTRA_OECMAKE += "-DCLANG_TIDY=OFF"
DEPENDS += "boost"

# cli11 is a header only C++ library, so the main package will be empty.
RDEPENDS_${PN}-dev = ""


DESCRIPTION = "Test applications for video and graphics interface"
HOMEPAGE = "https://git.ti.com/sitara-linux/video-graphics-test"
SECTION = "multimedia"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c7ca707704d3354a64feeb4f19f52eb5"

DEPENDS += "libdrm ti-gc320-libs cmem qtdeclarative"

PR = "r2"

BRANCH = "master"
SRCREV = "54ec5ff165413d41d32bb2672e127487ee37a82b"

SRC_URI = "git://git.ti.com/sitara-linux/video-graphics-test.git;protocol=git;branch=${BRANCH} \
"

S = "${WORKDIR}/git"

inherit qt-provider

export SDK_PATH_TARGET='${STAGING_DIR_HOST}'

# use the make targets already created in the Makefile.build files
do_install() {
    install -d ${D}/usr/bin
    install video_graphics_test ${D}/usr/bin/video-graphics-test
}

CREATE_SRCIPK = "1"
SRCIPK_INSTALL_DIR = "example-applications/${PN}-${PV}"

Bump SRCREV to latest commit

DESCRIPTION = "Test applications for video and graphics interface"
HOMEPAGE = "https://git.ti.com/sitara-linux/video-graphics-test"
SECTION = "multimedia"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c7ca707704d3354a64feeb4f19f52eb5"

DEPENDS += "libdrm ti-gc320-libs cmem qtdeclarative"

PR = "r2"

BRANCH = "master"
SRCREV = "2db3848cd1047e688ea0a94a987e35a292bcbda9"

SRC_URI = "git://git.ti.com/sitara-linux/video-graphics-test.git;protocol=git;branch=${BRANCH} \
"

S = "${WORKDIR}/git"

inherit qt-provider

export SDK_PATH_TARGET='${STAGING_DIR_HOST}'

# use the make targets already created in the Makefile.build files
do_install() {
    install -d ${D}/usr/bin
    install video_graphics_test ${D}/usr/bin/video-graphics-test
}

CREATE_SRCIPK = "1"
SRCIPK_INSTALL_DIR = "example-applications/${PN}-${PV}"


require hyperion.inc

SRC_URI = " \
    gitsm://github.com/hyperion-project/hyperion.git;protocol=https \
    file://0001-use-yocto-protobuf.patch \
    file://0002-fix-qa-issue-set-valid-install-path.patch \
    "

SRCREV = "f64b6eb8dbaeef0f4aae8954da3b87524be106bd"

S = "${WORKDIR}/git"

PR = "1"
PV = "1.1"

Fix PR and PV variables

require hyperion.inc

SRC_URI = " \
    gitsm://github.com/hyperion-project/hyperion.git;protocol=https \
    file://0001-use-yocto-protobuf.patch \
    file://0002-fix-qa-issue-set-valid-install-path.patch \
    "

SRCREV = "f64b6eb8dbaeef0f4aae8954da3b87524be106bd"

S = "${WORKDIR}/git"

PR = "0"
PV = "1.1.1"


LINUX_VERSION ?= "4.1.0"

SRCREV = "07009cab090ade3dd180e8a55d590b1a00072eed"
SRC_URI = "git://github.com/anholt/linux.git;protocol=git;branch=vc4-kms-v3d-rpi2 \
           file://0001-rpi2-setup.patch \
           file://0002-drm-vc4-Use-the-fbdev_cma-helpers.patch \
           file://0003-drm-vc4-Allow-vblank-to-be-disabled.patch \
           file://rpi2-defconfig.patch \
           file://HULK_SMASH.patch \
          "

require linux-raspberrypi.inc

Use latest anholt's vc4-kms-v3d-rpi2 branch of linux kernel

LINUX_VERSION ?= "4.1.0"

SRCREV = "b8b2f50546513355fecd9ac44b2355f19a9620a8"
SRC_URI = "git://github.com/anholt/linux.git;protocol=git;branch=vc4-kms-v3d-rpi2 \
           file://0001-rpi2-setup.patch \
           file://0002-drm-vc4-Use-the-fbdev_cma-helpers.patch \
           file://0003-drm-vc4-Allow-vblank-to-be-disabled.patch \
           file://rpi2-defconfig.patch \
           file://HULK_SMASH.patch \
          "

require linux-raspberrypi.inc


DEPENDS = "libxslt"
PR = "r1"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org"

SRC_URI = "http://downloads.us.xiph.org/releases/icecast/${PN}-${PV}.tar.gz"

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

Add missing DEPENDS on vorbis.

DEPENDS = "libxslt"
PR = "r1"
MAINTAINER = "Oyvind Repvik <nail@nslu2-linux.org"

DEPENDS = "libvorbis libogg"

SRC_URI = "http://downloads.us.xiph.org/releases/icecast/${PN}-${PV}.tar.gz"

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


SUMMARY = "The GPS Toolkit"
DESCRIPTION = "Libraries and applications to facilitate working with GPS data for research and high accuracy uses."
AUTHOR = "ARL:UT"
HOMEPAGE = "https://github.com/SGL-UT/GPSTk/"
PR = "r1"

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

GIT_BRANCH = "main"
SRC_URI = "git://github.com/SGL-UT/GPSTk.git;branch=${GIT_BRANCH};protocol=https "
SRCREV = "7f4c840d21c7bac40c5d554bdaab386ba2ee59ef"
S = "${WORKDIR}/git"

inherit cmake

EXTRA_OECMAKE += " -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_SKIP_RPATH=ON -DUSE_RPATH=OFF -DBUILD_EXT=ON -DBUILD_PYTHON=OFF"

PACKAGES = "gpstk gpstk-dev"

FILES_${PN} += " ${bindir}/* "
FILES_${PN}-dev += " ${includedir}/* ${libdir}/* /usr/share/cmake/*"

Package debug files in gpstk recipe

SUMMARY = "The GPS Toolkit"
DESCRIPTION = "Libraries and applications to facilitate working with GPS data for research and high accuracy uses."
AUTHOR = "ARL:UT"
HOMEPAGE = "https://github.com/SGL-UT/GPSTk/"
PR = "r2"

LICENSE = "LGPLv3"
LIC_FILES_CHKSUM = "file://COPYING.md;md5=d32239bcb673463ab874e80d47fae504"

GIT_BRANCH = "main"
SRC_URI = "git://github.com/SGL-UT/GPSTk.git;branch=${GIT_BRANCH};protocol=https "
SRCREV = "7f4c840d21c7bac40c5d554bdaab386ba2ee59ef"
S = "${WORKDIR}/git"

inherit cmake

EXTRA_OECMAKE += " -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_SKIP_RPATH=ON -DUSE_RPATH=OFF -DBUILD_EXT=ON -DBUILD_PYTHON=OFF"

PACKAGES = "gpstk gpstk-dev gpstk-dbg"

FILES_${PN} += " ${bindir}/* "
FILES_${PN}-dev += " ${includedir}/* ${libdir}/* /usr/share/cmake/*"
FILES_${PN}-dbg += " \
     ${prefix}/src/debug/gpstk/* \
     ${bindir}/.debug/* \
"


SUMMARY = "A thin layer of graphic data types"
HOMEPAGE = "http://ebassi.github.io/graphene/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a7d871d9e23c450c421a85bb2819f648"

#DEPENDS = "gtk+3 iso-codes enchant2"

GNOMEBASEBUILDCLASS = "meson"

inherit gnomebase gobject-introspection gtk-doc

SRC_URI[archive.md5sum] = "390139e704772b915ff2b7cac56c24ae"
SRC_URI[archive.sha256sum] = "80ae57723e4608e6875626a88aaa6f56dd25df75024bd16e9d77e718c3560b25"

# mutter 41.0 requires graphene build with introspection
PACKAGECONFIG ?= "introspection"
PACKAGECONFIG[introspection] = "-Dintrospection=enabled,-Dintrospection=disabled,"

GTKDOC_MESON_OPTION = "gtk_doc"

EXTRA_OEMESON = "-Dinstalled_tests=false"

FILES:${PN} += "${libdir}/graphene-1.0"

BBCLASSEXTEND = "native nativesdk"

Tidy up recipe a bit

SUMMARY = "A thin layer of graphic data types"
HOMEPAGE = "http://ebassi.github.io/graphene/"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a7d871d9e23c450c421a85bb2819f648"

GNOMEBASEBUILDCLASS = "meson"

inherit gnomebase gobject-introspection gtk-doc

SRC_URI[archive.sha256sum] = "80ae57723e4608e6875626a88aaa6f56dd25df75024bd16e9d77e718c3560b25"

# gtk4 & mutter 41.0 requires graphene build with introspection
PACKAGECONFIG ?= "introspection"
PACKAGECONFIG[introspection] = "-Dintrospection=enabled,-Dintrospection=disabled,"

GTKDOC_MESON_OPTION = "gtk_doc"

EXTRA_OEMESON = "-Dinstalled_tests=false"

FILES:${PN} += "${libdir}/graphene-1.0"

BBCLASSEXTEND = "native nativesdk"


DESCRIPTION = "Linux kernel for the Hardkernel ODROID-U2 device"
SECTION = "kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

# Mark archs/machines that this kernel supports
COMPATIBLE_MACHINE = "odroid-u2"

inherit kernel siteinfo

SRC_URI = " \
  git://github.com/hardkernel/linux.git;branch=odroid-3.8.y \
"

S = "${WORKDIR}/git/"

SRCREV = "${AUTOREV}"

KV = "3.8.13"
PV = "${KV}+gitr${SRCPV}"

do_configure_prepend() {
     yes '' | oe_runmake odroidu2_defconfig
}

do_install_append() {
    oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix}/src/linux-${KERNEL_VERSION} ARCH=$ARCH
}

PACKAGES =+ "kernel-headers"
FILES_kernel-headers = "${exec_prefix}/src/linux*"

Deploy results of boot.scr of Mauro's boot.scr helper script

DESCRIPTION = "Linux kernel for the Hardkernel ODROID-U2 device"
SECTION = "kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

# Mark archs/machines that this kernel supports
COMPATIBLE_MACHINE = "odroid-u2"

inherit kernel siteinfo

SRC_URI = " \
  git://github.com/hardkernel/linux.git;branch=odroid-3.8.y \
"

S = "${WORKDIR}/git/"

SRCREV = "${AUTOREV}"

KV = "3.8.13"
PV = "${KV}+gitr${SRCPV}"

do_configure_prepend() {
     yes '' | oe_runmake odroidu2_defconfig
}

do_install_append() {
    # Helper script provided by Mauro Ribeiro
    tools/hardkernel/genBscr.sh
    oe_runmake headers_install INSTALL_HDR_PATH=${D}${exec_prefix}/src/linux-${KERNEL_VERSION} ARCH=$ARCH
}

do_deploy_append() {
    cp -v *.scr ${DEPLOYDIR}
}

PACKAGES =+ "kernel-headers"
FILES_kernel-headers = "${exec_prefix}/src/linux*"


IMAGE_FEATURES += "package-management"

PR = "r1"

POKY_EXTRA_INSTALL = "\
    task-x11-server\
    task-x11-utils \
    task-lxde-base \
    libgtkstylus \
    "

LICENSE = "MIT"

inherit core-image

Add some extra apps to lxdm image.

IMAGE_FEATURES += "package-management"

PR = "r2"

POKY_EXTRA_INSTALL = "\
    task-x11-server\
    task-x11-utils \
    task-lxde-base \
    libgtkstylus \
    task-jlime-apps-cli \
    task-jlime-apps-gui \
    "

LICENSE = "MIT"

inherit core-image


DESCRIPTION = "Minimal ptest image for NI Linux Real-Time x64 and ARM targets"
LICENSE = "MIT"

require minimal-nilrt-image.bb

IMAGE_FEATURES+=" ptest-pkgs"

IMAGE_FSTYPES += " cpio.gz"

IMAGE_INSTALL += "\
	packagegroup-ni-ptest \
"

IMAGE_ROOTFS_EXTRA_SPACE = "1000000"

rm_feed_configs () {
    ${ROOTFS_PKGMANAGE} -o ${IMAGE_ROOTFS} remove --force-depends distro-feed-configs
}

IMAGE_PREPROCESS_COMMAND =+ "rm_feed_configs; "

Remove 'ptest-pkgs' from ptest image

DESCRIPTION = "Minimal ptest image for NI Linux Real-Time x64 and ARM targets"
LICENSE = "MIT"

require minimal-nilrt-image.bb

IMAGE_FSTYPES += " cpio.gz"

IMAGE_INSTALL += "\
	packagegroup-ni-ptest \
"

IMAGE_ROOTFS_EXTRA_SPACE = "1000000"

rm_feed_configs () {
    ${ROOTFS_PKGMANAGE} -o ${IMAGE_ROOTFS} remove --force-depends distro-feed-configs
}

IMAGE_PREPROCESS_COMMAND =+ "rm_feed_configs; "


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 \
    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 network manager addon 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_12 \
    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"


SUMMARY = "A customized image for running Octoprint"
LICENSE = "MIT"

inherit core-image

EXTRA_IMAGE_FEATURES_remove = "debug-tweaks package-management"
IMAGE_FSTYPES_remove = " tar.bz2 ext3 sdimg.bz2 "
GLIBC_GENERATE_LOCALES="en_US.UTF-8"
IMAGE_LINGUAS="en-us"

EXTRA_IMAGE_FEATURES += "read-only-rootfs ssh-server-openssh"

IMAGE_INSTALL_append = " octoprint picocom "
IMAGE_INSTALL_remove = " image-display "

Add package-management back into octoprint image

SUMMARY = "A customized image for running Octoprint"
LICENSE = "MIT"

inherit core-image

EXTRA_IMAGE_FEATURES_remove = "debug-tweaks"
IMAGE_FSTYPES_remove = " tar.bz2 ext3 sdimg.bz2 "
GLIBC_GENERATE_LOCALES="en_US.UTF-8"
IMAGE_LINGUAS="en-us"

EXTRA_IMAGE_FEATURES += "read-only-rootfs ssh-server-openssh"

IMAGE_INSTALL_append = " octoprint picocom "
IMAGE_INSTALL_remove = " image-display "


SECTION = "console/network"
DESCRIPTION = "A VPN solution via tun device.  Not IPSEC!"
HOMEPAGE = "http://openvpn.sourceforge.net"
MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
LICENSE = "GPLv2"
PRIORITY = "optional"
DEPENDS = "lzo openssl"
RRECOMMENDS = "kernel-module-tun"
PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/openvpn/openvpn-2.0_rc1.tar.gz \
	file://openvpn"
S = "${WORKDIR}/openvpn-2.0_rc1"

inherit autotools

do_install_append() {
	install -d ${D}${sysconfdir}/init.d
	install -d ${D}${sysconfdir}/openvpn
	install -m 755 ${WORKDIR}/openvpn ${D}${sysconfdir}/init.d
}

Set DEFAULT_PREFERENCE to -1 for the rc-version.

SECTION = "console/network"

DESCRIPTION = "A VPN solution via tun device.  Not IPSEC!"
HOMEPAGE = "http://openvpn.sourceforge.net"
MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
LICENSE = "GPLv2"
PRIORITY = "optional"
DEPENDS = "lzo openssl"
RRECOMMENDS = "kernel-module-tun"
PR = "r2"
DEFAULT_PREFERENCE = "-1"

SRC_URI = "${SOURCEFORGE_MIRROR}/openvpn/openvpn-2.0_rc1.tar.gz \
	file://openvpn"
S = "${WORKDIR}/openvpn-2.0_rc1"

inherit autotools

do_install_append() {
	install -d ${D}${sysconfdir}/init.d
	install -d ${D}${sysconfdir}/openvpn
	install -m 755 ${WORKDIR}/openvpn ${D}${sysconfdir}/init.d
}


SUMMARY = "Alliance for Open Media - AV1 Codec Library"
DESCRIPTION = "Alliance for Open Media AV1 codec library"

LICENSE = "BSD-2-Clause & AOM-Patent-1.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6ea91368c1bbdf877159435572b931f5 \
                    file://PATENTS;md5=e69ad12202bd20da3c76a5d3648cfa83 \
                   "

SRC_URI = "git://aomedia.googlesource.com/aom;protocol=https"

SRCREV = "d1d1226af626a61f7ca664b270dd473b92228984"

S = "${WORKDIR}/git"

inherit cmake pkgconfig
DEPENDS = " yasm-native"

EXTRA_OECMAKE = " -DBUILD_SHARED_LIBS=1 -DENABLE_TESTS=0 \
                  -DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl \
                "

Disable neon on arm when not present in TUNE_FEATURES

SUMMARY = "Alliance for Open Media - AV1 Codec Library"
DESCRIPTION = "Alliance for Open Media AV1 codec library"

LICENSE = "BSD-2-Clause & AOM-Patent-1.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6ea91368c1bbdf877159435572b931f5 \
                    file://PATENTS;md5=e69ad12202bd20da3c76a5d3648cfa83 \
                   "

SRC_URI = "git://aomedia.googlesource.com/aom;protocol=https"

SRCREV = "d1d1226af626a61f7ca664b270dd473b92228984"

S = "${WORKDIR}/git"

inherit cmake pkgconfig
DEPENDS = " yasm-native"

EXTRA_OECMAKE = " -DBUILD_SHARED_LIBS=1 -DENABLE_TESTS=0 \
                  -DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl \
                "

EXTRA_OECMAKE_append_arm = " ${@bb.utils.contains("TUNE_FEATURES","neon","-DENABLE_NEON=ON","-DENABLE_NEON=OFF",d)}"


SECTION = "kernel"
DESCRIPTION = "Mainline Linux kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i)"

inherit kernel

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

# Pull in the devicetree files into the rootfs
RDEPENDS_kernel-base += "kernel-devicetree"

# Default is to use stable kernel version
# If you want to use latest git version set to "1"
DEFAULT_PREFERENCE = "-1"

KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"

# 4.7 rc4
PV = "4.6+4.7rc4.git${SRCPV}"
SRCREV_pn-${PN} = "33688abb2802ff3a230bd2441f765477b94cc89e"

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;branch=master \
        file://defconfig \
        "
S = "${WORKDIR}/git"

Change PV for kernel git version

SECTION = "kernel"
DESCRIPTION = "Mainline Linux kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i)"

inherit kernel

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

# Pull in the devicetree files into the rootfs
RDEPENDS_kernel-base += "kernel-devicetree"

# Default is to use stable kernel version
# If you want to use latest git version set to "1"
DEFAULT_PREFERENCE = "-1"

KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"

# 4.9.0
PV = "4.9.0+git${SRCPV}"
SRCREV_pn-${PN} = "69973b830859bc6529a7a0468ba0d80ee5117826"

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;branch=master \
        file://defconfig \
        "
S = "${WORKDIR}/git"


SUMMARY = "C++ framework for json-rpc 1.0 and 2.0"
DESCRIPTION = "JsonRpc-Cpp is an OpenSource implementation of JSON-RPC \
               protocol in C++. JSON-RPC is a lightweight remote procedure \
               call protocol similar to XML-RPC."
HOMEPAGE = "https://github.com/cinemast/libjson-rpc-cpp"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4e728c5b36018f6c383b4b9efd9c8840"
SECTION = "libs"

DEPENDS = "curl jsoncpp libmicrohttpd hiredis"

SRC_URI = "git://github.com/cinemast/libjson-rpc-cpp"
SRCREV = "4ed5b00dcc409405a19e6d8c6478f703153430e1"

S = "${WORKDIR}/git"

inherit cmake

EXTRA_OECMAKE += "-DCOMPILE_TESTS=NO -DCOMPILE_STUBGEN=NO -DCOMPILE_EXAMPLES=NO \
                  -DBUILD_SHARED_LIBS=YES -DBUILD_STATIC_LIBS=YES \
                  -DCMAKE_LIBRARY_PATH=${libdir} \
"

FILES_${PN}-dev += "${libdir}/libjson-rpc-cpp/cmake"

Disable coverage in default build

SUMMARY = "C++ framework for json-rpc 1.0 and 2.0"
DESCRIPTION = "JsonRpc-Cpp is an OpenSource implementation of JSON-RPC \
               protocol in C++. JSON-RPC is a lightweight remote procedure \
               call protocol similar to XML-RPC."
HOMEPAGE = "https://github.com/cinemast/libjson-rpc-cpp"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=4e728c5b36018f6c383b4b9efd9c8840"
SECTION = "libs"

DEPENDS = "curl jsoncpp libmicrohttpd hiredis"

SRC_URI = "git://github.com/cinemast/libjson-rpc-cpp"
SRCREV = "4ed5b00dcc409405a19e6d8c6478f703153430e1"

S = "${WORKDIR}/git"

PACKAGECONFIG ?= ""
PACKAGECONFIG[coverage] = "-DWITH_COVERAGE=YES,-DWITH_COVERAGE=NO,,"

inherit cmake

EXTRA_OECMAKE += "-DCOMPILE_TESTS=NO -DCOMPILE_STUBGEN=NO -DCOMPILE_EXAMPLES=NO \
                  -DBUILD_SHARED_LIBS=YES -DBUILD_STATIC_LIBS=YES \
                  -DCMAKE_LIBRARY_PATH=${libdir} \
"

FILES_${PN}-dev += "${libdir}/libjson-rpc-cpp/cmake"


require u-boot-ti.inc

PR = "r27"

BRANCH = "ti-u-boot-2020.01"

SRCREV = "7b6b1a17bfdae5e4f6fd13f208c36814803f3ba7"

Update to the latest commit

require u-boot-ti.inc

PR = "r28"

BRANCH = "ti-u-boot-2020.01"

SRCREV = "71ba4a5f933a1f03e8bb72d487a62a877c2135ff"