doc_id
stringlengths 36
36
| metadata
dict | input
stringlengths 28
4.3k
| output
stringlengths 11
5.45k
|
---|---|---|---|
c37d4b99-5c32-4ec0-9f8c-dce74f0c75a9 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "UpdateHub - System Inquiry"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2"
SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https"
SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e"
S = "${WORKDIR}/git"
PV = "0.0+${SRCPV}"
inherit allarch
do_install() {
install -Dm755 product-uid ${D}${datadir}/updatehub/product-uid
install -Dm755 version ${D}${datadir}/updatehub/version
install -Dm755 hardware ${D}${datadir}/updatehub/hardware
}
FILES_${PN} += "${datadir}/updatehub"
```
Add os-release and updatehub-machine-info to RDEPENDS | ```bitbake
SUMMARY = "UpdateHub - System Inquiry"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=838c366f69b72c5df05c96dff79b35f2"
SRC_URI = "git://github.com/UpdateHub/system-inquiry.git;protocol=https"
SRCREV = "399c52ed503e700fdb266c049520a15312f84b3e"
S = "${WORKDIR}/git"
PV = "0.0+${SRCPV}"
inherit allarch
do_install() {
install -Dm755 product-uid ${D}${datadir}/updatehub/product-uid
install -Dm755 version ${D}${datadir}/updatehub/version
install -Dm755 hardware ${D}${datadir}/updatehub/hardware
}
FILES_${PN} += "${datadir}/updatehub"
RDEPENDS_${PN} += " \
os-release \
updatehub-machine-info \
"
``` |
03177c2f-ed83-4d19-833f-a04ff3106826 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Library for reading mod-like audio files."
HOMEPAGE = "http://modplug-xmms.sf.net"
SECTION = "libs"
LICENSE = "GPL"
PR = "r1"
SRC_URI = "${SOURCEFORGE_MIRROR}/modplug-xmms/libmodplug-${PV}.tar.gz"
inherit autotools pkgconfig
# NOTE: autotools_stage_all does nothing here, we need to do it manually
do_install_append() {
install -d ${D}${includedir}/libmodplug
install -m 0644 ${S}/src/modplug.h ${D}${includedir}/libmodplug
install -m 0644 ${S}/src/modplug.h ${D}${includedir}/
}
SRC_URI[md5sum] = "d2d9ccd8da22412999caed076140f786"
SRC_URI[sha256sum] = "3cfdebb60833a082e2f2b8faa3892bc9201d05c64051503e8007d8c98ae9e4c2"
```
Update LICENSE field version to PD | ```bitbake
DESCRIPTION = "Library for reading mod-like audio files."
HOMEPAGE = "http://modplug-xmms.sf.net"
SECTION = "libs"
LICENSE = "PD"
PR = "r2"
SRC_URI = "${SOURCEFORGE_MIRROR}/modplug-xmms/libmodplug-${PV}.tar.gz"
inherit autotools pkgconfig
# NOTE: autotools_stage_all does nothing here, we need to do it manually
do_install_append() {
install -d ${D}${includedir}/libmodplug
install -m 0644 ${S}/src/modplug.h ${D}${includedir}/libmodplug
install -m 0644 ${S}/src/modplug.h ${D}${includedir}/
}
SRC_URI[md5sum] = "d2d9ccd8da22412999caed076140f786"
SRC_URI[sha256sum] = "3cfdebb60833a082e2f2b8faa3892bc9201d05c64051503e8007d8c98ae9e4c2"
``` |
6593693e-fa91-4fec-b673-cad380d815a2 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Raspberry Pi U-Boot environment script"
SRC_URI = " \
file://${MACHINE}-boot.txt \
file://LICENSE \
"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=956139f0411412ea77671fedb9915d38"
S = "${WORKDIR}"
inherit deploy kernel-uimage
DEPENDS = "u-boot-mkimage-native"
RDEPENDS_${PN} = "rpi-config"
COMPATIBLE_MACHINE = "raspberrypi(1|2)"
PR = "r1"
do_uboot_mkimage() {
uboot-mkimage -A arm -O linux -T script -C none -d ${S}/${MACHINE}-boot.txt boot.scr
}
do_deploy() {
install -m 0644 boot.scr ${DEPLOYDIR}/boot.scr
}
addtask uboot_mkimage before do_install after do_compile
addtask deploy before do_build after do_compile
```
Add script name to u-boot env. | ```bitbake
DESCRIPTION = "Raspberry Pi U-Boot environment script"
SRC_URI = " \
file://${MACHINE}-boot.txt \
file://LICENSE \
"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=956139f0411412ea77671fedb9915d38"
S = "${WORKDIR}"
inherit deploy kernel-uimage
DEPENDS = "u-boot-mkimage-native"
RDEPENDS_${PN} = "rpi-config"
COMPATIBLE_MACHINE = "raspberrypi(1|2)"
PR = "r1"
do_uboot_mkimage() {
uboot-mkimage -T script -C none -n boot.scr -d ${S}/${MACHINE}-boot.txt boot.scr
}
do_deploy() {
install -m 0644 boot.scr ${DEPLOYDIR}/boot.scr
}
addtask uboot_mkimage before do_install after do_compile
addtask deploy before do_build after do_compile
``` |
0b3de09f-c86b-4a02-bd83-d65d429913ae | {
"language": "BitBake"
} | ```bitbake
# This is a dummy recipe, only meant to populate a sysroot that the tests can
# use, and not meant for real building.
DEPENDS = "mender-artifact-native"
inherit native
LICENSE = "Apache-2.0"
do_compile() {
bbfatal 'This is not meant to be built, should be invoked with "-c prepare_recipe_sysroot" only.'
}
```
Make sure fdisk and debugfs are available during our tests. | ```bitbake
# This is a dummy recipe, only meant to populate a sysroot that the tests can
# use, and not meant for real building.
DEPENDS = "mender-artifact-native e2fsprogs-native util-linux-native"
inherit native
LICENSE = "Apache-2.0"
do_compile() {
bbfatal 'This is not meant to be built, should be invoked with "-c prepare_recipe_sysroot" only.'
}
``` |
6c7a1ffb-695d-4b22-9462-0c7b91219868 | {
"language": "BitBake"
} | ```bitbake
# (c) Copyright 2012 Hewlett-Packard Development Company, L.P.
DESCRIPTION = "webOS Universal Search Manager"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
SECTION = "None"
PROVIDES = "luna-universalsearchmanager"
inherit webos_component
inherit webos_public_repo
inherit webos_submissions
inherit webos_cmake
inherit webos_system_bus
WEBOS_GIT_TAG = "${WEBOS_SUBMISSION}"
SRC_URI = "${OPENWEBOS_GIT_REPO}/${PN};tag=${WEBOS_GIT_TAG};protocol=git"
S = "${WORKDIR}/git"
```
Fix recipe dependencies for searchmgr | ```bitbake
# (c) Copyright 2012 Hewlett-Packard Development Company, L.P.
DESCRIPTION = "webOS Universal Search Manager"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
SECTION = "None"
DEPENDS = "libxml2"
PROVIDES = "luna-universalsearchmanager"
inherit webos_component
inherit webos_public_repo
inherit webos_submissions
inherit webos_cmake
inherit webos_system_bus
WEBOS_GIT_TAG = "${WEBOS_SUBMISSION}"
SRC_URI = "${OPENWEBOS_GIT_REPO}/${PN};tag=${WEBOS_GIT_TAG};protocol=git"
S = "${WORKDIR}/git"
``` |
9e390181-bf64-4f92-b0b5-099740740987 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Libraries and test programs for decoding mpeg-2 and mpeg-1 video streams"
HOMEPAGE = "http://libmpeg2.sourceforge.net/"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "virtual/libsdl"
PR = "r5"
SRC_URI = "http://libmpeg2.sourceforge.net/files/mpeg2dec-${PV}.tar.gz"
S = "${WORKDIR}/mpeg2dec-0.4.0"
inherit autotools pkgconfig
EXTRA_OECONF = "--enable-shared"
PACKAGES += "libmpeg2 libmpeg2-dev libmpeg2convert libmpeg2convert-dev"
FILES_${PN} = "${bindir}/*"
FILES_libmpeg2 = "${libdir}/libmpeg2.so.*"
FILES_libmpeg2convert = "${libdir}/libmpeg2convert.so.*"
SRC_URI[md5sum] = "52d10ea80595ec83d8557ba7ac6dc8e6"
SRC_URI[sha256sum] = "9416376952812e5b479745d67a2bf874fbcad10137517314ce7de37abb756df8"
```
Update LICENSE field version to GPLv2 | ```bitbake
DESCRIPTION = "Libraries and test programs for decoding mpeg-2 and mpeg-1 video streams"
HOMEPAGE = "http://libmpeg2.sourceforge.net/"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2+"
DEPENDS = "virtual/libsdl"
PR = "r6"
SRC_URI = "http://libmpeg2.sourceforge.net/files/mpeg2dec-${PV}.tar.gz"
S = "${WORKDIR}/mpeg2dec-0.4.0"
inherit autotools pkgconfig
EXTRA_OECONF = "--enable-shared"
PACKAGES += "libmpeg2 libmpeg2-dev libmpeg2convert libmpeg2convert-dev"
FILES_${PN} = "${bindir}/*"
FILES_libmpeg2 = "${libdir}/libmpeg2.so.*"
FILES_libmpeg2convert = "${libdir}/libmpeg2convert.so.*"
SRC_URI[md5sum] = "52d10ea80595ec83d8557ba7ac6dc8e6"
SRC_URI[sha256sum] = "9416376952812e5b479745d67a2bf874fbcad10137517314ce7de37abb756df8"
``` |
6aff053a-1ef4-470c-8e6e-df25c5823ce6 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Netfilter packet queue access library"
DESCRIPTION = "Userspace library providing a programming interface (API) to access the Linux kernel netfilter packet queue"
HOMEPAGE = "http://www.netfilter.org/projects/libnetfilter_queue/index.html"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
DEPENDS = "libnfnetlink"
SRC_URI = "http://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-${PV}.tar.bz2;name=tar"
SRC_URI[tar.md5sum] = "df09befac35cb215865b39a36c96a3fa"
SRC_URI[tar.sha256sum] = "838490eb5dbe358f9669823704982f5313a8d397111562373200203f93ac1a32"
S = "${WORKDIR}/libnetfilter_queue-${PV}"
inherit autotools pkgconfig
```
Add missing libmnl to DEPENDS | ```bitbake
SUMMARY = "Netfilter packet queue access library"
DESCRIPTION = "Userspace library providing a programming interface (API) to access the Linux kernel netfilter packet queue"
HOMEPAGE = "http://www.netfilter.org/projects/libnetfilter_queue/index.html"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
DEPENDS = "libnfnetlink libmnl"
SRC_URI = "http://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-${PV}.tar.bz2;name=tar"
SRC_URI[tar.md5sum] = "df09befac35cb215865b39a36c96a3fa"
SRC_URI[tar.sha256sum] = "838490eb5dbe358f9669823704982f5313a8d397111562373200203f93ac1a32"
S = "${WORKDIR}/libnetfilter_queue-${PV}"
inherit autotools pkgconfig
``` |
d954071b-d842-4f1d-a18b-a221ad8d8bdf | {
"language": "BitBake"
} | ```bitbake
require wireguard.inc
SRCREV = "122f06bfd8fc7b06a0899fa9adc4ce8e06900d98"
SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat"
inherit module kernel-module-split
DEPENDS = "virtual/kernel libmnl"
# This module requires Linux 3.10 higher and several networking related
# configuration options. For exact kernel requirements visit:
# https://www.wireguard.io/install/#kernel-requirements
EXTRA_OEMAKE_append = " \
KERNELDIR=${STAGING_KERNEL_DIR} \
"
MAKE_TARGETS = "module"
RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit"
MODULE_NAME = "wireguard"
module_do_install() {
install -d ${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}
install -m 0644 ${MODULE_NAME}.ko \
${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/kernel/${MODULE_NAME}/${MODULE_NAME}.ko
}
# WireGuard has been merged into Linux kernel >= 5.6 and therefore this compatibility module is no longer required.
# OE-core post dunfell has moved to use kernel 5.8 which now means we cant build this module in world builds
# for reference machines e.g. qemu
EXCLUDE_FROM_WORLD = "1"
```
Stop overriding modules_install in the recipe | ```bitbake
require wireguard.inc
SRCREV = "122f06bfd8fc7b06a0899fa9adc4ce8e06900d98"
SRC_URI = "git://git.zx2c4.com/wireguard-linux-compat"
inherit module kernel-module-split
DEPENDS = "virtual/kernel libmnl"
# This module requires Linux 3.10 higher and several networking related
# configuration options. For exact kernel requirements visit:
# https://www.wireguard.io/install/#kernel-requirements
EXTRA_OEMAKE_append = " \
KERNELDIR=${STAGING_KERNEL_DIR} \
"
MAKE_TARGETS = "module"
MODULES_INSTALL_TARGET = "module-install"
RRECOMMENDS_${PN} = "kernel-module-xt-hashlimit"
MODULE_NAME = "wireguard"
# WireGuard has been merged into Linux kernel >= 5.6 and therefore this compatibility module is no longer required.
# OE-core post dunfell has moved to use kernel 5.8 which now means we cant build this module in world builds
# for reference machines e.g. qemu
EXCLUDE_FROM_WORLD = "1"
``` |
d83c6943-7b66-4686-8d74-b8cda0762d8f | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Linux CAN network development utilities"
DESCRIPTION = "Linux CAN network development"
LICENSE = "GPLv2 & BSD-3-Clause"
LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=43;md5=390a2c9a3c5e3595a069ac1436553ee7"
DEPENDS = "libsocketcan"
SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=git;branch=master"
SRCREV = "67a2bdcd336e6becfa5784742e18c88dbeddc973"
PV = "0.0+gitr${SRCPV}"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
```
Update to tip of master | ```bitbake
SUMMARY = "Linux CAN network development utilities"
DESCRIPTION = "Linux CAN network development"
LICENSE = "GPLv2 & BSD-3-Clause"
LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=43;md5=390a2c9a3c5e3595a069ac1436553ee7"
DEPENDS = "libsocketcan"
SRC_URI = "git://github.com/linux-can/${BPN}.git;protocol=git;branch=master"
SRCREV = "4c8fb05cb4d6ddcd67299008db54af423f86fd05"
PV = "0.0+gitr${SRCPV}"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
``` |
8158518b-5a03-4063-9d98-8a93ae8a46fd | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "ARM Trusted Firmware Poplar"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://license.rst;md5=33065335ea03d977d0569f270b39603e"
DEPENDS += "u-boot-poplar"
SRCREV = "812fae9e5ee80ddad6bae6bf1c403c9ffaaae984"
SRC_URI = "git://github.com/linaro/poplar-arm-trusted-firmware.git;name=atf;branch=latest"
S = "${WORKDIR}/git"
require atf.inc
COMPATIBLE_MACHINE = "poplar"
# ATF requires u-boot.bin file. Ensure it's deployed before we compile.
do_compile[depends] += "u-boot-poplar:do_deploy"
do_compile() {
oe_runmake \
CROSS_COMPILE=${TARGET_PREFIX} \
all \
fip \
PLAT=${COMPATIBLE_MACHINE} \
SPD=none \
BL33=${DEPLOY_DIR_IMAGE}/u-boot.bin
}
```
Update SRCREV to latest SHA and install shared header. | ```bitbake
DESCRIPTION = "ARM Trusted Firmware Poplar"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://license.rst;md5=33065335ea03d977d0569f270b39603e"
DEPENDS += "u-boot-poplar"
SRCREV = "812fae9e5ee80ddad6bae6bf1c403c9ffaaae984"
SRC_URI = "git://github.com/linaro/poplar-arm-trusted-firmware.git;name=atf;branch=latest"
S = "${WORKDIR}/git"
require atf.inc
COMPATIBLE_MACHINE = "poplar"
# ATF requires u-boot.bin file. Ensure it's deployed before we compile.
do_compile[depends] += "u-boot-poplar:do_deploy"
do_compile() {
oe_runmake \
CROSS_COMPILE=${TARGET_PREFIX} \
all \
fip \
PLAT=${COMPATIBLE_MACHINE} \
SPD=none \
BL33=${DEPLOY_DIR_IMAGE}/u-boot.bin
}
do_install_append() {
install -Dm644 ${WORKDIR}/git/plat/hisilicon/poplar/include/poplar_layout.h ${D}${includedir}/poplar_layout.h
}
``` |
3ac5c6d5-e703-4cb5-b891-b2fa56c5e4f8 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Init script used for booting older NILRT runmode initramfs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "\
file://init-runmode-ramfs.sh \
"
RDEPENDS_${PN} += "bash"
do_install() {
install -m 0755 ${WORKDIR}/init-runmode-ramfs.sh ${D}/init
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
FILES_${PN} += "/init-ramfs.common /init"
```
Remove unneeded init-ramfs.common from FILES | ```bitbake
SUMMARY = "Init script used for booting older NILRT runmode initramfs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "\
file://init-runmode-ramfs.sh \
"
RDEPENDS_${PN} += "bash"
do_install() {
install -m 0755 ${WORKDIR}/init-runmode-ramfs.sh ${D}/init
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
FILES_${PN} += "/init"
``` |
2c99300a-568f-46d6-a146-86079c61046a | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "GENIVI Node State Manager"
DESCRIPTION = "The GENIVI Node State Manager \
- is the central repository for information \
- regarding the states/sessions \
- inside the node. \
"
HOMEPAGE = "https://www.genivi.org/"
SECTION = "base"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=815ca599c9df247a0c7f619bab123dad"
SRC_URI = "git://git.projects.genivi.org/lifecycle/node-state-manager.git;protocol=git;tag=4e48024924d9441cc4431b26bf6e1c9d1f3697e8"
PR = "r2"
DEPENDS = "glib-2.0 dlt-daemon"
S = "${WORKDIR}/git"
inherit autotools systemd
SYSTEMD_SERVICE = "nodestatemanager-daemon.service"
SYSTEMD_AUTO_ENABLE = "disable"
FILES_${PN} += "\
${datadir}/dbus-1/system-services/org.genivi.NodeStateManager.LifeCycleControl.service \
${systemd_unitdir}/system/nodestatemanager-daemon.service \
"
```
Add --with-systemdsystemunitdir when DISTRO_FEATURES contains the systemd feature. | ```bitbake
SUMMARY = "GENIVI Node State Manager"
DESCRIPTION = "The GENIVI Node State Manager \
- is the central repository for information \
- regarding the states/sessions \
- inside the node. \
"
HOMEPAGE = "https://www.genivi.org/"
SECTION = "base"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=815ca599c9df247a0c7f619bab123dad"
SRC_URI = "git://git.projects.genivi.org/lifecycle/node-state-manager.git;protocol=git;tag=4e48024924d9441cc4431b26bf6e1c9d1f3697e8"
PR = "r3"
EXTRA_OECONF = "${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdsystemunitdir=${systemd_unitdir}/system/', '', d)}"
DEPENDS = "glib-2.0 dlt-daemon"
S = "${WORKDIR}/git"
inherit autotools systemd
SYSTEMD_SERVICE = "nodestatemanager-daemon.service"
SYSTEMD_AUTO_ENABLE = "disable"
FILES_${PN} += "\
${datadir}/dbus-1/system-services/org.genivi.NodeStateManager.LifeCycleControl.service \
${systemd_unitdir}/system/nodestatemanager-daemon.service \
"
``` |
30bd16fe-95df-46fd-a3ca-18af90fe6436 | {
"language": "BitBake"
} | ```bitbake
SECTION = "unknown"
LICENSE = "GPL"
inherit autotools gtk-icon-cache
# Override RDEPENDS_${PN} = hicolor-icon-theme from gtk-icon-cache
RDEPENDS_${PN} = ""
RDEPENDS_${PN} = ""
PR = "r1"
SRC_URI = "http://icon-theme.freedesktop.org/releases/${P}.tar.gz"
PACKAGE_ARCH = "all"
FILES_${PN} += "${datadir}/icons"
SRC_URI[md5sum] = "5cf5527e803a554f43319ee53c771e0b"
SRC_URI[sha256sum] = "44eb1f158a9b2a92cd626541a24c44387162b3d792e4b238c84e6f3d8ed1dd9a"
```
Update LICENSE field version to GPLv2 | ```bitbake
SECTION = "unknown"
LICENSE = "GPLv2"
inherit autotools gtk-icon-cache
# Override RDEPENDS_${PN} = hicolor-icon-theme from gtk-icon-cache
RDEPENDS_${PN} = ""
RDEPENDS_${PN} = ""
PR = "r2"
SRC_URI = "http://icon-theme.freedesktop.org/releases/${P}.tar.gz"
PACKAGE_ARCH = "all"
FILES_${PN} += "${datadir}/icons"
SRC_URI[md5sum] = "5cf5527e803a554f43319ee53c771e0b"
SRC_URI[sha256sum] = "44eb1f158a9b2a92cd626541a24c44387162b3d792e4b238c84e6f3d8ed1dd9a"
``` |
7b590097-4798-4703-b569-16a038db5574 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A development image with Qt embedded and some Syntro apps"
HOMEPAGE = "http://www.jumpnowtek.com"
LICENSE = "MIT"
require console-image.bb
PR = "0"
QT_TOOLS = " \
qt4-embedded-dev\
qt4-embedded \
"
SYNTRO = " \
syntrocore \
syntrocore-dev \
syntrolcam \
syntrolcam-init \
"
IMAGE_INSTALL += " \
${QT_TOOLS} \
${SYNTRO} \
"
export IMAGE_BASENAME = "qte-image"
```
Add tslib and psplash to qte image | ```bitbake
SUMMARY = "A development image with Qt embedded and some Syntro apps"
HOMEPAGE = "http://www.jumpnowtek.com"
LICENSE = "MIT"
require console-image.bb
PR = "0"
QT_TOOLS = " \
qt4-embedded-dev\
qt4-embedded \
"
SYNTRO = " \
syntrocore \
syntrocore-dev \
syntrolcam \
syntrolcam-init \
"
TS_TOOLS = " \
tslib-calibrate \
tslib-tests \
tslib-conf \
"
IMAGE_INSTALL += " \
${QT_TOOLS} \
${SYNTRO} \
${TS_TOOLS} \
psplash \
"
export IMAGE_BASENAME = "qte-image"
``` |
13b5af0a-c6d5-45a2-88e9-1c37f380d5e4 | {
"language": "BitBake"
} | ```bitbake
require recipes-graphics/xorg-driver/xorg-driver-video.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=f8ad89d9d9a024f19d7dcc5acb044a42"
DESCRIPTION = "X.org server -- Geode GX2/LX display driver"
PR = "${INC_PR}.0"
SRC_URI[md5sum] = "a99c521db731c2f1df309057a8465e4c"
SRC_URI[sha256sum] = "28d845d727d99bfa4d4b93c5486ec01b72eb222e0910a766089db1103b1c2d92"
COMPATIBLE_HOST = "i.86.*-linux"
```
Add rdepends on EXA Xorg module | ```bitbake
require recipes-graphics/xorg-driver/xorg-driver-video.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=f8ad89d9d9a024f19d7dcc5acb044a42"
DESCRIPTION = "X.org server -- Geode GX2/LX display driver"
PR = "${INC_PR}.1"
SRC_URI[md5sum] = "a99c521db731c2f1df309057a8465e4c"
SRC_URI[sha256sum] = "28d845d727d99bfa4d4b93c5486ec01b72eb222e0910a766089db1103b1c2d92"
COMPATIBLE_HOST = "i.86.*-linux"
RDEPENDS_${PN} += "xserver-xorg-module-exa"
``` |
59b3d851-4f81-4732-bc2b-f82f39ba7165 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "PackageKit package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)"
RDEPENDS_${PN} = "opkg"
PV = "0.2.3+gitr${SRCREV}"
PR = "r9"
SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git \
file://disable-docbook2man.patch;patch=1 \
file://d1e096c3267c1c9492041382b954e9327bc8bbec.patch;patch=0"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg --enable-opkg"
do_configure_prepend() {
echo "EXTRA_DIST=" > gtk-doc.make
}
do_stage () {
autotools_stage_all
}
FILES_${PN} += "${libdir}/packagekit-backend/*.so ${datadir}/dbus-1/system-services/"
FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so "
```
Modify packagekit to make it patch successful | ```bitbake
DESCRIPTION = "PackageKit package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)"
RDEPENDS_${PN} = "opkg"
PV = "0.2.3+gitr${SRCREV}"
PR = "r10"
SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git \
file://disable-docbook2man.patch;patch=1 \
file://d1e096c3267c1c9492041382b954e9327bc8bbec.patch;patch=1"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg --enable-opkg"
do_configure_prepend() {
echo "EXTRA_DIST=" > gtk-doc.make
}
do_stage () {
autotools_stage_all
}
FILES_${PN} += "${libdir}/packagekit-backend/*.so ${datadir}/dbus-1/system-services/"
FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so "
``` |
7cd59489-2b00-485d-ade8-925025d1c4cb | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "GSM/GPRS mux tools"
LICENSE = "GPL"
SECTION = "gpe"
PRIORITY = "optional"
DEPENDS = "glibc"
PR = "r0"
inherit gpephone
SRC_URI = "${GPEPHONE_MIRROR}/GPRS/GPRS-${PV}.tar.bz2"
S = ${WORKDIR}/GPRS/connect
do_compile() {
oe_runmake PREFIX=${prefix}
}
do_install() {
install -d ${D}/${prefix}/bin
install -m755 connect ${D}/${prefix}/bin
install -m755 disconnect ${D}/${prefix}/bin
}
```
Work around broken OE install-sh. | ```bitbake
DESCRIPTION = "GSM/GPRS mux tools"
LICENSE = "GPL"
SECTION = "gpe"
PRIORITY = "optional"
DEPENDS = "glibc"
PR = "r0"
inherit gpephone
SRC_URI = "${GPEPHONE_MIRROR}/GPRS/GPRS-${PV}.tar.bz2"
S = ${WORKDIR}/GPRS/connect
do_compile() {
oe_runmake PREFIX=${prefix}
}
do_install() {
install -d ${D}/${prefix}/bin
install -m 755 connect ${D}/${prefix}/bin
install -m 755 disconnect ${D}/${prefix}/bin
}
``` |
06b50b6b-0fe6-4168-b8d2-ead2e24ee69f | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "NNginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server."
HOMEPAGE = "http://wiki.nginx.org"
SECTION = "net"
PRIORITY = "optional"
LICENSE = "BSD"
SRCNAME = "nginx"
PR = "r27"
SRC_URI = "http://nginx.org/download/nginx-${PV}.tar.gz \
file://allow-cross.patch"
S = "${WORKDIR}/${PN}-${PV}"
do_configure() {
export cross_compiling="yes"
${S}/configure --with-cc=/home/user/openembedded-rascal/tmp/sysroots/i686-linux/usr/armv5te/bin/arm-angstrom-linux-gnueabi-gcc --without-http_rewrite_module --sbin-path=${S}/usr/sbin --error-log-path=/var/log/nginx/error --conf-path=/etc/nginx/nginx.conf
}
do_install() {
make DESTDIR=${S} install
}
do_package() {
}
SRC_URI[md5sum] = "5751c920c266ea5bb5fc38af77e9c71c"
SRC_URI[sha256sum] = "3de3d6caeed56751c24ebc5cfb03475620b9eb0fa999c766a01d44dca674c001"
```
Remove hardcoded paths from nginx compile step | ```bitbake
DESCRIPTION = "Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server."
HOMEPAGE = "http://wiki.nginx.org"
SECTION = "net"
PRIORITY = "optional"
LICENSE = "BSD"
SRCNAME = "nginx"
PR = "r28"
SRC_URI = "http://nginx.org/download/nginx-${PV}.tar.gz \
file://allow-cross.patch"
S = "${WORKDIR}/${PN}-${PV}"
do_configure() {
export cross_compiling="yes"
${S}/configure --with-cc=${HOST_PREFIX}gcc --without-http_rewrite_module --sbin-path=${S}${sbindir} --error-log-path=${localstatedir}/log/nginx/error --conf-path=${sysconfdir}/nginx/nginx.conf
}
do_install() {
make DESTDIR=${S} install
}
do_package() {
}
SRC_URI[md5sum] = "5751c920c266ea5bb5fc38af77e9c71c"
SRC_URI[sha256sum] = "3de3d6caeed56751c24ebc5cfb03475620b9eb0fa999c766a01d44dca674c001"
``` |
3197688b-a136-4733-8736-a376cfaad12b | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Test applications for OMAP DRM interface"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://viddec3test.c;beginline=1;endline=16;md5=c391f44e40a29096285e3121923041df"
DEPENDS += "libav libdce libdrm libgbm omap5-sgx-ddk-um-linux wayland"
inherit autotools pkgconfig
PR = "r7"
SRCREV = "a2f483ef833ce7a6f3e0b975d9e49267960b288e"
SRC_URI = "git://git.ti.com/glsdk/omapdrmtest.git;protocol=git"
S = "${WORKDIR}/git"
TARGET_CC_ARCH += "${LDFLAGS}"
```
Update SRCREV with bug fixes | ```bitbake
DESCRIPTION = "Test applications for OMAP DRM interface"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://viddec3test.c;beginline=1;endline=16;md5=c391f44e40a29096285e3121923041df"
DEPENDS += "libav libdce libdrm libgbm omap5-sgx-ddk-um-linux wayland"
inherit autotools pkgconfig
PR = "r9"
SRCREV = "152713c45d7972ed08f506255c43ce7ff634a9f5"
SRC_URI = "git://git.ti.com/glsdk/omapdrmtest.git;protocol=git"
S = "${WORKDIR}/git"
TARGET_CC_ARCH += "${LDFLAGS}"
``` |
6570f323-4819-447a-a9a3-1279e6c30934 | {
"language": "BitBake"
} | ```bitbake
require recipes-extended/gperf/gperf_3.0.4.bb
inherit debian-package
DEBIAN_SECTION = "devel"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
#
# Debian Native Test
#
inherit debian-test
SRC_URI_DEBIAN_TEST = "\
file://gperf-native-test/run_native_test_gperf \
file://gperf-native-test/run_with_option-L \
file://gperf-native-test/run_with_option-N \
file://gperf-native-test/run_with_option-H \
file://gperf-native-test/run_with_option-Z \
file://gperf-native-test/command_line_options.gperf \
"
DEBIAN_NATIVE_TESTS = "run_native_test_gperf"
TEST_DIR = "${B}/native-test"
```
Update recipe for gperf package | ```bitbake
#
# base recipe: meta/recipes-extended/gperf/gperf_3.0.4.bb
# branch: daisy
#
PR = "r0"
inherit debian-package
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
inherit autotools
# autoreconf couldn't find acinclude.m4 when stepping into subdirectory. Instead of
# duplicating acinclude.m4 in every subdirectory, use absolute include path to aclocal
EXTRA_AUTORECONF += " -I ${S}"
do_configure_prepend() {
if [ ! -e ${S}/acinclude.m4 ]; then
cat ${S}/aclocal.m4 > ${S}/acinclude.m4
fi
}
BBCLASSEXTEND = "native"
#
# Debian Native Test
#
inherit debian-test
SRC_URI_DEBIAN_TEST = "\
file://gperf-native-test/run_native_test_gperf \
file://gperf-native-test/run_with_option-L \
file://gperf-native-test/run_with_option-N \
file://gperf-native-test/run_with_option-H \
file://gperf-native-test/run_with_option-Z \
file://gperf-native-test/command_line_options.gperf \
"
DEBIAN_NATIVE_TESTS = "run_native_test_gperf"
TEST_DIR = "${B}/native-test"
``` |
4a1e78c5-b6b9-4f34-8bb8-87e9cfeb79d2 | {
"language": "BitBake"
} | ```bitbake
require linux.inc
require linux-dtb.inc
DESCRIPTION = "Linux kernel for the lager board"
COMPATIBLE_MACHINE = "lager"
PR = "r7"
PV_append = "+git${SRCREV}"
SRCREV = "33b4bbf492ee0cf39ea830a38a12e3c2565c12d5"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-5.3"
S = "${WORKDIR}/git"
FILESEXTRAPATHS_prepend_lager := "${THISDIR}/${PN}:"
KERNEL_DEFCONFIG = "lager_defconfig"
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
```
Enable creating bootz image and uImage with DTB | ```bitbake
require linux.inc
require linux-dtb.inc
require linux-dtb-append.inc
DESCRIPTION = "Linux kernel for the lager board"
COMPATIBLE_MACHINE = "lager"
PR = "r8"
PV_append = "+git${SRCREV}"
SRCREV = "33b4bbf492ee0cf39ea830a38a12e3c2565c12d5"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-5.3"
S = "${WORKDIR}/git"
FILESEXTRAPATHS_prepend_lager := "${THISDIR}/${PN}:"
KERNEL_DEFCONFIG = "lager_defconfig"
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
``` |
f9adc7b4-2380-4b89-a716-d0b28ec12e90 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "PackageKit package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)"
RDEPENDS_${PN} = "opkg"
PV = "0.2.3+gitr${SRCREV}"
PR = "r13"
SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git \
file://disable-docbook2man.patch;patch=1 \
file://repository-ping.patch;patch=1 "
S = "${WORKDIR}/git"
inherit autotools pkgconfig
EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg --enable-opkg"
do_configure_prepend() {
echo "EXTRA_DIST=" > gtk-doc.make
}
do_stage () {
autotools_stage_all
}
FILES_${PN} += "${libdir}/packagekit-backend/*.so ${datadir}/dbus-1/system-services/"
FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so "
```
Add a patch to packagekit Make packagekit can remove packagekit without regarding the dependency. (So that can remove packages such as splinter depended by tasks) | ```bitbake
DESCRIPTION = "PackageKit package management abstraction"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "dbus (>= 1.1.1) dbus-glib glib-2.0 sqlite3 opkg intltool intltool-native (>= 0.37.1)"
RDEPENDS_${PN} = "opkg"
PV = "0.2.3+gitr${SRCREV}"
PR = "r13"
SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git \
file://disable-docbook2man.patch;patch=1 \
file://repository-ping.patch;patch=1 \
file://force_depends.patch;patch=1 \
"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg --enable-opkg"
do_configure_prepend() {
echo "EXTRA_DIST=" > gtk-doc.make
}
do_stage () {
autotools_stage_all
}
FILES_${PN} += "${libdir}/packagekit-backend/*.so ${datadir}/dbus-1/system-services/"
FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so "
``` |
19b0853c-1fba-4bef-bffd-1dae8dc42f3a | {
"language": "BitBake"
} | ```bitbake
require fftw.inc
SRC_URI[md5sum] = "2edab8c06b24feeb3b82bbb3ebf3e7b3"
SRC_URI[sha256sum] = "8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982"
```
Build native version as well | ```bitbake
require fftw.inc
SRC_URI[md5sum] = "2edab8c06b24feeb3b82bbb3ebf3e7b3"
SRC_URI[sha256sum] = "8f0cde90929bc05587c3368d2f15cd0530a60b8a9912a8e2979a72dbe5af0982"
BBCLASSEXTEND = "native"
``` |
609558f1-9b76-4aa6-9848-e0704680f73f | {
"language": "BitBake"
} | ```bitbake
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 | ```bitbake
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"
``` |
a9eedf8d-935c-4e68-ab2b-b1bfc3db84f6 | {
"language": "BitBake"
} | ```bitbake
#
# Copyright (C) 2016 Pelagicore AB
#
DESCRIPTION = "Image for creating a Pelux image"
inherit core-image-bistro
# Pelux components
IMAGE_INSTALL += "softwarecontainer"
```
Fix syntax mistake when inheriting core-image-bistro | ```bitbake
#
# Copyright (C) 2016 Pelagicore AB
#
DESCRIPTION = "Image for creating a Pelux image"
require recipes-core/images/core-image-bistro.bb
# Pelux components
IMAGE_INSTALL += "softwarecontainer"
``` |
352e17f9-9e3d-4bc4-80ea-a1bc10072f5e | {
"language": "BitBake"
} | ```bitbake
## Reminder: The correct spacing for a variable is FOO = "BAR" in : PR="r1"
DESCRIPTION = "BeagleBoard test scripts"
HOMEPAGE = "http://beagleboad.org/support"
PR = "r2"
SRC_URI = "git://gitorious.org/beagleboard-validation/scripts.git;protocol=git \
"
SRCREV = "473dd2ab20d866be6168c9f992c2c9e74e485c9d"
S = "${WORKDIR}/git"
do_install() {
TEST_FILES=" \
testaudio \
testcamera \
testdsp \
testedid \
testled \
testmem \
testneon \
testsvideo \
testuserbtn \
editbootscr \
edituserscr \
readgpio \
"
install -d ${D}/${bindir}
for i in ${TEST_FILES}; do
install -m 0755 ${S}/${i} ${D}/${bindir}
done
}
```
Add a script flash-fs.sh for flashing NAND | ```bitbake
## Reminder: The correct spacing for a variable is FOO = "BAR" in : PR="r1"
DESCRIPTION = "BeagleBoard test scripts"
HOMEPAGE = "http://beagleboad.org/support"
PR = "r3"
SRC_URI = "git://gitorious.org/~joelf/beagleboard-validation/validation-scripts.git;protocol=git \
"
SRCREV = "2df76857155fbd462527c2b00ee83214483f0594"
S = "${WORKDIR}/git"
inherit update-rc.d
INITSCRIPT_NAME = "flash-nand-fs.sh"
INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."
do_install() {
TEST_FILES=" \
testaudio \
testcamera \
testdsp \
testedid \
testled \
testmem \
testneon \
testsvideo \
testuserbtn \
editbootscr \
edituserscr \
readgpio \
"
install -d ${D}/${bindir}
for i in ${TEST_FILES}; do
install -m 0755 ${S}/${i} ${D}/${bindir}
done
# A script to flash NAND if the board has it, and if there is valid image to flash on the SD Card.
# We also register it as an init script so that the SD Card auto-flashes to NAND during boot.
install -d ${D}/${sysconfdir}/init.d/
install -m 0755 ${S}/flashing/flash-nand-fs.sh ${D}/${sysconfdir}/init.d/flash-nand-fs.sh
}
``` |
c9e52340-2811-4a6f-a004-e907f3b5b9f3 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A small python tool for downloading bootloader to ddr through serial port"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=219f23a516954274fab23350ce921da3"
SRCREV = "bee2ea1660f3a03df8d391fb75aa08dbc3441856"
SRC_URI = "git://github.com/96boards-hikey/burn-boot.git;protocol=https"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/hisi-idt.py ${D}${bindir}
}
RDEPENDS_${PN} += "python-pyserial"
inherit deploy
do_deploy() {
install -D -p -m 0755 ${S}/hisi-idt.py ${DEPLOYDIR}/bootloader/hisi-idt.py
}
addtask deploy before do_build after do_compile
BBCLASSEXTEND = "native"
```
Add missing python to rdeps | ```bitbake
SUMMARY = "A small python tool for downloading bootloader to ddr through serial port"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=219f23a516954274fab23350ce921da3"
SRCREV = "bee2ea1660f3a03df8d391fb75aa08dbc3441856"
SRC_URI = "git://github.com/96boards-hikey/burn-boot.git;protocol=https"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/hisi-idt.py ${D}${bindir}
}
RDEPENDS_${PN} += "python python-pyserial"
inherit deploy
do_deploy() {
install -D -p -m 0755 ${S}/hisi-idt.py ${DEPLOYDIR}/bootloader/hisi-idt.py
}
addtask deploy before do_build after do_compile
BBCLASSEXTEND = "native"
``` |
7c175128-2f7c-4feb-9a55-e26c2335e042 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Task to install additional scripts and applications into the SDK"
LICENSE = "MIT"
PR = "r3"
inherit packagegroup
PACKAGE_ARCH = "${MACHINE_ARCH}"
# Choose the kernel and u-boot recipe sources to use
U-BOOT_SRC = ""
KERNEL_SRC = ""
U-BOOT_SRC_am335x-evm = "u-boot-src"
KERNEL_SRC_am335x-evm = "linux-am335x-src"
TOOLS = "pinmux-utility"
TOOLS_am37x-evm_append = " flash-utility"
TOOLS_am3517-evm_append = " flash-utility"
RDEPENDS_${PN} = "\
${TOOLS} \
ti-tisdk-setup \
board-port-labs-src \
ti-tisdk-makefile \
${U-BOOT_SRC} \
${KERNEL_SRC} \
"
```
Use generic name for sources | ```bitbake
DESCRIPTION = "Task to install additional scripts and applications into the SDK"
LICENSE = "MIT"
PR = "r4"
inherit packagegroup
PACKAGE_ARCH = "${MACHINE_ARCH}"
# Choose the kernel and u-boot recipe sources to use
U-BOOT_SRC = "${PREFERRED_PROVIDER_virtual/bootloader}-src"
KERNEL_SRC = "${PREFERRED_PROVIDER_virtual/kernel}-src"
TOOLS = "pinmux-utility"
TOOLS_am37x-evm_append = " flash-utility"
TOOLS_am3517-evm_append = " flash-utility"
RDEPENDS_${PN} = "\
${TOOLS} \
ti-tisdk-setup \
board-port-labs-src \
ti-tisdk-makefile \
${U-BOOT_SRC} \
${KERNEL_SRC} \
"
``` |
d2ab9f95-4b60-4426-9edd-02bc6f9c4985 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "MPEG Audio Decoder Library"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "libid3tag"
LICENSE = "GPL"
PR = "r5"
SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz \
file://add-pkgconfig.patch \
file://mad.diff \
file://mad-mips-h-constraint.patch"
S = "${WORKDIR}/libmad-${PV}"
SRC_URI_append_avr32 = " file://libmad-0.15.1b-avr32-optimization.patch"
inherit autotools pkgconfig
EXTRA_OECONF = "-enable-speed --enable-shared"
# The ASO's don't take any account of thumb...
EXTRA_OECONF_append_thumb = " --disable-aso --enable-fpm=default"
EXTRA_OECONF_append_arm = " --enable-fpm=arm"
do_configure_prepend () {
# damn picky automake...
touch NEWS AUTHORS ChangeLog
}
ARM_INSTRUCTION_SET = "arm"
SRC_URI[md5sum] = "1be543bc30c56fb6bea1d7bf6a64e66c"
SRC_URI[sha256sum] = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690"
```
Update LICENSE field version to GPLv2 | ```bitbake
DESCRIPTION = "MPEG Audio Decoder Library"
SECTION = "libs"
PRIORITY = "optional"
DEPENDS = "libid3tag"
LICENSE = "GPLv2"
PR = "r6"
SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz \
file://add-pkgconfig.patch \
file://mad.diff \
file://mad-mips-h-constraint.patch"
S = "${WORKDIR}/libmad-${PV}"
SRC_URI_append_avr32 = " file://libmad-0.15.1b-avr32-optimization.patch"
inherit autotools pkgconfig
EXTRA_OECONF = "-enable-speed --enable-shared"
# The ASO's don't take any account of thumb...
EXTRA_OECONF_append_thumb = " --disable-aso --enable-fpm=default"
EXTRA_OECONF_append_arm = " --enable-fpm=arm"
do_configure_prepend () {
# damn picky automake...
touch NEWS AUTHORS ChangeLog
}
ARM_INSTRUCTION_SET = "arm"
SRC_URI[md5sum] = "1be543bc30c56fb6bea1d7bf6a64e66c"
SRC_URI[sha256sum] = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690"
``` |
1c7d260c-4004-458f-bcfd-81e6b0a63360 | {
"language": "BitBake"
} | ```bitbake
DEFAULT_PREFERENCE = "-1"
DESCRIPTION = "Configuration applets for GPE"
SECTION = "gpe"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "gtk+ libgpewidget libxsettings libxsettings-client pcmcia-cs xst xset ntp gpe-login gpe-icons"
RDEPENDS_${PN} = "xst tzdata xset ntpdate gpe-login gpe-icons"
RDEPENDS_gpe-conf-panel = "gpe-conf"
inherit autotools gpe
PV = "0.2.5+svn${SRCDATE}"
PR = "r1"
SRC_URI = "${GPE_SVN}"
S = "${WORKDIR}/${PN}"
PACKAGES = "${PN}-dbg gpe-conf gpe-conf-panel"
FILES_${PN} = "${sysconfdir} ${bindir} ${datadir}/pixmaps \
${datadir}/applications/gpe-conf-* ${datadir}/gpe/pixmaps \
${datadir}/gpe-conf"
FILES_gpe-conf-panel = "${datadir}/applications/gpe-conf.desktop"
```
Update svn recipe to new version and use of SRCREV. | ```bitbake
DEFAULT_PREFERENCE = "-1"
DESCRIPTION = "Configuration applets for GPE"
SECTION = "gpe"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "gtk+ libgpewidget libxsettings libxsettings-client pcmcia-cs xst xset ntp gpe-login gpe-icons"
RDEPENDS_${PN} = "xst tzdata xset ntpdate gpe-login gpe-icons"
RDEPENDS_gpe-conf-panel = "gpe-conf"
inherit autotools gpe
PV = "0.2.7+svnr${SRCREV}"
PR = "r0"
SRC_URI = "${GPE_SVN}"
S = "${WORKDIR}/${PN}"
PACKAGES = "${PN}-dbg gpe-conf gpe-conf-panel"
FILES_${PN} = "${sysconfdir} ${bindir} ${datadir}/pixmaps \
${datadir}/applications/gpe-conf-* ${datadir}/gpe/pixmaps \
${datadir}/gpe-conf"
FILES_gpe-conf-panel = "${datadir}/applications/gpe-conf.desktop"
``` |
fa6cfbe0-02e3-4431-9aff-0a788e307d3e | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A very basic Wayland image with a terminal"
IMAGE_FEATURES += "splash package-management ssh-server-dropbear hwcodecs"
LICENSE = "MIT"
inherit core-image distro_features_check
REQUIRED_DISTRO_FEATURES = "wayland"
CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples clutter-1.0-examples"
DESCRIPTION = "A weston image with Tizen common."
IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
#IMAGE_INSTALL += "crosswalk"```
Add missing driver for weston | ```bitbake
SUMMARY = "A very basic Wayland image with a terminal"
IMAGE_FEATURES += "splash package-management ssh-server-dropbear hwcodecs"
LICENSE = "MIT"
inherit core-image distro_features_check
REQUIRED_DISTRO_FEATURES = "wayland"
CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples clutter-1.0-examples"
DESCRIPTION = "A weston image with Tizen common."
DEPENDS += " tar-replacement-native "
IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
IMAGE_INSTALL += "mesa-driver-i965"
#IMAGE_INSTALL += "crosswalk"``` |
d853eb84-fb90-4798-a5c2-6f2265715245 | {
"language": "BitBake"
} | ```bitbake
include recipes-core/images/core-image-base.bb
IMAGE_FEATURES += "debug-tweaks"
# SOC_EXTRA_IMAGE_FEATURES ?= "tools-testapps"
SOC_EXTRA_IMAGE_FEATURES=""
# Add extra image features
EXTRA_IMAGE_FEATURES += " \
${SOC_EXTRA_IMAGE_FEATURES} \
nfs-server \
tools-debug \
tools-profile \
"
IMAGE_INSTALL += " \
dropbear \
xbmc \
xbmc-nm-addon \
networkmanager \
procps \
util-linux-mount \
libntfs-3g \
ntfsprogs \
ntfs-3g \
ntp \
ntp-utils \
tvheadend \
util-linux \
firmware-imx-vpu-imx6d \
fsl-rc-local \
xbmc-image-custom-rfs \
"
export IMAGE_BASENAME = "xbmc-image"
```
Add native SDK in image | ```bitbake
include recipes-core/images/core-image-base.bb
IMAGE_FEATURES += "debug-tweaks"
# SOC_EXTRA_IMAGE_FEATURES ?= "tools-testapps"
SOC_EXTRA_IMAGE_FEATURES=""
# Add extra image features
EXTRA_IMAGE_FEATURES += " \
${SOC_EXTRA_IMAGE_FEATURES} \
nfs-server \
tools-debug \
tools-profile \
"
IMAGE_INSTALL += " \
dropbear \
xbmc \
xbmc-nm-addon \
networkmanager \
procps \
util-linux-mount \
libntfs-3g \
ntfsprogs \
ntfs-3g \
ntp \
ntp-utils \
tvheadend \
util-linux \
firmware-imx-vpu-imx6d \
fsl-rc-local \
xbmc-image-custom-rfs \
packagegroup-core-sdk \
joe \
"
export IMAGE_BASENAME = "xbmc-image"
``` |
f60d1ba0-f7e7-4774-a949-78bd62c62a07 | {
"language": "BitBake"
} | ```bitbake
# Add opencv and qte to the console image
require jumpnow-console-image.bb
QT_TOOLS = " \
qt4-embedded-dev\
qt4-embedded \
qt4-embedded-plugin-mousedriver-tslib \
"
TS_TOOLS = " \
tslib-calibrate \
tslib-tests \
tslib-conf \
"
#OPENCV_DEV = " \
# opencv-dev \
# opencv-samples-dev \
# "
DEMOS = " \
sample-qt \
"
IMAGE_INSTALL += " \
${QT_TOOLS} \
${TS_TOOLS} \
${DEMOS} \
psplash \
"
```
Add opencv to IMAGE_INSTALL of qte image | ```bitbake
# Add opencv and qte to the console image
require jumpnow-console-image.bb
QT_TOOLS = " \
qt4-embedded-dev\
qt4-embedded \
qt4-embedded-plugin-mousedriver-tslib \
"
TS_TOOLS = " \
tslib-calibrate \
tslib-tests \
tslib-conf \
"
OPENCV_DEV = " \
opencv-dev \
opencv-samples-dev \
"
DEMOS = " \
sample-qt \
"
IMAGE_INSTALL += " \
${QT_TOOLS} \
${OPENCV_DEV} \
${TS_TOOLS} \
${DEMOS} \
psplash \
"
``` |
7c711c91-5cfa-40f8-8af7-f760785fffe8 | {
"language": "BitBake"
} | ```bitbake
require u-boot.inc
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-omap3-git/"
SRCREV = "35e1a9b87750483027f1114364d7980d71cd936d"
PV = "2009.08+${PR}+git${SRCREV}"
PR = "r6"
PE = "1"
SRC_URI = "git://git.denx.de/u-boot-ti.git;protocol=git \
file://fw-env.config \
file://dss2.patch;patch=1 \
file://tincan.patch;patch=1 \
file://smsc911x.patch;patch=1 \
file://rootfs.patch;patch=1 \
"
S = "${WORKDIR}/git"
```
Change SRCREV to commit prior to build breakage | ```bitbake
require u-boot.inc
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-omap3-git/"
SRCREV = "f5d89a12bc201e7040f1d3262222cc2f1958cee5"
PV = "2009.08+${PR}+git${SRCREV}"
PR = "r7"
PE = "1"
SRC_URI = "git://git.denx.de/u-boot-ti.git;protocol=git \
file://fw-env.config \
file://dss2.patch;patch=1 \
file://tincan.patch;patch=1 \
file://smsc911x.patch;patch=1 \
file://rootfs.patch;patch=1 \
"
S = "${WORKDIR}/git"
``` |
68d1bffa-85be-4a42-a43e-d2dafe902ed2 | {
"language": "BitBake"
} | ```bitbake
require linux.inc
require linux-dtb.inc
DESCRIPTION = "Linux kernel for the koelsch board"
COMPATIBLE_MACHINE = "koelsch"
PR = "r1"
PV_append = "+git${SRCREV}"
SRCREV = "77d929639b4354d660fd3b6d808603ab625f69c5"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-4"
S = "${WORKDIR}/git"
FILESEXTRAPATHS_prepend_koelsch := "${THISDIR}/${PN}:"
KERNEL_DEFCONFIG = "koelsch_defconfig"
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
```
Update to gent2-5 (version 0.5.0) | ```bitbake
require linux.inc
require linux-dtb.inc
DESCRIPTION = "Linux kernel for the koelsch board"
COMPATIBLE_MACHINE = "koelsch"
PR = "r2"
PV_append = "+git${SRCREV}"
SRCREV = "f49d2c9098ac09ebfe174564259c287f9644fd7f"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas-backport.git;protocol=git;branch=bsp/ltsi-3.4.25/rcar-gen2-5"
S = "${WORKDIR}/git"
FILESEXTRAPATHS_prepend_koelsch := "${THISDIR}/${PN}:"
KERNEL_DEFCONFIG = "koelsch_defconfig"
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
``` |
ad858b3c-3466-4af3-8ed8-39c8bbf85ad4 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Utilities for manipulating filesystem extended attributes"
HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
SECTION = "libs"
DEPENDS = "virtual/libintl"
LICENSE = "LGPLv2.1+ & GPLv2+"
LICENSE_${PN} = "GPLv2+"
LICENSE_lib${BPN} = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb"
inherit debian-package
require recipes-debian/sources/attr.inc
inherit autotools gettext update-alternatives
BBCLASSEXTEND = "native nativesdk"
ALTERNATIVE_PRIORITY = "100"
ALTERNATIVE_${PN} = "setfattr"
ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr"
PACKAGES =+ "lib${BPN}"
```
Add a lucking license file name to LIC_FILES_CHKSUM. | ```bitbake
SUMMARY = "Utilities for manipulating filesystem extended attributes"
HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
SECTION = "libs"
DEPENDS = "virtual/libintl"
LICENSE = "LGPLv2.1+ & GPLv2+"
LICENSE_${PN} = "GPLv2+"
LICENSE_lib${BPN} = "LGPLv2.1+"
LIC_FILES_CHKSUM = "file://doc/COPYING;md5=2d0aa14b3fce4694e4f615e30186335f \
file://doc/COPYING.LGPL;md5=b8d31f339300bc239d73461d68e77b9c \
file://tools/attr.c;endline=17;md5=be0403261f0847e5f43ed5b08d19593c \
file://libattr/libattr.c;endline=17;md5=7970f77049f8fa1199fff62a7ab724fb"
inherit debian-package
require recipes-debian/sources/attr.inc
inherit autotools gettext update-alternatives
BBCLASSEXTEND = "native nativesdk"
ALTERNATIVE_PRIORITY = "100"
ALTERNATIVE_${PN} = "setfattr"
ALTERNATIVE_TARGET[setfattr] = "${bindir}/setfattr"
PACKAGES =+ "lib${BPN}"
``` |
ffd7ede0-f507-4468-b418-2c01979086ad | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Xilinx HDMI Linux Kernel module"
DESCRIPTION = "Out-of-tree HDMI kernel modules provider for MPSoC EG/EV devices"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=570506b747d768e7802376f932dff926"
XLNX_HDMI_VERSION = "5.4.0"
PV = "${XLNX_HDMI_VERSION}"
S = "${WORKDIR}/git"
BRANCH ?= "master"
REPO ?= "git://github.com/Xilinx/hdmi-modules.git;protocol=https"
SRCREV = "007af0d54fdccd7fdd93095511b5a5a886aea30b"
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"
inherit module
EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"
```
Update commit id for 2021.1 | ```bitbake
SUMMARY = "Xilinx HDMI Linux Kernel module"
DESCRIPTION = "Out-of-tree HDMI kernel modules provider for MPSoC EG/EV devices"
SECTION = "kernel/modules"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=570506b747d768e7802376f932dff926"
XLNX_HDMI_VERSION = "5.4.0"
PV = "${XLNX_HDMI_VERSION}"
S = "${WORKDIR}/git"
BRANCH ?= "master"
REPO ?= "git://github.com/Xilinx/hdmi-modules.git;protocol=https"
SRCREV = "24697db95e9b173333e17c4e31c03068e69a9102"
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"
inherit module
EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"
``` |
939ac238-774f-4d25-af9c-c44e807e4510 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Image update is used to update alternate image on SOM."
SUMMARY = "Image update is used to update alternate image on SOM. \
If the current image is ImageA, ImageB will get updated and vice versa. \
Usage: image_update <Input Image File>"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSES/MIT;md5=2ac09a7a37dd6ee0ba23ce497d57d09b"
SRC_URI = "git://github.com/Xilinx/linux-image_update.git;protocol=https"
SRCREV = "1a5bcd9fbae931f221106c6707e5c974a18b3be6"
RDEPENDS_${PN} += "fru-print"
S = "${WORKDIR}/git"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
do_install () {
install -d ${D}${bindir}
install -m 0755 ${S}/image_update ${D}${bindir}/
}
INSANE_SKIP_${PN} = "ldflags"
```
Update SRCREV to reflect latest changes | ```bitbake
DESCRIPTION = "Image update is used to update alternate image on SOM."
SUMMARY = "Image update is used to update alternate image on SOM. \
If the current image is ImageA, ImageB will get updated and vice versa. \
Usage: image_update <Input Image File>"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSES/MIT;md5=2ac09a7a37dd6ee0ba23ce497d57d09b"
SRC_URI = "git://github.com/Xilinx/linux-image_update.git;protocol=https"
SRCREV = "df3d9b4868ecc02ac6bb77baf806d4de4d67ddbf"
RDEPENDS_${PN} += "fru-print"
S = "${WORKDIR}/git"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
do_install () {
install -d ${D}${bindir}
install -m 0755 ${S}/image_update ${D}${bindir}/
}
INSANE_SKIP_${PN} = "ldflags"
``` |
b677f590-5e56-40c7-80c9-803dc61fb591 | {
"language": "BitBake"
} | ```bitbake
SECTION = "console/network"
DEPENDS = "openssl"
DESCRIPTION = "Extremely simple MTA to get mail off the system to a mail hub."
PR = "r3"
SRC_URI = "${DEBIAN_MIRROR}/main/s/ssmtp/ssmtp_${PV}.orig.tar.gz \
file://ldflags.patch;patch=1 \
file://configure.patch;patch=1 \
file://libs-lcrypto.patch;patch=1 \
file://ssmtp.conf"
S = "${WORKDIR}/${PN}-2.61"
LICENSE = "GPL"
CONFFILE = "${sysconfdir}/ssmtp/ssmtp.conf"
inherit autotools
EXTRA_OECONF = "--enable-ssl"
do_compile () {
oe_runmake 'LDFLAGS=${LDFLAGS}'
}
do_install () {
oe_runmake 'prefix=${D}${prefix}' 'exec_prefix=${D}${exec_prefix}' \
'bindir=${D}${bindir}' 'mandir=${D}${mandir}' \
'etcdir=${D}${sysconfdir}' GEN_CONFIG="`which echo`" install
install -d ${D}${sysconfdir}/ssmtp
install -m 0644 ${WORKDIR}/ssmtp.conf ${D}${sysconfdir}/ssmtp/ssmtp.conf
}
pkg_postinst () {
update-alternatives --install ${sbindir}/sendmail sendmail ${bindir}/ssmtp 90
}
pkg_postrm () {
update-alternatives --remove ${sbindir}/sendmail sendmail
}
```
Update ssmtp u-a priority to be less than postfix's | ```bitbake
SECTION = "console/network"
DEPENDS = "openssl"
DESCRIPTION = "Extremely simple MTA to get mail off the system to a mail hub."
PR = "r4"
SRC_URI = "${DEBIAN_MIRROR}/main/s/ssmtp/ssmtp_${PV}.orig.tar.gz \
file://ldflags.patch;patch=1 \
file://configure.patch;patch=1 \
file://libs-lcrypto.patch;patch=1 \
file://ssmtp.conf"
S = "${WORKDIR}/${PN}-2.61"
LICENSE = "GPL"
#CONFFILES = "${sysconfdir}/ssmtp/ssmtp.conf ${sysconfdir}/ssmtp/revaliases"
inherit autotools
EXTRA_OECONF = "--enable-ssl"
do_compile () {
oe_runmake 'LDFLAGS=${LDFLAGS}'
}
do_install () {
oe_runmake 'prefix=${D}${prefix}' 'exec_prefix=${D}${exec_prefix}' \
'bindir=${D}${bindir}' 'mandir=${D}${mandir}' \
'etcdir=${D}${sysconfdir}' GEN_CONFIG="`which echo`" install
install -d ${D}${sysconfdir}/ssmtp
install -m 0644 ${WORKDIR}/ssmtp.conf ${D}${sysconfdir}/ssmtp/ssmtp.conf
}
pkg_postinst () {
update-alternatives --install ${sbindir}/sendmail sendmail ${bindir}/ssmtp 30
}
pkg_postrm () {
update-alternatives --remove ${sbindir}/sendmail sendmail
}
``` |
e713943d-f23f-4e7b-ba02-abfc2d3190e9 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Wrapper library for evdev devices"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libevdev/"
inherit autotools pkgconfig debian-package
PR = "r0"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://COPYING;md5=75aae0d38feea6fda97ca381cb9132eb \
file://libevdev/libevdev.h;endline=21;md5=7ff4f0b5113252c2f1a828e0bbad98d1"
# Follow configure in Debian rules
EXTRA_OECONF = "--disable-silent-rules"
```
Remove debian patch which should not be applied in do_debian_patch | ```bitbake
SUMMARY = "Wrapper library for evdev devices"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/libevdev/"
inherit autotools pkgconfig debian-package
PR = "r1"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://COPYING;md5=75aae0d38feea6fda97ca381cb9132eb \
file://libevdev/libevdev.h;endline=21;md5=7ff4f0b5113252c2f1a828e0bbad98d1"
# Follow configure in Debian rules
EXTRA_OECONF = "--disable-silent-rules"
# debian/patches/use-system-libevdev-for-tests.patch exists,
# but it is only for debian/tests/check, not for building package.
# This patch should not be applied in do_debian_patch
do_debian_patch_prepend() {
if [ -f ${S}/debian/patches/use-system-libevdev-for-tests.patch ]; then
rm ${S}/debian/patches/use-system-libevdev-for-tests.patch
fi
rmdir --ignore-fail-on-non-empty ${S}/debian/patches
}
# After removing use-system-libevdev-for-tests.patch,
# there is no debian patch and no debian series file
DEBIAN_QUILT_PATCHES = ""
``` |
2bb79555-ed35-436a-836a-f3106e1886a0 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "configuation database system"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
SECTION = "x11/gnome"
SRC_URI[archive.md5sum] = "1a50c988d9f0206f74a44f7c6d09cead"
SRC_URI[archive.sha256sum] = "9fe6bb22191fc2a036ad86fd8e7d165e9983c687b9fedccf85d46c799301da2d"
DEPENDS = "dbus glib-2.0 intltool-native"
GNOMEBASEBUILDCLASS = "meson"
inherit gnomebase bash-completion vala
# I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
EXTRA_OEMESON = "-Dman=false"
# no bash-completion for native
EXTRA_OEMESON_append_class-native = "-Dbash_completion=false"
FILES_${PN} += " \
${datadir}/dbus-1 \
${libdir}/gio/modules/*.so \
"
BBCLASSEXTEND = "native"
```
Add leading whitespace for append operator | ```bitbake
SUMMARY = "configuation database system"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
SECTION = "x11/gnome"
SRC_URI[archive.md5sum] = "1a50c988d9f0206f74a44f7c6d09cead"
SRC_URI[archive.sha256sum] = "9fe6bb22191fc2a036ad86fd8e7d165e9983c687b9fedccf85d46c799301da2d"
DEPENDS = "dbus glib-2.0 intltool-native"
GNOMEBASEBUILDCLASS = "meson"
inherit gnomebase bash-completion vala
# I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
EXTRA_OEMESON = "-Dman=false"
# no bash-completion for native
EXTRA_OEMESON_append_class-native = " -Dbash_completion=false"
FILES_${PN} += " \
${datadir}/dbus-1 \
${libdir}/gio/modules/*.so \
"
BBCLASSEXTEND = "native"
``` |
318448f0-b4c0-41bf-b81c-7a50ef1beffb | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A small python tool for downloading bootloader to ddr through serial port"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=219f23a516954274fab23350ce921da3"
SRCREV = "6d8429dd5dfa4ec1cee4428cafe882c16624832a"
SRC_URI = "git://github.com/96boards-hikey/burn-boot.git;protocol=https \
"
S = "${WORKDIR}/git"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/hisi-idt.py ${D}${bindir}
}
RDEPENDS_${PN} += "python3-core python3-pyserial"
inherit deploy
do_deploy() {
install -D -p -m 0755 ${S}/hisi-idt.py ${DEPLOYDIR}/bootloader/hisi-idt.py
}
addtask deploy before do_build after do_compile
BBCLASSEXTEND = "native"
```
Make it multilib safe, delete target recipe | ```bitbake
SUMMARY = "A small python tool for downloading bootloader to ddr through serial port"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=219f23a516954274fab23350ce921da3"
SRCREV = "6d8429dd5dfa4ec1cee4428cafe882c16624832a"
SRC_URI = "git://github.com/96boards-hikey/burn-boot.git;protocol=https \
"
S = "${WORKDIR}/git"
inherit deploy native
do_install() {
install -d ${D}${bindir}
install -m 0755 ${S}/hisi-idt.py ${D}${bindir}
}
do_deploy() {
install -D -p -m 0755 ${S}/hisi-idt.py ${DEPLOYDIR}/bootloader/hisi-idt.py
}
addtask deploy before do_build after do_compile
RDEPENDS_${PN} += "python3-core python3-pyserial"
``` |
fb165106-4691-48bc-8f31-ede5ac28c45a | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Torrent client"
HOMEPAGE = "http://libtorrent.rakshasa.no/"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "libsigc++-2.0 curl cppunit libtorrent ncurses"
SRC_URI = "git://github.com/rakshasa/rtorrent \
file://don-t-run-code-while-configuring-package.patch \
"
SRCREV = "226e670decf92e7adaa845a6982aca4f164ea740"
PV = "0.9.6+git${SRCPV}"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
do_configure_prepend() {
(cd ${S}; ./autogen.sh; cd -)
}
```
Add and enable ipv6 packageconfig based on DISTRO_FEATURES | ```bitbake
SUMMARY = "Torrent client"
HOMEPAGE = "http://libtorrent.rakshasa.no/"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "libsigc++-2.0 curl cppunit libtorrent ncurses"
SRC_URI = "git://github.com/rakshasa/rtorrent \
file://don-t-run-code-while-configuring-package.patch \
"
SRCREV = "226e670decf92e7adaa845a6982aca4f164ea740"
PV = "0.9.6+git${SRCPV}"
S = "${WORKDIR}/git"
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
inherit autotools pkgconfig
do_configure_prepend() {
(cd ${S}; ./autogen.sh; cd -)
}
``` |
69619f3f-db26-48de-aa95-409d0d7067c8 | {
"language": "BitBake"
} | ```bitbake
#
# base recipe: recipes-devtools/quilt/quilt_0.65.bb
# base branch: master
# base commit: 821a6f2a170cfcaf8fe51240a2558ae06328a998
#
require quilt.inc
inherit gettext
```
Make quilt-ptest depend on quilt | ```bitbake
#
# base recipe: recipes-devtools/quilt/quilt_0.65.bb
# base branch: master
# base commit: 821a6f2a170cfcaf8fe51240a2558ae06328a998
#
require quilt.inc
inherit gettext
RDEPENDS_${PN}-ptest += "${PN}"
``` |
922971af-8ecb-47ab-9ce9-32f8b9e96d32 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "OpenGL Mathematics Library"
DESCRIPTION = "OpenGL Mathematics (GLM) is a header only C++ \
mathematics library for graphics software based on the OpenGL \
Shading Language (GLSL) specifications."
HOMEPAGE = "https://glm.g-truc.net"
BUGTRACKER = "https://github.com/g-truc/glm/issues"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://copying.txt;md5=4431606d144252143c9c3df384a74cad"
SRC_URI = "git://github.com/g-truc/glm;protocol=https"
SRCREV = "5dcc56489e1b66dfd5bca751fa9b8dc68059e008"
S = "${WORKDIR}/git"
inherit cmake
FILES_${PN}-dev += "${libdir}/cmake"
```
Fix rootfs error for glm-dev install | ```bitbake
SUMMARY = "OpenGL Mathematics Library"
DESCRIPTION = "OpenGL Mathematics (GLM) is a header only C++ \
mathematics library for graphics software based on the OpenGL \
Shading Language (GLSL) specifications."
HOMEPAGE = "https://glm.g-truc.net"
BUGTRACKER = "https://github.com/g-truc/glm/issues"
SECTION = "libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://copying.txt;md5=4431606d144252143c9c3df384a74cad"
SRC_URI = "git://github.com/g-truc/glm;protocol=https"
SRCREV = "5dcc56489e1b66dfd5bca751fa9b8dc68059e008"
S = "${WORKDIR}/git"
inherit cmake
FILES_${PN}-dev += "${libdir}/cmake"
RDEPENDS_${PN}-dev = ""
``` |
c8ce710f-dbfa-4993-b5a8-b0a84b97391a | {
"language": "BitBake"
} | ```bitbake
inherit setuptools3
require python-s3transfer.inc
RDEPENDS_${PN} = "\
${PYTHON_PN}-futures \
"
```
Fix RDEPENDS to point at python3-multiprocessing | ```bitbake
inherit setuptools3
require python-s3transfer.inc
RDEPENDS_${PN} = "\
${PYTHON_PN}-multiprocessing \
"
``` |
5688ed46-de30-42e8-ad24-f96dbdfefe4f | {
"language": "BitBake"
} | ```bitbake
LICENSE = "GPL"
inherit gnome
DEPENDS += "shared-mime-info intltool-native"
RDEPENDS_${PN} = "shared-mime-info"
PR = "r1"
FILES_${PN}-dev += "${datadir}/pkgconfig/*.pc"
SRC_URI[archive.md5sum] = "541858188f80090d12a33b5a7c34d42c"
SRC_URI[archive.sha256sum] = "37196b5b37085bbcd45c338c36e26898fe35dd5975295f69f48028b1e8436fd7"
```
Update LICENSE field version to GPLv2 | ```bitbake
LICENSE = "GPLv2 GPLv2+"
inherit gnome
DEPENDS += "shared-mime-info intltool-native"
RDEPENDS_${PN} = "shared-mime-info"
PR = "r2"
FILES_${PN}-dev += "${datadir}/pkgconfig/*.pc"
SRC_URI[archive.md5sum] = "541858188f80090d12a33b5a7c34d42c"
SRC_URI[archive.sha256sum] = "37196b5b37085bbcd45c338c36e26898fe35dd5975295f69f48028b1e8436fd7"
``` |
af620a9e-faf4-4650-9bee-0658595012da | {
"language": "BitBake"
} | ```bitbake
require lcdproc5.inc
SRC_URI += "file://automake-111-fix.patch"
SRC_URI[md5sum] = "c92d4529d36eeec6d9d6fd0a4aa3ec82"
SRC_URI[sha256sum] = "b136b47d7bf585a003334f432d8730a36ef5ed1cd520084b919667d825e48d42"
PACKAGECONFIG ?= ""
PACKAGECONFIG[g15] = ",,libg15 g15daemon libg15render,"
LCD_DRIVERS_append = "${@base_contains('PACKAGECONFIG', 'g15', '', ',!g15', d)}"
do_install_append () {
# binaries
install -D -m 0755 clients/lcdvc/lcdvc ${D}${sbindir}/lcdvc
# configuration files
install -D -m 0644 ${S}/clients/lcdvc/lcdvc.conf ${D}${sysconfdir}/lcdvc.conf
}
PACKAGES =+ "lcdvc"
CONFFILES_lcdvc = "${sysconfdir}/lcdvc.conf"
FILES_lcdvc = "${sysconfdir}/lcdvc.conf ${sbindir}/lcdvc"
```
Remove floating dependency on libhid | ```bitbake
require lcdproc5.inc
SRC_URI += "file://automake-111-fix.patch"
SRC_URI[md5sum] = "c92d4529d36eeec6d9d6fd0a4aa3ec82"
SRC_URI[sha256sum] = "b136b47d7bf585a003334f432d8730a36ef5ed1cd520084b919667d825e48d42"
PACKAGECONFIG ?= ""
PACKAGECONFIG[g15] = ",,libg15 g15daemon libg15render,"
PACKAGECONFIG[hid] = "--enable-libhid,--disable-libhid,libhid"
LCD_DRIVERS_append = "${@base_contains('PACKAGECONFIG', 'g15', '', ',!g15', d)}"
do_install_append () {
# binaries
install -D -m 0755 clients/lcdvc/lcdvc ${D}${sbindir}/lcdvc
# configuration files
install -D -m 0644 ${S}/clients/lcdvc/lcdvc.conf ${D}${sysconfdir}/lcdvc.conf
}
PACKAGES =+ "lcdvc"
CONFFILES_lcdvc = "${sysconfdir}/lcdvc.conf"
FILES_lcdvc = "${sysconfdir}/lcdvc.conf ${sbindir}/lcdvc"
``` |
f79ad532-fbaf-457f-b75d-722badf3f449 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Linux CAN network development utilities"
DESCRIPTION = "Linux CAN network development"
LICENSE = "GPLv2 & BSD-3-Clause"
LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=43;md5=390a2c9a3c5e3595a069ac1436553ee7"
DEPENDS = "libsocketcan"
SRC_URI = "git://git.gitorious.org/linux-can/${BPN}.git;protocol=git;branch=master"
SRCREV = "67a2bdcd336e6becfa5784742e18c88dbeddc973"
PV = "0.0+gitr${SRCPV}"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
```
Change protocol from git to https | ```bitbake
SUMMARY = "Linux CAN network development utilities"
DESCRIPTION = "Linux CAN network development"
LICENSE = "GPLv2 & BSD-3-Clause"
LIC_FILES_CHKSUM = "file://include/linux/can.h;endline=43;md5=390a2c9a3c5e3595a069ac1436553ee7"
DEPENDS = "libsocketcan"
SRC_URI = "git://git.gitorious.org/linux-can/${BPN}.git;protocol=https;branch=master"
SRCREV = "67a2bdcd336e6becfa5784742e18c88dbeddc973"
PV = "0.0+gitr${SRCPV}"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
``` |
46b4c9c1-3a3b-4061-8779-8cfeae2ca3c8 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "G1 Hantro decoder"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://software/source/inc/basetype.h;endline=36;md5=e3202b62900668ae783c037af34f1ff5"
PR = "r1"
inherit autotools pkgconfig gettext
SRC_URI = "git://github.com/linux4sam/g1_decoder.git;branch=master;protocol=http"
SRCREV = "cb81273566b7c1609ce27bbf38af8042946472f7"
S = "${WORKDIR}/git/"
do_configure_prepend() {
(cd ${S};
chmod +x ${S}/autogen.sh;
${S}/autogen.sh; cd -)
}
COMPATIBLE_MACHINE = "sama5d4"
```
Remove trailing slash from S | ```bitbake
DESCRIPTION = "G1 Hantro decoder"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://software/source/inc/basetype.h;endline=36;md5=e3202b62900668ae783c037af34f1ff5"
PR = "r1"
inherit autotools pkgconfig gettext
SRC_URI = "git://github.com/linux4sam/g1_decoder.git;branch=master;protocol=http"
SRCREV = "cb81273566b7c1609ce27bbf38af8042946472f7"
S = "${WORKDIR}/git"
do_configure_prepend() {
(cd ${S};
chmod +x ${S}/autogen.sh;
${S}/autogen.sh; cd -)
}
COMPATIBLE_MACHINE = "sama5d4"
``` |
98d8ffba-08f7-453e-abd4-bd75caf42572 | {
"language": "BitBake"
} | ```bitbake
HOMEPAGE = "http://guichaz.free.fr/iotop/"
LICENSE = "GPL"
SRC_URI = "http://guichaz.free.fr/iotop/files/${PN}-${PV}.tar.bz2"
inherit distutils
```
Make the installed package work | ```bitbake
HOMEPAGE = "http://guichaz.free.fr/iotop/"
LICENSE = "GPL"
PR = "r1"
RDEPENDS = "python-distutils python-curses python-setuptools python-textutils"
SRC_URI = "http://guichaz.free.fr/iotop/files/${PN}-${PV}.tar.bz2"
inherit distutils
do_install_prepend() {
rm -f ${D}${libdir}/${PYTHON_DIR}/site-packages/site.pyo
rm -f ${D}${libdir}/${PYTHON_DIR}/site-packages/site.py
}
``` |
0c43331c-7019-4a5e-83bd-1be0d116b26f | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Shows and manipulates data structure layout"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
DEPENDS = "elfutils zlib libbpf"
COMPATIBLE_HOST = "(x86_64|i.86|aarch64).*-linux"
SRCREV = "f02af2553ea58ae1186226af0d0ec835a248358f"
SRC_URI = "git://git.kernel.org/pub/scm/devel/pahole/pahole.git \
file://0001-CMakeList.txt-make-python-optional.patch"
S = "${WORKDIR}/git"
inherit cmake
PACKAGECONFIG[python3] = ",,python3-core,python3-core"
EXTRA_OECMAKE = "-D__LIB=lib -DCMAKE_BUILD_TYPE=Release -DLIBBPF_EMBEDDED=OFF"
FILES:${PN} = "${bindir}/pahole \
${libdir}/libdwarves.so* \
${libdir}/libdwarves_reorganize.so*"
PACKAGES += "${PN}-extra"
FILES:${PN}-extra = "${datadir} ${bindir} ${libdir}/libdwarves_emit.so*"
RDEPENDS:${PN}-extra += "bash"
BBCLASSEXTEND = "native nativesdk"
```
Add missing rdep for python | ```bitbake
SUMMARY = "Shows and manipulates data structure layout"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
DEPENDS = "elfutils zlib libbpf"
COMPATIBLE_HOST = "(x86_64|i.86|aarch64).*-linux"
SRCREV = "f02af2553ea58ae1186226af0d0ec835a248358f"
SRC_URI = "git://git.kernel.org/pub/scm/devel/pahole/pahole.git \
file://0001-CMakeList.txt-make-python-optional.patch"
S = "${WORKDIR}/git"
inherit cmake
PACKAGECONFIG[python3] = ",,python3-core,python3-core"
EXTRA_OECMAKE = "-D__LIB=lib -DCMAKE_BUILD_TYPE=Release -DLIBBPF_EMBEDDED=OFF"
FILES:${PN} = "${bindir}/pahole \
${libdir}/libdwarves.so* \
${libdir}/libdwarves_reorganize.so*"
PACKAGES += "${PN}-extra"
FILES:${PN}-extra = "${datadir} ${bindir} ${libdir}/libdwarves_emit.so*"
RDEPENDS:${PN}-extra += "bash python3-core"
BBCLASSEXTEND = "native nativesdk"
``` |
f5951c69-5c0f-437a-9aa9-52c2d03fa5b6 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
HOMEPAGE = "http://nodejs.org"
LICENSE = "MIT"
DEPENDS = "openssl"
SRC_URI = " \
http://nodejs.org/dist/node-v${PV}.tar.gz \
file://libev-cross-cc_${PV}.patch \
"
SRC_URI[md5sum] = "9e9e791e125f6a601ebc663dc99c72a8"
SRC_URI[sha256sum] = "09b1100ca6828eedbe52418fbeb3352d71c0b1ff3344c44a5af3efb80c5b908c"
S = "${WORKDIR}/node-v${PV}"
# v8 errors out if you have set CCACHE
CCACHE = ""
do_configure () {
./configure --prefix=${prefix} --without-snapshot
}
do_compile () {
make
}
do_install () {
DESTDIR=${D} oe_runmake install
}
BBCLASSEXTEND = "native"
```
Make configure script not use host libutil | ```bitbake
DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
HOMEPAGE = "http://nodejs.org"
LICENSE = "MIT"
DEPENDS = "openssl"
SRC_URI = " \
http://nodejs.org/dist/node-v${PV}.tar.gz \
file://libev-cross-cc_${PV}.patch \
"
SRC_URI[md5sum] = "9e9e791e125f6a601ebc663dc99c72a8"
SRC_URI[sha256sum] = "09b1100ca6828eedbe52418fbeb3352d71c0b1ff3344c44a5af3efb80c5b908c"
S = "${WORKDIR}/node-v${PV}"
# v8 errors out if you have set CCACHE
CCACHE = ""
do_configure () {
sed -i -e 's:/usr/lib:${STAGING_LIBDIR}:g' wscript
sed -i -e 's:/usr/local/lib:${STAGING_LIBDIR}:g' wscript
./configure --prefix=${prefix} --without-snapshot
}
do_compile () {
make
}
do_install () {
DESTDIR=${D} oe_runmake install
}
BBCLASSEXTEND = "native"
``` |
bd36766c-3f2d-4208-aa7d-f12cc0ac6ccd | {
"language": "BitBake"
} | ```bitbake
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. | ```bitbake
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"
``` |
62c57e6f-dcfd-4fc5-869b-82c1121154eb | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "U-boot bootloader w/ BUG support"
LICENSE = "GPL"
SECTION = "bootloader"
PRIORITY = "optional"
PV = "1.3.2+svnr${SRCPV}"
SRCREV = "8674"
PR = "r6"
SRC_URI = "\
svn://svn.buglabs.net/bug/branches/R1.4/qa;module=u-boot;proto=svn \
"
S = "${WORKDIR}/u-boot"
COMPATIBLE_MACHINE = "bug"
PACKAGE_ARCH = "${MACHINE}"
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
TARGET_LDFLAGS = ""
do_compile () {
oe_runmake mx31_bug2_config
oe_runmake clean
oe_runmake all
}
do_deploy () {
install -d ${DEPLOY_DIR_IMAGE}
install -m 0644 ${S}/u-boot.bin ${DEPLOY_DIR_IMAGE}/u-boot-${PV}-${PR}.bin
ln -sf ${DEPLOY_DIR_IMAGE}/u-boot-${PV}-${PR}.bin ${DEPLOY_DIR_IMAGE}/uboot-latest.bin
}
do_stage() {
install -m 0755 tools/mkimage ${STAGING_BINDIR_NATIVE}/mkimage
}
do_deploy[dirs] = "${S}"
addtask deploy before do_package after do_install
```
Drop do_stage (not needed), add package_stagefile_shell to deploy | ```bitbake
DESCRIPTION = "U-boot bootloader w/ BUG support"
LICENSE = "GPL"
SECTION = "bootloader"
PRIORITY = "optional"
PV = "1.3.2+svnr${SRCPV}"
SRCREV = "8674"
PR = "r7"
SRC_URI = "\
svn://svn.buglabs.net/bug/branches/R1.4/qa;module=u-boot;proto=svn \
"
S = "${WORKDIR}/u-boot"
COMPATIBLE_MACHINE = "bug"
PACKAGE_ARCH = "${MACHINE}"
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
TARGET_LDFLAGS = ""
do_compile () {
oe_runmake mx31_bug2_config
oe_runmake clean
oe_runmake all
}
do_deploy () {
install -d ${DEPLOY_DIR_IMAGE}
install -m 0644 ${S}/u-boot.bin ${DEPLOY_DIR_IMAGE}/u-boot-${PV}-${PR}.bin
package_stagefile_shell ${DEPLOY_DIR_IMAGE}/u-boot-${PV}-${PR}.bin
ln -sf ${DEPLOY_DIR_IMAGE}/u-boot-${PV}-${PR}.bin ${DEPLOY_DIR_IMAGE}/uboot-latest.bin
package_stagefile_shell ${DEPLOY_DIR_IMAGE}/uboot-latest.bin
}
do_deploy[dirs] = "${S}"
addtask deploy before do_package after do_install
``` |
6d76cc94-9892-4d1c-85e6-1f01d5f71684 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "AM SysInfo"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_sysinfo/"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://mem_util/mem_util.c;beginline=1;endline=37;md5=8aa8e714ab729cfe8177298af8a5a25d"
SECTION = "system"
PACKAGE_STRIP = "no"
PR = "r5"
BRANCH ?= "master"
SRCREV = "f2b325741ebcd440c4b2fc91a65270391224426e"
SRC_URI = "git://gitorious.org/am_sysinfo/am_sysinfo.git;protocol=git;branch=${BRANCH}"
S = "${WORKDIR}/git"
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} -o mem_util/mem_util mem_util/mem_util.c
}
do_install() {
install -d ${D}/${bindir}
install -m 0755 ${S}/mem_util/mem_util ${D}/${bindir}
}
```
Update am-sysinfo to pulled in makefile fix | ```bitbake
DESCRIPTION = "AM SysInfo"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_sysinfo/"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://mem_util/mem_util.c;beginline=1;endline=37;md5=8aa8e714ab729cfe8177298af8a5a25d"
SECTION = "system"
PACKAGE_STRIP = "no"
PR = "r6"
BRANCH ?= "master"
SRCREV = "86e936b0a50e450089471b53ae8c68e933c15bbd"
SRC_URI = "git://gitorious.org/am_sysinfo/am_sysinfo.git;protocol=git;branch=${BRANCH}"
S = "${WORKDIR}/git"
do_compile() {
${CC} ${CFLAGS} ${LDFLAGS} -o mem_util/mem_util mem_util/mem_util.c
}
do_install() {
install -d ${D}/${bindir}
install -m 0755 ${S}/mem_util/mem_util ${D}/${bindir}
}
``` |
b36d4af1-bc65-40a3-a565-96e200742170 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Kernel module for contiguous memory allocation from userspace"
include cmem.inc
# This package builds a kernel module, use kernel PR as base and append a local
MACHINE_KERNEL_PR:append = "a"
PR = "${MACHINE_KERNEL_PR}"
inherit module
EXTRA_OEMAKE += '-f lu.mak KERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" TOOLCHAIN_PREFIX="${TOOLCHAIN_PREFIX}" EXEC_DIR="${D}/lib/modules/${KERNEL_VERSION}/extra"'
MAKE_TARGETS = "module"
KERNEL_MODULE_AUTOLOAD += "cmemk"
do_install:prepend() {
cp ${B}/src/cmem/module/Module.symvers ${B}/ || true
}
```
Fix kernel module packaging for usrmerge | ```bitbake
DESCRIPTION = "Kernel module for contiguous memory allocation from userspace"
include cmem.inc
# This package builds a kernel module, use kernel PR as base and append a local
MACHINE_KERNEL_PR:append = "a"
PR = "${MACHINE_KERNEL_PR}"
inherit module
EXTRA_OEMAKE += '-f lu.mak KERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" TOOLCHAIN_PREFIX="${TOOLCHAIN_PREFIX}" EXEC_DIR="${D}${nonarch_base_libdir}/modules/${KERNEL_VERSION}/extra"'
MAKE_TARGETS = "module"
KERNEL_MODULE_AUTOLOAD += "cmemk"
do_install:prepend() {
cp ${B}/src/cmem/module/Module.symvers ${B}/ || true
}
``` |
d84ea41c-7b09-43e6-bd08-9c5fb58f576b | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Microchip EGT launcher Application"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://COPYING;endline=202;md5=3b83ef96387f14655fc854ddc3c6bd57"
PACKAGES = "\
${PN} \
${PN}-dev \
${PN}-dbg \
"
DEPENDS = "libegt"
SRC_URI = "git://github.com/linux4sam/egt-launcher.git;protocol=https \
file://0001-launch.sh-Use-start-stop-daemon-to-restart-egt.patch"
PV = "1.0+git${SRCPV}"
SRCREV = "1c422c4c90e79dad81784a392cd84f686698cdb4"
S = "${WORKDIR}/git"
inherit pkgconfig autotools gettext
do_configure_prepend() {
( cd ${S};
${S}/autogen.sh; cd -)
}
# out-of-tree building doesn't appear to work for this package.
B = "${S}"
FILES_${PN} += " \
/usr/share/egt/* \
"
```
Add runtime dependency to evtest | ```bitbake
DESCRIPTION = "Microchip EGT launcher Application"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://COPYING;endline=202;md5=3b83ef96387f14655fc854ddc3c6bd57"
PACKAGES = "\
${PN} \
${PN}-dev \
${PN}-dbg \
"
DEPENDS = "libegt"
RDEPENDS_${PN} = "evtest"
SRC_URI = "git://github.com/linux4sam/egt-launcher.git;protocol=https \
file://0001-launch.sh-Use-start-stop-daemon-to-restart-egt.patch"
PV = "1.0+git${SRCPV}"
SRCREV = "1c422c4c90e79dad81784a392cd84f686698cdb4"
S = "${WORKDIR}/git"
inherit pkgconfig autotools gettext
do_configure_prepend() {
( cd ${S};
${S}/autogen.sh; cd -)
}
# out-of-tree building doesn't appear to work for this package.
B = "${S}"
FILES_${PN} += " \
/usr/share/egt/* \
"
``` |
43fddc72-fafb-4c65-9689-5c7ed416d111 | {
"language": "BitBake"
} | ```bitbake
require u-boot-ti.inc
LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
PR = "r9"
BRANCH = "ti-u-boot-2021.01"
SRCREV = "20e7036ac9194b4ec8b0161b830d7f4f4d6db95f"
```
Update the u-boot srcrev to 08.00.00.003 | ```bitbake
require u-boot-ti.inc
LIC_FILES_CHKSUM = "file://Licenses/README;md5=5a7450c57ffe5ae63fd732446b988025"
PR = "r10"
BRANCH = "ti-u-boot-2021.01"
SRCREV = "e335337914f2a47b72f823f0d5e36924c1747ad1"
``` |
15a6b98e-94e0-40ae-b6bb-6ee2b2dc93ca | {
"language": "BitBake"
} | ```bitbake
LICENSE = "GPLv3"
SECTION = "libs"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
SRC_URI = "https://github.com/baylibre-acme/libsigrok/releases/download/libsigrok-${PV}-iio1/libsigrok-${PV}-iio1.tar.gz"
SRC_URI[md5sum] = "2833774ad596e07075463f7acc526a77"
SRC_URI[sha256sum] = "fbeb2726da5a82cc77f622cdf0d82f114f73d54574513745e000771bf4ce5957"
S = "${WORKDIR}/${BPN}-${PV}-iio1"
DEPENDS = "libiio libusb1 libcheck glib-2.0 libzip"
inherit pkgconfig autotools
```
Disable demo driver to only have iio driver running | ```bitbake
LICENSE = "GPLv3"
SECTION = "libs"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
SRC_URI = "https://github.com/baylibre-acme/libsigrok/releases/download/libsigrok-${PV}-iio1/libsigrok-${PV}-iio1.tar.gz"
SRC_URI[md5sum] = "2833774ad596e07075463f7acc526a77"
SRC_URI[sha256sum] = "fbeb2726da5a82cc77f622cdf0d82f114f73d54574513745e000771bf4ce5957"
S = "${WORKDIR}/${BPN}-${PV}-iio1"
DEPENDS = "libiio libusb1 libcheck glib-2.0 libzip"
inherit pkgconfig autotools
# Disable demo to only have iio active
EXTRA_OECONF = "--enable-demo=no"
``` |
6e596b84-68bc-42b8-b80f-2586aec5d6c6 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Library used for remotely invoking the hw accelerated codec on IVA-HD"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://libdce.h;beginline=1;endline=31;md5=0a398cf815b8b5f31f552266cd453dae"
inherit autotools pkgconfig
DEPENDS = "libdrm ti-ipc"
SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git"
SRCREV = "1b1b5a2e5e995f607c22651579b49aa98d08610a"
S = "${WORKDIR}/git"
EXTRA_OECONF += "IPC_HEADERS=${STAGING_INCDIR}/ti/ipc/mm"
```
Update SRCREV add MJPEG Encoder support | ```bitbake
DESCRIPTION = "Library used for remotely invoking the hw accelerated codec on IVA-HD"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://libdce.h;beginline=1;endline=31;md5=0a398cf815b8b5f31f552266cd453dae"
inherit autotools pkgconfig
DEPENDS = "libdrm ti-ipc"
SRC_URI = "git://git.omapzoom.org/repo/libdce.git;protocol=git"
SRCREV = "c51f144b079836afb868bff44afe7308248a0217"
PR = "r1"
S = "${WORKDIR}/git"
EXTRA_OECONF += "IPC_HEADERS=${STAGING_INCDIR}/ti/ipc/mm"
``` |
d5919e23-bf6a-434b-9e69-a6e438722404 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "iptables network filtering tools"
HOMEPAGE = "http://www.netfilter.org/"
SECTION = "console/utils"
LICENSE = "GPL"
PR = "r1"
PACKAGES =+ "${PN}-utils"
FILES_${PN}-utils = "${bindir}/iptables-save ${bindir}/iptables-restore"
SRC_URI = "http://www.netfilter.org/files/iptables-${PV}.tar.bz2"
S = "${WORKDIR}/iptables-${PV}"
PARALLEL_MAKE=""
export COPT_FLAGS = "${CFLAGS}"
export KERNEL_DIR = "${STAGING_INCDIR}"
do_compile () {
unset CFLAGS
oe_runmake BINDIR=${D}${bindir} LIBDIR=${D}${libdir} MANDIR=${D}${mandir} NO_SHARED_LIBS=1
}
do_install () {
oe_runmake BINDIR=${D}${bindir} LIBDIR=${D}${libdir} MANDIR=${D}${mandir} install NO_SHARED_LIBS=1
}
FILES_${PN}-doc += "${mandir}"
```
Install iptables in sbindir instead of bindir | ```bitbake
DESCRIPTION = "iptables network filtering tools"
HOMEPAGE = "http://www.netfilter.org/"
SECTION = "console/utils"
LICENSE = "GPL"
PR = "r1"
PACKAGES =+ "${PN}-utils"
FILES_${PN}-utils = "${bindir}/iptables-save ${bindir}/iptables-restore"
SRC_URI = "http://www.netfilter.org/files/iptables-${PV}.tar.bz2"
S = "${WORKDIR}/iptables-${PV}"
PARALLEL_MAKE=""
export COPT_FLAGS = "${CFLAGS}"
export KERNEL_DIR = "${STAGING_INCDIR}"
do_compile () {
unset CFLAGS
oe_runmake BINDIR=${D}${sbindir} LIBDIR=${D}${libdir} MANDIR=${D}${mandir} NO_SHARED_LIBS=1
}
do_install () {
oe_runmake BINDIR=${D}${bindir} LIBDIR=${D}${libdir} MANDIR=${D}${mandir} install NO_SHARED_LIBS=1
}
FILES_${PN}-doc += "${mandir}"
``` |
f856bb78-6b5c-4b96-98a5-b56e11ef2d87 | {
"language": "BitBake"
} | ```bitbake
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://server/main.cpp;beginline=1;endline=16;md5=445b0d89ea0a802153431b6d1f55bc6a"
#DEPENDS = "soprano"
inherit kde_cmake
SRC_URI = "git://anongit.kde.org/nepomuk-core.git;branch=master"
SRCREV = "8cc42cb460785220a376a017997bf5259382b8bb"
# nepomuk *must* be built out of tree
OECMAKE_SOURCEPATH = ".."
OECMAKE_BUILDPATH = "build"
EXTRA_OECMAKE =+ "\
-DNEPOMUK_INCLUDE_DIR=${STAGING_INCDIR}/KDE/Nepomuk/ \
"
PV = "1.0+git${SRCPV}"
S = "${WORKDIR}/git"
```
Fix the build for nepomuk-core | ```bitbake
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://server/main.cpp;beginline=1;endline=16;md5=445b0d89ea0a802153431b6d1f55bc6a"
DEPENDS = "soprano kdelibs4"
inherit kde_cmake kde_exports
KDE_EXPORT_FILES = "${S}/build/CMakeFiles/Export/_usr/lib/cmake/NepomukCore/NepomukCoreTargetsWithPrefix-relwithdebinfo.cmake \
${S}/build/NepomukCoreConfig.cmake"
SRC_URI = "git://anongit.kde.org/nepomuk-core.git;branch=master"
SRCREV = "0651e8c8a7213e4dcc239ecdda1be0159d9ff306"
# nepomuk *must* be built out of tree
OECMAKE_SOURCEPATH = ".."
OECMAKE_BUILDPATH = "build"
EXTRA_OECMAKE =+ "\
-DNEPOMUK_INCLUDE_DIR=${STAGING_INCDIR}/KDE/Nepomuk/ \
"
PV = "4.8.90+git${SRCPV}"
S = "${WORKDIR}/git"
FILES_${PN} += "${libdir}/libkdeinit4_nepomukserver.so \
${libdir}/libnepomukcommon.so \
${libdir}/kde4 \
\
${datadir}"
FILES_${PN}-dbg += "${libdir}/kde4/.debug"
FILES_${PN}-dev += "${libdir}/cmake"
``` |
f25a73ac-2c03-400c-96a8-04b6c88033e8 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Interface for GDB to commincate witha TI C66X DSP"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e"
# This package builds a kernel module, use kernel PR as base and append a local
MACHINE_KERNEL_PR_append = "a"
PR = "${MACHINE_KERNEL_PR}"
PV_append = "+git${SRCPV}"
S = "${WORKDIR}/git/kernel_module/gdbproxy-mod"
inherit module
PLATFORM = ""
PLATFORM_dra7xx = "DRA7xx_PLATFORM"
PLATFORM_keystone = "KEYSTONE_PLATFORM"
EXTRA_OEMAKE = "PLATFORM=${PLATFORM}"
# The following is to prevent an unused configure.ac from erroneously
# triggering the QA check for gettext.
EXTRA_OECONF = "--disable-nls"
do_configure() {
:
}
COMPATIBLE_MACHINE = "dra7xx|keystone"
PACKAGE_ARCH = "${MACHINE_ARCH}"
include gdbc6x.inc
module_autoload_gdbserverproxy = "gdbserverproxy"
```
Fix build issue with fido | ```bitbake
DESCRIPTION = "Interface for GDB to commincate witha TI C66X DSP"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e"
# This package builds a kernel module, use kernel PR as base and append a local
MACHINE_KERNEL_PR_append = "b"
PR = "${MACHINE_KERNEL_PR}"
PV_append = "+git${SRCPV}"
S = "${WORKDIR}/git/kernel_module/gdbproxy-mod"
inherit module
PLATFORM = ""
PLATFORM_dra7xx = "DRA7xx_PLATFORM"
PLATFORM_keystone = "KEYSTONE_PLATFORM"
EXTRA_OEMAKE = "PLATFORM=${PLATFORM} KVERSION=${KERNEL_VERSION} KERNEL_SRC=${STAGING_KERNEL_DIR}"
# The following is to prevent an unused configure.ac from erroneously
# triggering the QA check for gettext.
EXTRA_OECONF = "--disable-nls"
do_configure() {
:
}
COMPATIBLE_MACHINE = "dra7xx|keystone"
PACKAGE_ARCH = "${MACHINE_ARCH}"
include gdbc6x.inc
KERNEL_MODULE_AUTOLOAD += "gdbserverproxy"
``` |
377cae69-00d9-4ebd-b23e-f96e21f7bf57 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "A library of C++ classes for flexible logging to files, syslog, IDSA and other destinations."
HOMEPAGE = "http://sourceforge.net/projects/log4cpp/"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
RC = "rc5"
SRC_URI = "http://downloads.sourceforge.net/${BPN}/${BP}${RC}.tar.gz \
file://fix-pc.patch;striplevel=2 \
"
SRC_URI[md5sum] = "58b4591a2f3e7ef3d5e3e7cfb3a81a62"
SRC_URI[sha256sum] = "a611d99a20af6676c60219762771c0bfac90f4879bbde70038ece75338b588ec"
S = "${WORKDIR}/${BPN}"
inherit autotools pkgconfig
EXTRA_OECONF = "\
--enable-doxygen=no \
--enable-dot=no \
--enable-html-docs=no \
--enable-latex-docs=no \
"
```
Stop using RC as a variable | ```bitbake
DESCRIPTION = "A library of C++ classes for flexible logging to files, syslog, IDSA and other destinations."
HOMEPAGE = "http://sourceforge.net/projects/log4cpp/"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=7fbc338309ac38fefcd64b04bb903e34"
PRC = "rc5"
SRC_URI = "http://downloads.sourceforge.net/${BPN}/${BP}${PRC}.tar.gz \
file://fix-pc.patch;striplevel=2 \
"
SRC_URI[md5sum] = "58b4591a2f3e7ef3d5e3e7cfb3a81a62"
SRC_URI[sha256sum] = "a611d99a20af6676c60219762771c0bfac90f4879bbde70038ece75338b588ec"
S = "${WORKDIR}/${BPN}"
inherit autotools pkgconfig
EXTRA_OECONF = "\
--enable-doxygen=no \
--enable-dot=no \
--enable-html-docs=no \
--enable-latex-docs=no \
"
``` |
abc8cf0c-04fb-4a97-a27b-0770508a5255 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "The nanomsg library is a simple high-performance implementation of several "scalability protocols"."
HOMEPAGE = "https://github.com/nanomsg/nanomsg"
AUTHOR = "Martin Sustrik"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=587b3fd7fd291e418ff4d2b8f3904755"
inherit cmake
PR = "r0"
SRC_URI = "git://github.com/nanomsg/nanomsg.git"
SRCREV = "7e12a20e038234060d41d03c20721d08117f8607"
S = "${WORKDIR}/git"
EXTRA_OECMAKE += "-DNN_TESTS:BOOL=OFF"
PACKAGES = "${PN} ${PN}-dev ${PN}-dbg ${PN}-tools"
FILES_${PN} = "\
${libdir}/libnanomsg.so.* \
${libdir}/pkgconfig \
"
FILES_${PN}-tools += "${bindir}/nanocat"
```
Install pkgconfig files with dev package | ```bitbake
DESCRIPTION = "The nanomsg library is a simple high-performance implementation of several "scalability protocols"."
HOMEPAGE = "https://github.com/nanomsg/nanomsg"
AUTHOR = "Martin Sustrik"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=587b3fd7fd291e418ff4d2b8f3904755"
inherit cmake
PR = "r1"
SRC_URI = "git://github.com/nanomsg/nanomsg.git"
SRCREV = "7e12a20e038234060d41d03c20721d08117f8607"
S = "${WORKDIR}/git"
EXTRA_OECMAKE += "-DNN_TESTS:BOOL=OFF"
PACKAGES = "${PN} ${PN}-dev ${PN}-dbg ${PN}-tools"
FILES_${PN} = "${libdir}/libnanomsg.so.*"
FILES_${PN}-dev += "${libdir}/pkgconfig"
FILES_${PN}-tools += "${bindir}/nanocat"
``` |
93b79c14-0ef1-4402-a489-34c63397cb17 | {
"language": "BitBake"
} | ```bitbake
#
# base recipe: http://cgit.openembedded.org/cgit.cgi/meta-openembedded/tree\
# /meta-oe/recipes-support/eventlog/eventlog_0.2.13.bb?
# base branch: master
# base commit: 349507d36b14d1b83d2b27280ec19efe6d7229c6
#
SUMMARY = "Replacement syslog API"
DESCRIPTION = "The EventLog library aims to be a replacement of the \
simple syslog() API provided on UNIX systems. The \
major difference between EventLog and syslog is that \
EventLog tries to add structure to messages. EventLog \
provides an interface to build, format and output an \
event record. The exact format and output method can \
be customized by the administrator via a configuration \
file. his package is the runtime part of the library. \
"
PR = "r0"
inherit debian-package
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=b8ba8e77bcda9a53fac0fe39fe957767"
inherit autotools pkgconfig
```
Correct the permission of files | ```bitbake
#
# base recipe: http://cgit.openembedded.org/cgit.cgi/meta-openembedded/tree\
# /meta-oe/recipes-support/eventlog/eventlog_0.2.13.bb?
# base branch: master
# base commit: 349507d36b14d1b83d2b27280ec19efe6d7229c6
#
SUMMARY = "Replacement syslog API"
DESCRIPTION = "The EventLog library aims to be a replacement of the \
simple syslog() API provided on UNIX systems. The \
major difference between EventLog and syslog is that \
EventLog tries to add structure to messages. EventLog \
provides an interface to build, format and output an \
event record. The exact format and output method can \
be customized by the administrator via a configuration \
file. his package is the runtime part of the library. \
"
PR = "r1"
inherit debian-package
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=b8ba8e77bcda9a53fac0fe39fe957767"
inherit autotools pkgconfig
#install follow Debian jessie
do_install_append () {
LINKLIB=$(basename $(readlink ${D}${libdir}/libevtlog.so))
chmod 0644 ${D}${libdir}/${LINKLIB}
}
#correct the sub-package name
DEBIANNAME_${PN}-dbg = "libevtlog0-dbg"
``` |
ad7794f2-1eb7-41e8-a8a3-55ceb184ce01 | {
"language": "BitBake"
} | ```bitbake
require recipes-images/angstrom/extended-console-image.bb
IMAGE_INSTALL += " \
kernel-headers \
kernel-modules \
linux-firmware \
usbutils \
libusbg \
iw \
systemd-analyze \
vim vim-vimrc \
procps \
screen minicom \
cronie-systemd ntpdate \
tar \
packagegroup-sdk-target \
gcc \
gdb gdbserver \
iproute2 \
lighttpd \
lighttpd-module-cgi \
atlas-soc-lighttpd-conf \
atlas-soc-101 \
atlas-soc-usb-gadget \
gator \
"
export IMAGE_BASENAME = "atlas-soc-console-image"
```
Add fft driver to image | ```bitbake
require recipes-images/angstrom/extended-console-image.bb
IMAGE_INSTALL += " \
kernel-headers \
kernel-modules \
linux-firmware \
usbutils \
libusbg \
iw \
systemd-analyze \
vim vim-vimrc \
procps \
screen minicom \
cronie-systemd ntpdate \
tar \
packagegroup-sdk-target \
gcc \
gdb gdbserver \
iproute2 \
lighttpd \
lighttpd-module-cgi \
atlas-soc-lighttpd-conf \
atlas-soc-101 \
atlas-soc-usb-gadget \
gator \
fft_driver-mod \
"
export IMAGE_BASENAME = "atlas-soc-console-image"
``` |
c7dda542-2900-434c-a99f-3e4d662d18ec | {
"language": "BitBake"
} | ```bitbake
COMPATIBLE_MACHINE = "raspberrypi"
require linux.inc
DESCRIPTION = "Linux kernel for the RaspberryPi board"
PR = "r1"
# Bump MACHINE_KERNEL_PR in the machine config if you update the kernel.
# This is on the rpi-patches branch
SRCREV = "0ec4154d64ebba48ca2446cde60a90546311defc"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-patches \
"
LINUX_VERSION ?= "3.1.9-rpi"
PV = "${LINUX_VERSION}+${PR}+git${SRCREV}"
S = "${WORKDIR}/git"
# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
KERNEL_DEFCONFIG = "bcmrpi_defconfig"
PARALLEL_MAKEINST = ""
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
```
Fix build issue with make 3.82 | ```bitbake
COMPATIBLE_MACHINE = "raspberrypi"
require linux.inc
DESCRIPTION = "Linux kernel for the RaspberryPi board"
PR = "r1"
# Bump MACHINE_KERNEL_PR in the machine config if you update the kernel.
# This is on the rpi-patches branch
SRCREV = "0ec4154d64ebba48ca2446cde60a90546311defc"
SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-patches \
"
LINUX_VERSION ?= "3.1.9-rpi"
PV = "${LINUX_VERSION}+${PR}+git${SRCREV}"
S = "${WORKDIR}/git"
# NOTE: For now we pull in the default config from the RPi kernel GIT tree.
KERNEL_DEFCONFIG = "bcmrpi_defconfig"
PARALLEL_MAKEINST = ""
do_configure_prepend() {
install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die "No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available."
}
do_install_prepend() {
install -d ${D}/lib/firmware
}
``` |
a9d21f18-7cdd-4526-b1b4-282bc3de2752 | {
"language": "BitBake"
} | ```bitbake
include recipes/gnuradio/gnuradio.inc
inherit srctree autotools gitver
PV = "${GITVER}"
# Set S (the path to the source directory) via local.conf using the line:
# S_pn-gnuradio-srctree = "/home/username/src/git/gnuradio"
do_copy_to_target() {
scp -rp ${D}/* [email protected]:/
}
addtask copy_to_target after do_install before do_package
```
Comment out install to target. | ```bitbake
include recipes/gnuradio/gnuradio.inc
inherit srctree autotools gitver
PV = "${GITVER}"
# Set S (the path to the source directory) via local.conf using the line:
# S_pn-gnuradio-srctree = "/home/username/src/git/gnuradio"
#do_copy_to_target() {
# scp -rp ${D}/* [email protected]:/
#}
#addtask copy_to_target after do_install before do_package
``` |
9d1eb042-2bf4-471b-a2ab-f73ed46013b3 | {
"language": "BitBake"
} | ```bitbake
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 ?= "master"
SRCREV = "2b8859218defc9983b6d312c8be48d0c08070ca1"
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. | ```bitbake
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 ?= "master"
SRCREV = "4eac958eb6c831ffa5768a0e2cd4be23c5efe2e0"
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"
``` |
3f193232-c430-4c15-8342-3a8ac22eb23d | {
"language": "BitBake"
} | ```bitbake
## Reminder: The correct spacing for a variable is FOO = "BAR" in : PR="r1"
DESCRIPTION = "BeagleBoard test scripts"
HOMEPAGE = "http://beagleboad.org/support"
PR = "r2"
SRC_URI = "git://gitorious.org/beagleboard-validation/scripts.git;protocol=git \
"
SRCREV = "473dd2ab20d866be6168c9f992c2c9e74e485c9d"
S = "${WORKDIR}/git"
do_install() {
TEST_FILES=" \
testaudio \
testcamera \
testdsp \
testedid \
testled \
testmem \
testneon \
testsvideo \
testuserbtn \
editbootscr \
edituserscr \
readgpio \
"
install -d ${D}/${bindir}
for i in ${TEST_FILES}; do
install -m 0755 ${S}/${i} ${D}/${bindir}
done
}
```
Add a script flash-fs.sh for flashing NAND | ```bitbake
## Reminder: The correct spacing for a variable is FOO = "BAR" in : PR="r1"
DESCRIPTION = "BeagleBoard test scripts"
HOMEPAGE = "http://beagleboad.org/support"
PR = "r3"
SRC_URI = "git://gitorious.org/~joelf/beagleboard-validation/validation-scripts.git;protocol=git \
"
SRCREV = "2df76857155fbd462527c2b00ee83214483f0594"
S = "${WORKDIR}/git"
inherit update-rc.d
INITSCRIPT_NAME = "flash-nand-fs.sh"
INITSCRIPT_PARAMS = "start 99 2 3 4 5 ."
do_install() {
TEST_FILES=" \
testaudio \
testcamera \
testdsp \
testedid \
testled \
testmem \
testneon \
testsvideo \
testuserbtn \
editbootscr \
edituserscr \
readgpio \
"
install -d ${D}/${bindir}
for i in ${TEST_FILES}; do
install -m 0755 ${S}/${i} ${D}/${bindir}
done
# A script to flash NAND if the board has it, and if there is valid image to flash on the SD Card.
# We also register it as an init script so that the SD Card auto-flashes to NAND during boot.
install -d ${D}/${sysconfdir}/init.d/
install -m 0755 ${S}/flashing/flash-nand-fs.sh ${D}/${sysconfdir}/init.d/flash-nand-fs.sh
}
``` |
12c6e798-b9bc-4871-ab52-d9e12f5e28ec | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Chip support library low level interface"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21"
COMPATIBLE_MACHINE = "keystone"
ALLOW_EMPTY_${PN} = "1"
PR = "r2"
BRANCH="master"
SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}"
# commit ID corresponds to DEV.CSL_KEYSTONE2.02.01.00.06A
SRCREV = "6e39222e13244c285929bda2f90f5224f9ea5144"
S = "${WORKDIR}/git"
do_install () {
install -d ${D}${includedir}/ti/csl
find . -name "*.h" -type f | xargs -I {} cp --parents {} ${D}${includedir}/ti/csl
find ./src/ip/serdes_sb/V0 -name "*.c" -type f | xargs -I {} cp --parents {} ${D}${includedir}/ti/csl
}
```
Update to new version 2.1.0.7 | ```bitbake
DESCRIPTION = "Chip support library low level interface"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING.txt;md5=5857833e20836213677fac33f9aded21"
COMPATIBLE_MACHINE = "keystone"
ALLOW_EMPTY_${PN} = "1"
PR = "r3"
BRANCH="master"
SRC_URI = "git://git.ti.com/keystone-rtos/common-csl-ip.git;protocol=git;branch=${BRANCH}"
# commit ID corresponds to DEV.CSL_KEYSTONE2.02.01.00.07A
SRCREV = "c78867df9165fdf8042fb692fcea776fc0102326"
S = "${WORKDIR}/git"
do_install () {
install -d ${D}${includedir}/ti/csl
find . -name "*.h" -type f | xargs -I {} cp --parents {} ${D}${includedir}/ti/csl
find ./src/ip/serdes_sb/V0 -name "*.c" -type f | xargs -I {} cp --parents {} ${D}${includedir}/ti/csl
}
``` |
c20b3e6c-055b-48d4-b529-29c31e46f91c | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Mscgen is a small program that parses Message Sequence Chart descriptions and produces PNG, SVG, EPS or server side image maps (ismaps) as the output."
HOMEPAGE = "http://www.mcternan.me.uk/mscgen/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b1e6a340187c1cf716513439d07c1d79"
SRC_URI = "http://www.mcternan.me.uk/mscgen/software/${BPN}-src-${PV}.tar.gz"
SRC_URI[md5sum] = "65c90fb5150d7176b65b793f0faa7377"
SRC_URI[sha256sum] = "3c3481ae0599e1c2d30b7ed54ab45249127533ab2f20e768a0ae58d8551ddc23"
DEPENDS = "gd "
inherit autotools gettext
do_configure_prepend() {
sed -i "s#AC_PATH_PROG(GDLIB_CONFIG,gdlib-config)#AC_PATH_PROG([GDLIB_CONFIG],[gdlib-config], ,[${STAGING_BINDIR_CROSS}])#" ${S}/configure.ac
}
```
Extend for native and nativesdk | ```bitbake
SUMMARY = "Mscgen is a small program that parses Message Sequence Chart descriptions and produces PNG, SVG, EPS or server side image maps (ismaps) as the output."
HOMEPAGE = "http://www.mcternan.me.uk/mscgen/"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b1e6a340187c1cf716513439d07c1d79"
SRC_URI = "http://www.mcternan.me.uk/mscgen/software/${BPN}-src-${PV}.tar.gz"
SRC_URI[md5sum] = "65c90fb5150d7176b65b793f0faa7377"
SRC_URI[sha256sum] = "3c3481ae0599e1c2d30b7ed54ab45249127533ab2f20e768a0ae58d8551ddc23"
DEPENDS = "gd "
inherit autotools gettext
do_configure_prepend() {
sed -i "s#AC_PATH_PROG(GDLIB_CONFIG,gdlib-config)#AC_PATH_PROG([GDLIB_CONFIG],[gdlib-config], ,[${STAGING_BINDIR_CROSS}])#" ${S}/configure.ac
}
BBCLASSEXTEND = "native nativesdk"
``` |
f8f9226e-f739-4939-9fee-0432a2b43c43 | {
"language": "BitBake"
} | ```bitbake
require linux-ti-staging_5.10.bb
# Look in the generic major.minor directory for files
# This will have priority over generic non-rt path
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"
BRANCH = "ti-rt-linux-5.10.y"
SRCREV = "8fbd16658d1105671e67182c290235a99a7af02b"
PV = "5.10.30+git${SRCPV}"
```
Update to 08.00.00.002 release tag | ```bitbake
require linux-ti-staging_5.10.bb
# Look in the generic major.minor directory for files
# This will have priority over generic non-rt path
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-5.10:"
BRANCH = "ti-rt-linux-5.10.y"
SRCREV = "d238e71a2d3157a7faec48d4d3681b537a2e08cc"
PV = "5.10.41+git${SRCPV}"
``` |
af456878-8285-4921-b621-d8235984d947 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "A small image just capable of allowing a device to boot."
IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL} mochad-cgi "
IMAGE_LINGUAS = " "
LICENSE = "MIT"
inherit core-image
IMAGE_ROOTFS_SIZE = "16384000"
```
Set Image Size to 2G | ```bitbake
DESCRIPTION = "A small image just capable of allowing a device to boot."
IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL} mochad-cgi "
IMAGE_LINGUAS = " "
LICENSE = "MIT"
inherit core-image
IMAGE_ROOTFS_SIZE = "2097152"
``` |
ac46411f-bfef-46ba-866e-75c9aba426d4 | {
"language": "BitBake"
} | ```bitbake
require ttf.inc
DESCRIPTION = "Liberation fonts - TTF Version"
HOMEPAGE = "https://www.redhat.com/promo/fonts/"
LICENSE = "Liberation"
PR = "r1"
SRC_URI = "http://www.redhat.com/f/fonts/liberation-fonts-ttf-3.tar.gz"
S = "${WORKDIR}/liberation-fonts-${PV}"
PACKAGES = "${PN}-dbg ttf-liberation-mono ttf-liberation-sans ttf-liberation-serif"
FILES_ttf-liberation-mono = "${datadir}/fonts/truetype/*Mono*"
FILES_ttf-liberation-sans = "${datadir}/fonts/truetype/*Sans*"
FILES_ttf-liberation-serif = "${datadir}/fonts/truetype/*Serif*"
```
Fix -dbg package RRECOMMENDS since PN as a package doesn't exist This is the same fix as the one by rpurdie to ttf-dejavu. | ```bitbake
require ttf.inc
DESCRIPTION = "Liberation fonts - TTF Version"
HOMEPAGE = "https://www.redhat.com/promo/fonts/"
LICENSE = "Liberation"
PR = "r1"
SRC_URI = "http://www.redhat.com/f/fonts/liberation-fonts-ttf-3.tar.gz"
S = "${WORKDIR}/liberation-fonts-${PV}"
PACKAGES = "${PN}-dbg ttf-liberation-mono ttf-liberation-sans ttf-liberation-serif"
RRECOMMENDS_${PN}-dbg = ""
FILES_ttf-liberation-mono = "${datadir}/fonts/truetype/*Mono*"
FILES_ttf-liberation-sans = "${datadir}/fonts/truetype/*Sans*"
FILES_ttf-liberation-serif = "${datadir}/fonts/truetype/*Serif*"
``` |
e2bb1d51-4a3e-4a83-9a82-29c669187dc1 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "library for easy implementation of a RDP/VNC server"
HOMEPAGE = "https://libvnc.github.io"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=361b6b837cad26c6900a926b62aada5f"
PACKAGECONFIG ??= "gcrypt gnutls jpeg png ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)} sdl zlib"
PACKAGECONFIG[gcrypt] = ",,libgcrypt,libgcrypt"
PACKAGECONFIG[gnutls] = ",,gnutls"
PACKAGECONFIG[jpeg] = ",-DWITH_JPEG=OFF,jpeg"
PACKAGECONFIG[openssl] = ",,openssl"
PACKAGECONFIG[png] = ",-DWITH_PNG=OFF,libpng,libpng"
PACKAGECONFIG[systemd] = ",,systemd"
PACKAGECONFIG[sdl] = ",,libsdl2"
PACKAGECONFIG[zlib] = ",,zlib"
inherit cmake
SRC_URI = "git://github.com/LibVNC/libvncserver"
SRCREV = "f997b5a75fa171d79c5e568b7157fba83c8d8355"
S = "${WORKDIR}/git"
```
Make PACKAGECONFIG easier to read by making the list multiline | ```bitbake
DESCRIPTION = "library for easy implementation of a RDP/VNC server"
HOMEPAGE = "https://libvnc.github.io"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=361b6b837cad26c6900a926b62aada5f"
PACKAGECONFIG ??= " \
gcrypt \
gnutls \
jpeg \
png \
${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)} \
sdl \
zlib \
"
PACKAGECONFIG[gcrypt] = ",,libgcrypt,libgcrypt"
PACKAGECONFIG[gnutls] = ",,gnutls"
PACKAGECONFIG[jpeg] = ",-DWITH_JPEG=OFF,jpeg"
PACKAGECONFIG[openssl] = ",,openssl"
PACKAGECONFIG[png] = ",-DWITH_PNG=OFF,libpng,libpng"
PACKAGECONFIG[systemd] = ",,systemd"
PACKAGECONFIG[sdl] = ",,libsdl2"
PACKAGECONFIG[zlib] = ",,zlib"
inherit cmake
SRC_URI = "git://github.com/LibVNC/libvncserver"
SRCREV = "f997b5a75fa171d79c5e568b7157fba83c8d8355"
S = "${WORKDIR}/git"
``` |
05c58ec6-474c-46f3-9de6-436b63111fa0 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "OverC installer script"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
SRCREV = "${AUTOREV}"
SRC_URI = " \
git://github.com/OverC/overc-installer.git \
file://git/COPYING \
"
S = "${WORKDIR}/git"
do_install() {
mkdir -p ${D}/opt/${BPN}/
mkdir -p ${D}/lib/systemd/system/
install -m755 ${S}/sbin/overc-cctl ${D}/opt/${BPN}/
install -m 0755 ${S}/files/overc_cleanup.service ${D}/lib/systemd/system/
}
FILES_${PN} += "/opt/${BPN} \
/lib/systemd/system \
"
RDEPENDS_${PN} += "bash"
```
Make use of bitbake variables where appropriate. | ```bitbake
SUMMARY = "OverC installer script"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
SRCREV = "${AUTOREV}"
SRC_URI = " \
git://github.com/OverC/overc-installer.git \
file://git/COPYING \
"
S = "${WORKDIR}/git"
do_install() {
mkdir -p ${D}/opt/${BPN}/
mkdir -p ${D}${systemd_system_unitdir}/
install -m755 ${S}/sbin/overc-cctl ${D}/opt/${BPN}/
install -m 0755 ${S}/files/overc_cleanup.service ${D}${systemd_system_unitdir}/
}
FILES_${PN} += "/opt/${BPN} \
${systemd_system_unitdir} \
"
RDEPENDS_${PN} += "bash"
``` |
f56a4998-eabb-4ad1-a246-1265c053b0e8 | {
"language": "BitBake"
} | ```bitbake
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://LICENSE.LGPL-2.1;md5=4fbd65380cdd255951079008b364516c"
DEPENDS = "kdelibs4 kde-runtime soprano libkactivities4"
inherit kde_cmake
SRC_URI = "git://anongit.kde.org/share-like-connect.git;branch=master"
## Tag Active/2.0
SRCREV = "9ed8128284ab9fcab806455bccf0344dd21afbd1"
PV = "Active-2.0+git${SRCPV}"
S = "${WORKDIR}/git"
FILES_${PN} += "\
${libdir}/libsharelikeconnect.so \
${libdir}/kde4/*.so \
${libdir}/kde4/imports/* \
\
${datadir}/* \
"
FILES_${PN}-dbg += "${libdir}/kde4/.debug/*"```
Fix build with version upgrade and nepomuk-core | ```bitbake
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://LICENSE.LGPL-2.1;md5=4fbd65380cdd255951079008b364516c"
DEPENDS = "kdelibs4 kde-runtime soprano libkactivities4"
inherit kde_cmake
SRC_URI = "git://anongit.kde.org/share-like-connect.git;branch=master"
## Tag Active/2.0
SRCREV = "dac3ad67f7b07c277152508a1a4144043075b50e"
PV = "Active-2.0+git${SRCPV}"
S = "${WORKDIR}/git"
FILES_${PN} += "\
${libdir}/libsharelikeconnect.so \
${libdir}/kde4/*.so \
${libdir}/kde4/imports/* \
\
${datadir}/* \
"
FILES_${PN}-dbg += "${libdir}/kde4/.debug/*"``` |
2905e748-be43-408a-bbbd-d225a4aea6c8 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Required packges for running jupyter notebook with python3 "
inherit packagegroup
START_JUPYTER_PKG ?= "start-jupyter"
START_JUPYTER_PKG_k26 = "start-jupyterlab"
JUPYTER_NOTEBOOK_PACKAGES = " \
packagegroup-python3-jupyter \
python3-core \
python3-ipywidgets \
python3-pydot \
liberation-fonts \
ttf-bitstream-vera \
${START_JUPYTER_PKG} \
"
RDEPENDS_${PN} = "${JUPYTER_NOTEBOOK_PACKAGES}"
```
Revert "Revert "**TEMPORARY** Disable start-jupyterlab"" | ```bitbake
DESCRIPTION = "Required packges for running jupyter notebook with python3 "
inherit packagegroup
START_JUPYTER_PKG ?= "start-jupyter"
#START_JUPYTER_PKG_k26 = "start-jupyterlab"
JUPYTER_NOTEBOOK_PACKAGES = " \
packagegroup-python3-jupyter \
python3-core \
python3-ipywidgets \
python3-pydot \
liberation-fonts \
ttf-bitstream-vera \
${START_JUPYTER_PKG} \
"
RDEPENDS_${PN} = "${JUPYTER_NOTEBOOK_PACKAGES}"
``` |
58b10fde-d504-4c99-9ead-62d37508dcd9 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
PV = "4.5.3"
SRCREV = "8e9e75502ff910629663c4cdd7779d43ea2dd150"
SRC_URI = "git://github.com/tornadoweb/tornado.git;branch=branch4.5"
S = "${WORKDIR}/git"
inherit setuptools
DEPENDS = "python-certifi"
RDEPENDS_${PN} = "python-certifi"
RCONFLICTS_${PN} = "python-tornado"
RCONFLICTS_${PN} += "python-tornado40"
RCONFLICTS_${PN} += "python-tornado50"
```
Append missing dependencies to RDEPEND | ```bitbake
DESCRIPTION = "Tornado is an open source version of the scalable, non-blocking web server and tools that power FriendFeed."
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
PV = "4.5.3"
SRCREV = "8e9e75502ff910629663c4cdd7779d43ea2dd150"
SRC_URI = "git://github.com/tornadoweb/tornado.git;branch=branch4.5"
S = "${WORKDIR}/git"
inherit setuptools
DEPENDS = "python-certifi"
RDEPENDS_${PN} = "python-certifi"
RDEPENDS_${PN} += "python-backports-abc"
RDEPENDS_${PN} += "python-singledispatch"
RCONFLICTS_${PN} = "python-tornado"
RCONFLICTS_${PN} += "python-tornado40"
RCONFLICTS_${PN} += "python-tornado50"
``` |
ac60760b-bba2-42e3-8bb6-865090d2a11b | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Central Regulatory Domain Agent"
SECTION = "base"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c"
PR = "r3"
DEPENDS = "libnl"
RDEPENDS_${PN} = "wireless-regdb"
S = "${WORKDIR}/git"
SRC_URI = "git://github.com/mcgrof/crda.git;protocol=git;tag=v1.1.3"
CFLAGS_append =" -DCONFIG_LIBNL32 -I${STAGING_INCDIR}/libnl3"
LDFLAGS_append =" -lnl-3 -lnl-genl-3 -lm"
do_compile() {
${CC} ${CFLAGS} ${S}/reglib.c ${S}/crda.c -o crda ${LDFLAGS}
}
do_install() {
install -m 0755 -d ${D}${bindir}
install -m 0755 ${S}/crda ${D}${bindir}
}
```
Add regulatory rules to the ipk needed by udev. | ```bitbake
DESCRIPTION = "Central Regulatory Domain Agent"
SECTION = "base"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=07c4f6dea3845b02a18dc00c8c87699c"
PR = "r4"
DEPENDS = "libnl"
RDEPENDS_${PN} = "\
wireless-regdb \
udev \
"
S = "${WORKDIR}/git"
SRC_URI = "git://github.com/mcgrof/crda.git;protocol=git;tag=v1.1.3"
CFLAGS_append =" -DCONFIG_LIBNL32 -I${STAGING_INCDIR}/libnl3"
LDFLAGS_append =" -lnl-3 -lnl-genl-3 -lm"
do_compile() {
${CC} ${CFLAGS} ${S}/reglib.c ${S}/crda.c -o crda ${LDFLAGS}
}
do_install() {
install -m 0755 -d ${D}${bindir}
install -m 0755 ${S}/crda ${D}${bindir}
install -m 0755 -d ${D}/lib/udev/rules.d
sed 's:$(SBINDIR):${bindir}/:' ${S}/udev/regulatory.rules > ${S}/udev/regulatory.rules.parsed
install -m 0755 ${S}/udev/regulatory.rules.parsed ${D}/lib/udev/rules.d/85-regulatory.rules
}
FILES_${PN} += "${base_libdir}/udev/rules.d/85-regulatory.rules"
``` |
0201b2e0-afe2-49cd-8ad9-da9c30ab10b5 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Jpeg 2000 implementation"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=baa697d7510288a9cdcce9bd7edaf9bc"
PR = "r1"
SRC_URI = "http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-${PV}.zip"
inherit autotools lib_package
PACKAGECONFIG ??= ""
PACKAGECONFIG[jpeg] = "--enable-libjpeg,--disable-libjpeg,jpeg"
PACKAGECONFIG[opengl] = "--enable-opengl,--disable-opengl,freeglut"
EXTRA_OECONF = "--enable-shared"
SRC_URI[md5sum] = "a342b2b4495b3e1394e161eb5d85d754"
SRC_URI[sha256sum] = "6b905a9c2aca2e275544212666eefc4eb44d95d0a57e4305457b407fe63f9494"
```
Use the new upstream GitHub location instead of the defunct tarball URL | ```bitbake
SUMMARY = "Jpeg 2000 implementation"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=baa697d7510288a9cdcce9bd7edaf9bc"
PR = "r1"
SRC_URI = "git://github.com/mdadams/jasper.git;protocol=https"
SRCREV = "b13b8c86be870107f83b0a9a4b77557cb2b65d69"
S = "${WORKDIR}/git"
inherit autotools lib_package
PACKAGECONFIG ??= ""
PACKAGECONFIG[jpeg] = "--enable-libjpeg,--disable-libjpeg,jpeg"
PACKAGECONFIG[opengl] = "--enable-opengl,--disable-opengl,freeglut"
EXTRA_OECONF = "--enable-shared"
``` |
5e1a410e-ee7e-4589-849d-7dabd80c6765 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Python Remote Objects"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=cd13dafd4eeb0802bb6efea6b4a4bdbc"
SRC_URI[md5sum] = "21f015ae93cf9ea2bbbc418a2267e9fb"
SRC_URI[sha256sum] = "2bfe12a22f396474b0e57c898c7e2c561a8f850bf2055d8cf0f7119f0c7a523f"
PYPI_PACKAGE = "Pyro4"
inherit pypi setuptools3
RDEPENDS_${PN} += " \
${PYTHON_PN}-logging \
${PYTHON_PN}-selectors34 \
${PYTHON_PN}-serpent \
${PYTHON_PN}-threading \
${PYTHON_PN}-zlib \
"
```
Remove absent py3 modules from rdeps | ```bitbake
SUMMARY = "Python Remote Objects"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=cd13dafd4eeb0802bb6efea6b4a4bdbc"
SRC_URI[md5sum] = "21f015ae93cf9ea2bbbc418a2267e9fb"
SRC_URI[sha256sum] = "2bfe12a22f396474b0e57c898c7e2c561a8f850bf2055d8cf0f7119f0c7a523f"
PYPI_PACKAGE = "Pyro4"
inherit pypi setuptools3
RDEPENDS_${PN} += " \
${PYTHON_PN}-logging \
${PYTHON_PN}-serpent \
${PYTHON_PN}-threading \
"
``` |
645ad407-8345-4523-a072-8b5dbe06e77d | {
"language": "BitBake"
} | ```bitbake
inherit ti-pdk
require traceframework.inc
PR = "${INC_PR}.1"
DEPENDS_append = " uia \
"
XDCPATH_append = ";${UIA_INSTALL_DIR}/packages"
```
Add HTML doc link text | ```bitbake
inherit ti-pdk
require traceframework.inc
PR = "${INC_PR}.2"
DEPENDS_append = " uia \
"
XDCPATH_append = ";${UIA_INSTALL_DIR}/packages"
# HTML doc link params
PDK_COMP_LINK_TEXT = "Trace Framework"
``` |
c0bdd68d-590c-4e43-b95e-60f4cefbe45b | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Torrent client"
HOMEPAGE = "http://libtorrent.rakshasa.no/"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "libsigc++-2.0 curl cppunit libtorrent ncurses"
SRC_URI = "git://github.com/rakshasa/rtorrent \
file://don-t-run-code-while-configuring-package.patch \
"
SRCREV = "226e670decf92e7adaa845a6982aca4f164ea740"
PV = "0.9.6+git${SRCPV}"
S = "${WORKDIR}/git"
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
inherit autotools pkgconfig
do_configure_prepend() {
(cd ${S}; ./autogen.sh; cd -)
}
```
Upgrade to 0.9.7 release point | ```bitbake
SUMMARY = "Torrent client"
HOMEPAGE = "http://libtorrent.rakshasa.no/"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "libsigc++-2.0 curl cppunit libtorrent ncurses"
SRC_URI = "git://github.com/rakshasa/rtorrent \
file://don-t-run-code-while-configuring-package.patch \
"
# v0.9.7
SRCREV = "327164f9d86aafcd2500a317d485374df32ea622"
PV = "0.9.7+git${SRCPV}"
S = "${WORKDIR}/git"
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
inherit autotools pkgconfig
do_configure_prepend() {
(cd ${S}; ./autogen.sh; cd -)
}
``` |
c853bd10-61a4-4019-8926-bf39ba290e37 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Multitouch viewer"
DESCRIPTION = "mtview is a small X application that shows a graphical view of your MT-enabled hardware. It uses mtdev."
HOMEPAGE = "http://bitmath.org/code/mtview/"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=4c61b8950dc1aab4d2aa7c2ae6b1cfb3"
inherit autotools
SRC_URI = "git://bitmath.org/git/mtview.git;protocol=http"
SRCREV = "ad437c38dc111cf3990a03abf14efe1b5d89604b"
DEPENDS += "mtdev utouch-frame utouch-evemu"
PV = "1.1.7+git${SRCPV}"
S = "${WORKDIR}/git/"
```
Add missing dependency to libx11 | ```bitbake
SUMMARY = "Multitouch viewer"
DESCRIPTION = "mtview is a small X application that shows a graphical view of your MT-enabled hardware. It uses mtdev."
HOMEPAGE = "http://bitmath.org/code/mtview/"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=4c61b8950dc1aab4d2aa7c2ae6b1cfb3"
inherit autotools
SRC_URI = "git://bitmath.org/git/mtview.git;protocol=http"
SRCREV = "ad437c38dc111cf3990a03abf14efe1b5d89604b"
DEPENDS += "mtdev utouch-frame utouch-evemu libx11"
PV = "1.1.7+git${SRCPV}"
S = "${WORKDIR}/git/"
``` |
baa2cbdb-75ca-4c97-af01-11ffdc8004f6 | {
"language": "BitBake"
} | ```bitbake
SRCBRANCH ?= "2022"
SRCREV = "af204f40297c1c5beda2a4ac5070ebf6e76e30b1"
BRANCH = "2022"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=1ff609e96fc79b87da48a837cbe5db33"
PV = "${SRCBRANCH}+git${SRCPV}"
include libmetal.inc
```
Update commit id for log.h | ```bitbake
SRCBRANCH ?= "2022"
SRCREV = "bee059dfedcfd98d1b113d8d6cce1c8aa916ff54"
BRANCH = "2022"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=1ff609e96fc79b87da48a837cbe5db33"
PV = "${SRCBRANCH}+git${SRCPV}"
include libmetal.inc
``` |
539969c7-ee33-4edf-8d3d-bc5a40aab0b8 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A C++11 library for serialization"
HOMEPAGE = "https://uscilab.github.io/cereal/"
SECTION = "libs"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e612690af2f575dfd02e2e91443cea23"
SRCREV = "51cbda5f30e56c801c07fe3d3aba5d7fb9e6cca4"
SRC_URI = "git://github.com/USCiLab/cereal.git"
S = "${WORKDIR}/git"
inherit cmake
EXTRA_OECMAKE = "-DJUST_INSTALL_CEREAL=ON"
```
Add native and nativesdk classes | ```bitbake
SUMMARY = "A C++11 library for serialization"
HOMEPAGE = "https://uscilab.github.io/cereal/"
SECTION = "libs"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e612690af2f575dfd02e2e91443cea23"
SRCREV = "51cbda5f30e56c801c07fe3d3aba5d7fb9e6cca4"
SRC_URI = "git://github.com/USCiLab/cereal.git"
S = "${WORKDIR}/git"
inherit cmake
EXTRA_OECMAKE = "-DJUST_INSTALL_CEREAL=ON"
BBCLASSEXTEND = "native nativesdk"
``` |
215e6ddb-c5ff-44c1-b78a-7d01b24767bd | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Message Passing Interface(MPI) implementation"
HOMEPAGE = "http://git.mpich.org/mpich.git/"
SECTION = "devel"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=2106f0435056f3dd9349747a766e5816"
SRC_URI = "http://www.mpich.org/static/downloads/${PV}/mpich-${PV}.tar.gz"
SRC_URI[md5sum] = "40dc408b1e03cc36d80209baaa2d32b7"
SRC_URI[sha256sum] = "455ccfaf4ec724d2cf5d8bff1f3d26a958ad196121e7ea26504fd3018757652d"
RDEPENDS_${PN} += "bash perl tcsh"
S = "${WORKDIR}/${PN}-${PV}"
EXTRA_OECONF = "--enable-debuginfo \
--enable-fast \
--enable-shared \
--disable-f77 \
--disable-fc \
--disable-fortran \
--disable-cxx"
inherit autotools-brokensep gettext
do_configure_prepend() {
autoreconf --verbose --install --force -I . -I confdb/ -I maint/
oe_runconf
exit
}
```
Disable RPATH to avoid issues in package_qa | ```bitbake
SUMMARY = "Message Passing Interface (MPI) implementation"
HOMEPAGE = "http://www.mpich.org/"
SECTION = "devel"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=2106f0435056f3dd9349747a766e5816"
SRC_URI = " \
http://www.mpich.org/static/downloads/${PV}/mpich-${PV}.tar.gz \
"
SRC_URI[md5sum] = "40dc408b1e03cc36d80209baaa2d32b7"
SRC_URI[sha256sum] = "455ccfaf4ec724d2cf5d8bff1f3d26a958ad196121e7ea26504fd3018757652d"
RDEPENDS_${PN} += "bash perl libxml2"
S = "${WORKDIR}/${PN}-${PV}"
EXTRA_OECONF = "--enable-debuginfo \
--enable-fast \
--enable-shared \
--with-pm=gforker \
--disable-rpath \
--disable-f77 \
--disable-fc \
--disable-fortran \
--disable-cxx"
inherit autotools-brokensep gettext
do_configure_prepend() {
autoreconf --verbose --install --force -I . -I confdb/ -I maint/
oe_runconf
exit
}
``` |
e2a6b3f8-d6a6-49f2-bfac-09d5a6742ef0 | {
"language": "BitBake"
} | ```bitbake
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://LICENSE.LGPL-2.1;md5=4fbd65380cdd255951079008b364516c"
DEPENDS = "kdelibs4 kde-runtime libkactivities4"
inherit kde_cmake
# This tag is very odd, it will cause bitbake to create a directory in the workdir of this recipe with the name 2.0+${SRCREV}
# But other than that no misbehaviour has been spotted
SRC_URI = "git://anongit.kde.org/share-like-connect.git;branch=master"
## Tag Active/2.0
SRCREV = "9ed8128284ab9fcab806455bccf0344dd21afbd1"
PV = "Active-2.0+git${SRCPV}"
S = "${WORKDIR}/git"
FILES_${PN} += "\
${libdir}/libsharelikeconnect.so \
${libdir}/kde4/*.so \
${libdir}/kde4/imports/* \
\
${datadir}/* \
"
FILES_${PN}-dbg += "${libdir}/kde4/.debug/*"```
Remove obsolete comment issue has been fixed for long | ```bitbake
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://LICENSE.LGPL-2.1;md5=4fbd65380cdd255951079008b364516c"
DEPENDS = "kdelibs4 kde-runtime libkactivities4"
inherit kde_cmake
SRC_URI = "git://anongit.kde.org/share-like-connect.git;branch=master"
## Tag Active/2.0
SRCREV = "9ed8128284ab9fcab806455bccf0344dd21afbd1"
PV = "Active-2.0+git${SRCPV}"
S = "${WORKDIR}/git"
FILES_${PN} += "\
${libdir}/libsharelikeconnect.so \
${libdir}/kde4/*.so \
${libdir}/kde4/imports/* \
\
${datadir}/* \
"
FILES_${PN}-dbg += "${libdir}/kde4/.debug/*"``` |
06801ce1-d267-4382-9afd-f321d2f2d97b | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "PyUSB provides USB access on the Python language"
HOMEPAGE = "http://pyusb.sourceforge.net/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e64a29fcd3c3dd356a24e235dfcb3905"
DEPENDS += "libusb1 ${PYTHON_PN}-setuptools-scm-native"
RDEPENDS_${PN} += " \
python3-logging \
"
SRC_URI[sha256sum] = "d68597d2cf7df766bdf816b1a337b72ab8233c19825e170ae18714f16b838cbc"
inherit pypi setuptools3
BBCLASSEXTEND = "native nativesdk"
```
Add missing runtime dependency on libusb1 | ```bitbake
SUMMARY = "PyUSB provides USB access on the Python language"
HOMEPAGE = "http://pyusb.sourceforge.net/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e64a29fcd3c3dd356a24e235dfcb3905"
DEPENDS += "libusb1 ${PYTHON_PN}-setuptools-scm-native"
RDEPENDS_${PN} += " \
python3-logging \
"
SRC_URI[sha256sum] = "d68597d2cf7df766bdf816b1a337b72ab8233c19825e170ae18714f16b838cbc"
inherit pypi setuptools3
RDEPENDS_${PN} += "libusb1"
BBCLASSEXTEND = "native nativesdk"
``` |
c8165668-fe9c-4aa8-aa89-1d48dab4c7c8 | {
"language": "BitBake"
} | ```bitbake
require u-boot-ti.inc
PR = "r21"
BRANCH = "ti-u-boot-2020.01"
SRCREV = "7c8ae131b5623ff14c1b1ad6702801e39ef9b722"
```
Update to latest commit SHA | ```bitbake
require u-boot-ti.inc
PR = "r22"
BRANCH = "ti-u-boot-2020.01"
SRCREV = "3c9ebdb87d65aacc4ec302be8bef3df15364bacd"
``` |
b6f8e468-97da-41f7-8053-403bcdc6c0f0 | {
"language": "BitBake"
} | ```bitbake
#
# Copyright (C) 2015 Pelagicore AB
# All rights reserved.
#
DESCRIPTION = "dLeyna Server"
DEPENDS = "dleyna-core"
EXTRA_OECONF += " --enable-never-quit "
require dleyna-git.inc
inherit systemd
SRCREV = "b5394e2be1cfaefe1f442a7cacc1c3a1f0c1c1ff"
SRC_URI += "file://dleyna.service"
SYSTEMD_SERVICE_${PN} = "dleyna.service"
SYSTEMD_AUTO_ENABLE = "enable"
do_install_append() {
install -Dm0644 ${WORKDIR}/dleyna.service ${D}/lib/systemd/system/dleyna.service
}
```
Enable debug output (defaults to syslog) | ```bitbake
#
# Copyright (C) 2015 Pelagicore AB
# All rights reserved.
#
DESCRIPTION = "dLeyna Server"
DEPENDS = "dleyna-core"
EXTRA_OECONF += " --enable-never-quit --enable-debug"
require dleyna-git.inc
inherit systemd
SRCREV = "b5394e2be1cfaefe1f442a7cacc1c3a1f0c1c1ff"
SRC_URI += "file://dleyna.service"
SYSTEMD_SERVICE_${PN} = "dleyna.service"
SYSTEMD_AUTO_ENABLE = "enable"
do_install_append() {
install -Dm0644 ${WORKDIR}/dleyna.service ${D}/lib/systemd/system/dleyna.service
}
``` |
903ab448-be08-4893-b8f7-61fc2eeda827 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "WSGI HTTP Server for UNIX"
DESCRIPTION = "\
Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP Server for UNIX. It’s \
a pre-fork worker model ported from Ruby’s Unicorn project. The \
Gunicorn server is broadly compatible with various web frameworks, \
simply implemented, light on server resource usage, and fairly speedy. \
"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=745a2e1156687fbf695fa81a971f82d1"
PR = "r0"
SRC_URI = "https://pypi.python.org/packages/source/g/gunicorn/${PN}-${PV}.tar.gz"
SRC_URI[md5sum] = "faa3e80661efd67e5e06bba32699af20"
SRC_URI[sha256sum] = "8bc835082882ad9a012cd790c460011e4d96bf3512d98a04d3dabbe45393a089"
inherit setuptools
RDEPENDS_${PN} += " \
python-netclient \
python-email \
python-fcntl \
python-resource \
python-netserver \
python-unixadmin \
python-argparse \
python-multiprocessing \
python-importlib \
"
```
Remove importlib dependency since it causes compile errors | ```bitbake
SUMMARY = "WSGI HTTP Server for UNIX"
DESCRIPTION = "\
Gunicorn ‘Green Unicorn’ is a Python WSGI HTTP Server for UNIX. It’s \
a pre-fork worker model ported from Ruby’s Unicorn project. The \
Gunicorn server is broadly compatible with various web frameworks, \
simply implemented, light on server resource usage, and fairly speedy. \
"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=745a2e1156687fbf695fa81a971f82d1"
PR = "r0"
SRC_URI = "https://pypi.python.org/packages/source/g/gunicorn/${PN}-${PV}.tar.gz"
SRC_URI[md5sum] = "faa3e80661efd67e5e06bba32699af20"
SRC_URI[sha256sum] = "8bc835082882ad9a012cd790c460011e4d96bf3512d98a04d3dabbe45393a089"
inherit setuptools
RDEPENDS_${PN} += " \
python-netclient \
python-email \
python-fcntl \
python-resource \
python-netserver \
python-unixadmin \
python-argparse \
python-multiprocessing \
"
``` |
92ed6f7a-4522-441e-b56f-cb5eb8080967 | {
"language": "BitBake"
} | ```bitbake
LICENSE= "MIT"
SUMMARY = "X Server Nokia 770 extensions library"
SECTION = "x11/libs"
DEPENDS = "virtual/libx11 libxext"
LIC_FILES_CHKSUM = "file://COPYING;md5=db043791349ba57ad1169e1c92477cb6"
SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/x/${BPN}/${BPN}_${PV}.tar.gz \
file://auxdir.patch;striplevel=0"
S = "${WORKDIR}/xpext-1.0"
inherit autotools pkgconfig distro_features_check
# depends on virtual/libx11
REQUIRED_DISTRO_FEATURES = "x11"
SRC_URI[md5sum] = "1b0cb67b6f2bd7c4abef17648b062896"
SRC_URI[sha256sum] = "a3b06f5188fd9effd0799ae31352b3cd65cb913b964e2c1a923ffa9d3c08abbe"
```
Remove RDEPEND on empty xpext package. | ```bitbake
LICENSE= "MIT"
SUMMARY = "X Server Nokia 770 extensions library"
SECTION = "x11/libs"
DEPENDS = "virtual/libx11 libxext"
LIC_FILES_CHKSUM = "file://COPYING;md5=db043791349ba57ad1169e1c92477cb6"
SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/x/${BPN}/${BPN}_${PV}.tar.gz \
file://auxdir.patch;striplevel=0"
S = "${WORKDIR}/xpext-1.0"
inherit autotools pkgconfig distro_features_check
# depends on virtual/libx11
REQUIRED_DISTRO_FEATURES = "x11"
# Remove runtime dependency on empty package ${PN}
RDEPENDS_${PN}-dev = ""
SRC_URI[md5sum] = "1b0cb67b6f2bd7c4abef17648b062896"
SRC_URI[sha256sum] = "a3b06f5188fd9effd0799ae31352b3cd65cb913b964e2c1a923ffa9d3c08abbe"
``` |
08a7c2b1-9f6d-4030-807a-df3f31eea55d | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A library for loose coupling of C++ method calls"
SECTION = "libs"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=d8045f3b8f929c1cb29a1e3fd737b499"
DEPENDS = "mm-common"
SRC_URI = "ftp://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/libsigc++-${PV}.tar.xz"
SRC_URI[md5sum] = "815d0c6d61601f51bbcaeef6826606b0"
SRC_URI[sha256sum] = "9834045f74f56752c2c6b3cdc195c30ab8314ad22dc8e626d6f67f940f1e4957"
S = "${WORKDIR}/libsigc++-${PV}"
inherit autotools
EXTRA_AUTORECONF = "--exclude=autoheader"
FILES_${PN}-dev += "${libdir}/sigc++-*/"
FILES_${PN}-doc += "${datadir}/devhelp"
BBCLASSEXTEND = "native"
```
Use http instead of ftp in SRC_URI | ```bitbake
SUMMARY = "A library for loose coupling of C++ method calls"
SECTION = "libs"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=d8045f3b8f929c1cb29a1e3fd737b499"
DEPENDS = "mm-common"
SRC_URI = "http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.2/libsigc++-${PV}.tar.xz"
SRC_URI[md5sum] = "815d0c6d61601f51bbcaeef6826606b0"
SRC_URI[sha256sum] = "9834045f74f56752c2c6b3cdc195c30ab8314ad22dc8e626d6f67f940f1e4957"
S = "${WORKDIR}/libsigc++-${PV}"
inherit autotools
EXTRA_AUTORECONF = "--exclude=autoheader"
FILES_${PN}-dev += "${libdir}/sigc++-*/"
FILES_${PN}-doc += "${datadir}/devhelp"
BBCLASSEXTEND = "native"
``` |
b1c59ab9-974f-49d1-93bd-69c6fc3af866 | {
"language": "BitBake"
} | ```bitbake
# This image extends fsl-image-multimedia_full with the following:
# XFCE desktop
# Disk formatting tools
# Modem and wireless support
require recipes-fsl/images/fsl-image-multimedia-full.bb
IMAGE_FEATURES += "package-management ssh-server-dropbear"
IMAGE_INSTALL_append = " e2fsprogs-mke2fs dosfstools"
IMAGE_INSTALL_append = " packagegroup-xfce-extended"
IMAGE_INSTALL_append = " ppp wvdial linux-firmware canutils"
IMAGE_INSTALL_append = " opal6-apps-led-demo opal6-apps-rs485-test"
IMAGE_INSTALL_append = " mesa-demos nano"
```
Add opencv libraries to xfce image | ```bitbake
# This image extends fsl-image-multimedia_full with the following:
# XFCE desktop
# Disk formatting tools
# Modem and wireless support
require recipes-fsl/images/fsl-image-multimedia-full.bb
IMAGE_FEATURES += "package-management ssh-server-dropbear"
IMAGE_INSTALL_append = " e2fsprogs-mke2fs dosfstools"
IMAGE_INSTALL_append = " packagegroup-xfce-extended"
IMAGE_INSTALL_append = " ppp wvdial linux-firmware canutils"
IMAGE_INSTALL_append = " opal6-apps-led-demo opal6-apps-rs485-test"
IMAGE_INSTALL_append = " mesa-demos nano"
IMAGE_INSTALL_append = " libopencv-core-dev libopencv-highgui-dev \
libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev"
``` |
5c508dc3-ca24-4069-8622-ac52ddeb19e3 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A simple text editor"
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=8f0e2cd40e05189ec81232da84bd6e1a"
GNOMEBASEBUILDCLASS = "meson"
DEPENDS = " \
desktop-file-utils-native \
libadwaita \
gtk4 \
gtksourceview5 \
enchant2 \
"
GTKIC_VERSION = "4"
inherit gnomebase gtk-icon-cache itstool gnome-help mime-xdg features_check
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
REQUIRED_DISTRO_FEATURES = "opengl"
SRC_URI[archive.sha256sum] = "e56d4a8cdcbce8a8f1c0881b45de799f8b25205ec0cbf2269e532025761cc5da"
FILES:${PN} += " \
${datadir}/metainfo \
${datadir}/dbus-1 \
"
```
Add missing libpcre build time depenedency | ```bitbake
SUMMARY = "A simple text editor"
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=8f0e2cd40e05189ec81232da84bd6e1a"
GNOMEBASEBUILDCLASS = "meson"
DEPENDS = " \
desktop-file-utils-native \
libadwaita \
gtk4 \
gtksourceview5 \
enchant2 \
libpcre \
"
GTKIC_VERSION = "4"
inherit gnomebase gtk-icon-cache itstool gnome-help mime-xdg features_check
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
REQUIRED_DISTRO_FEATURES = "opengl"
SRC_URI[archive.sha256sum] = "e56d4a8cdcbce8a8f1c0881b45de799f8b25205ec0cbf2269e532025761cc5da"
FILES:${PN} += " \
${datadir}/metainfo \
${datadir}/dbus-1 \
"
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.