include runc.inc

SRCREV = "fce58ab2d5c488bc573d02712db476a6daa9a60c"
SRC_URI = " \
    git://github.com/opencontainers/runc;branch=master \
    file://0001-Makefile-respect-GOBUILDFLAGS-for-runc-and-remove-re.patch \
    "
RUNC_VERSION = "1.0.0-rc93"

CVE_PRODUCT = "runc"

# use BFD when ld-is-gold is used to work around:
# http://errors.yoctoproject.org/Errors/Details/580099/
# CGO_ENABLED=1 x86_64-oe-linux-go build -trimpath  -tags "seccomp seccomp                       netgo osusergo" -ldflags "-w -extldflags -static -X main.gitCommit="fce58ab2d5c488bc573d02712db476a6daa9a60c-dirty" -X main.version=1.0.0-rc93+dev " -o runc .
# TOPDIR/tmp-glibc/work/core2-64-oe-linux/runc-opencontainers/1.0.0-rc93+gitAUTOINC+fce58ab2d5-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux/../../libexec/x86_64-oe-linux/gcc/x86_64-oe-linux/11.0.1/ld: internal error in format_file_lineno, at ../../gold/dwarf_reader.cc:2278
# collect2: error: ld returned 1 exit status
LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"

Revert "runc-opencontainers: use bfd even with ld-is-gold"


SRC_URI = "file://30-bootmenu.sh"
PR = "r12"
DESCRIPTION = "An initramfs module with UI for selection of boot device."
RDEPENDS = "klibc-utils-fstype-static initramfs-uniboot initramfs-module-block initramfs-module-loop initramfs-module-nfs"
# For VFAT mounting.
RRECOMMENDS = "kernel-module-nls-cp437 kernel-module-nls-iso8859-1"

do_install() {
	install -d ${D}/initrd.d
        install -m 0755 ${WORKDIR}/30-bootmenu.sh ${D}/initrd.d/
}

PACKAGE_ARCH = "all"
FILES_${PN} += " /initrd.d/* "

Use klibc-linked fstype util, tested to work as expected.

SRC_URI = "file://30-bootmenu.sh"
PR = "r13"
DESCRIPTION = "An initramfs module with UI for selection of boot device."
RDEPENDS = "klibc-utils-static-fstype initramfs-uniboot initramfs-module-block initramfs-module-loop initramfs-module-nfs"
# For VFAT mounting.
RRECOMMENDS = "kernel-module-nls-cp437 kernel-module-nls-iso8859-1"

do_install() {
	install -d ${D}/initrd.d
        install -m 0755 ${WORKDIR}/30-bootmenu.sh ${D}/initrd.d/
}

PACKAGE_ARCH = "all"
FILES_${PN} += " /initrd.d/* "


FILESEXTRAPATHS_prepend := "${THISDIR}:"

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

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

S = "${WORKDIR}/git"

RDEPENDS_${PN} = "python3-modules"

inherit systemd

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

do_compile() {
	     make -C api
}

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

Switch to next for acme-utils

FILESEXTRAPATHS_prepend := "${THISDIR}:"

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

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

S = "${WORKDIR}/git"

RDEPENDS_${PN} = "python3-modules"

inherit systemd

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

do_compile() {
	     make -C api
}

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


DESCRIPTION = "Cortex-M3 binary blob for suspend-resume"

LICENSE = "TI-TSPA"
LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8"

PV = "1.9.2"
PR = "r0"

SRCREV = "fb484c5e54f2e31cf0a338d2927a06a2870bcc2c"
BRANCH ?= "ti-v4.1.y"

SRC_URI = "git://git.ti.com/processor-firmware/ti-amx3-cm3-pm-firmware.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"

do_compile() {
	make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"
}

do_install() {
	install -d ${D}${base_libdir}/firmware
	install -m 0644 bin/am335x-pm-firmware.elf ${D}${base_libdir}/firmware/
	install -m 0644 bin/*-scale-data.bin ${D}${base_libdir}/firmware/
}

FILES_${PN} += "${base_libdir}/firmware"
COMPATIBLE_HOST ?= "null"
COMPATIBLE_HOST_ti-soc = "(.*)"

Use COMPATIBLE_MACHINE instead of COMPATIBLE_HOST

DESCRIPTION = "Cortex-M3 binary blob for suspend-resume"

LICENSE = "TI-TSPA"
LIC_FILES_CHKSUM = "file://License.txt;md5=7bdc54a749ab7a7dea999d25d99a41b8"

PV = "1.9.2"
PR = "r0"

SRCREV = "fb484c5e54f2e31cf0a338d2927a06a2870bcc2c"
BRANCH ?= "ti-v4.1.y"

SRC_URI = "git://git.ti.com/processor-firmware/ti-amx3-cm3-pm-firmware.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"

do_compile() {
	make CROSS_COMPILE="${TARGET_PREFIX}" CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${SECURITY_NOPIE_CFLAGS}"
}

do_install() {
	install -d ${D}${base_libdir}/firmware
	install -m 0644 bin/am335x-pm-firmware.elf ${D}${base_libdir}/firmware/
	install -m 0644 bin/*-scale-data.bin ${D}${base_libdir}/firmware/
}

FILES_${PN} += "${base_libdir}/firmware"

COMPATIBLE_MACHINE = "(ti-soc)"


SUMMARY = "A GNSS-SDR monitor based on Qt"
AUTHOR = "Alvaro Cebrian Juan <acebrianjuan@gmail.com>"
HOMEPAGE = "https://github.com/acebrianjuan/gnss-sdr-monitor"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"

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

PV = "1.0.git"

SRCREV = "4af0d8d3e385cde52a7c5146fb17c5b9daf1f963"

inherit qmake5 cmake_qt5

OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"

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

Add FILES to 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"

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

PV = "1.0.git"

SRCREV = "4af0d8d3e385cde52a7c5146fb17c5b9daf1f963"

inherit qmake5 cmake_qt5

OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH"

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


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.02"

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

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"

Revert "[om-locations] Set om-locations to use 0.2 branch of om-locations git."

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.01"

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

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"


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.10.0"
PV = "${XLNX_DP_VERSION}"

S = "${WORKDIR}/git"

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

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

inherit module

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

Update to 2022.1 release branch and latest SRCREV

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.10.0"
PV = "${XLNX_DP_VERSION}"

S = "${WORKDIR}/git"

BRANCH ?= "xlnx_rel_v2022.1"
REPO   ?= "git://github.com/xilinx/dp-modules.git;protocol=https"
SRCREV ?= "9a025fdb7134a8af12de8d69f5a428c8284ae9b3"

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

inherit module

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


DESCRIPTION = "Java compiler from the OpenJDK project"
HOMEPAGE = "http://http://openjdk.java.net/groups/compiler"
LICENSE  = "GPL"

PR = "r0"

DEPENDS = "openjdk-langtools-native"

PROVIDES = "virtual/javac-native"

inherit native

do_stage() {
	ln -sf ${bindir}/sun-javac ${bindir}/javac
}

Use relative path for symlink.

DESCRIPTION = "Java compiler from the OpenJDK project"
HOMEPAGE = "http://http://openjdk.java.net/groups/compiler"
LICENSE  = "GPL"

PR = "r1"

DEPENDS = "openjdk-langtools-native"

PROVIDES = "virtual/javac-native"

inherit native

do_stage() {
	ln -sf sun-javac ${bindir}/javac
}


SUMMARY = "AGL SOTA Package Group"
DESCRIPTION = "A set of packages belong to GENIVI SOTA Project and OSTree"

LICENSE = "MIT"

inherit packagegroup

PACKAGES = " packagegroup-agl-sota "

ALLOW_EMPTY_${PN} = "1"

RDEPENDS_${PN} += "\
    ota-plus-client \
    ota-plus-demo-provision \
    ostree \
"

Add OSTree package manager to the image

SUMMARY = "AGL SOTA Package Group"
DESCRIPTION = "A set of packages belong to GENIVI SOTA Project and OSTree"

LICENSE = "MIT"

inherit packagegroup

PACKAGES = " packagegroup-agl-sota "

ALLOW_EMPTY_${PN} = "1"

RDEPENDS_${PN} += "\
    ota-plus-client \
    ota-plus-demo-provision \
    ostree \
    ostree-basic-pkg \
"


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 gtk+3-demo clutter-1.0-examples"

DESCRIPTION = "A weston image with Tizen common."

DEPENDS += " tar-replacement-native "

IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
IMAGE_INSTALL += "mesa-driver-i965"
IMAGE_INSTALL += "meta"
IMAGE_INSTALL += "libpam"
IMAGE_INSTALL += "weston-common-tz-launcher"
IMAGE_INSTALL += "weston-common-config"
IMAGE_INSTALL += "user-session-units"
IMAGE_INSTALL += "default-ac-domains"
IMAGE_INSTALL += "desktop-skin"

#IMAGE_INSTALL += "crosswalk"

Remove useless gtk+3-demo from Common image.

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 "

IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
IMAGE_INSTALL += "mesa-driver-i965"
IMAGE_INSTALL += "meta"
IMAGE_INSTALL += "libpam"
IMAGE_INSTALL += "weston-common-tz-launcher"
IMAGE_INSTALL += "weston-common-config"
IMAGE_INSTALL += "user-session-units"
IMAGE_INSTALL += "default-ac-domains"
IMAGE_INSTALL += "desktop-skin"

#IMAGE_INSTALL += "crosswalk"


SUMMARY = "Portable SDK for UPnP* Devices"
DESCRIPTION = "The Portable SDK for UPnP Devices is an SDK for development of \
UPnP device and control point applications. It consists of the core UPnP \
protocols along with a UPnP-specific eXtensible Markup Language (XML) parser \
supporting the Document Object Model (DOM) Level 2 API and an optional, \
integrated mini web server for serving UPnP related documents."
HOMEPAGE = "http://pupnp.sourceforge.net/"
LICENSE = "BSD-3-Clause"

LIC_FILES_CHKSUM = "file://COPYING;md5=394a0f17b97f33426275571e15920434"

PV = "1.8.4+git${SRCPV}"
# release-1.8.4
SRCREV = "d5a01fc9895daae98a0c5a8c7d3afce46add529d"
SRC_URI = "git://github.com/mrjimenez/pupnp.git;protocol=https"

S="${WORKDIR}/git"

inherit autotools

EXTRA_OECONF += "--enable-reuseaddr"

Build samples with LFS on

SUMMARY = "Portable SDK for UPnP* Devices"
DESCRIPTION = "The Portable SDK for UPnP Devices is an SDK for development of \
UPnP device and control point applications. It consists of the core UPnP \
protocols along with a UPnP-specific eXtensible Markup Language (XML) parser \
supporting the Document Object Model (DOM) Level 2 API and an optional, \
integrated mini web server for serving UPnP related documents."
HOMEPAGE = "http://pupnp.sourceforge.net/"
LICENSE = "BSD-3-Clause"

LIC_FILES_CHKSUM = "file://COPYING;md5=394a0f17b97f33426275571e15920434"

PV = "1.8.4+git${SRCPV}"
# release-1.8.4
SRCREV = "d5a01fc9895daae98a0c5a8c7d3afce46add529d"
SRC_URI = "git://github.com/mrjimenez/pupnp.git;protocol=https"

S="${WORKDIR}/git"

inherit autotools

EXTRA_OECONF += "--enable-reuseaddr"

# Enable LFS support ( for samples )
CFLAGS += "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
CXXFLAGS += "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"


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

SUMMARY = "A Wayland image with a terminal and crosswalk"

LICENSE = "MIT"

DESCRIPTION = "A weston image with Tizen common ."

# Crosswalk
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-tizen-crosswalk"

# Time zone
CORE_IMAGE_EXTRA_INSTALL += "tzdata"

Add app-installer in the image by default

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

SUMMARY = "A Wayland image with a terminal and crosswalk"

LICENSE = "MIT"

DESCRIPTION = "A weston image with Tizen common ."

# Crosswalk
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-tizen-crosswalk"

# Time zone
CORE_IMAGE_EXTRA_INSTALL += "tzdata wgt-backend"


PR = "r1"
require u-boot.inc

DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_at91sam9g20ek = "1"
DEFAULT_PREFERENCE_igep0020 = "1"

SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 "

SRC_URI_append_igep0020 = " \
	file://update-mach-types.patch;patch=1 \
	file://add-board-support-for-IGEP-v2-series-rev-B.patch;patch=1 \
"

TARGET_LDFLAGS = ""

inherit base

do_compile () {
       oe_runmake ${UBOOT_MACHINE}
       oe_runmake all
}

Make u-boot-2009.98 the preferred bootloader for sam9g45ek

PR = "r1"
require u-boot.inc

DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_at91sam9g20ek = "1"
DEFAULT_PREFERENCE_at91sam9g45ek = "1"
DEFAULT_PREFERENCE_igep0020 = "1"

SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 "

SRC_URI_append_igep0020 = " \
	file://update-mach-types.patch;patch=1 \
	file://add-board-support-for-IGEP-v2-series-rev-B.patch;patch=1 \
"

TARGET_LDFLAGS = ""

inherit base

do_compile () {
       oe_runmake ${UBOOT_MACHINE}
       oe_runmake all
}


DESCRIPTION = "Linux Kernel 2.6 Userland Utilities for the PCMCIA Subsystem"
DEPENDS = "sysfsutils"
HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
SECTION = "kernel/userland"
PRIORITY = "optional"

SRC_URI = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2"
S = "${WORKDIR}/pcmciautils-${PV}"

inherit update-rc.d

INITSCRIPT_NAME = "coldplug"
INITSCRIPT_PARAMS = "defaults"

export HOSTCC = "${BUILD_CC}"
export etcdir = "${sysconfdir}"
export hotplugdir = "${sysconfdir}/hotplug"
export pcmciaconfdir = "${sysconfdir}/pcmcia"
LD = "${CC}"
CFLAGS =+ "-I${S}/src"
CFLAGS =+ '-DPCMCIAUTILS_VERSION=010'

PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs'"

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

CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts"
RCONFLICTS_${PN} += "pcmcia-cs"

Switch to udev instead of hotplug.

DESCRIPTION = "Linux Kernel 2.6 Userland Utilities for the PCMCIA Subsystem"
DEPENDS = "sysfsutils udev"
RDEPENDS = "udev"
HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
SECTION = "kernel/userland"
PRIORITY = "optional"

SRC_URI = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2"
S = "${WORKDIR}/pcmciautils-${PV}"

inherit update-rc.d

INITSCRIPT_NAME = "coldplug"
INITSCRIPT_PARAMS = "defaults"

export HOSTCC = "${BUILD_CC}"
export etcdir = "${sysconfdir}"
export pcmciaconfdir = "${sysconfdir}/pcmcia"
export udevrulesdir = "${sysconfdir}/udev/rules.d"
export UDEV = 1
LD = "${CC}"
CFLAGS =+ "-I${S}/src"
CFLAGS =+ '-DPCMCIAUTILS_VERSION=010'

PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs'"

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

CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts"
RCONFLICTS_${PN} += "pcmcia-cs"


DESCRIPTION = "Data files for usbmodeswitch"
LICENSE = "GPLv2"

SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${PV}.tar.bz2"
SRC_URI[md5sum] = "85c16bb87a6f05c2d04b93a22fe87e91"
SRC_URI[sha256sum] = "a81821d3d9ad9e1d3a31ea11d0da9841ca84350f0b445a8f9ea2dbd142cefb46"

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

PACKAGE_ARCH = "all"

Fix deps and add udev rules to package

DESCRIPTION = "Data files for usbmodeswitch"
LICENSE = "GPLv2"
RDEPENDS_${PN} = "\
    usb-modeswitch \
    tcl \
"
PR="r1"

SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${PV}.tar.bz2"
SRC_URI[md5sum] = "85c16bb87a6f05c2d04b93a22fe87e91"
SRC_URI[sha256sum] = "a81821d3d9ad9e1d3a31ea11d0da9841ca84350f0b445a8f9ea2dbd142cefb46"

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

PACKAGE_ARCH = "all"
FILES_${PN} += "${base_libdir}/udev/rules.d/40-usb_modeswitch.rules"


DESCRIPTION = "USB Device Firmware Upgrade utility"
SECTION = "devel"
AUTHOR = "Harald Welte <laforge@openmoko.org>"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

SRC_URI = "http://dfu-util.gnumonks.org/releases/${BP}.tar.gz"

inherit autotools pkgconfig

DEPENDS = "libusb1"

SRC_URI[md5sum] = "233bb1e08ef4b405062445d84e28fde6"
SRC_URI[sha256sum] = "36428c6a6cb3088cad5a3592933385253da5f29f2effa61518ee5991ea38f833"

Add HOMEPAGE info into recipe file.

DESCRIPTION = "USB Device Firmware Upgrade utility"
HOMEPAGE = "http://dfu-util.sourceforge.net"
SECTION = "devel"
AUTHOR = "Harald Welte <laforge@openmoko.org>"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

SRC_URI = "http://dfu-util.gnumonks.org/releases/${BP}.tar.gz"

inherit autotools pkgconfig

DEPENDS = "libusb1"

SRC_URI[md5sum] = "233bb1e08ef4b405062445d84e28fde6"
SRC_URI[sha256sum] = "36428c6a6cb3088cad5a3592933385253da5f29f2effa61518ee5991ea38f833"


SUMMARY = "Build the go-lang tools govender and golint."
DESCRIPTION = "Build the go-lang tools govendor and golint."
LICENSE = "MIT"

S = "${WORKDIR}/git"

inherit native

DEPENDS += "\
	go-native \
"
do_compile() {
	export GOPATH="${S}/"
	go get -u github.com/kardianos/govendor
	go get -u github.com/golang/lint/golint
}

do_install() {
	mv "${S}/bin/"* "${bindir}/"
}

Fix package path for golang/lint

SUMMARY = "Build the go-lang tools govender and golint."
DESCRIPTION = "Build the go-lang tools govendor and golint."
LICENSE = "MIT"

S = "${WORKDIR}/git"

inherit native

DEPENDS += "\
	go-native \
"
do_compile() {
	export GOPATH="${S}/"
	go get -u github.com/kardianos/govendor
	go get -u golang.org/x/lint/golint
}

do_install() {
	mv "${S}/bin/"* "${bindir}/"
}


LINUX_VERSION = "5.15"
KBRANCH="master"
SRCREV = "e087c38733a5df77e474c8e1706785974c5bfbab"

KCONF_AUDIT_LEVEL="0"

include linux-xlnx.inc

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

Move default branch to latest LTS

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

KCONF_AUDIT_LEVEL="0"

include linux-xlnx.inc

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


LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"

DEPENDS = "kdelibs4 soprano"

inherit kde-without-docs kde-workaround-tmp
require kde4.inc

SRC_URI = "git://anongit.kde.org/kde-baseapps;protocol=git;tag=v4.8.0 \
	   file://Convert-Phonon-to-phonon.patch"
SRCREV = "37a52f48ebd4850d07cd8fe7277e6fa7a653c2ae"

PV = "4.8.0+git${SRCPV}"

S = "${WORKDIR}/git"

OECMAKE_SOURCEPATH = ".."
OECMAKE_BUILDPATH = "build"

FILES_${PN} += "\
		${libdir}/kde4/*.so \
		${libdir}/libkdeinit4*.so \
		\
		${datadir}/* \
	       "

FILES_${PN}-dbg += "${libdir}/kde4/.debug/*"

Fix cross compiling errors gracefully

LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"

DEPENDS = "kdelibs4 soprano"

inherit kde-without-docs
require kde4.inc

SRC_URI = "git://anongit.kde.org/kde-baseapps;protocol=git;tag=v4.8.0 \
	   file://Convert-Phonon-to-phonon.patch"
SRCREV = "37a52f48ebd4850d07cd8fe7277e6fa7a653c2ae"

PV = "4.8.0+git${SRCPV}"

S = "${WORKDIR}/git"

OECMAKE_SOURCEPATH = ".."
OECMAKE_BUILDPATH = "build"

FILES_${PN} += "\
		${libdir}/kde4/*.so \
		${libdir}/libkdeinit4*.so \
		\
		${datadir}/* \
	       "

FILES_${PN}-dbg += "${libdir}/kde4/.debug/*"

EXTRA_OECMAKE =+ "-DOE_CROSSCOMPILING=TRUE"


SUMMARY = "pristine-tar can regenerate a pristine upstream tarball using only a small binary delta file and a revision control checkout of the upstream branch"
HOMEPAGE = "https://github.com/tramseyer/pristine-tar-fwu"
SECTION = "console/utils"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://GPL;md5=751419260aa954499f7abaabaa882bbe"

PR = "r0"
PV = "1.37+gitr${SRCPV}"
DEPENDS = "zlib"

SRC_URI = "git://github.com/tramseyer/${BPN}.git;protocol=git;branch=master"
SRCREV = "1206ba2cc4e9a73c62f26d042284982390a2fca1"

S = "${WORKDIR}/git"

inherit cpan

# https://github.com/kraj/poky/blob/krogoth/meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc
# Depends on cp which is included in busybox
RDEPENDS_${PN} = " busybox \
                   tar \
                   xdelta3 \
                   perl \
                   perl-module-digest-sha \
                   perl-module-file-find \
                   perl-module-file-glob \
                   perl-module-file-temp \
                   perl-module-getopt-long \
                   perl-module-ipc-open2 \
                   perl-module-overloading"

Use cp from coreutils for pristine-tar-fwu.

SUMMARY = "pristine-tar can regenerate a pristine upstream tarball using only a small binary delta file and a revision control checkout of the upstream branch"
HOMEPAGE = "https://github.com/tramseyer/pristine-tar-fwu"
SECTION = "console/utils"

LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://GPL;md5=751419260aa954499f7abaabaa882bbe"

PR = "r0"
PV = "1.37+gitr${SRCPV}"
DEPENDS = "zlib"

SRC_URI = "git://github.com/tramseyer/${BPN}.git;protocol=git;branch=master"
SRCREV = "1206ba2cc4e9a73c62f26d042284982390a2fca1"

S = "${WORKDIR}/git"

inherit cpan

# https://github.com/kraj/poky/blob/krogoth/meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc
# Depends on cp which is included in coreutils
RDEPENDS_${PN} = " coreutils \
                   tar \
                   xdelta3 \
                   perl \
                   perl-module-digest-sha \
                   perl-module-file-find \
                   perl-module-file-glob \
                   perl-module-file-temp \
                   perl-module-getopt-long \
                   perl-module-ipc-open2 \
                   perl-module-overloading"


SUMMARY  = "Control process attributes through prctl"
DESCRIPTION = "The linux prctl function allows you to control specific characteristics of a \
process' behaviour. Usage of the function is fairly messy though, due to \
limitations in C and linux. This module provides a nice non-messy python(ic) \
interface."
SECTION = "devel/python"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=1475481f9ec754d758859bd2c75f6f6f"

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

SRCREV = "5e12e398eb5c4e30d7b29b02458c76d2cc780700"
PV = "1.8.1+git${SRCPV}"

SRC_URI = "git://github.com/seveas/python-prctl;branch=main\
           file://0001-support-cross-complication.patch \
"
inherit setuptools3 python3native

DEPENDS += "libcap"

Use https protocol for git fetcher

SUMMARY  = "Control process attributes through prctl"
DESCRIPTION = "The linux prctl function allows you to control specific characteristics of a \
process' behaviour. Usage of the function is fairly messy though, due to \
limitations in C and linux. This module provides a nice non-messy python(ic) \
interface."
SECTION = "devel/python"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=1475481f9ec754d758859bd2c75f6f6f"

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

SRCREV = "5e12e398eb5c4e30d7b29b02458c76d2cc780700"
PV = "1.8.1+git${SRCPV}"

SRC_URI = "git://github.com/seveas/python-prctl;protocol=https;branch=main \
           file://0001-support-cross-complication.patch \
"
inherit setuptools3 python3native

DEPENDS += "libcap"


require linaro-image-common.inc

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

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

Revert "mongodb: remove from lamp temporarily again"

require linaro-image-common.inc

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

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


DESCRIPTION = "A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data"
SECTION = "console/network"
HOMEPAGE = "https://github.com/globalizejs/globalize"
LICENSE = "MIT"

S = "${WORKDIR}/git"

LIC_FILES_CHKSUM = "file://LICENSE;md5=4db68fb4d1d9986d736b35039f2ad9ea"

SRC_URI = "git://github.com/globalizejs/globalize;tag=1.7.0;nobranch=1"

FILES:${PN} = "${datadir}/javascript/jquery-globalize"
FILES:${PN}-doc += "${docdir}/${PN}"

do_install() {
        install -d ${D}${datadir}/javascript/jquery-globalize/
        install -m 0644 ${S}/dist/*.js ${D}${datadir}/javascript/jquery-globalize/
        install -m 0644 ${S}/dist/globalize/*.js ${D}${datadir}/javascript/jquery-globalize/

        install -d ${D}${docdir}/${PN}/
        install -m 0644 ${S}/LICENSE ${D}${docdir}/${PN}/
}

Use a proper SHA in SRCREV instead of tag

DESCRIPTION = "A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data"
SECTION = "console/network"
HOMEPAGE = "https://github.com/globalizejs/globalize"
LICENSE = "MIT"

S = "${WORKDIR}/git"

LIC_FILES_CHKSUM = "file://LICENSE;md5=4db68fb4d1d9986d736b35039f2ad9ea"

SRCREV = "771061fb35f7fd8d7c2c37f5d5bb26115be382bc"
SRC_URI = "git://github.com/globalizejs/globalize;protocol=https;nobranch=1"

FILES:${PN} = "${datadir}/javascript/jquery-globalize"
FILES:${PN}-doc += "${docdir}/${PN}"

do_install() {
        install -d ${D}${datadir}/javascript/jquery-globalize/
        install -m 0644 ${S}/dist/*.js ${D}${datadir}/javascript/jquery-globalize/
        install -m 0644 ${S}/dist/globalize/*.js ${D}${datadir}/javascript/jquery-globalize/

        install -d ${D}${docdir}/${PN}/
        install -m 0644 ${S}/LICENSE ${D}${docdir}/${PN}/
}


SUMMARY = "A better directory iterator and faster os.walk()"
HOMEPAGE = "https://github.com/benhoyt/scandir"
AUTHOR = "Ben Hoyt"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=482ee62da51806409d432a80eed4e3ea"

SRC_URI = "git://github.com/benhoyt/scandir.git"
SRCREV = "982e6ba60e7165ef965567eacd7138149c9ce292"

S = "${WORKDIR}/git"

inherit setuptools

Add native and nativesdk to BBCLASSEXTEND

SUMMARY = "A better directory iterator and faster os.walk()"
HOMEPAGE = "https://github.com/benhoyt/scandir"
AUTHOR = "Ben Hoyt"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=482ee62da51806409d432a80eed4e3ea"

SRC_URI = "git://github.com/benhoyt/scandir.git"
SRCREV = "982e6ba60e7165ef965567eacd7138149c9ce292"

S = "${WORKDIR}/git"

inherit setuptools

BBCLASSEXTEND = "native nativesdk"


DESCRIPTION = "Various extras for the Jlime userlands"
PR = "r0"

RRECOMMENDS = "jlime-extras-${MACHINE}"

PACKAGE_ARCH = "all"
SRC_URI = "http://jlime.com/downloads/development/software/${PN}-${PV}.tar.gz"

FILES_${PN} = "/etc /usr"

do_install() {
	install -d ${D}
	cp -R etc usr ${D}
}

SRC_URI[md5sum] = "ebad10a6e081273271393507f88cca39"
SRC_URI[sha256sum] = "bb78cda43906deb5bbd73f0d9157108799ecc048521bf9654e7cfbba0885f2be"

Modify checksums for upstream source file change.

DESCRIPTION = "Various extras for the Jlime userlands"
PR = "r0"

RRECOMMENDS = "jlime-extras-${MACHINE}"

PACKAGE_ARCH = "all"
SRC_URI = "http://jlime.com/downloads/development/software/${PN}-${PV}.tar.gz"

FILES_${PN} = "/etc /usr"

do_install() {
	install -d ${D}
	cp -R etc usr ${D}
}

SRC_URI[md5sum] = "920be63e2269289b5ffdf3c0199d71ef"
SRC_URI[sha256sum] = "3fd6016ac8bafab8eaa8c1cc2975a8bbeca116dcdf807989154bc772fbf518d0"


DESCRIPTION = "ESMTP is a user-configurable relay-only MTA \
with a sendmail-compatible syntax, based on libESMTP and \
supporting the AUTH (including the CRAM-MD5 and NTLM SASL \
mechanisms) and StartTLS SMTP extensions."
SECTION = "console/network"
LICENSE = "GPL"
DEPENDS = "libesmtp"

SRC_URI = "${SOURCEFORGE_MIRROR}/esmtp/esmtp-${PV}.tar.bz2"

inherit autotools

Add --with-libesmtp option to configure else it adds -L/lib to LDFLAGS

DESCRIPTION = "ESMTP is a user-configurable relay-only MTA \
with a sendmail-compatible syntax, based on libESMTP and \
supporting the AUTH (including the CRAM-MD5 and NTLM SASL \
mechanisms) and StartTLS SMTP extensions."
SECTION = "console/network"
LICENSE = "GPL"
DEPENDS = "libesmtp"
PR = "r2"

SRC_URI = "${SOURCEFORGE_MIRROR}/esmtp/esmtp-${PV}.tar.bz2"

# Have to set this or we get -L/lib in LDFLAGS
EXTRA_OECONF = "--with-libesmtp=${STAGING_EXECPREFIXDIR}"

inherit autotools


SECTION = "console/network"
DESCRIPTION = "framebuffer screenshot program"
LICENSE = "GPL"

SRC_URI = "http://hem.bredband.net/gmogmo/fbgrab/fbgrab-${PV}.tar.gz \
           file://makefile.patch;patch=1"

do_install() {
	install -d ${D}${bindir} ${D}${mandir}/man1/
	install -m 0755 fbgrab ${D}${bindir}
	install -m 0644 fbgrab.1.man ${D}${mandir}/man1/fbgrab.1
}

Fix build dependencies of fbgrab

SECTION = "console/network"
DESCRIPTION = "framebuffer screenshot program"
LICENSE = "GPL"

DEPENDS = " zlib libpng "

SRC_URI = "http://hem.bredband.net/gmogmo/fbgrab/fbgrab-${PV}.tar.gz \
           file://makefile.patch;patch=1"

do_install() {
	install -d ${D}${bindir} ${D}${mandir}/man1/
	install -m 0755 fbgrab ${D}${bindir}
	install -m 0644 fbgrab.1.man ${D}${mandir}/man1/fbgrab.1
}


DESCRIPTION = "Full-featured IRC chat client with scripting support"
LICENSE = "GPL"
HOMEPAGE = "http://www.xchat.org"
SECTION "x11/network"
MAINTAINER = "Koen Kooi <koen@linuxtogo.org>"
DEPENDS = "libgcrypt zlib gtk+"
PR = "r1"

SRC_URI = "http://www.xchat.org/files/source/2.6/xchat-${PV}.tar.bz2"

inherit autotools
EXTRA_OECONF = " --disable-perl --disable-python    "

Fix missing '=' after SECTION

DESCRIPTION = "Full-featured IRC chat client with scripting support"
LICENSE = "GPL"
HOMEPAGE = "http://www.xchat.org"
SECTION = "x11/network"
MAINTAINER = "Koen Kooi <koen@linuxtogo.org>"
DEPENDS = "libgcrypt zlib gtk+"
PR = "r2"

SRC_URI = "http://www.xchat.org/files/source/2.6/xchat-${PV}.tar.bz2"

inherit autotools
EXTRA_OECONF = " --disable-perl --disable-python    "


DESCRIPTION = "An sh-compatible command language interpreter."
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
DEPENDS = "ncurses"
SECTION = "base/shell"
LICENSE = "GPL"
PROVIDES = "virtual/sh"
PR = "r3"

SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz \
	file://signames-mipsel.diff;patch=1"

inherit autotools

bindir = "/bin"
sbindir = "/sbin"

EXTRA_OECONF = "--with-ncurses"
export CC_FOR_BUILD = "${BUILD_CC}"

do_configure () {
	oe_runconf
}

# dont use update-alternatives class because since we are dealing with /bin/sh
# we need to do the remove in pkg_prerm where the /bin/sh link still points
# to something (postrm is a shell script)

ALTERNATIVE_NAME = "sh"
ALTERNATIVE_PATH = "${bindir}/bash"
ALTERNATIVE_PRIORITY = "30"
ALTERNATIVE_LINK = "${bindir}/${ALTERNATIVE_NAME}"

pkg_postinst() {
update-alternatives --install ${ALTERNATIVE_LINK} ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH} ${ALTERNATIVE_PRIORITY}
}

pkg_prerm() {
update-alternatives --remove ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH}
}

Fix the bash build for uclibc and kill the dangerous /bin/sh alternatives bits.

DESCRIPTION = "An sh-compatible command language interpreter."
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
DEPENDS = "ncurses"
SECTION = "base/shell"
LICENSE = "GPL"
PR = "r4"

SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz \
	file://signames-mipsel.diff;patch=1"

inherit autotools

bindir = "/bin"
sbindir = "/sbin"

EXTRA_OECONF = "--with-ncurses"
export CC_FOR_BUILD = "${BUILD_CC}"

do_configure () {
	gnu-configize
	oe_runconf
}


# Python bindings for libcups, from the CUPS project.
#
# Copyright (c) Ambu A/S - All rights reserved
# SPDX-License-Identifier: MIT
#
# Author(s)
#   clst@ambu.com (Claus Stovgaard)
#

DESCRIPTION = "pycups - CUPS bindings for Python"
HOMEPAGE = "https://github.com/OpenPrinting/pycups"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS += "cups"

# See https://pypi.org/project/pycups/ for data
SRC_URI[sha256sum] = "57434ce5f62548eb12949ca8217f066f4eeb21a5d6ab8b13471dce350e380c90"

inherit pypi setuptools3

Revert "python3-pycups: Inherit setuptools3 instead of python_setuptools_build_meta"

# Python bindings for libcups, from the CUPS project.
#
# Copyright (c) Ambu A/S - All rights reserved
# SPDX-License-Identifier: MIT
#
# Author(s)
#   clst@ambu.com (Claus Stovgaard)
#

DESCRIPTION = "pycups - CUPS bindings for Python"
HOMEPAGE = "https://github.com/OpenPrinting/pycups"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS += "cups"

# See https://pypi.org/project/pycups/ for data
SRC_URI[sha256sum] = "57434ce5f62548eb12949ca8217f066f4eeb21a5d6ab8b13471dce350e380c90"

inherit pypi python_setuptools_build_meta


require linux.inc

DESCRIPTION = "Linux kernel for Allwinner a10 processors"

KERNEL_IMAGETYPE = "uImage"

COMPATIBLE_MACHINE = "(allwinner-a10)"

PR = "2"

PV = "3.0.42"
# Last tested version by myself"
SRCREV_pn-${PN} = "7003c80c6dbea815c4a78e745565ec03a039ba3a"

MACHINE_KERNEL_PR_append = "a"

SRC_URI += "git://github.com/amery/linux-allwinner.git;branch=allwinner-v3.0-android-v2;protocol=git \
        file://0001-aufs3-kbuild.patch \
        file://0002-aufs3-base.patch \
        file://0003-aufs3-proc_map.patch \
        file://0004-aufs3-standalone.patch \
        file://fs \
        file://aufs_type.h \
        file://defconfig \
        "

S = "${WORKDIR}/git"

#add AUFS stuff
do_copy_aufs () {
  cp ${WORKDIR}/aufs_type.h ${S}/include/linux
  cp -a ${WORKDIR}/fs ${S}/
}

addtask copy_aufs after do_unpack before do_patch

Use new sunxi repository for the kernel

require linux.inc

DESCRIPTION = "Linux kernel for Allwinner a10 processors"

KERNEL_IMAGETYPE = "uImage"

COMPATIBLE_MACHINE = "(allwinner-a10)"

PR = "3"

PV = "3.0.42"
# Last tested version by myself"
SRCREV_pn-${PN} = "09946bae6c414e62c066c57169100c62cd303500"

MACHINE_KERNEL_PR_append = "a"

SRC_URI += "git://github.com/linux-sunxi/linux-sunxi.git;branch=sunxi-3.0;protocol=git \
        file://0001-aufs3-kbuild.patch \
        file://0002-aufs3-base.patch \
        file://0003-aufs3-proc_map.patch \
        file://0004-aufs3-standalone.patch \
        file://fs \
        file://aufs_type.h \
        file://defconfig \
        "

S = "${WORKDIR}/git"

#add AUFS stuff
do_copy_aufs () {
  cp ${WORKDIR}/aufs_type.h ${S}/include/linux
  cp -a ${WORKDIR}/fs ${S}/
  rm -rf ${S}/modules/wifi
}

do_package_prepend() {

}

addtask copy_aufs after do_unpack before do_patch

INSANE_SKIP_kernel-dev = "debug-files debug-deps"


require linux-opendreambox-2.6.18.inc

MACHINE_KERNEL_PR_append = "${PR_INC}.4"

RDEPENDS_${PN} += "dreambox-secondstage (>=83)"

SRC_URI += "\
	file://linux-2.6.18-disable-unneeded-uarts.patch \
	file://linux-2.6.18-use-full-flash.patch;patch=1 \
"

pkg_preinst_kernel-image_append_dm8000 () {
	if [ -z "$D" ]; then
		# /boot has been mounted already by pkg_preinst_kernel-image
		if grep -q '^mtd3: 03c00000 ' /proc/mtd && ! grep -q '^legacy_flash_mapping=' /boot/secondstage.conf; then
			echo "enable legacy flash mapping in secondstage.conf";
			echo "legacy_flash_mapping=1;" >> /boot/secondstage.conf;
		fi;
	fi;
	true
}

Fix old patch warning in dm8000 recipe

require linux-opendreambox-2.6.18.inc

MACHINE_KERNEL_PR_append = "${PR_INC}.4"

RDEPENDS_${PN} += "dreambox-secondstage (>=83)"

SRC_URI += "\
	file://linux-2.6.18-disable-unneeded-uarts.patch \
	file://linux-2.6.18-use-full-flash.patch \
"

pkg_preinst_kernel-image_append_dm8000 () {
	if [ -z "$D" ]; then
		# /boot has been mounted already by pkg_preinst_kernel-image
		if grep -q '^mtd3: 03c00000 ' /proc/mtd && ! grep -q '^legacy_flash_mapping=' /boot/secondstage.conf; then
			echo "enable legacy flash mapping in secondstage.conf";
			echo "legacy_flash_mapping=1;" >> /boot/secondstage.conf;
		fi;
	fi;
	true
}


LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "glib-2.0"

inherit pkgconfig autotools

# Allows to avoid fetching, unpacking and patching, since our code is already cloned by repo
inherit externalsrc

#SRC_URI = "git://github.com/sdklsdj.git;protocol=https;branch=master"
#SRCREV = "somerevision"

EXTERNALSRC_pn-${PN} = "${BSPDIR}/source-example"
EXTERNALSRC_BUILD_pn-${PN} = "${BSPDIR}/source-example"

#S = "${EDISONREPO_TOP_DIR}/linux-kernel"
#B = "${WORKDIR}/${BP}"

PR = "r0"

Add descriptian and move sources out of Yocto tree

DESCRIPTION = "Example how to build sources out of tree"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
HOMEPAGE = ""

DEPENDS = "glib-2.0"

inherit pkgconfig autotools

# Allows to avoid fetching, unpacking and patching, since our code is already cloned by repo
inherit externalsrc

EXTERNALSRC_pn-${PN} = "${BSPDIR}/../source-example"
EXTERNALSRC_BUILD_pn-${PN} = "${BSPDIR}/../source-example"

PR = "r0"


DESCRIPTION = "program to manage GPS data"
HOMEPAGE = "http://viking.sourceforge.net/"
SECTION = "x11/applications"
DEPENDS = "gpsd gtk+"
LICENSE = "GPLv2"
PRIORITY = "optional"

SRC_URI = "${SOURCEFORGE_MIRROR}/viking/viking-${PV}.tar.gz \
	file://viking-openaerialmap.patch \
	file://viking-parallel-build.patch"

# libgps is linked with c++
#export CC='${CC} -lstdc++'
LDFLAGS += "-lstdc++"

inherit autotools

SRC_URI[md5sum] = "14c7de0702a5bd5e45924bd166ae5ee2"
SRC_URI[sha256sum] = "9370d4e6a7166c03c8838edc9defd5c9c637b0a2a2f765e2a0d7ec4ed9079fb8"

Disable realtime gps tracking. * The code is not compatible with current gpsd.

DESCRIPTION = "program to manage GPS data"
HOMEPAGE = "http://viking.sourceforge.net/"
SECTION = "x11/applications"
DEPENDS = "gpsd gtk+"
LICENSE = "GPLv2"
PRIORITY = "optional"
PR = "r1"

SRC_URI = "${SOURCEFORGE_MIRROR}/viking/viking-${PV}.tar.gz \
	file://viking-openaerialmap.patch \
	file://viking-parallel-build.patch"

EXTRA_OECONF = "--disable-realtime-gps-tracking"

inherit autotools

SRC_URI[md5sum] = "14c7de0702a5bd5e45924bd166ae5ee2"
SRC_URI[sha256sum] = "9370d4e6a7166c03c8838edc9defd5c9c637b0a2a2f765e2a0d7ec4ed9079fb8"


SECTION = "devel"
require binutils_${PV}.bb
inherit canadian-sdk

DEPENDS="\
	virtual/${HOST_PREFIX}binutils \
	virtual/${HOST_PREFIX}gcc \
	flex-native bison-native \
"

FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \
		--program-prefix=${TARGET_PREFIX}"
PR = "r3"

FILES_${PN}-dbg += "${prefix}/${TARGET_SYS}/bin/.debug"

do_stage() {
	:
}

do_install () {
        autotools_do_install

        # Install the libiberty header
        install -d ${D}${includedir}
        install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
        install -m 644 ${S}/include/libiberty.h ${D}${includedir}
}

Use add SYSROOT, use SDK_REALPATH_MINGW, bump PR

SECTION = "devel"
require binutils_${PV}.bb
inherit canadian-sdk

DEPENDS="\
	virtual/${HOST_PREFIX}binutils \
	virtual/${HOST_PREFIX}gcc \
	flex-native bison-native \
"

FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
# On MinGW hosts we want to prepend a drive letter, in ${SDK_REALPATH_MINGW}
# to the sysroot path.
SYSROOT = "${@['${SDK_REALPATH}/${TARGET_SYS}', '${SDK_REALPATH_MINGW}${SDK_REALPATH}/${TARGET_SYS}'][bb.data.getVar('SDK_OS', d, 1) in ['mingw32', 'mingw64']]}"
EXTRA_OECONF = "--with-sysroot=${SYSROOT} \
		--program-prefix=${TARGET_PREFIX}"
PR = "r4"

FILES_${PN}-dbg += "${prefix}/${TARGET_SYS}/bin/.debug"

do_stage() {
	:
}

do_install () {
        autotools_do_install

        # Install the libiberty header
        install -d ${D}${includedir}
        install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
        install -m 644 ${S}/include/libiberty.h ${D}${includedir}
}


HOMEPAGE = "http://alumnit.ca/wiki/index.php?page=WvStreams"
LICENSE = "LGPL"
DESCRIPTION = "WvStreams is a network programming library in C++"
DEPENDS = "zlib openssl (>= 0.9.8)"

SRC_URI = "http://wvstreams.googlecode.com/files/${PN}-${PV}.tar.gz \
           file://build-fixes-and-sanity.patch;patch=1 "

inherit autotools

LDFLAGS_append = " -Wl,-rpath-link,${CROSS_DIR}/${TARGET_SYS}/lib"

EXTRA_AUTORECONF += " -I${S}/gnulib/m4"
EXTRA_OECONF = " --without-tcl --without-qt --without-pam"

do_stage() {
    autotools_stage_all
}

Split wvstreams into smaller packages

HOMEPAGE = "http://alumnit.ca/wiki/index.php?page=WvStreams"
LICENSE = "LGPL"
DESCRIPTION = "WvStreams is a network programming library in C++"
DEPENDS = "zlib openssl (>= 0.9.8)"

PR = "r1"

SRC_URI = "http://wvstreams.googlecode.com/files/${PN}-${PV}.tar.gz \
           file://build-fixes-and-sanity.patch;patch=1 "

inherit autotools

LDFLAGS_append = " -Wl,-rpath-link,${CROSS_DIR}/${TARGET_SYS}/lib"

EXTRA_AUTORECONF += " -I${S}/gnulib/m4"
EXTRA_OECONF = " --without-tcl --without-qt --without-pam"

PACKAGES_prepend = "libuniconf libuniconf-dbg "
PACKAGES_prepend = "uniconfd uniconfd-dbg "
PACKAGES_prepend = "libwvstreams-base libwvstreams-base-dbg "
PACKAGES_prepend = "libwvstreams-extras libwvstreams-extras-dbg "

FILES_libuniconf     = "${libdir}/libuniconf.so.*"
FILES_libuniconf-dbg = "${libdir}/.debug/libuniconf.so.*"

FILES_uniconfd     = "${sbindir}/uniconfd ${sysconfdir}/uniconf.conf ${localstatedir}/uniconf"
FILES_uniconfd-dbg = "${sbindir}/.debug/uniconfd"

FILES_libwvstreams-base     = "${libdir}/libwvutils.so.*"
FILES_libwvstreams-base-dbg = "${libdir}/.debug/libwvutils.so.*"

FILES_libwvstreams-extras     = "${libdir}/libwvbase.so.* ${libdir}/libwvstreams.so.*"
FILES_libwvstreams-extras-dbg = "${libdir}/.debug/libwvbase.so.* ${libdir}/.debug/libwvstreams.so.*"

do_stage() {
    autotools_stage_all
}


DESCRIPTION = "Customized settings to use the right fonts in XFCE."
SECTION = "x11"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
RDEPENDS_${PN} = "fontconfig"
PR = "r1"
S = "${WORKDIR}"

SRC_URI = "file://48-nilrt-override.conf"

FILES_${PN} = "${sysconfdir}/fonts"

do_install () {
	install -d ${D}/${sysconfdir}/fonts/conf.d
	install -d ${D}/${sysconfdir}/fonts/conf.avail
	install -m 0644 48-nilrt-override.conf ${D}/${sysconfdir}/fonts/conf.avail/48-nilrt-override.conf
	ln -sf ${sysconfdir}/fonts/conf.avail/48-nilrt-override.conf ${D}/${sysconfdir}/fonts/conf.d/48-nilrt-override.conf
}

Update after toplevl LICENSE file checksum change

DESCRIPTION = "Customized settings to use the right fonts in XFCE."
SECTION = "x11"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
RDEPENDS_${PN} = "fontconfig"
PR = "r1"
S = "${WORKDIR}"

SRC_URI = "file://48-nilrt-override.conf"

FILES_${PN} = "${sysconfdir}/fonts"

do_install () {
	install -d ${D}/${sysconfdir}/fonts/conf.d
	install -d ${D}/${sysconfdir}/fonts/conf.avail
	install -m 0644 48-nilrt-override.conf ${D}/${sysconfdir}/fonts/conf.avail/48-nilrt-override.conf
	ln -sf ${sysconfdir}/fonts/conf.avail/48-nilrt-override.conf ${D}/${sysconfdir}/fonts/conf.d/48-nilrt-override.conf
}


# Base this image on rpi-basic-image
include recipes-core/images/rpi-basic-image.bb

require common.inc

IMAGE_INSTALL +=" \
		iw \
		linux-firmware-bcm43430 \
		"

Deploy required firmwares to the rpi3 board.

# Base this image on rpi-basic-image
include recipes-core/images/rpi-basic-image.bb

require common.inc

IMAGE_INSTALL +=" \
		iw \
		linux-firmware \
		mesa \
		"


require u-boot-socfpga-common.inc
require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc

FILESEXTRAPATHS =. "${THISDIR}/files/v2017.09:"

SRCREV = "c98ac3487e413c71e5d36322ef3324b21c6f60f9"

# Stratix10 is not mainlined yet
SRCREV_stratix10 = "c85cd1fc1331210f1c22adb29d932d4052f79c78"
SRC_URI_stratix10 = "git://github.com/altera-opensource/u-boot-socfpga.git;branch=socfpga_v2017.09;prot=https"

SRC_URI_append = "\
	"

DEPENDS += "dtc-native bc-native u-boot-mkimage-native"

Update Stratix 10 u-Boot SRCREV

require u-boot-socfpga-common.inc
require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc

FILESEXTRAPATHS =. "${THISDIR}/files/v2017.09:"

SRCREV = "c98ac3487e413c71e5d36322ef3324b21c6f60f9"

# Stratix10 is not mainlined yet
SRCREV_stratix10 = "03db6f4894450a0a8b80478a8567a7353cb2ab99"
SRC_URI_stratix10 = "git://github.com/altera-opensource/u-boot-socfpga.git;branch=socfpga_v2017.09;prot=https"

SRC_URI_append = "\
	"

DEPENDS += "dtc-native bc-native u-boot-mkimage-native"


DESCRIPTION = "Starling audio player for GPE"
SECTION = "gpe/multimedia"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "gtk+ gstreamer gst-plugins-good gst-plugins-bad ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'gst-plugins-ugly', d)} esound sqlite libsoup libhandoff"
PR = "r3"

inherit gpe autotools

SRC_URI = "http://gpe.linuxtogo.org/download/source/starling-${PV}.tar.bz2"

RDEPENDS_${PN} = "\
  esd \
  gst-plugin-audioconvert \
  gst-plugin-esd \
  gst-plugin-typefindfunctions \
  gst-plugin-decodebin \
  gst-plugin-volume \
"
RRECOMMENDS_${PN} = "\
  gst-plugin-mad \
  gst-plugin-modplug \
  gst-plugin-ivorbisdec \
  gst-plugin-tcp \
"

SRC_URI[md5sum] = "1c9cab1e49819dbe4e876c3be26cca6b"
SRC_URI[sha256sum] = "63ed3e239c79a5913e9542b7023586c51a592e33d2ec0256dafa34cbae20c497"

Work around bitbake issue making a dependency from a RRECOMMEND statement.

DESCRIPTION = "Starling audio player for GPE"
SECTION = "gpe/multimedia"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "gtk+ gstreamer gst-plugins-good gst-plugins-bad ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'gst-plugins-ugly', d)} esound sqlite libsoup libhandoff"
PR = "r3"

inherit gpe autotools

SRC_URI = "http://gpe.linuxtogo.org/download/source/starling-${PV}.tar.bz2"

RDEPENDS_${PN} = "\
  esd \
  gst-plugin-audioconvert \
  gst-plugin-esd \
  gst-plugin-typefindfunctions \
  gst-plugin-decodebin \
  gst-plugin-volume \
"
RRECOMMENDS_${PN} = "\
  gst-plugin-modplug \
  gst-plugin-ivorbisdec \
  gst-plugin-tcp \
"
#  gst-plugin-mad \

SRC_URI[md5sum] = "1c9cab1e49819dbe4e876c3be26cca6b"
SRC_URI[sha256sum] = "63ed3e239c79a5913e9542b7023586c51a592e33d2ec0256dafa34cbae20c497"


DESCRIPTION = "Packages for Amazon Web Services."
LICENSE = "MIT"

inherit packagegroup python-dir

PR = "r0"

PACKAGES = "${PN}"

PACKAGECONFIG ??= "python java cpp cli"

PACKAGECONFIG[python] = "\
	, \
	, \
	, \
	${PYTHON_PN}-aws-iot-device-sdk \
	${PYTHON_PN}-aws-iot-device-sdk-samples \
"

PACKAGECONFIG[java] = "\
	, \
	, \
	, \
	aws-iot-device-sdk-java \
	aws-iot-device-sdk-java-samples \
"

PACKAGECONFIG[cpp] = "\
	, \
	, \
	, \
	aws-iot-device-sdk-cpp \
	aws-iot-device-sdk-cpp-dev \
	aws-iot-device-sdk-cpp-cli \
	aws-iot-device-sdk-cpp-samples \
"

PACKAGECONFIG[python] = "\
	, \
	, \
	, \
	${PYTHON_PN}-awscli \
"

Package Group: Fix AWS package group

DESCRIPTION = "Packages for Amazon Web Services."
LICENSE = "MIT"

inherit packagegroup python-dir

PR = "r1"

PACKAGES = "${PN}"

PACKAGECONFIG ??= "python java cpp cli"

PACKAGECONFIG[python] = "\
	, \
	, \
	, \
	${PYTHON_PN}-aws-iot-device-sdk \
	${PYTHON_PN}-aws-iot-device-sdk-samples \
"

PACKAGECONFIG[java] = "\
	, \
	, \
	, \
	aws-iot-device-sdk-java \
	aws-iot-device-sdk-java-samples \
"

PACKAGECONFIG[cpp] = "\
	, \
	, \
	, \
	aws-iot-device-sdk-cpp \
	aws-iot-device-sdk-cpp-dev \
	aws-iot-device-sdk-cpp-cli \
	aws-iot-device-sdk-cpp-samples \
"

PACKAGECONFIG[cli] = "\
	, \
	, \
	, \
	${PYTHON_PN}-awscli \
"


DESCRIPTION = "Openmoko: Tasks for the Openmoko Linux Distribution"
SECTION = "openmoko/base"
ALLOW_EMPTY = "1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
LICENSE = "MIT"
PR = "r0"

inherit task

PACKAGES = "task-openmoko-bare"

DESCRIPTION_task-openmoko-qtopia-x11 = "Openmoko: Provide Window Manager, Om-settings and Om-installer"
RDEPENDS_task-openmoko-bare = "\
           readline \
           connman \
           connman-plugin-connman-resolvconf \
           connman-plugin-connman-dhclient \
           connman-plugin-connman-80211 \
           connman-script-dhclient \
           libnotify \
# X
           illume \
           illume-theme-asu \
           e-wm \
           ${XSERVER} \
           xserver-kdrive-common \
           xserver-nodm-init \
           xauth \
           xhost \
           xset \
           xrandr \
# Om applications
           assassin \
           assassin-thumbnail \
           om-settings \
           openmoko-community-repository \
"

Change the order of illume-theme in Openmoko Bare Image.

DESCRIPTION = "Openmoko: Tasks for the Openmoko Linux Distribution"
SECTION = "openmoko/base"
ALLOW_EMPTY = "1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
LICENSE = "MIT"
PR = "r0.01"

inherit task

PACKAGES = "task-openmoko-bare"

DESCRIPTION_task-openmoko-qtopia-x11 = "Openmoko: Provide Window Manager, Om-settings and Om-installer"
RDEPENDS_task-openmoko-bare = "\
           readline \
           connman \
           connman-plugin-connman-resolvconf \
           connman-plugin-connman-dhclient \
           connman-plugin-connman-80211 \
           connman-script-dhclient \
           libnotify \
# X

# illume-theme-asu should be first than illume
# to let opkg install illume-theme-asu first than illume-theme-freesmartphone
# then we have ASU theme but not FSO theme in default.
           illume-theme-asu \
           illume \
           e-wm \
           ${XSERVER} \
           xserver-kdrive-common \
           xserver-nodm-init \
           xauth \
           xhost \
           xset \
           xrandr \
# Om applications
           assassin \
           assassin-thumbnail \
           om-settings \
           openmoko-community-repository \
"


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_v2021.2"
SRCREV = "f196bddc500dfb244aeabba264e66358c35d51dd"

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 on branch.

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_v2021.2"
SRCREV = "5b6fe16a2bfd7ced4d90b70b0ba6fbf325e81e97"

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"


DESCRIPTION = "Basic user and group settings for NI Linux RT applications."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r1"

ALLOW_EMPTY_${PN} = "1"

inherit allarch useradd

USERADD_PACKAGES = "${PN}"

GROUPADD_PARAM_${PN} = " --system -g 500 ${LVRT_GROUP}; \
	--system -g 499 ${OPENVPN_GROUP}; \
	--system -g 498 niwscerts"

USERADD_PARAM_${PN} = " -u 500 -N -g ${LVRT_GROUP} -G niwscerts,plugdev,tty -c 'LabVIEW user' ${LVRT_USER}; \
		-u 499 -N -g ${OPENVPN_GROUP} -c 'OpenVPN user' -r ${OPENVPN_USER}; \
		-u 501 -N -g ${LVRT_GROUP} -G niwscerts,plugdev -c 'Web services user' webserv"

useradd_preinst_append () {
eval ${PSEUDO} chmod g+s ${SYSROOT}/home/${LVRT_USER} ${SYSROOT}/home/webserv || true
}

Revert "nilrt: add webserv to group "plugdev""

DESCRIPTION = "Basic user and group settings for NI Linux RT applications."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r1"

ALLOW_EMPTY_${PN} = "1"

inherit allarch useradd

USERADD_PACKAGES = "${PN}"

GROUPADD_PARAM_${PN} = " --system -g 500 ${LVRT_GROUP}; \
	--system -g 499 ${OPENVPN_GROUP}; \
	--system -g 498 niwscerts"

USERADD_PARAM_${PN} = " -u 500 -N -g ${LVRT_GROUP} -G niwscerts,plugdev,tty -c 'LabVIEW user' ${LVRT_USER}; \
		-u 499 -N -g ${OPENVPN_GROUP} -c 'OpenVPN user' -r ${OPENVPN_USER}; \
		-u 501 -N -g ${LVRT_GROUP} -G niwscerts -c 'Web services user' webserv"

useradd_preinst_append () {
eval ${PSEUDO} chmod g+s ${SYSROOT}/home/${LVRT_USER} ${SYSROOT}/home/webserv || true
}


require u-boot-ti.inc

# u-boot needs devtree compiler to parse dts files
DEPENDS += "dtc-native"

DESCRIPTION = "u-boot bootloader for TI devices"

LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"

PV = "2014.07-glsdk"
PR = "r4+gitr${SRCPV}"
BRANCH = "p-ti-u-boot-2014.07"

SRC_URI = "git://git.omapzoom.org/repo/u-boot.git;protocol=git;branch=${BRANCH}"

SRCREV = "c56da94325d1251525078f79acefb4d347a494a2"

SPL_BINARY = "MLO"
SPL_UART_BINARY = "u-boot-spl.bin"

Update commit for GLSDK GA release

require u-boot-ti.inc

# u-boot needs devtree compiler to parse dts files
DEPENDS += "dtc-native"

DESCRIPTION = "u-boot bootloader for TI devices"

LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"

PV = "2014.07-glsdk"
PR = "r5+gitr${SRCPV}"
BRANCH = "p-ti-u-boot-2014.07"

SRC_URI = "git://git.omapzoom.org/repo/u-boot.git;protocol=git;branch=${BRANCH}"

SRCREV = "9086437f413323e3aa24f5affe89c37b95d8ff12"

SPL_BINARY = "MLO"
SPL_UART_BINARY = "u-boot-spl.bin"


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

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

S = "${WORKDIR}/git"

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

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

inherit module

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

Update commit id and branch for 2021 release

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

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

S = "${WORKDIR}/git"

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

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

inherit module

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


include libxcb.inc

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7"

DEPENDS += "libxdmcp"

SRC_URI[md5sum] = "074c335cc4453467eeb234e3dadda700"
SRC_URI[sha256sum] = "98d9ab05b636dd088603b64229dd1ab2d2cc02ab807892e107d674f9c3f2d5b5"

#
# debian
#
inherit debian-package

DEBIAN_SECTION = "x11"
DPR = "0"

SRC_URI += " \
	file://xcbincludedir.patch \
"

# There is no debian patch
DEBIAN_PATCH_TYPE = "nopatch"

Add depend on python to libxcb based on debian/rules

include libxcb.inc

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7"

DEPENDS += "libxdmcp python"

SRC_URI[md5sum] = "074c335cc4453467eeb234e3dadda700"
SRC_URI[sha256sum] = "98d9ab05b636dd088603b64229dd1ab2d2cc02ab807892e107d674f9c3f2d5b5"

#
# debian
#
inherit debian-package

DEBIAN_SECTION = "x11"
DPR = "0"

SRC_URI += " \
	file://xcbincludedir.patch \
"

# There is no debian patch
DEBIAN_PATCH_TYPE = "nopatch"


DESCRIPTION = "A commercial quality OCR engine "
LICENSE = "APL + others"

DEPENDS = "tiff"

SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}-ocr/${P}.tar.gz file://fix_redeclaration_conflitcs.patch;patch=1"

inherit autotools pkgconfig

SRC_URI[md5sum] = "e3bc57773a60134ef37e9f06fe541108"
SRC_URI[sha256sum] = "6fc9e28a574bf22028249e9a12e033c8bee0aeccbf90621238a6f538e60e7d60"

Fix deprecated syntax in tessarct

DESCRIPTION = "A commercial quality OCR engine "
LICENSE = "APL + others"

DEPENDS = "tiff"

SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}-ocr/${P}.tar.gz file://fix_redeclaration_conflitcs.patch"

inherit autotools pkgconfig

SRC_URI[md5sum] = "e3bc57773a60134ef37e9f06fe541108"
SRC_URI[sha256sum] = "6fc9e28a574bf22028249e9a12e033c8bee0aeccbf90621238a6f538e60e7d60"


DESCRIPTION = "Linux Kernel 2.6 Userland Utilities for the PCMCIA Subsystem"
DEPENDS = "sysfsutils udev"
RDEPENDS = "udev"
HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
SECTION = "kernel/userland"
PRIORITY = "optional"

SRC_URI = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2"
S = "${WORKDIR}/pcmciautils-${PV}"

PR = "r1"

inherit update-rc.d

INITSCRIPT_NAME = "coldplug"
INITSCRIPT_PARAMS = "defaults"

export HOSTCC = "${BUILD_CC}"
export etcdir = "${sysconfdir}"
export pcmciaconfdir = "${sysconfdir}/pcmcia"
export udevrulesdir = "${sysconfdir}/udev/rules.d"
export UDEV = 1
LD = "${CC}"
CFLAGS =+ "-I${S}/src"
CFLAGS =+ '-DPCMCIAUTILS_VERSION=010'

PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs'"

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

CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts"
RCONFLICTS_${PN} += "pcmcia-cs"

Install the binaries into the correct place. Remove coldplug references as they now just create errors. Add dependency on module-init-tools - when busybox's modprobe expands to cover pcmcia alias handling, this can be removed.

DESCRIPTION = "Linux Kernel 2.6 Userland Utilities for the PCMCIA Subsystem"
DEPENDS = "sysfsutils udev"
RDEPENDS = "udev module-init-tools"
HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
SECTION = "kernel/userland"
PRIORITY = "optional"

SRC_URI = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2"
S = "${WORKDIR}/pcmciautils-${PV}"

PR = "r2"

export HOSTCC = "${BUILD_CC}"
export etcdir = "${sysconfdir}"
export sbindir = "${base_sbindir}"
export pcmciaconfdir = "${sysconfdir}/pcmcia"
export udevrulesdir = "${sysconfdir}/udev/rules.d"
export UDEV = 1
LD = "${CC}"
CFLAGS =+ "-I${S}/src"
CFLAGS =+ '-DPCMCIAUTILS_VERSION=010'

PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs'"

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

CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts"
RCONFLICTS_${PN} += "pcmcia-cs"


require xorg-app-common.inc

DESCRIPTION = "X Resize and Rotate extension command."
LICENSE= "BSD-X"

DEPENDS += " libxrandr libxrender virtual/libx11"
PE = "1"
PR = "r1"

SRC_URI += "file://resolve_symbol_clash.patch;patch=1"

Remove patch that does not apply any more.

require xorg-app-common.inc

DESCRIPTION = "X Resize and Rotate extension command."
LICENSE= "BSD-X"

DEPENDS += " libxrandr libxrender virtual/libx11"
PE = "1"
PR = "r2"


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 "

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

Add tz-launcher and weston config to image

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 "

IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
IMAGE_INSTALL += "mesa-driver-i965"
IMAGE_INSTALL += "meta"
IMAGE_INSTALL += "libpam"
IMAGE_INSTALL += "weston-common-tz-launcher"
IMAGE_INSTALL += "weston-common-config"

# Doesn't build: needs to be fixed:
#IMAGE_INSTALL += "user-session-units"

#IMAGE_INSTALL += "crosswalk"


SUMMARY = "Fribidi library for bidirectional text"
SECTION = "libs"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
BBCLASSEXTEND = "native"

PROVIDES = "libfribidi"
DEPENDS = "glib-2.0 libpcre"

inherit autotools lib_package pkgconfig

CFLAGS_append = "  -DPAGE_SIZE=4096 "

SRC_URI = "http://fribidi.org/download/fribidi-${PV}.tar.bz2"

SRC_URI[md5sum] = "6c7e7cfdd39c908f7ac619351c1c5c23"
SRC_URI[sha256sum] = "08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e"

Fix build with security flags turned on

SUMMARY = "Fribidi library for bidirectional text"
SECTION = "libs"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
BBCLASSEXTEND = "native"

PROVIDES = "libfribidi"
DEPENDS = "glib-2.0 libpcre"

inherit autotools lib_package pkgconfig

CFLAGS_append = "  -DPAGE_SIZE=4096 "
SECURITY_CFLAGS_remove_toolchain-clang = "-D_FORTIFY_SOURCE=2"

SRC_URI = "http://fribidi.org/download/fribidi-${PV}.tar.bz2"

SRC_URI[md5sum] = "6c7e7cfdd39c908f7ac619351c1c5c23"
SRC_URI[sha256sum] = "08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e"


DESCRIPTION = "A minimal OpenAMP image"

INITRD_IMAGE = "core-image-minimal-initramfs"
LICENSE = "MIT"

inherit core-image

IMAGE_INSTALL += " \
    packagegroup-core-boot \
    ${CORE_IMAGE_EXTRA_INSTALL} \
    kernel-module-uio-pdrv-genirq \
    kernel-module-remoteproc \
    kernel-module-virtio \
    kernel-module-virtio-ring \
    kernel-module-virtio-rpmsg-bus \
    libmetal \
    open-amp \
    "

#IMAGE_INSTALL_append_zynqmp += " kernel-module-zynqmp-r5-remoteproc"
#IMAGE_INSTALL_append_zynq += " kernel-module-zynq-remoteproc"

IMAGE_LINGUAS=""

Remove kernel modules that are now built-in.

DESCRIPTION = "A minimal OpenAMP image"

INITRD_IMAGE = "core-image-minimal-initramfs"
LICENSE = "MIT"

inherit core-image

IMAGE_INSTALL += " \
    packagegroup-core-boot \
    ${CORE_IMAGE_EXTRA_INSTALL} \
    kernel-module-uio-pdrv-genirq \
    kernel-module-virtio-rpmsg-bus \
    libmetal \
    open-amp \
    "

#IMAGE_INSTALL_append_zynqmp += " kernel-module-zynqmp-r5-remoteproc"
#IMAGE_INSTALL_append_zynq += " kernel-module-zynq-remoteproc"

IMAGE_LINGUAS=""


require fakeroot.inc

DEFAULT_PREFERENCE = "-1"
PR = "${INC_PR}.0"

SRC_URI =+ "\
  ${DEBIAN_MIRROR}/main/f/fakeroot/fakeroot_${PV}.orig.tar.bz2 \
  file://quiet-getopt-check.patch \
"

SRC_URI[md5sum] = "248c408b1e06e776c5739871b49bd968"
SRC_URI[sha256sum] = "45fbb9ad611f33224cc09954963dde563cc80fe58c76feb25b6e98550b81729a"

Change download loation to a working one

require fakeroot.inc

DEFAULT_PREFERENCE = "-1"
PR = "${INC_PR}.0"

SRC_URI =+ "\
    https://launchpad.net/ubuntu/+archive/primary/+files/${PN}_${PV}.orig.tar.bz2 \
    file://quiet-getopt-check.patch \
"

SRC_URI[md5sum] = "248c408b1e06e776c5739871b49bd968"
SRC_URI[sha256sum] = "45fbb9ad611f33224cc09954963dde563cc80fe58c76feb25b6e98550b81729a"


DESCRIPTION = "High-performance XML processor."
LICENSE = "AL2.0 LGPL2.1"

AUTHOR = "Codehaus"
HOMEPAGE = "http://woodstox.codehaus.org"

SRC_URI = "http://woodstox.codehaus.org/2.0.6/wstx-src.tar.gz"

S = "${WORKDIR}"

inherit java-library

DEPENDS = "fastjar-native"

do_compile() {
  mkdir -p build/META-INF/services

  javac -nowarn -sourcepath src/java -d build \
		`find src/java/org -name "*.java"` \
		`find src/java/com -name "*.java"`

  cp -R src/resources/* build/META-INF/services

  fastjar -C build -c -f ${JARFILENAME} .
}

SRC_URI[md5sum] = "3fc8e914d13316aa254b883a99fd2b85"
SRC_URI[sha256sum] = "e7ab2018865334a1b9b04161235192c2fdc7387baa422b576722db2011f75157"

Switch to subdir= in SRC_URI

DESCRIPTION = "High-performance XML processor."
LICENSE = "AL2.0 LGPL2.1"

AUTHOR = "Codehaus"
HOMEPAGE = "http://woodstox.codehaus.org"

SRC_URI = "http://woodstox.codehaus.org/2.0.6/wstx-src.tar.gz;subdir=${BPN}-${PV}"

inherit java-library

DEPENDS = "fastjar-native"

do_compile() {
  mkdir -p build/META-INF/services

  javac -nowarn -sourcepath src/java -d build \
		`find src/java/org -name "*.java"` \
		`find src/java/com -name "*.java"`

  cp -R src/resources/* build/META-INF/services

  fastjar -C build -c -f ${JARFILENAME} .
}

SRC_URI[md5sum] = "3fc8e914d13316aa254b883a99fd2b85"
SRC_URI[sha256sum] = "e7ab2018865334a1b9b04161235192c2fdc7387baa422b576722db2011f75157"


SUMMARY = "Low Level Skeleton Library for Communication on Intel platforms"
SECTION = "libs"
AUTHOR = "Brendan Le Foll, Tom Ingleby"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=e8db6501ed294e65418a933925d12058"

# git is required to get a good version from git describe
DEPENDS = "nodejs swig-native"

SRC_URI = "git://github.com/intel-iot-devkit/mraa.git;protocol=git;rev=64f377cdfcedaaff6a8fb76f83b7ece9eaba422e;nobranch=1"

S = "${WORKDIR}/git"

inherit distutils-base pkgconfig python-dir cmake

FILES_${PN}-doc += "${datadir}/mraa/examples/"

FILES_${PN}-dbg += "${libdir}/node_modules/mraajs/.debug/ \
                    ${PYTHON_SITEPACKAGES_DIR}/.debug/"

do_compile_prepend () {
  # when yocto builds in ${D} it does not have access to ../git/.git so git
  # describe --tags fails. In order not to tag our version as dirty we use this
  # trick
  sed -i 's/-dirty//' src/version.c
}

Add pkgconfig options for python & nodejs bindings to mraa

SUMMARY = "Low Level Skeleton Library for Communication on Intel platforms"
SECTION = "libs"
AUTHOR = "Brendan Le Foll, Tom Ingleby"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=e8db6501ed294e65418a933925d12058"

SRC_URI = "git://github.com/intel-iot-devkit/mraa.git;protocol=git;rev=64f377cdfcedaaff6a8fb76f83b7ece9eaba422e;nobranch=1"

S = "${WORKDIR}/git"

inherit distutils-base pkgconfig python-dir cmake

FILES_${PN}-doc += "${datadir}/mraa/examples/"

FILES_${PN}-dbg += "${libdir}/node_modules/mraajs/.debug/ \
                    ${PYTHON_SITEPACKAGES_DIR}/.debug/"

PACKAGECONFIG ??= "python nodejs"
PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON, -DBUILDSWIGPYTHON=OFF, swig-native python"
PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF, swig-native nodejs"

do_compile_prepend () {
  # when yocto builds in ${D} it does not have access to ../git/.git so git
  # describe --tags fails. In order not to tag our version as dirty we use this
  # trick
  sed -i 's/-dirty//' src/version.c
}


require xorg-lib-common.inc

DESCRIPTION = "	Touchscreen calibration client library"
LICENSE = "BSD-X"
DEPENDS = "virtual/libx11 calibrateproto libxext"
PV = "0.0+gitr${SRCREV}"
PE = "1"

SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/libXCalibrate;protocol=git"

S = "${WORKDIR}/git"

FILES_${PN}-locale += "${datadir}/X11/locale"

Use increment-able PV format as other git version recipes do.

require xorg-lib-common.inc

DESCRIPTION = "Touchscreen calibration client library"
LICENSE = "BSD-X"
DEPENDS = "virtual/libx11 calibrateproto libxext"

PR = "r0"
PV = "0.0+${PR}+gitr${SRCREV}"
PE = "1"

SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/libXCalibrate;protocol=git"

S = "${WORKDIR}/git"

FILES_${PN}-locale += "${datadir}/X11/locale"


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

SUMMARY = "A Wayland image with a terminal and crosswalk"

LICENSE = "MIT"

DESCRIPTION = "A weston image with Tizen common ."

IMAGE_INSTALL += "crosswalk"
IMAGE_INSTALL += "tizen-extensions-crosswalk"
IMAGE_INSTALL += "tzdata"

IMAGE_INSTALL += "ttf-dejavu-common"
IMAGE_INSTALL += "ttf-dejavu-sans"
IMAGE_INSTALL += "ttf-dejavu-sans-condensed"
IMAGE_INSTALL += "ttf-dejavu-sans-mono"
IMAGE_INSTALL += "ttf-dejavu-serif"
IMAGE_INSTALL += "ttf-dejavu-serif-condensed"

Add pango module to image

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

SUMMARY = "A Wayland image with a terminal and crosswalk"

LICENSE = "MIT"

DESCRIPTION = "A weston image with Tizen common ."

IMAGE_INSTALL += "crosswalk"
IMAGE_INSTALL += "tizen-extensions-crosswalk"
IMAGE_INSTALL += "tzdata"

IMAGE_INSTALL += "ttf-dejavu-common"
IMAGE_INSTALL += "ttf-dejavu-sans"
IMAGE_INSTALL += "ttf-dejavu-sans-condensed"
IMAGE_INSTALL += "ttf-dejavu-sans-mono"
IMAGE_INSTALL += "ttf-dejavu-serif"
IMAGE_INSTALL += "ttf-dejavu-serif-condensed"

# Pango modules
IMAGE_INSTALL += "pango-module-basic-fc"
IMAGE_INSTALL += "pango-module-arabic-lang"
IMAGE_INSTALL += "pango-module-indic-lang"


SRCBRANCH ?= "master-rel-2021.1"
SRCREV = "84041fa84d9bc524357b030ebe9a5174b01377bd"
BRANCH = "master-rel-2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=0e6d7bfe689fe5b0d0a89b2ccbe053fa"
PV = "${SRCBRANCH}+git${SRCPV}"

include open-amp.inc

Update branch for 2021.1 release

SRCBRANCH ?= "xlnx_rel_v2021.1"
SRCREV = "84041fa84d9bc524357b030ebe9a5174b01377bd"
BRANCH = "xlnx_rel_v2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=0e6d7bfe689fe5b0d0a89b2ccbe053fa"
PV = "${SRCBRANCH}+git${SRCPV}"

include open-amp.inc


PR =		"r1"
LICENSE = 	"LGPL"
MAINTAINER = 	"Koen Kooi <koen@handhelds.org>"

DEPENDS =	"dbus hildon-lgpl hildon-fm outo gtk+-2.6.4-1.osso7"
SRC_URI =	"http://repository.maemo.org/pool/maemo/ossw/source/h/hildon-libs/hildon-libs_${PV}.tar.gz \
		file://hildon-libs-no-werror.patch;patch=1"

S =	"${WORKDIR}/hildon-libs-0.9.6"

inherit pkgconfig autotools
EXTRA_OECONF =	"--disable-gtk-doc"

do_stage() {
  install -d ${STAGING_LIBDIR}/outo
  install -m755 ${S}/ut/.libs/libhildonwidgets_unittests.so  ${STAGING_LIBDIR}/outo
  install -m755 ${S}/ut/.libs/libhildonwidgets_clock_unittests.so  ${STAGING_LIBDIR}/outo
  install -m755 ${S}/hildon-widgets/.libs/libhildonwidgets.so* ${STAGING_LIBDIR}
  install -d ${STAGING_INCDIR}/hildon-widgets
  install -m 644 hildon-widgets/*.h ${STAGING_INCDIR}/hildon-widgets
}

Fix SRC_URI to contain patch. Fix shipped files.

PR 	= 	"r1"
LICENSE = 	"LGPL"
MAINTAINER = "Koen Kooi <koen@handhelds.org>"

DEPENDS =	"dbus hildon-lgpl hildon-fm outo gtk+-2.6.4-1.osso7"
SRC_URI =	"http://repository.maemo.org/pool/maemo/ossw/source/h/${PN}/${PN}_${PV}.tar.gz \
			file://hildon-libs-no-werror.patch;patch=1"

S = "${WORKDIR}/hildon-libs-0.9.6"

inherit autotools pkgconfig

EXTRA_OECONF =	"--disable-gtk-doc"

FILES_${PN} += "${libdir}/outo/*.so"

do_stage() {
  install -d ${STAGING_LIBDIR}/outo
  install -m755 ${S}/ut/.libs/libhildonwidgets_unittests.so  ${STAGING_LIBDIR}/outo
  install -m755 ${S}/ut/.libs/libhildonwidgets_clock_unittests.so  ${STAGING_LIBDIR}/outo
  install -m755 ${S}/hildon-widgets/.libs/libhildonwidgets.so* ${STAGING_LIBDIR}
  install -d ${STAGING_INCDIR}/hildon-widgets
  install -m 644 hildon-widgets/*.h ${STAGING_INCDIR}/hildon-widgets
}


require bluez-utils.inc

PR = "r0"

EXTRA_OECONF += "--without-dbus"

Add ti patch used in bluez-utils-dbus.

require bluez-utils.inc

PR = "r1"

SRC_URI += " file://hciattach-ti-bts.patch;patch=1"
EXTRA_OECONF += "--without-dbus"


Fix the octave SRC_URI, courtesy Simon Pickering.

LICENSE = GPL
DESCRIPTION = "GNU Octave is a high-level language, primarily intended for numerical computations. \
It provides a convenient command line interface for solving linear and nonlinear problems numerically, \
and for performing other numerical experiments using a language that is mostly compatible with Matlab. \
It may also be used as a batch-oriented language."
SECTION = "console/util"
DEPENDS = "readline ncurses"
MAINTAINER = "Simon Pickering <S.G.Pickering@bath.ac.uk>"
SRC_URI = "ftp://ftp.octave.org/pub/octave/bleeding-edge/octave-${PV}.tar.gz"

inherit autotools

FILES_${PN}-dev += "${libdir}/octave-${PV}/*.la ${libdir}/octave-${PV}/*.a"

do_configure() {
	gnu-configize
	oe_runconf
}


DESCRIPTION = "DVD access multimeda library"
SECTION = "libs/multimedia"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
SRC_URI = "git://git.debian-maintainers.org/git/daniel/${PN}.git;protocol=git;branch=debian"

SRCREV = "e465b500c12be5b4c0b6918a9b98038611f66c57"
S = "${WORKDIR}/git"

inherit autotools lib_package binconfig pkgconfig

do_unpackpost() {
        QUILT_PATCHES=debian/patches quilt push -a
}

addtask unpackpost after do_unpack before do_patch

Update to newer GIT server

DESCRIPTION = "DVD access multimeda library"
SECTION = "libs/multimedia"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
SRC_URI = "git://daniel-baumann.ch/git/debian/libdvdread.git;protocol=http;branch=debian"

PR = "r1"

SRCREV = "a733b19584000a9c80ef5b8dfb187f8f00e4d1e7"
S = "${WORKDIR}/git"

inherit autotools lib_package binconfig pkgconfig

do_unpackpost() {
        QUILT_PATCHES=debian/patches quilt push -a
}

addtask unpackpost after do_unpack before do_patch


DESCRIPTION = "Settings-daemon provides a bridge between gconf and xsettings"
LICENSE = "GPL"
DEPENDS = "gconf glib-2.0"
RDEPENDS = "xrdb"
SECTION = "x11"
PV = "0.0+svnr${SRCREV}"

SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http \
	   file://70settings-daemon"

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

inherit autotools pkgconfig gettext gconf

FILES_${PN} = 	"${bindir}/* ${sysconfdir}"

do_install_append () {
	install -d ${D}/${sysconfdir}/X11/Xsession.d
	install -m 755 ${WORKDIR}/70settings-daemon ${D}/${sysconfdir}/X11/Xsession.d/
}

Add missing dependency to gtk+

DESCRIPTION = "Settings-daemon provides a bridge between gconf and xsettings"
LICENSE = "GPL"
DEPENDS = "gconf glib-2.0 gtk+"
RDEPENDS = "xrdb"
SECTION = "x11"
PV = "0.0+svnr${SRCREV}"

PR = "r1"

SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http \
	   file://70settings-daemon"

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

inherit autotools pkgconfig gettext gconf

FILES_${PN} = 	"${bindir}/* ${sysconfdir}"

do_install_append () {
	install -d ${D}/${sysconfdir}/X11/Xsession.d
	install -m 755 ${WORKDIR}/70settings-daemon ${D}/${sysconfdir}/X11/Xsession.d/
}


DESCRIPTION = "Tool to edit the Redboot FIS partition layout from userspace"

SRC_URI = "http://svn.chezphil.org/utils/trunk/fis.cc \
	   svn://svn.chezphil.org/;module=libpbe;proto=http"

do_compile() {
	${CXX} -Os -W -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis ${WORKDIR}/fis.cc \
	${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
	${STRIP} ${WORKDIR}/fis-${PV}/fis
#	${CXX} -Os -W -static -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis-static ${WORKDIR}/fis.cc \
#	${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
#	${STRIP} ${WORKDIR}/fis-${PV}/fis-static
}

Make one shared and one static version, split into two packages

DESCRIPTION = "Tool to edit the Redboot FIS partition layout from userspace"
PR = "r1"

SRC_URI = "http://svn.chezphil.org/utils/trunk/fis.cc \
	   svn://svn.chezphil.org/;module=libpbe;proto=http"

PACKAGES =+ "fis-static"
FILES_${PN}-static = "${sbindir}/fis-static"
FILES_${PN} = "${sbindir}/fis"

do_compile() {
	${CXX} -Os -W -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis ${WORKDIR}/fis.cc \
	${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc

	# Work around boost threading issue when compiling static
	# We're singlethreading anyway

	echo "#define BOOST_SP_DISABLE_THREADS" > ${WORKDIR}/tmpfile
	cat ${WORKDIR}/tmpfile ${WORKDIR}/fis.cc > ${WORKDIR}/fis.new
	mv ${WORKDIR}/fis.new ${WORKDIR}/fis.cc
	rm ${WORKDIR}/tmpfile

	${CXX} -Os -W -static -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis-static ${WORKDIR}/fis.cc \
	${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
}

do_install() {
	${STRIP} ${WORKDIR}/fis-${PV}/fis-static
	${STRIP} ${WORKDIR}/fis-${PV}/fis

	install -d ${D}/${sbindir}
	install -m 755 ${WORKDIR}/fis-${PV}/fis-static ${D}/${sbindir}
	install -m 755 ${WORKDIR}/fis-${PV}/fis ${D}/${sbindir}
}


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

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

SRC_URI = "https://github.com/SGL-UT/GPSTk/archive/v${PV}.tar.gz"
SRC_URI[md5sum] = "b085879c4b4197e4d01e90f83352e6cd"
SRC_URI[sha256sum] = "fe45c79537d263eb145623c456a0d0bf79acd0ac8dd79136d6b5610aa26055e4"
S="${WORKDIR}/GPSTk-${PV}"

inherit cmake

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

PACKAGE = "gpstk"

FILES_${PN} += " ${bindir}/* /usr/share/cmake/*"

Fix QA issue: SRC_URI uses unstable GitHub archives

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

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

SRC_URI = "git://github.com/SGL-UT/GPSTk.git"
SRCREV = "f8febf70861ecfae83ba72bf5b68ff760d0f9c45"
S="${WORKDIR}/git"

inherit cmake

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

PACKAGE = "gpstk"

FILES_${PN} += " ${bindir}/* /usr/share/cmake/*"


SUMMARY = "ANTLR runtime for Python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=6e514123aedb5d9fb133d1bc6c598d46"

SRC_URI[sha256sum] = "061a49bc72ae05a35d9b61c0ba0ac36c0397708819f02fbfb20a80e47d287a1b"

PYPI_PACKAGE = "antlr4-python3-runtime"

inherit pypi setuptools3

BBCLASSEXTEND = "nativesdk native"

Revert "python3-antlr4-runtime: Inherit setuptools3 instead of python_setuptools_build_meta"

SUMMARY = "ANTLR runtime for Python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=6e514123aedb5d9fb133d1bc6c598d46"

SRC_URI[sha256sum] = "061a49bc72ae05a35d9b61c0ba0ac36c0397708819f02fbfb20a80e47d287a1b"

PYPI_PACKAGE = "antlr4-python3-runtime"

inherit pypi python_setuptools_build_meta

BBCLASSEXTEND = "nativesdk native"


SECTION = "console/network"

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

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

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

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

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

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

Fix priority on ssmtp sendmail symlink

SECTION = "console/network"

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

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

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

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

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

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


# This recipe builds the Linux kernel from the GIT tree for Freescale PowerPC
# This tree is not upstream and should be used for bleeding-edge testing only.

require linux.inc

FILESPATHPKG =. "linux-powerpc-fsl-git/${MACHINE}:"

SRCREV = "1406de8e11eb043681297adf86d6892ff8efc27a"

PV = "2.6.30"
PR = "r4"

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git;protocol=git \
	   file://defconfig"

SRC_URI_append_mpc8315e-rdb = " file://mpc8315erdb-add-msi-to-dts.patch;patch=1"

COMPATIBLE_MACHINE = "mpc8315e-rdb"

S = "${WORKDIR}/git"

Update GIT revision for Freescale Calamari board kernel.

# This recipe builds the Linux kernel from the GIT tree for Freescale PowerPC
# This tree is not upstream and should be used for bleeding-edge testing only.

# http://git.kernel.org/?p=linux/kernel/git/galak/powerpc.git;a=summary

require linux.inc

FILESPATHPKG =. "linux-powerpc-fsl-git/${MACHINE}:"

SRCREV = "1406de8e11eb043681297adf86d6892ff8efc27a"
PV = "2.6.30"

SRCREV_calamari = "7c0a57d5c47bcfc492b3139e77400f888a935c44"

PR = "r4"

SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git;protocol=git \
	   file://defconfig"

SRC_URI_append_mpc8315e-rdb = " file://mpc8315erdb-add-msi-to-dts.patch;patch=1"

COMPATIBLE_MACHINE = "(mpc8315e-rdb|calamari)"

S = "${WORKDIR}/git"


DESCRIPTION = "The calibrator and other useful utilities for TI wireless solution based on wl12xx driver"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d"

DEPENDS = "libnl"
RDEPENDS_${PN} = "linux-firmware-wl12xx linux-firmware-wl18xx"

PV = "R8.6+git${SRCPV}"

#Tag: R8.6
SRCREV = "cf8965aad73764022669647fa33852558a657930"
SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git \
"

S = "${WORKDIR}/git"

export CROSS_COMPILE = "${TARGET_PREFIX}"

EXTRA_OEMAKE = 'CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32 " \
		LDFLAGS="${LDFLAGS} -L${STAGING_LIBDIR}" \
		CC="${CC}" \
		NLVER=3'

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

Revert "meta-nilrt: remove PR from recipes"

DESCRIPTION = "The calibrator and other useful utilities for TI wireless solution based on wl12xx driver"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d"

DEPENDS = "libnl"
RDEPENDS_${PN} = "linux-firmware-wl12xx linux-firmware-wl18xx"

PV = "R8.6+git${SRCPV}"

PR = "r5"

#Tag: R8.6
SRCREV = "cf8965aad73764022669647fa33852558a657930"
SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git \
"

S = "${WORKDIR}/git"

export CROSS_COMPILE = "${TARGET_PREFIX}"

EXTRA_OEMAKE = 'CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32 " \
		LDFLAGS="${LDFLAGS} -L${STAGING_LIBDIR}" \
		CC="${CC}" \
		NLVER=3'

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


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

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

XORG_PN = "libXv"

Update LICENSE field version to MIT-style

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

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

XORG_PN = "libXv"


LICENSE = "GPL"
inherit autotools gpe

DESCRIPTION = "GPE time tracker"
GPE_TARBALL_SUFFIX = "bz2"
MAINTAINER = "Florian Boor <florian.boor@kernelconcepts.de>"
DEPENDS = "libgpewidget gtk+ sqlite"
SECTION = "gpe"
RDEPENDS = "gpe-icons"

Add missing dependency for latest release.

LICENSE = "GPL"
inherit autotools gpe

DESCRIPTION = "GPE time tracker"
GPE_TARBALL_SUFFIX = "bz2"
MAINTAINER = "Florian Boor <florian.boor@kernelconcepts.de>"
DEPENDS = "libgpewidget gtk+ sqlite libtododb"
SECTION = "gpe"
RDEPENDS = "gpe-icons"
PR = "r1"


SUMMARY = "Enable NumLock in X11 sessions"
HOMEPAGE = "http://home.kde.org/~seli/numlockx/"
SECTION = "x11/apps"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dcb1cc75e21540a4a66b54e38d95b047"
DEPENDS = "virtual/libx11 libxtst"

SRC_URI = "http://home.kde.org/~seli/numlockx/numlockx-${PV}.tar.gz"

SRC_URI[md5sum] = "be9109370447eae23f6f3f8527bb1a67"
SRC_URI[sha256sum] = "e468eb9121c94c9089dc6a287eeb347e900ce04a14be37da29d7696cbce772e4"

inherit autotools

EXTRA_OECONF = "--x-includes=${STAGING_INCDIR} \
                --x-libraries=${STAGING_LIBDIR}"

do_configure_prepend() {
    # remove this from acinclude.m4 or build fails
    sed -i '/_AC_PATH_X_XMKMF/d' ${S}/acinclude.m4
}

Update SRC_URI to somewhere fetchable

SUMMARY = "Enable NumLock in X11 sessions"
HOMEPAGE = "http://home.kde.org/~seli/numlockx/"
SECTION = "x11/apps"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dcb1cc75e21540a4a66b54e38d95b047"
DEPENDS = "virtual/libx11 libxtst"

SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/numlockx/numlockx-${PV}.tar.gz/be9109370447eae23f6f3f8527bb1a67/numlockx-${PV}.tar.gz"

SRC_URI[md5sum] = "be9109370447eae23f6f3f8527bb1a67"
SRC_URI[sha256sum] = "e468eb9121c94c9089dc6a287eeb347e900ce04a14be37da29d7696cbce772e4"

inherit autotools

EXTRA_OECONF = "--x-includes=${STAGING_INCDIR} \
                --x-libraries=${STAGING_LIBDIR}"

do_configure_prepend() {
    # remove this from acinclude.m4 or build fails
    sed -i '/_AC_PATH_X_XMKMF/d' ${S}/acinclude.m4
}


DESCRIPTION = "Linux Kernel for Marvell Kirkwood based devices"
SECTION = "kernel"
LICENSE = "GPL"

COMPATIBLE_MACHINE = "openrd-base"

# SheevaPlug still needs testing
#COMPATIBLE_MACHINE = "(openrd-base|sheevaplug)"

require linux.inc

# Change MACHINE_KERNEL_PR in conf/machine/include/kirkwood.inc
PV = "2.6.31"

# last commit at the time of release of upstream v2.6.31
SRCREV = "8cb424312d88810bb62edbeef42a510725ceb482"

SRC_URI = "git://git.marvell.com/orion.git;protocol=git \
           file://defconfig"

SRC_URI_append_openrd-base = " file://openrd-base-enable-pcie.patch;patch=1"

# update machine types list for ARM architecture, only for machines that need it
do_arm_mach_types() {
  if test ${MACHINE} == openrd-base; then
    curl -o mach-types "http://www.arm.linux.org.uk/developer/machines/download.php" && \
    cp mach-types arch/arm/tools/mach-types
  fi
}

addtask arm_mach_types after do_patch before do_configure

S = "${WORKDIR}/git"

KERNEL_IMAGETYPE ?= "uImage"

Add patch that re-enables interrupts from idle.

DESCRIPTION = "Linux Kernel for Marvell Kirkwood based devices"
SECTION = "kernel"
LICENSE = "GPL"

COMPATIBLE_MACHINE = "openrd-base"

# SheevaPlug still needs testing
#COMPATIBLE_MACHINE = "(openrd-base|sheevaplug)"

require linux.inc

# Change MACHINE_KERNEL_PR in conf/machine/include/kirkwood.inc
PV = "2.6.31"

# last commit at the time of release of upstream v2.6.31
SRCREV = "8cb424312d88810bb62edbeef42a510725ceb482"

SRC_URI = "git://git.marvell.com/orion.git;protocol=git \
           file://defconfig"

SRC_URI_append_openrd-base = " file://openrd-base-enable-pcie.patch;patch=1 \
                               file://cpuidle-reenable-interrupts.patch;patch=1"

# update machine types list for ARM architecture, only for machines that need it
do_arm_mach_types() {
  if test ${MACHINE} == openrd-base; then
    curl -o mach-types "http://www.arm.linux.org.uk/developer/machines/download.php" && \
    cp mach-types arch/arm/tools/mach-types
  fi
}

addtask arm_mach_types after do_patch before do_configure

S = "${WORKDIR}/git"

KERNEL_IMAGETYPE ?= "uImage"


#IMAGE_INSTALL = "mingetty util-linux-agetty strace s6-initscript s6-networking s6-portable-utils s6-linux-utils s6-initscript anopa"
IMAGE_INSTALL = "mingetty util-linux-agetty strace s6-networking s6-portable-utils s6-linux-utils anopa-baselayout anopa coreutils gdb gnupg bash busybox"
IMAGE_LINGUAS = " "

inherit core-image

Convert install list to be by-line for easier editing and diffing

IMAGE_INSTALL = "\
    anopa \
    anopa-baselayout \
    bash \
    busybox \
    coreutils \
    gdb \
    gnupg \
    mingetty \
    s6-linux-utils \
    s6-networking \
    s6-portable-utils \
    strace \
    util-linux-agetty \
    "
IMAGE_LINGUAS = " "

inherit core-image


DESCRIPTION = "GStreamer elements to use the Video Processing Engine (VPE) found on some TI devices"

LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

require gstreamer1.0-plugins-ti.inc

PR = "${INC_PR}.14"
SRCREV = "6ec1a9c9fc17e0cae781aed067a2a6f2c1f92d68"

SRC_URI = "git://git.ti.com/glsdk/gst-plugin-vpe.git;protocol=git \
           file://ti-video.conf \
"

do_install_append() {
    install -d ${D}/etc/modprobe.d
    install -m 644 ${WORKDIR}/ti-video.conf ${D}/etc/modprobe.d
}

Update SRC_REV and bump PR

DESCRIPTION = "GStreamer elements to use the Video Processing Engine (VPE) found on some TI devices"

LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"

require gstreamer1.0-plugins-ti.inc

PR = "${INC_PR}.15"
SRCREV = "3c44b9f4769d8a2b1e3b3441d789a62047c7f940"

SRC_URI = "git://git.ti.com/glsdk/gst-plugin-vpe.git;protocol=git \
           file://ti-video.conf \
"

do_install_append() {
    install -d ${D}/etc/modprobe.d
    install -m 644 ${WORKDIR}/ti-video.conf ${D}/etc/modprobe.d
}


SUMMARY = "config.txt file for the Raspberry Pi."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

COMPATIBLE_MACHINE = "raspberrypi"

SRC_URI = "file://config.txt"

S = "${WORKDIR}/git"

PR = "r5"

INHIBIT_DEFAULT_DEPS = "1"

inherit deploy siteinfo nopackages

do_deploy() {
    install -d ${DEPLOYDIR}/bcm2835-bootfiles
    cp ${WORKDIR}/config.txt ${DEPLOYDIR}/bcm2835-bootfiles/

    conf_file='${DEPLOYDIR}/bcm2835-bootfiles/config.txt'

    if [ "${SITEINFO_BITS}" = "64" ]; then
        echo '# Force 64 bit - see: https://github.com/raspberrypi/firmware/issues/1193' >> "$conf_file"
        echo 'arm_64bit=1' >> "$conf_file"
        echo >> "$conf_file"
    fi

    cat >> "$conf_file" <<EOF
[pi4]
max_framebuffers=2
dtoverlay=vc4-fkms-v3d,noaudio=on
#dtoverlay=vc4-kms-v3d-pi4,noaudio=on

[all]
dtoverlay=vc4-kms-v3d,noaudio=on
EOF
}

addtask deploy before do_package after do_install
do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"

PACKAGE_ARCH = "${MACHINE_ARCH}"

Remove arm_64bit=1 - it is not necessary with modern firmwares

SUMMARY = "config.txt file for the Raspberry Pi."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

COMPATIBLE_MACHINE = "raspberrypi"

SRC_URI = "file://config.txt"

S = "${WORKDIR}/git"

PR = "r5"

INHIBIT_DEFAULT_DEPS = "1"

inherit deploy nopackages

do_deploy() {
    install -d ${DEPLOYDIR}/bcm2835-bootfiles
    cp ${WORKDIR}/config.txt ${DEPLOYDIR}/bcm2835-bootfiles/

    conf_file='${DEPLOYDIR}/bcm2835-bootfiles/config.txt'

    cat >> "$conf_file" <<EOF
[pi4]
max_framebuffers=2
dtoverlay=vc4-fkms-v3d,noaudio=on
#dtoverlay=vc4-kms-v3d-pi4,noaudio=on

[all]
dtoverlay=vc4-kms-v3d,noaudio=on
EOF
}

addtask deploy before do_package after do_install
do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"

PACKAGE_ARCH = "${MACHINE_ARCH}"


DESCRIPTION = "Power management demo descriptions for Matrix v2"
HOMEPAGE = "https://gitorious.org/matrix-gui-v2/matrix-gui-v2-apps"
LICENSE = "CC-BY-SA"

require matrix-gui-apps-git.inc

PR = "${INC_PR}.0"

inherit allarch

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

# Make sure power submenu and app images has been installed
RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-power"

FILES_${PN} += "${MATRIX_BASE_DIR}/*"

Update pm demos to the latest version. Add dependency.

DESCRIPTION = "Power management demo descriptions for Matrix v2"
HOMEPAGE = "https://gitorious.org/matrix-gui-v2/matrix-gui-v2-apps"
LICENSE = "CC-BY-SA"

require matrix-gui-apps-git.inc

PR = "${INC_PR}.1"

inherit allarch

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

# Make sure power submenu and app images has been installed
RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-power matrix-gui-generic-pm"

# Break out the individual files into separate packages.  That way only the
# PM features supported for each device can be installed.  Prepend the list
# so that we can get the files in ${bindir} first.
PACKAGES =+ "${PN}-count ${PN}-dump-reg ${PN}-snapshot1 ${PN}-snapshot2 ${PN}-suspend"

# Split the matrix files by PM app
FILES_${PN}-count += "${MATRIX_APP_DIR}/pm_count/*"
FILES_${PN}-dump-reg += "${MATRIX_APP_DIR}/pm_dump_reg/*"
FILES_${PN}-snapshot1 += "${MATRIX_APP_DIR}/pm_snapshot_1/*"
FILES_${PN}-snapshot2 += "${MATRIX_APP_DIR}/pm_snapshot_2/*"
FILES_${PN}-suspend += "${MATRIX_APP_DIR}/pm_suspend/*"

# Split the ${bindir} files by PM app
FILES_${PN}-count += "${bindir}/pm_count.sh"
FILES_${PN}-dump-reg += "${bindir}/pm_dump_reg.sh"
FILES_${PN}-snapshot1 += "${bindir}/pm_snapshot_1.sh"
FILES_${PN}-snapshot2 += "${bindir}/pm_snapshot_2.sh"
FILES_${PN}-suspend += "${bindir}/pm_suspend.sh"


DESCRIPTION = "PackageKit package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)"
RDEPENDS = "opkg"
PV = "0.1+git${SRCREV}"
PR = "r8"

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

SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"

inherit autotools pkgconfig

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

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

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

Package the debug symbols of the backends as well

DESCRIPTION = "PackageKit package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)"
RDEPENDS = "opkg"
PV = "0.1+git${SRCREV}"
PR = "r8"

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

SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"

inherit autotools pkgconfig

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

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

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