doc_id
stringlengths 36
36
| metadata
dict | input
stringlengths 28
4.3k
| output
stringlengths 11
5.45k
|
---|---|---|---|
1e794365-140e-439e-ab6f-445b4dbf4389 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "AGL SOTA Package Group"
DESCRIPTION = "A set of packages belong to GENIVI SOTA Project and OSTree"
LICENSE = "MIT"
inherit packagegroup
PACKAGES = " packagegroup-agl-sota "
ALLOW_EMPTY_${PN} = "1"
RDEPENDS_${PN} += "\
ota-plus-client \
ota-plus-demo-provision \
ostree \
"
```
Add OSTree package manager to the image | ```bitbake
SUMMARY = "AGL SOTA Package Group"
DESCRIPTION = "A set of packages belong to GENIVI SOTA Project and OSTree"
LICENSE = "MIT"
inherit packagegroup
PACKAGES = " packagegroup-agl-sota "
ALLOW_EMPTY_${PN} = "1"
RDEPENDS_${PN} += "\
ota-plus-client \
ota-plus-demo-provision \
ostree \
ostree-basic-pkg \
"
``` |
13e1b254-4870-42f2-9513-59d1be901d52 | {
"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 pam"
CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples gtk+3-demo clutter-1.0-examples"
DESCRIPTION = "A weston image with Tizen common."
DEPENDS += " tar-replacement-native "
IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
IMAGE_INSTALL += "mesa-driver-i965"
IMAGE_INSTALL += "meta"
IMAGE_INSTALL += "libpam"
IMAGE_INSTALL += "weston-common-tz-launcher"
IMAGE_INSTALL += "weston-common-config"
IMAGE_INSTALL += "user-session-units"
IMAGE_INSTALL += "default-ac-domains"
IMAGE_INSTALL += "desktop-skin"
#IMAGE_INSTALL += "crosswalk"
```
Remove useless gtk+3-demo from Common image. | ```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 pam"
CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples clutter-1.0-examples"
DESCRIPTION = "A weston image with Tizen common."
DEPENDS += " tar-replacement-native "
IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
IMAGE_INSTALL += "mesa-driver-i965"
IMAGE_INSTALL += "meta"
IMAGE_INSTALL += "libpam"
IMAGE_INSTALL += "weston-common-tz-launcher"
IMAGE_INSTALL += "weston-common-config"
IMAGE_INSTALL += "user-session-units"
IMAGE_INSTALL += "default-ac-domains"
IMAGE_INSTALL += "desktop-skin"
#IMAGE_INSTALL += "crosswalk"
``` |
0dde08a8-b1d0-46c6-8211-c9ac28c1df74 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Portable SDK for UPnP* Devices"
DESCRIPTION = "The Portable SDK for UPnP Devices is an SDK for development of \
UPnP device and control point applications. It consists of the core UPnP \
protocols along with a UPnP-specific eXtensible Markup Language (XML) parser \
supporting the Document Object Model (DOM) Level 2 API and an optional, \
integrated mini web server for serving UPnP related documents."
HOMEPAGE = "http://pupnp.sourceforge.net/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=394a0f17b97f33426275571e15920434"
PV = "1.8.4+git${SRCPV}"
# release-1.8.4
SRCREV = "d5a01fc9895daae98a0c5a8c7d3afce46add529d"
SRC_URI = "git://github.com/mrjimenez/pupnp.git;protocol=https"
S="${WORKDIR}/git"
inherit autotools
EXTRA_OECONF += "--enable-reuseaddr"
```
Build samples with LFS on | ```bitbake
SUMMARY = "Portable SDK for UPnP* Devices"
DESCRIPTION = "The Portable SDK for UPnP Devices is an SDK for development of \
UPnP device and control point applications. It consists of the core UPnP \
protocols along with a UPnP-specific eXtensible Markup Language (XML) parser \
supporting the Document Object Model (DOM) Level 2 API and an optional, \
integrated mini web server for serving UPnP related documents."
HOMEPAGE = "http://pupnp.sourceforge.net/"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://COPYING;md5=394a0f17b97f33426275571e15920434"
PV = "1.8.4+git${SRCPV}"
# release-1.8.4
SRCREV = "d5a01fc9895daae98a0c5a8c7d3afce46add529d"
SRC_URI = "git://github.com/mrjimenez/pupnp.git;protocol=https"
S="${WORKDIR}/git"
inherit autotools
EXTRA_OECONF += "--enable-reuseaddr"
# Enable LFS support ( for samples )
CFLAGS += "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
CXXFLAGS += "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
``` |
10d5ebb8-bd0a-4a97-b0f3-d7c410a8f9f0 | {
"language": "BitBake"
} | ```bitbake
require recipes-image/images/tizen-common-core-image-minimal.bb
SUMMARY = "A Wayland image with a terminal and crosswalk"
LICENSE = "MIT"
DESCRIPTION = "A weston image with Tizen common ."
# Crosswalk
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-tizen-crosswalk"
# Time zone
CORE_IMAGE_EXTRA_INSTALL += "tzdata"
```
Add app-installer in the image by default | ```bitbake
require recipes-image/images/tizen-common-core-image-minimal.bb
SUMMARY = "A Wayland image with a terminal and crosswalk"
LICENSE = "MIT"
DESCRIPTION = "A weston image with Tizen common ."
# Crosswalk
CORE_IMAGE_EXTRA_INSTALL += "packagegroup-tizen-crosswalk"
# Time zone
CORE_IMAGE_EXTRA_INSTALL += "tzdata wgt-backend"
``` |
d42a8316-3256-4765-8c03-a99e250c14eb | {
"language": "BitBake"
} | ```bitbake
PR = "r1"
require u-boot.inc
DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_at91sam9g20ek = "1"
DEFAULT_PREFERENCE_igep0020 = "1"
SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 "
SRC_URI_append_igep0020 = " \
file://update-mach-types.patch;patch=1 \
file://add-board-support-for-IGEP-v2-series-rev-B.patch;patch=1 \
"
TARGET_LDFLAGS = ""
inherit base
do_compile () {
oe_runmake ${UBOOT_MACHINE}
oe_runmake all
}
```
Make u-boot-2009.98 the preferred bootloader for sam9g45ek | ```bitbake
PR = "r1"
require u-boot.inc
DEFAULT_PREFERENCE = "-1"
DEFAULT_PREFERENCE_at91sam9g20ek = "1"
DEFAULT_PREFERENCE_at91sam9g45ek = "1"
DEFAULT_PREFERENCE_igep0020 = "1"
SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 "
SRC_URI_append_igep0020 = " \
file://update-mach-types.patch;patch=1 \
file://add-board-support-for-IGEP-v2-series-rev-B.patch;patch=1 \
"
TARGET_LDFLAGS = ""
inherit base
do_compile () {
oe_runmake ${UBOOT_MACHINE}
oe_runmake all
}
``` |
e0503e9e-20ac-4910-951d-a783cf91d279 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Linux Kernel 2.6 Userland Utilities for the PCMCIA Subsystem"
DEPENDS = "sysfsutils"
HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
SECTION = "kernel/userland"
PRIORITY = "optional"
SRC_URI = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2"
S = "${WORKDIR}/pcmciautils-${PV}"
inherit update-rc.d
INITSCRIPT_NAME = "coldplug"
INITSCRIPT_PARAMS = "defaults"
export HOSTCC = "${BUILD_CC}"
export etcdir = "${sysconfdir}"
export hotplugdir = "${sysconfdir}/hotplug"
export pcmciaconfdir = "${sysconfdir}/pcmcia"
LD = "${CC}"
CFLAGS =+ "-I${S}/src"
CFLAGS =+ '-DPCMCIAUTILS_VERSION=010'
PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs'"
do_install () {
oe_runmake 'DESTDIR=${D}' install
}
CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts"
RCONFLICTS_${PN} += "pcmcia-cs"
```
Switch to udev instead of hotplug. | ```bitbake
DESCRIPTION = "Linux Kernel 2.6 Userland Utilities for the PCMCIA Subsystem"
DEPENDS = "sysfsutils udev"
RDEPENDS = "udev"
HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
SECTION = "kernel/userland"
PRIORITY = "optional"
SRC_URI = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2"
S = "${WORKDIR}/pcmciautils-${PV}"
inherit update-rc.d
INITSCRIPT_NAME = "coldplug"
INITSCRIPT_PARAMS = "defaults"
export HOSTCC = "${BUILD_CC}"
export etcdir = "${sysconfdir}"
export pcmciaconfdir = "${sysconfdir}/pcmcia"
export udevrulesdir = "${sysconfdir}/udev/rules.d"
export UDEV = 1
LD = "${CC}"
CFLAGS =+ "-I${S}/src"
CFLAGS =+ '-DPCMCIAUTILS_VERSION=010'
PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs'"
do_install () {
oe_runmake 'DESTDIR=${D}' install
}
CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts"
RCONFLICTS_${PN} += "pcmcia-cs"
``` |
20454854-f264-423d-b85b-a0f6fea792c4 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Data files for usbmodeswitch"
LICENSE = "GPLv2"
SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${PV}.tar.bz2"
SRC_URI[md5sum] = "85c16bb87a6f05c2d04b93a22fe87e91"
SRC_URI[sha256sum] = "a81821d3d9ad9e1d3a31ea11d0da9841ca84350f0b445a8f9ea2dbd142cefb46"
do_install() {
oe_runmake install DESTDIR=${D}
}
PACKAGE_ARCH = "all"
```
Fix deps and add udev rules to package | ```bitbake
DESCRIPTION = "Data files for usbmodeswitch"
LICENSE = "GPLv2"
RDEPENDS_${PN} = "\
usb-modeswitch \
tcl \
"
PR="r1"
SRC_URI = "http://www.draisberghof.de/usb_modeswitch/usb-modeswitch-data-${PV}.tar.bz2"
SRC_URI[md5sum] = "85c16bb87a6f05c2d04b93a22fe87e91"
SRC_URI[sha256sum] = "a81821d3d9ad9e1d3a31ea11d0da9841ca84350f0b445a8f9ea2dbd142cefb46"
do_install() {
oe_runmake install DESTDIR=${D}
}
PACKAGE_ARCH = "all"
FILES_${PN} += "${base_libdir}/udev/rules.d/40-usb_modeswitch.rules"
``` |
1fdfe350-3a00-494c-bc77-07166ce34f7c | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "USB Device Firmware Upgrade utility"
SECTION = "devel"
AUTHOR = "Harald Welte <[email protected]>"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
SRC_URI = "http://dfu-util.gnumonks.org/releases/${BP}.tar.gz"
inherit autotools pkgconfig
DEPENDS = "libusb1"
SRC_URI[md5sum] = "233bb1e08ef4b405062445d84e28fde6"
SRC_URI[sha256sum] = "36428c6a6cb3088cad5a3592933385253da5f29f2effa61518ee5991ea38f833"
```
Add HOMEPAGE info into recipe file. | ```bitbake
DESCRIPTION = "USB Device Firmware Upgrade utility"
HOMEPAGE = "http://dfu-util.sourceforge.net"
SECTION = "devel"
AUTHOR = "Harald Welte <[email protected]>"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
SRC_URI = "http://dfu-util.gnumonks.org/releases/${BP}.tar.gz"
inherit autotools pkgconfig
DEPENDS = "libusb1"
SRC_URI[md5sum] = "233bb1e08ef4b405062445d84e28fde6"
SRC_URI[sha256sum] = "36428c6a6cb3088cad5a3592933385253da5f29f2effa61518ee5991ea38f833"
``` |
4b41b4a3-8680-4e26-8dd3-8e4bdbf0b2b6 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Build the go-lang tools govender and golint."
DESCRIPTION = "Build the go-lang tools govendor and golint."
LICENSE = "MIT"
S = "${WORKDIR}/git"
inherit native
DEPENDS += "\
go-native \
"
do_compile() {
export GOPATH="${S}/"
go get -u github.com/kardianos/govendor
go get -u github.com/golang/lint/golint
}
do_install() {
mv "${S}/bin/"* "${bindir}/"
}
```
Fix package path for golang/lint | ```bitbake
SUMMARY = "Build the go-lang tools govender and golint."
DESCRIPTION = "Build the go-lang tools govendor and golint."
LICENSE = "MIT"
S = "${WORKDIR}/git"
inherit native
DEPENDS += "\
go-native \
"
do_compile() {
export GOPATH="${S}/"
go get -u github.com/kardianos/govendor
go get -u golang.org/x/lint/golint
}
do_install() {
mv "${S}/bin/"* "${bindir}/"
}
``` |
0b413766-9126-432e-8d41-ceb9ccf6e78a | {
"language": "BitBake"
} | ```bitbake
LINUX_VERSION = "5.15"
KBRANCH="master"
SRCREV = "e087c38733a5df77e474c8e1706785974c5bfbab"
KCONF_AUDIT_LEVEL="0"
include linux-xlnx.inc
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
```
Move default branch to latest LTS | ```bitbake
LINUX_VERSION = "5.15.19"
KBRANCH="xlnx_rebase_v5.15_LTS"
SRCREV = "b0c1be301e78c320df8c4d93b18393bfd7fd4e9d"
KCONF_AUDIT_LEVEL="0"
include linux-xlnx.inc
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
``` |
8dab9b6c-413a-4cf1-b7d7-63b50ab622b5 | {
"language": "BitBake"
} | ```bitbake
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"
DEPENDS = "kdelibs4 soprano"
inherit kde-without-docs kde-workaround-tmp
require kde4.inc
SRC_URI = "git://anongit.kde.org/kde-baseapps;protocol=git;tag=v4.8.0 \
file://Convert-Phonon-to-phonon.patch"
SRCREV = "37a52f48ebd4850d07cd8fe7277e6fa7a653c2ae"
PV = "4.8.0+git${SRCPV}"
S = "${WORKDIR}/git"
OECMAKE_SOURCEPATH = ".."
OECMAKE_BUILDPATH = "build"
FILES_${PN} += "\
${libdir}/kde4/*.so \
${libdir}/libkdeinit4*.so \
\
${datadir}/* \
"
FILES_${PN}-dbg += "${libdir}/kde4/.debug/*"
```
Fix cross compiling errors gracefully | ```bitbake
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=5c213a7de3f013310bd272cdb6eb7a24"
DEPENDS = "kdelibs4 soprano"
inherit kde-without-docs
require kde4.inc
SRC_URI = "git://anongit.kde.org/kde-baseapps;protocol=git;tag=v4.8.0 \
file://Convert-Phonon-to-phonon.patch"
SRCREV = "37a52f48ebd4850d07cd8fe7277e6fa7a653c2ae"
PV = "4.8.0+git${SRCPV}"
S = "${WORKDIR}/git"
OECMAKE_SOURCEPATH = ".."
OECMAKE_BUILDPATH = "build"
FILES_${PN} += "\
${libdir}/kde4/*.so \
${libdir}/libkdeinit4*.so \
\
${datadir}/* \
"
FILES_${PN}-dbg += "${libdir}/kde4/.debug/*"
EXTRA_OECMAKE =+ "-DOE_CROSSCOMPILING=TRUE"
``` |
2d56fe63-5fa7-441f-be42-5ed70f9d1357 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "pristine-tar can regenerate a pristine upstream tarball using only a small binary delta file and a revision control checkout of the upstream branch"
HOMEPAGE = "https://github.com/tramseyer/pristine-tar-fwu"
SECTION = "console/utils"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://GPL;md5=751419260aa954499f7abaabaa882bbe"
PR = "r0"
PV = "1.37+gitr${SRCPV}"
DEPENDS = "zlib"
SRC_URI = "git://github.com/tramseyer/${BPN}.git;protocol=git;branch=master"
SRCREV = "1206ba2cc4e9a73c62f26d042284982390a2fca1"
S = "${WORKDIR}/git"
inherit cpan
# https://github.com/kraj/poky/blob/krogoth/meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc
# Depends on cp which is included in busybox
RDEPENDS_${PN} = " busybox \
tar \
xdelta3 \
perl \
perl-module-digest-sha \
perl-module-file-find \
perl-module-file-glob \
perl-module-file-temp \
perl-module-getopt-long \
perl-module-ipc-open2 \
perl-module-overloading"
```
Use cp from coreutils for pristine-tar-fwu. | ```bitbake
SUMMARY = "pristine-tar can regenerate a pristine upstream tarball using only a small binary delta file and a revision control checkout of the upstream branch"
HOMEPAGE = "https://github.com/tramseyer/pristine-tar-fwu"
SECTION = "console/utils"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://GPL;md5=751419260aa954499f7abaabaa882bbe"
PR = "r0"
PV = "1.37+gitr${SRCPV}"
DEPENDS = "zlib"
SRC_URI = "git://github.com/tramseyer/${BPN}.git;protocol=git;branch=master"
SRCREV = "1206ba2cc4e9a73c62f26d042284982390a2fca1"
S = "${WORKDIR}/git"
inherit cpan
# https://github.com/kraj/poky/blob/krogoth/meta/recipes-devtools/perl/perl-rdepends_5.22.1.inc
# Depends on cp which is included in coreutils
RDEPENDS_${PN} = " coreutils \
tar \
xdelta3 \
perl \
perl-module-digest-sha \
perl-module-file-find \
perl-module-file-glob \
perl-module-file-temp \
perl-module-getopt-long \
perl-module-ipc-open2 \
perl-module-overloading"
``` |
2e699b82-cd70-4d93-8ade-a06f7f1e9d96 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Control process attributes through prctl"
DESCRIPTION = "The linux prctl function allows you to control specific characteristics of a \
process' behaviour. Usage of the function is fairly messy though, due to \
limitations in C and linux. This module provides a nice non-messy python(ic) \
interface."
SECTION = "devel/python"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=1475481f9ec754d758859bd2c75f6f6f"
S = "${WORKDIR}/git"
B = "${S}"
SRCREV = "5e12e398eb5c4e30d7b29b02458c76d2cc780700"
PV = "1.8.1+git${SRCPV}"
SRC_URI = "git://github.com/seveas/python-prctl;branch=main\
file://0001-support-cross-complication.patch \
"
inherit setuptools3 python3native
DEPENDS += "libcap"
```
Use https protocol for git fetcher | ```bitbake
SUMMARY = "Control process attributes through prctl"
DESCRIPTION = "The linux prctl function allows you to control specific characteristics of a \
process' behaviour. Usage of the function is fairly messy though, due to \
limitations in C and linux. This module provides a nice non-messy python(ic) \
interface."
SECTION = "devel/python"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=1475481f9ec754d758859bd2c75f6f6f"
S = "${WORKDIR}/git"
B = "${S}"
SRCREV = "5e12e398eb5c4e30d7b29b02458c76d2cc780700"
PV = "1.8.1+git${SRCPV}"
SRC_URI = "git://github.com/seveas/python-prctl;protocol=https;branch=main \
file://0001-support-cross-complication.patch \
"
inherit setuptools3 python3native
DEPENDS += "libcap"
``` |
b6819309-5392-4a0a-a59e-3d97419ee5cd | {
"language": "BitBake"
} | ```bitbake
require linaro-image-common.inc
IMAGE_INSTALL += " \
apache2 \
fwts \
grub \
mysql5-server \
mysql5-client \
php-fpm \
php-fpm-apache2 \
packagegroup-core-buildessential \
${SDK_IMAGE_INSTALL}"
IMAGE_FEATURES += "\
dev-pkgs \
staticdev-pkgs \
tools-debug \
tools-sdk \
"
```
Revert "mongodb: remove from lamp temporarily again" | ```bitbake
require linaro-image-common.inc
IMAGE_INSTALL += " \
apache2 \
fwts \
grub \
mysql5-server \
mysql5-client \
mongodb \
php-fpm \
php-fpm-apache2 \
packagegroup-core-buildessential \
${SDK_IMAGE_INSTALL}"
IMAGE_FEATURES += "\
dev-pkgs \
staticdev-pkgs \
tools-debug \
tools-sdk \
"
``` |
16fa7e60-c411-44a5-ad4e-26ddb8fb23a8 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data"
SECTION = "console/network"
HOMEPAGE = "https://github.com/globalizejs/globalize"
LICENSE = "MIT"
S = "${WORKDIR}/git"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4db68fb4d1d9986d736b35039f2ad9ea"
SRC_URI = "git://github.com/globalizejs/globalize;tag=1.7.0;nobranch=1"
FILES:${PN} = "${datadir}/javascript/jquery-globalize"
FILES:${PN}-doc += "${docdir}/${PN}"
do_install() {
install -d ${D}${datadir}/javascript/jquery-globalize/
install -m 0644 ${S}/dist/*.js ${D}${datadir}/javascript/jquery-globalize/
install -m 0644 ${S}/dist/globalize/*.js ${D}${datadir}/javascript/jquery-globalize/
install -d ${D}${docdir}/${PN}/
install -m 0644 ${S}/LICENSE ${D}${docdir}/${PN}/
}
```
Use a proper SHA in SRCREV instead of tag | ```bitbake
DESCRIPTION = "A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data"
SECTION = "console/network"
HOMEPAGE = "https://github.com/globalizejs/globalize"
LICENSE = "MIT"
S = "${WORKDIR}/git"
LIC_FILES_CHKSUM = "file://LICENSE;md5=4db68fb4d1d9986d736b35039f2ad9ea"
SRCREV = "771061fb35f7fd8d7c2c37f5d5bb26115be382bc"
SRC_URI = "git://github.com/globalizejs/globalize;protocol=https;nobranch=1"
FILES:${PN} = "${datadir}/javascript/jquery-globalize"
FILES:${PN}-doc += "${docdir}/${PN}"
do_install() {
install -d ${D}${datadir}/javascript/jquery-globalize/
install -m 0644 ${S}/dist/*.js ${D}${datadir}/javascript/jquery-globalize/
install -m 0644 ${S}/dist/globalize/*.js ${D}${datadir}/javascript/jquery-globalize/
install -d ${D}${docdir}/${PN}/
install -m 0644 ${S}/LICENSE ${D}${docdir}/${PN}/
}
``` |
f1d16c47-ac14-4d8c-8e98-e8e2e39a114f | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "A better directory iterator and faster os.walk()"
HOMEPAGE = "https://github.com/benhoyt/scandir"
AUTHOR = "Ben Hoyt"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=482ee62da51806409d432a80eed4e3ea"
SRC_URI = "git://github.com/benhoyt/scandir.git"
SRCREV = "982e6ba60e7165ef965567eacd7138149c9ce292"
S = "${WORKDIR}/git"
inherit setuptools
```
Add native and nativesdk to BBCLASSEXTEND | ```bitbake
SUMMARY = "A better directory iterator and faster os.walk()"
HOMEPAGE = "https://github.com/benhoyt/scandir"
AUTHOR = "Ben Hoyt"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=482ee62da51806409d432a80eed4e3ea"
SRC_URI = "git://github.com/benhoyt/scandir.git"
SRCREV = "982e6ba60e7165ef965567eacd7138149c9ce292"
S = "${WORKDIR}/git"
inherit setuptools
BBCLASSEXTEND = "native nativesdk"``` |
d78b0b81-edf4-4113-b52d-58f208c13b22 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Various extras for the Jlime userlands"
PR = "r0"
RRECOMMENDS = "jlime-extras-${MACHINE}"
PACKAGE_ARCH = "all"
SRC_URI = "http://jlime.com/downloads/development/software/${PN}-${PV}.tar.gz"
FILES_${PN} = "/etc /usr"
do_install() {
install -d ${D}
cp -R etc usr ${D}
}
SRC_URI[md5sum] = "ebad10a6e081273271393507f88cca39"
SRC_URI[sha256sum] = "bb78cda43906deb5bbd73f0d9157108799ecc048521bf9654e7cfbba0885f2be"
```
Modify checksums for upstream source file change. | ```bitbake
DESCRIPTION = "Various extras for the Jlime userlands"
PR = "r0"
RRECOMMENDS = "jlime-extras-${MACHINE}"
PACKAGE_ARCH = "all"
SRC_URI = "http://jlime.com/downloads/development/software/${PN}-${PV}.tar.gz"
FILES_${PN} = "/etc /usr"
do_install() {
install -d ${D}
cp -R etc usr ${D}
}
SRC_URI[md5sum] = "920be63e2269289b5ffdf3c0199d71ef"
SRC_URI[sha256sum] = "3fd6016ac8bafab8eaa8c1cc2975a8bbeca116dcdf807989154bc772fbf518d0"
``` |
c0d73711-2541-4f68-bb5b-61b8674fcc8f | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "ESMTP is a user-configurable relay-only MTA \
with a sendmail-compatible syntax, based on libESMTP and \
supporting the AUTH (including the CRAM-MD5 and NTLM SASL \
mechanisms) and StartTLS SMTP extensions."
SECTION = "console/network"
LICENSE = "GPL"
DEPENDS = "libesmtp"
SRC_URI = "${SOURCEFORGE_MIRROR}/esmtp/esmtp-${PV}.tar.bz2"
inherit autotools
```
Add --with-libesmtp option to configure else it adds -L/lib to LDFLAGS | ```bitbake
DESCRIPTION = "ESMTP is a user-configurable relay-only MTA \
with a sendmail-compatible syntax, based on libESMTP and \
supporting the AUTH (including the CRAM-MD5 and NTLM SASL \
mechanisms) and StartTLS SMTP extensions."
SECTION = "console/network"
LICENSE = "GPL"
DEPENDS = "libesmtp"
PR = "r2"
SRC_URI = "${SOURCEFORGE_MIRROR}/esmtp/esmtp-${PV}.tar.bz2"
# Have to set this or we get -L/lib in LDFLAGS
EXTRA_OECONF = "--with-libesmtp=${STAGING_EXECPREFIXDIR}"
inherit autotools
``` |
23f3111e-4fcf-465d-9529-e59ce57cb90a | {
"language": "BitBake"
} | ```bitbake
SECTION = "console/network"
DESCRIPTION = "framebuffer screenshot program"
LICENSE = "GPL"
SRC_URI = "http://hem.bredband.net/gmogmo/fbgrab/fbgrab-${PV}.tar.gz \
file://makefile.patch;patch=1"
do_install() {
install -d ${D}${bindir} ${D}${mandir}/man1/
install -m 0755 fbgrab ${D}${bindir}
install -m 0644 fbgrab.1.man ${D}${mandir}/man1/fbgrab.1
}
```
Fix build dependencies of fbgrab | ```bitbake
SECTION = "console/network"
DESCRIPTION = "framebuffer screenshot program"
LICENSE = "GPL"
DEPENDS = " zlib libpng "
SRC_URI = "http://hem.bredband.net/gmogmo/fbgrab/fbgrab-${PV}.tar.gz \
file://makefile.patch;patch=1"
do_install() {
install -d ${D}${bindir} ${D}${mandir}/man1/
install -m 0755 fbgrab ${D}${bindir}
install -m 0644 fbgrab.1.man ${D}${mandir}/man1/fbgrab.1
}
``` |
c29f74b0-266a-4be1-9470-793f1b522bb9 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Full-featured IRC chat client with scripting support"
LICENSE = "GPL"
HOMEPAGE = "http://www.xchat.org"
SECTION "x11/network"
MAINTAINER = "Koen Kooi <[email protected]>"
DEPENDS = "libgcrypt zlib gtk+"
PR = "r1"
SRC_URI = "http://www.xchat.org/files/source/2.6/xchat-${PV}.tar.bz2"
inherit autotools
EXTRA_OECONF = " --disable-perl --disable-python "
```
Fix missing '=' after SECTION | ```bitbake
DESCRIPTION = "Full-featured IRC chat client with scripting support"
LICENSE = "GPL"
HOMEPAGE = "http://www.xchat.org"
SECTION = "x11/network"
MAINTAINER = "Koen Kooi <[email protected]>"
DEPENDS = "libgcrypt zlib gtk+"
PR = "r2"
SRC_URI = "http://www.xchat.org/files/source/2.6/xchat-${PV}.tar.bz2"
inherit autotools
EXTRA_OECONF = " --disable-perl --disable-python "
``` |
e0843cef-97b3-4f4b-8f9e-1e01fe178b03 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "An sh-compatible command language interpreter."
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
DEPENDS = "ncurses"
SECTION = "base/shell"
LICENSE = "GPL"
PROVIDES = "virtual/sh"
PR = "r3"
SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz \
file://signames-mipsel.diff;patch=1"
inherit autotools
bindir = "/bin"
sbindir = "/sbin"
EXTRA_OECONF = "--with-ncurses"
export CC_FOR_BUILD = "${BUILD_CC}"
do_configure () {
oe_runconf
}
# dont use update-alternatives class because since we are dealing with /bin/sh
# we need to do the remove in pkg_prerm where the /bin/sh link still points
# to something (postrm is a shell script)
ALTERNATIVE_NAME = "sh"
ALTERNATIVE_PATH = "${bindir}/bash"
ALTERNATIVE_PRIORITY = "30"
ALTERNATIVE_LINK = "${bindir}/${ALTERNATIVE_NAME}"
pkg_postinst() {
update-alternatives --install ${ALTERNATIVE_LINK} ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH} ${ALTERNATIVE_PRIORITY}
}
pkg_prerm() {
update-alternatives --remove ${ALTERNATIVE_NAME} ${ALTERNATIVE_PATH}
}
```
Fix the bash build for uclibc and kill the dangerous /bin/sh alternatives bits. | ```bitbake
DESCRIPTION = "An sh-compatible command language interpreter."
HOMEPAGE = "http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html"
DEPENDS = "ncurses"
SECTION = "base/shell"
LICENSE = "GPL"
PR = "r4"
SRC_URI = "${GNU_MIRROR}/bash/bash-${PV}.tar.gz \
file://signames-mipsel.diff;patch=1"
inherit autotools
bindir = "/bin"
sbindir = "/sbin"
EXTRA_OECONF = "--with-ncurses"
export CC_FOR_BUILD = "${BUILD_CC}"
do_configure () {
gnu-configize
oe_runconf
}
``` |
550e5c11-9542-4256-8a9f-6e628a7f27d9 | {
"language": "BitBake"
} | ```bitbake
# Python bindings for libcups, from the CUPS project.
#
# Copyright (c) Ambu A/S - All rights reserved
# SPDX-License-Identifier: MIT
#
# Author(s)
# [email protected] (Claus Stovgaard)
#
DESCRIPTION = "pycups - CUPS bindings for Python"
HOMEPAGE = "https://github.com/OpenPrinting/pycups"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS += "cups"
# See https://pypi.org/project/pycups/ for data
SRC_URI[sha256sum] = "57434ce5f62548eb12949ca8217f066f4eeb21a5d6ab8b13471dce350e380c90"
inherit pypi setuptools3
```
Revert "python3-pycups: Inherit setuptools3 instead of python_setuptools_build_meta" | ```bitbake
# Python bindings for libcups, from the CUPS project.
#
# Copyright (c) Ambu A/S - All rights reserved
# SPDX-License-Identifier: MIT
#
# Author(s)
# [email protected] (Claus Stovgaard)
#
DESCRIPTION = "pycups - CUPS bindings for Python"
HOMEPAGE = "https://github.com/OpenPrinting/pycups"
LICENSE = "GPL-2.0-or-later"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS += "cups"
# See https://pypi.org/project/pycups/ for data
SRC_URI[sha256sum] = "57434ce5f62548eb12949ca8217f066f4eeb21a5d6ab8b13471dce350e380c90"
inherit pypi python_setuptools_build_meta
``` |
07374a63-5edb-403e-b325-180f345d907a | {
"language": "BitBake"
} | ```bitbake
require linux.inc
DESCRIPTION = "Linux kernel for Allwinner a10 processors"
KERNEL_IMAGETYPE = "uImage"
COMPATIBLE_MACHINE = "(allwinner-a10)"
PR = "2"
PV = "3.0.42"
# Last tested version by myself"
SRCREV_pn-${PN} = "7003c80c6dbea815c4a78e745565ec03a039ba3a"
MACHINE_KERNEL_PR_append = "a"
SRC_URI += "git://github.com/amery/linux-allwinner.git;branch=allwinner-v3.0-android-v2;protocol=git \
file://0001-aufs3-kbuild.patch \
file://0002-aufs3-base.patch \
file://0003-aufs3-proc_map.patch \
file://0004-aufs3-standalone.patch \
file://fs \
file://aufs_type.h \
file://defconfig \
"
S = "${WORKDIR}/git"
#add AUFS stuff
do_copy_aufs () {
cp ${WORKDIR}/aufs_type.h ${S}/include/linux
cp -a ${WORKDIR}/fs ${S}/
}
addtask copy_aufs after do_unpack before do_patch
```
Use new sunxi repository for the kernel | ```bitbake
require linux.inc
DESCRIPTION = "Linux kernel for Allwinner a10 processors"
KERNEL_IMAGETYPE = "uImage"
COMPATIBLE_MACHINE = "(allwinner-a10)"
PR = "3"
PV = "3.0.42"
# Last tested version by myself"
SRCREV_pn-${PN} = "09946bae6c414e62c066c57169100c62cd303500"
MACHINE_KERNEL_PR_append = "a"
SRC_URI += "git://github.com/linux-sunxi/linux-sunxi.git;branch=sunxi-3.0;protocol=git \
file://0001-aufs3-kbuild.patch \
file://0002-aufs3-base.patch \
file://0003-aufs3-proc_map.patch \
file://0004-aufs3-standalone.patch \
file://fs \
file://aufs_type.h \
file://defconfig \
"
S = "${WORKDIR}/git"
#add AUFS stuff
do_copy_aufs () {
cp ${WORKDIR}/aufs_type.h ${S}/include/linux
cp -a ${WORKDIR}/fs ${S}/
rm -rf ${S}/modules/wifi
}
do_package_prepend() {
}
addtask copy_aufs after do_unpack before do_patch
INSANE_SKIP_kernel-dev = "debug-files debug-deps"
``` |
9bdd3122-e226-4c6e-b4b2-a96ea18103cc | {
"language": "BitBake"
} | ```bitbake
require linux-opendreambox-2.6.18.inc
MACHINE_KERNEL_PR_append = "${PR_INC}.4"
RDEPENDS_${PN} += "dreambox-secondstage (>=83)"
SRC_URI += "\
file://linux-2.6.18-disable-unneeded-uarts.patch \
file://linux-2.6.18-use-full-flash.patch;patch=1 \
"
pkg_preinst_kernel-image_append_dm8000 () {
if [ -z "$D" ]; then
# /boot has been mounted already by pkg_preinst_kernel-image
if grep -q '^mtd3: 03c00000 ' /proc/mtd && ! grep -q '^legacy_flash_mapping=' /boot/secondstage.conf; then
echo "enable legacy flash mapping in secondstage.conf";
echo "legacy_flash_mapping=1;" >> /boot/secondstage.conf;
fi;
fi;
true
}
```
Fix old patch warning in dm8000 recipe | ```bitbake
require linux-opendreambox-2.6.18.inc
MACHINE_KERNEL_PR_append = "${PR_INC}.4"
RDEPENDS_${PN} += "dreambox-secondstage (>=83)"
SRC_URI += "\
file://linux-2.6.18-disable-unneeded-uarts.patch \
file://linux-2.6.18-use-full-flash.patch \
"
pkg_preinst_kernel-image_append_dm8000 () {
if [ -z "$D" ]; then
# /boot has been mounted already by pkg_preinst_kernel-image
if grep -q '^mtd3: 03c00000 ' /proc/mtd && ! grep -q '^legacy_flash_mapping=' /boot/secondstage.conf; then
echo "enable legacy flash mapping in secondstage.conf";
echo "legacy_flash_mapping=1;" >> /boot/secondstage.conf;
fi;
fi;
true
}
``` |
2a2c1b3b-7e45-43ba-afee-75c746ae03a3 | {
"language": "BitBake"
} | ```bitbake
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
DEPENDS = "glib-2.0"
inherit pkgconfig autotools
# Allows to avoid fetching, unpacking and patching, since our code is already cloned by repo
inherit externalsrc
#SRC_URI = "git://github.com/sdklsdj.git;protocol=https;branch=master"
#SRCREV = "somerevision"
EXTERNALSRC_pn-${PN} = "${BSPDIR}/source-example"
EXTERNALSRC_BUILD_pn-${PN} = "${BSPDIR}/source-example"
#S = "${EDISONREPO_TOP_DIR}/linux-kernel"
#B = "${WORKDIR}/${BP}"
PR = "r0"
```
Add descriptian and move sources out of Yocto tree | ```bitbake
DESCRIPTION = "Example how to build sources out of tree"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
HOMEPAGE = ""
DEPENDS = "glib-2.0"
inherit pkgconfig autotools
# Allows to avoid fetching, unpacking and patching, since our code is already cloned by repo
inherit externalsrc
EXTERNALSRC_pn-${PN} = "${BSPDIR}/../source-example"
EXTERNALSRC_BUILD_pn-${PN} = "${BSPDIR}/../source-example"
PR = "r0"
``` |
955d85b9-70d9-4fe1-b7db-23667733908e | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "program to manage GPS data"
HOMEPAGE = "http://viking.sourceforge.net/"
SECTION = "x11/applications"
DEPENDS = "gpsd gtk+"
LICENSE = "GPLv2"
PRIORITY = "optional"
SRC_URI = "${SOURCEFORGE_MIRROR}/viking/viking-${PV}.tar.gz \
file://viking-openaerialmap.patch \
file://viking-parallel-build.patch"
# libgps is linked with c++
#export CC='${CC} -lstdc++'
LDFLAGS += "-lstdc++"
inherit autotools
SRC_URI[md5sum] = "14c7de0702a5bd5e45924bd166ae5ee2"
SRC_URI[sha256sum] = "9370d4e6a7166c03c8838edc9defd5c9c637b0a2a2f765e2a0d7ec4ed9079fb8"
```
Disable realtime gps tracking. * The code is not compatible with current gpsd. | ```bitbake
DESCRIPTION = "program to manage GPS data"
HOMEPAGE = "http://viking.sourceforge.net/"
SECTION = "x11/applications"
DEPENDS = "gpsd gtk+"
LICENSE = "GPLv2"
PRIORITY = "optional"
PR = "r1"
SRC_URI = "${SOURCEFORGE_MIRROR}/viking/viking-${PV}.tar.gz \
file://viking-openaerialmap.patch \
file://viking-parallel-build.patch"
EXTRA_OECONF = "--disable-realtime-gps-tracking"
inherit autotools
SRC_URI[md5sum] = "14c7de0702a5bd5e45924bd166ae5ee2"
SRC_URI[sha256sum] = "9370d4e6a7166c03c8838edc9defd5c9c637b0a2a2f765e2a0d7ec4ed9079fb8"
``` |
29e65371-e821-47e9-9181-4a09ebdc8171 | {
"language": "BitBake"
} | ```bitbake
SECTION = "devel"
require binutils_${PV}.bb
inherit canadian-sdk
DEPENDS="\
virtual/${HOST_PREFIX}binutils \
virtual/${HOST_PREFIX}gcc \
flex-native bison-native \
"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
EXTRA_OECONF = "--with-sysroot=${prefix}/${TARGET_SYS} \
--program-prefix=${TARGET_PREFIX}"
PR = "r3"
FILES_${PN}-dbg += "${prefix}/${TARGET_SYS}/bin/.debug"
do_stage() {
:
}
do_install () {
autotools_do_install
# Install the libiberty header
install -d ${D}${includedir}
install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
install -m 644 ${S}/include/libiberty.h ${D}${includedir}
}
```
Use add SYSROOT, use SDK_REALPATH_MINGW, bump PR | ```bitbake
SECTION = "devel"
require binutils_${PV}.bb
inherit canadian-sdk
DEPENDS="\
virtual/${HOST_PREFIX}binutils \
virtual/${HOST_PREFIX}gcc \
flex-native bison-native \
"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}"
# On MinGW hosts we want to prepend a drive letter, in ${SDK_REALPATH_MINGW}
# to the sysroot path.
SYSROOT = "${@['${SDK_REALPATH}/${TARGET_SYS}', '${SDK_REALPATH_MINGW}${SDK_REALPATH}/${TARGET_SYS}'][bb.data.getVar('SDK_OS', d, 1) in ['mingw32', 'mingw64']]}"
EXTRA_OECONF = "--with-sysroot=${SYSROOT} \
--program-prefix=${TARGET_PREFIX}"
PR = "r4"
FILES_${PN}-dbg += "${prefix}/${TARGET_SYS}/bin/.debug"
do_stage() {
:
}
do_install () {
autotools_do_install
# Install the libiberty header
install -d ${D}${includedir}
install -m 644 ${S}/include/ansidecl.h ${D}${includedir}
install -m 644 ${S}/include/libiberty.h ${D}${includedir}
}
``` |
31f7d813-68fc-4c49-b64b-d9f32c608a12 | {
"language": "BitBake"
} | ```bitbake
HOMEPAGE = "http://alumnit.ca/wiki/index.php?page=WvStreams"
LICENSE = "LGPL"
DESCRIPTION = "WvStreams is a network programming library in C++"
DEPENDS = "zlib openssl (>= 0.9.8)"
SRC_URI = "http://wvstreams.googlecode.com/files/${PN}-${PV}.tar.gz \
file://build-fixes-and-sanity.patch;patch=1 "
inherit autotools
LDFLAGS_append = " -Wl,-rpath-link,${CROSS_DIR}/${TARGET_SYS}/lib"
EXTRA_AUTORECONF += " -I${S}/gnulib/m4"
EXTRA_OECONF = " --without-tcl --without-qt --without-pam"
do_stage() {
autotools_stage_all
}
```
Split wvstreams into smaller packages | ```bitbake
HOMEPAGE = "http://alumnit.ca/wiki/index.php?page=WvStreams"
LICENSE = "LGPL"
DESCRIPTION = "WvStreams is a network programming library in C++"
DEPENDS = "zlib openssl (>= 0.9.8)"
PR = "r1"
SRC_URI = "http://wvstreams.googlecode.com/files/${PN}-${PV}.tar.gz \
file://build-fixes-and-sanity.patch;patch=1 "
inherit autotools
LDFLAGS_append = " -Wl,-rpath-link,${CROSS_DIR}/${TARGET_SYS}/lib"
EXTRA_AUTORECONF += " -I${S}/gnulib/m4"
EXTRA_OECONF = " --without-tcl --without-qt --without-pam"
PACKAGES_prepend = "libuniconf libuniconf-dbg "
PACKAGES_prepend = "uniconfd uniconfd-dbg "
PACKAGES_prepend = "libwvstreams-base libwvstreams-base-dbg "
PACKAGES_prepend = "libwvstreams-extras libwvstreams-extras-dbg "
FILES_libuniconf = "${libdir}/libuniconf.so.*"
FILES_libuniconf-dbg = "${libdir}/.debug/libuniconf.so.*"
FILES_uniconfd = "${sbindir}/uniconfd ${sysconfdir}/uniconf.conf ${localstatedir}/uniconf"
FILES_uniconfd-dbg = "${sbindir}/.debug/uniconfd"
FILES_libwvstreams-base = "${libdir}/libwvutils.so.*"
FILES_libwvstreams-base-dbg = "${libdir}/.debug/libwvutils.so.*"
FILES_libwvstreams-extras = "${libdir}/libwvbase.so.* ${libdir}/libwvstreams.so.*"
FILES_libwvstreams-extras-dbg = "${libdir}/.debug/libwvbase.so.* ${libdir}/.debug/libwvstreams.so.*"
do_stage() {
autotools_stage_all
}
``` |
53ba9194-050e-4d97-9547-429fa3a10608 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Customized settings to use the right fonts in XFCE."
SECTION = "x11"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
RDEPENDS_${PN} = "fontconfig"
PR = "r1"
S = "${WORKDIR}"
SRC_URI = "file://48-nilrt-override.conf"
FILES_${PN} = "${sysconfdir}/fonts"
do_install () {
install -d ${D}/${sysconfdir}/fonts/conf.d
install -d ${D}/${sysconfdir}/fonts/conf.avail
install -m 0644 48-nilrt-override.conf ${D}/${sysconfdir}/fonts/conf.avail/48-nilrt-override.conf
ln -sf ${sysconfdir}/fonts/conf.avail/48-nilrt-override.conf ${D}/${sysconfdir}/fonts/conf.d/48-nilrt-override.conf
}
```
Update after toplevl LICENSE file checksum change | ```bitbake
DESCRIPTION = "Customized settings to use the right fonts in XFCE."
SECTION = "x11"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
RDEPENDS_${PN} = "fontconfig"
PR = "r1"
S = "${WORKDIR}"
SRC_URI = "file://48-nilrt-override.conf"
FILES_${PN} = "${sysconfdir}/fonts"
do_install () {
install -d ${D}/${sysconfdir}/fonts/conf.d
install -d ${D}/${sysconfdir}/fonts/conf.avail
install -m 0644 48-nilrt-override.conf ${D}/${sysconfdir}/fonts/conf.avail/48-nilrt-override.conf
ln -sf ${sysconfdir}/fonts/conf.avail/48-nilrt-override.conf ${D}/${sysconfdir}/fonts/conf.d/48-nilrt-override.conf
}
``` |
9a30cc25-861e-4687-b2fe-b330910845bc | {
"language": "BitBake"
} | ```bitbake
# Base this image on rpi-basic-image
include recipes-core/images/rpi-basic-image.bb
require common.inc
IMAGE_INSTALL +=" \
iw \
linux-firmware-bcm43430 \
"
```
Deploy required firmwares to the rpi3 board. | ```bitbake
# Base this image on rpi-basic-image
include recipes-core/images/rpi-basic-image.bb
require common.inc
IMAGE_INSTALL +=" \
iw \
linux-firmware \
mesa \
"
``` |
4c78e986-c473-4bed-b937-207f85692bb5 | {
"language": "BitBake"
} | ```bitbake
require u-boot-socfpga-common.inc
require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc
FILESEXTRAPATHS =. "${THISDIR}/files/v2017.09:"
SRCREV = "c98ac3487e413c71e5d36322ef3324b21c6f60f9"
# Stratix10 is not mainlined yet
SRCREV_stratix10 = "c85cd1fc1331210f1c22adb29d932d4052f79c78"
SRC_URI_stratix10 = "git://github.com/altera-opensource/u-boot-socfpga.git;branch=socfpga_v2017.09;prot=https"
SRC_URI_append = "\
"
DEPENDS += "dtc-native bc-native u-boot-mkimage-native"
```
Update Stratix 10 u-Boot SRCREV | ```bitbake
require u-boot-socfpga-common.inc
require ${COREBASE}/meta/recipes-bsp/u-boot/u-boot.inc
FILESEXTRAPATHS =. "${THISDIR}/files/v2017.09:"
SRCREV = "c98ac3487e413c71e5d36322ef3324b21c6f60f9"
# Stratix10 is not mainlined yet
SRCREV_stratix10 = "03db6f4894450a0a8b80478a8567a7353cb2ab99"
SRC_URI_stratix10 = "git://github.com/altera-opensource/u-boot-socfpga.git;branch=socfpga_v2017.09;prot=https"
SRC_URI_append = "\
"
DEPENDS += "dtc-native bc-native u-boot-mkimage-native"
``` |
bde827f1-4064-48d9-a89c-ed3ca8d57e4a | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Starling audio player for GPE"
SECTION = "gpe/multimedia"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "gtk+ gstreamer gst-plugins-good gst-plugins-bad ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'gst-plugins-ugly', d)} esound sqlite libsoup libhandoff"
PR = "r3"
inherit gpe autotools
SRC_URI = "http://gpe.linuxtogo.org/download/source/starling-${PV}.tar.bz2"
RDEPENDS_${PN} = "\
esd \
gst-plugin-audioconvert \
gst-plugin-esd \
gst-plugin-typefindfunctions \
gst-plugin-decodebin \
gst-plugin-volume \
"
RRECOMMENDS_${PN} = "\
gst-plugin-mad \
gst-plugin-modplug \
gst-plugin-ivorbisdec \
gst-plugin-tcp \
"
SRC_URI[md5sum] = "1c9cab1e49819dbe4e876c3be26cca6b"
SRC_URI[sha256sum] = "63ed3e239c79a5913e9542b7023586c51a592e33d2ec0256dafa34cbae20c497"
```
Work around bitbake issue making a dependency from a RRECOMMEND statement. | ```bitbake
DESCRIPTION = "Starling audio player for GPE"
SECTION = "gpe/multimedia"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "gtk+ gstreamer gst-plugins-good gst-plugins-bad ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'gst-plugins-ugly', d)} esound sqlite libsoup libhandoff"
PR = "r3"
inherit gpe autotools
SRC_URI = "http://gpe.linuxtogo.org/download/source/starling-${PV}.tar.bz2"
RDEPENDS_${PN} = "\
esd \
gst-plugin-audioconvert \
gst-plugin-esd \
gst-plugin-typefindfunctions \
gst-plugin-decodebin \
gst-plugin-volume \
"
RRECOMMENDS_${PN} = "\
gst-plugin-modplug \
gst-plugin-ivorbisdec \
gst-plugin-tcp \
"
# gst-plugin-mad \
SRC_URI[md5sum] = "1c9cab1e49819dbe4e876c3be26cca6b"
SRC_URI[sha256sum] = "63ed3e239c79a5913e9542b7023586c51a592e33d2ec0256dafa34cbae20c497"
``` |
b483347a-f006-4a0c-a086-dd242db36de6 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Packages for Amazon Web Services."
LICENSE = "MIT"
inherit packagegroup python-dir
PR = "r0"
PACKAGES = "${PN}"
PACKAGECONFIG ??= "python java cpp cli"
PACKAGECONFIG[python] = "\
, \
, \
, \
${PYTHON_PN}-aws-iot-device-sdk \
${PYTHON_PN}-aws-iot-device-sdk-samples \
"
PACKAGECONFIG[java] = "\
, \
, \
, \
aws-iot-device-sdk-java \
aws-iot-device-sdk-java-samples \
"
PACKAGECONFIG[cpp] = "\
, \
, \
, \
aws-iot-device-sdk-cpp \
aws-iot-device-sdk-cpp-dev \
aws-iot-device-sdk-cpp-cli \
aws-iot-device-sdk-cpp-samples \
"
PACKAGECONFIG[python] = "\
, \
, \
, \
${PYTHON_PN}-awscli \
"
```
Package Group: Fix AWS package group | ```bitbake
DESCRIPTION = "Packages for Amazon Web Services."
LICENSE = "MIT"
inherit packagegroup python-dir
PR = "r1"
PACKAGES = "${PN}"
PACKAGECONFIG ??= "python java cpp cli"
PACKAGECONFIG[python] = "\
, \
, \
, \
${PYTHON_PN}-aws-iot-device-sdk \
${PYTHON_PN}-aws-iot-device-sdk-samples \
"
PACKAGECONFIG[java] = "\
, \
, \
, \
aws-iot-device-sdk-java \
aws-iot-device-sdk-java-samples \
"
PACKAGECONFIG[cpp] = "\
, \
, \
, \
aws-iot-device-sdk-cpp \
aws-iot-device-sdk-cpp-dev \
aws-iot-device-sdk-cpp-cli \
aws-iot-device-sdk-cpp-samples \
"
PACKAGECONFIG[cli] = "\
, \
, \
, \
${PYTHON_PN}-awscli \
"
``` |
09a28df6-dc9e-44e5-8d4d-d951d01975d6 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Openmoko: Tasks for the Openmoko Linux Distribution"
SECTION = "openmoko/base"
ALLOW_EMPTY = "1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
LICENSE = "MIT"
PR = "r0"
inherit task
PACKAGES = "task-openmoko-bare"
DESCRIPTION_task-openmoko-qtopia-x11 = "Openmoko: Provide Window Manager, Om-settings and Om-installer"
RDEPENDS_task-openmoko-bare = "\
readline \
connman \
connman-plugin-connman-resolvconf \
connman-plugin-connman-dhclient \
connman-plugin-connman-80211 \
connman-script-dhclient \
libnotify \
# X
illume \
illume-theme-asu \
e-wm \
${XSERVER} \
xserver-kdrive-common \
xserver-nodm-init \
xauth \
xhost \
xset \
xrandr \
# Om applications
assassin \
assassin-thumbnail \
om-settings \
openmoko-community-repository \
"
```
Change the order of illume-theme in Openmoko Bare Image. | ```bitbake
DESCRIPTION = "Openmoko: Tasks for the Openmoko Linux Distribution"
SECTION = "openmoko/base"
ALLOW_EMPTY = "1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
LICENSE = "MIT"
PR = "r0.01"
inherit task
PACKAGES = "task-openmoko-bare"
DESCRIPTION_task-openmoko-qtopia-x11 = "Openmoko: Provide Window Manager, Om-settings and Om-installer"
RDEPENDS_task-openmoko-bare = "\
readline \
connman \
connman-plugin-connman-resolvconf \
connman-plugin-connman-dhclient \
connman-plugin-connman-80211 \
connman-script-dhclient \
libnotify \
# X
# illume-theme-asu should be first than illume
# to let opkg install illume-theme-asu first than illume-theme-freesmartphone
# then we have ASU theme but not FSO theme in default.
illume-theme-asu \
illume \
e-wm \
${XSERVER} \
xserver-kdrive-common \
xserver-nodm-init \
xauth \
xhost \
xset \
xrandr \
# Om applications
assassin \
assassin-thumbnail \
om-settings \
openmoko-community-repository \
"
``` |
9aaf28b9-290d-43ae-873a-ed4fce2c6b89 | {
"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"
``` |
5b04df59-0c56-4b78-ad76-d11fa5b7b965 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Basic user and group settings for NI Linux RT applications."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r1"
ALLOW_EMPTY_${PN} = "1"
inherit allarch useradd
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = " --system -g 500 ${LVRT_GROUP}; \
--system -g 499 ${OPENVPN_GROUP}; \
--system -g 498 niwscerts"
USERADD_PARAM_${PN} = " -u 500 -N -g ${LVRT_GROUP} -G niwscerts,plugdev,tty -c 'LabVIEW user' ${LVRT_USER}; \
-u 499 -N -g ${OPENVPN_GROUP} -c 'OpenVPN user' -r ${OPENVPN_USER}; \
-u 501 -N -g ${LVRT_GROUP} -G niwscerts,plugdev -c 'Web services user' webserv"
useradd_preinst_append () {
eval ${PSEUDO} chmod g+s ${SYSROOT}/home/${LVRT_USER} ${SYSROOT}/home/webserv || true
}
```
Revert "nilrt: add webserv to group "plugdev"" | ```bitbake
DESCRIPTION = "Basic user and group settings for NI Linux RT applications."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r1"
ALLOW_EMPTY_${PN} = "1"
inherit allarch useradd
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = " --system -g 500 ${LVRT_GROUP}; \
--system -g 499 ${OPENVPN_GROUP}; \
--system -g 498 niwscerts"
USERADD_PARAM_${PN} = " -u 500 -N -g ${LVRT_GROUP} -G niwscerts,plugdev,tty -c 'LabVIEW user' ${LVRT_USER}; \
-u 499 -N -g ${OPENVPN_GROUP} -c 'OpenVPN user' -r ${OPENVPN_USER}; \
-u 501 -N -g ${LVRT_GROUP} -G niwscerts -c 'Web services user' webserv"
useradd_preinst_append () {
eval ${PSEUDO} chmod g+s ${SYSROOT}/home/${LVRT_USER} ${SYSROOT}/home/webserv || true
}
``` |
83ba68e5-d19d-45ab-a9a7-875bf0d8e2d4 | {
"language": "BitBake"
} | ```bitbake
require u-boot-ti.inc
# u-boot needs devtree compiler to parse dts files
DEPENDS += "dtc-native"
DESCRIPTION = "u-boot bootloader for TI devices"
LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"
PV = "2014.07-glsdk"
PR = "r4+gitr${SRCPV}"
BRANCH = "p-ti-u-boot-2014.07"
SRC_URI = "git://git.omapzoom.org/repo/u-boot.git;protocol=git;branch=${BRANCH}"
SRCREV = "c56da94325d1251525078f79acefb4d347a494a2"
SPL_BINARY = "MLO"
SPL_UART_BINARY = "u-boot-spl.bin"
```
Update commit for GLSDK GA release | ```bitbake
require u-boot-ti.inc
# u-boot needs devtree compiler to parse dts files
DEPENDS += "dtc-native"
DESCRIPTION = "u-boot bootloader for TI devices"
LIC_FILES_CHKSUM = "file://Licenses/README;md5=025bf9f768cbcb1a165dbe1a110babfb"
PV = "2014.07-glsdk"
PR = "r5+gitr${SRCPV}"
BRANCH = "p-ti-u-boot-2014.07"
SRC_URI = "git://git.omapzoom.org/repo/u-boot.git;protocol=git;branch=${BRANCH}"
SRCREV = "9086437f413323e3aa24f5affe89c37b95d8ff12"
SPL_BINARY = "MLO"
SPL_UART_BINARY = "u-boot-spl.bin"
``` |
dc719396-ede0-4211-9524-eebb88c75903 | {
"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 ?= "rel-v2020.2"
REPO ?= "git://github.com/xilinx/hdmi-modules.git;protocol=https"
SRCREV ?= "2cbacc12910bab236e491c5aa44999fa16cbaea9"
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"
inherit module
EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"
```
Update commit id and branch for 2021 release | ```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"
``` |
30e1bb5d-63e5-4fe3-93d3-82ca1aa1b764 | {
"language": "BitBake"
} | ```bitbake
include libxcb.inc
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7"
DEPENDS += "libxdmcp"
SRC_URI[md5sum] = "074c335cc4453467eeb234e3dadda700"
SRC_URI[sha256sum] = "98d9ab05b636dd088603b64229dd1ab2d2cc02ab807892e107d674f9c3f2d5b5"
#
# debian
#
inherit debian-package
DEBIAN_SECTION = "x11"
DPR = "0"
SRC_URI += " \
file://xcbincludedir.patch \
"
# There is no debian patch
DEBIAN_PATCH_TYPE = "nopatch"
```
Add depend on python to libxcb based on debian/rules | ```bitbake
include libxcb.inc
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=d763b081cb10c223435b01e00dc0aba7"
DEPENDS += "libxdmcp python"
SRC_URI[md5sum] = "074c335cc4453467eeb234e3dadda700"
SRC_URI[sha256sum] = "98d9ab05b636dd088603b64229dd1ab2d2cc02ab807892e107d674f9c3f2d5b5"
#
# debian
#
inherit debian-package
DEBIAN_SECTION = "x11"
DPR = "0"
SRC_URI += " \
file://xcbincludedir.patch \
"
# There is no debian patch
DEBIAN_PATCH_TYPE = "nopatch"
``` |
1a74116e-58a0-42e4-a6f3-632dc2d0781f | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "A commercial quality OCR engine "
LICENSE = "APL + others"
DEPENDS = "tiff"
SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}-ocr/${P}.tar.gz file://fix_redeclaration_conflitcs.patch;patch=1"
inherit autotools pkgconfig
SRC_URI[md5sum] = "e3bc57773a60134ef37e9f06fe541108"
SRC_URI[sha256sum] = "6fc9e28a574bf22028249e9a12e033c8bee0aeccbf90621238a6f538e60e7d60"
```
Fix deprecated syntax in tessarct | ```bitbake
DESCRIPTION = "A commercial quality OCR engine "
LICENSE = "APL + others"
DEPENDS = "tiff"
SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}-ocr/${P}.tar.gz file://fix_redeclaration_conflitcs.patch"
inherit autotools pkgconfig
SRC_URI[md5sum] = "e3bc57773a60134ef37e9f06fe541108"
SRC_URI[sha256sum] = "6fc9e28a574bf22028249e9a12e033c8bee0aeccbf90621238a6f538e60e7d60"
``` |
c36e130f-5f65-45df-bc66-811af9f8f424 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Linux Kernel 2.6 Userland Utilities for the PCMCIA Subsystem"
DEPENDS = "sysfsutils udev"
RDEPENDS = "udev"
HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
SECTION = "kernel/userland"
PRIORITY = "optional"
SRC_URI = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2"
S = "${WORKDIR}/pcmciautils-${PV}"
PR = "r1"
inherit update-rc.d
INITSCRIPT_NAME = "coldplug"
INITSCRIPT_PARAMS = "defaults"
export HOSTCC = "${BUILD_CC}"
export etcdir = "${sysconfdir}"
export pcmciaconfdir = "${sysconfdir}/pcmcia"
export udevrulesdir = "${sysconfdir}/udev/rules.d"
export UDEV = 1
LD = "${CC}"
CFLAGS =+ "-I${S}/src"
CFLAGS =+ '-DPCMCIAUTILS_VERSION=010'
PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs'"
do_install () {
oe_runmake 'DESTDIR=${D}' install
}
CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts"
RCONFLICTS_${PN} += "pcmcia-cs"
```
Install the binaries into the correct place. Remove coldplug references as they now just create errors. Add dependency on module-init-tools - when busybox's modprobe expands to cover pcmcia alias handling, this can be removed. | ```bitbake
DESCRIPTION = "Linux Kernel 2.6 Userland Utilities for the PCMCIA Subsystem"
DEPENDS = "sysfsutils udev"
RDEPENDS = "udev module-init-tools"
HOMEPAGE = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html"
SECTION = "kernel/userland"
PRIORITY = "optional"
SRC_URI = "http://kernel.org/pub/linux/utils/kernel/pcmcia/pcmciautils-${PV}.tar.bz2"
S = "${WORKDIR}/pcmciautils-${PV}"
PR = "r2"
export HOSTCC = "${BUILD_CC}"
export etcdir = "${sysconfdir}"
export sbindir = "${base_sbindir}"
export pcmciaconfdir = "${sysconfdir}/pcmcia"
export udevrulesdir = "${sysconfdir}/udev/rules.d"
export UDEV = 1
LD = "${CC}"
CFLAGS =+ "-I${S}/src"
CFLAGS =+ '-DPCMCIAUTILS_VERSION=010'
PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-e 'STRIP=echo' 'LIB_OBJS=-lc -lsysfs'"
do_install () {
oe_runmake 'DESTDIR=${D}' install
}
CONFFILES_${PN} += "${sysconfdir}/pcmcia/config.opts"
RCONFLICTS_${PN} += "pcmcia-cs"
``` |
87c6baa1-e7d2-4eef-8871-d9375a6e0ecc | {
"language": "BitBake"
} | ```bitbake
require xorg-app-common.inc
DESCRIPTION = "X Resize and Rotate extension command."
LICENSE= "BSD-X"
DEPENDS += " libxrandr libxrender virtual/libx11"
PE = "1"
PR = "r1"
SRC_URI += "file://resolve_symbol_clash.patch;patch=1"```
Remove patch that does not apply any more. | ```bitbake
require xorg-app-common.inc
DESCRIPTION = "X Resize and Rotate extension command."
LICENSE= "BSD-X"
DEPENDS += " libxrandr libxrender virtual/libx11"
PE = "1"
PR = "r2"
``` |
b17677ce-1167-4114-86ba-a7911fc5209b | {
"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 pam"
CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples clutter-1.0-examples"
DESCRIPTION = "A weston image with Tizen common."
DEPENDS += " tar-replacement-native "
IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
IMAGE_INSTALL += "mesa-driver-i965"
IMAGE_INSTALL += "meta"
IMAGE_INSTALL += "libpam"
#IMAGE_INSTALL += "crosswalk"
```
Add tz-launcher and weston config to image | ```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 pam"
CORE_IMAGE_BASE_INSTALL += "weston weston-init weston-examples clutter-1.0-examples"
DESCRIPTION = "A weston image with Tizen common."
DEPENDS += " tar-replacement-native "
IMAGE_INSTALL += "connman"
IMAGE_INSTALL += "weston-common"
IMAGE_INSTALL += "mesa-driver-i965"
IMAGE_INSTALL += "meta"
IMAGE_INSTALL += "libpam"
IMAGE_INSTALL += "weston-common-tz-launcher"
IMAGE_INSTALL += "weston-common-config"
# Doesn't build: needs to be fixed:
#IMAGE_INSTALL += "user-session-units"
#IMAGE_INSTALL += "crosswalk"
``` |
4a4fbd2e-262d-4e77-9959-d5a034cbfb30 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Fribidi library for bidirectional text"
SECTION = "libs"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
BBCLASSEXTEND = "native"
PROVIDES = "libfribidi"
DEPENDS = "glib-2.0 libpcre"
inherit autotools lib_package pkgconfig
CFLAGS_append = " -DPAGE_SIZE=4096 "
SRC_URI = "http://fribidi.org/download/fribidi-${PV}.tar.bz2"
SRC_URI[md5sum] = "6c7e7cfdd39c908f7ac619351c1c5c23"
SRC_URI[sha256sum] = "08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e"
```
Fix build with security flags turned on | ```bitbake
SUMMARY = "Fribidi library for bidirectional text"
SECTION = "libs"
LICENSE = "LGPLv2.1"
LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7"
BBCLASSEXTEND = "native"
PROVIDES = "libfribidi"
DEPENDS = "glib-2.0 libpcre"
inherit autotools lib_package pkgconfig
CFLAGS_append = " -DPAGE_SIZE=4096 "
SECURITY_CFLAGS_remove_toolchain-clang = "-D_FORTIFY_SOURCE=2"
SRC_URI = "http://fribidi.org/download/fribidi-${PV}.tar.bz2"
SRC_URI[md5sum] = "6c7e7cfdd39c908f7ac619351c1c5c23"
SRC_URI[sha256sum] = "08222a6212bbc2276a2d55c3bf370109ae4a35b689acbc66571ad2a670595a8e"
``` |
af2d550d-7056-46e4-bc10-11c3ffb68135 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "A minimal OpenAMP image"
INITRD_IMAGE = "core-image-minimal-initramfs"
LICENSE = "MIT"
inherit core-image
IMAGE_INSTALL += " \
packagegroup-core-boot \
${CORE_IMAGE_EXTRA_INSTALL} \
kernel-module-uio-pdrv-genirq \
kernel-module-remoteproc \
kernel-module-virtio \
kernel-module-virtio-ring \
kernel-module-virtio-rpmsg-bus \
libmetal \
open-amp \
"
#IMAGE_INSTALL_append_zynqmp += " kernel-module-zynqmp-r5-remoteproc"
#IMAGE_INSTALL_append_zynq += " kernel-module-zynq-remoteproc"
IMAGE_LINGUAS=""
```
Remove kernel modules that are now built-in. | ```bitbake
DESCRIPTION = "A minimal OpenAMP image"
INITRD_IMAGE = "core-image-minimal-initramfs"
LICENSE = "MIT"
inherit core-image
IMAGE_INSTALL += " \
packagegroup-core-boot \
${CORE_IMAGE_EXTRA_INSTALL} \
kernel-module-uio-pdrv-genirq \
kernel-module-virtio-rpmsg-bus \
libmetal \
open-amp \
"
#IMAGE_INSTALL_append_zynqmp += " kernel-module-zynqmp-r5-remoteproc"
#IMAGE_INSTALL_append_zynq += " kernel-module-zynq-remoteproc"
IMAGE_LINGUAS=""
``` |
5cf8c5c5-ffa6-4326-8aa8-d770020e86cd | {
"language": "BitBake"
} | ```bitbake
require fakeroot.inc
DEFAULT_PREFERENCE = "-1"
PR = "${INC_PR}.0"
SRC_URI =+ "\
${DEBIAN_MIRROR}/main/f/fakeroot/fakeroot_${PV}.orig.tar.bz2 \
file://quiet-getopt-check.patch \
"
SRC_URI[md5sum] = "248c408b1e06e776c5739871b49bd968"
SRC_URI[sha256sum] = "45fbb9ad611f33224cc09954963dde563cc80fe58c76feb25b6e98550b81729a"
```
Change download loation to a working one | ```bitbake
require fakeroot.inc
DEFAULT_PREFERENCE = "-1"
PR = "${INC_PR}.0"
SRC_URI =+ "\
https://launchpad.net/ubuntu/+archive/primary/+files/${PN}_${PV}.orig.tar.bz2 \
file://quiet-getopt-check.patch \
"
SRC_URI[md5sum] = "248c408b1e06e776c5739871b49bd968"
SRC_URI[sha256sum] = "45fbb9ad611f33224cc09954963dde563cc80fe58c76feb25b6e98550b81729a"
``` |
460243e0-6a83-4c74-a196-b79b7487b7e4 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "High-performance XML processor."
LICENSE = "AL2.0 LGPL2.1"
AUTHOR = "Codehaus"
HOMEPAGE = "http://woodstox.codehaus.org"
SRC_URI = "http://woodstox.codehaus.org/2.0.6/wstx-src.tar.gz"
S = "${WORKDIR}"
inherit java-library
DEPENDS = "fastjar-native"
do_compile() {
mkdir -p build/META-INF/services
javac -nowarn -sourcepath src/java -d build \
`find src/java/org -name "*.java"` \
`find src/java/com -name "*.java"`
cp -R src/resources/* build/META-INF/services
fastjar -C build -c -f ${JARFILENAME} .
}
SRC_URI[md5sum] = "3fc8e914d13316aa254b883a99fd2b85"
SRC_URI[sha256sum] = "e7ab2018865334a1b9b04161235192c2fdc7387baa422b576722db2011f75157"
```
Switch to subdir= in SRC_URI | ```bitbake
DESCRIPTION = "High-performance XML processor."
LICENSE = "AL2.0 LGPL2.1"
AUTHOR = "Codehaus"
HOMEPAGE = "http://woodstox.codehaus.org"
SRC_URI = "http://woodstox.codehaus.org/2.0.6/wstx-src.tar.gz;subdir=${BPN}-${PV}"
inherit java-library
DEPENDS = "fastjar-native"
do_compile() {
mkdir -p build/META-INF/services
javac -nowarn -sourcepath src/java -d build \
`find src/java/org -name "*.java"` \
`find src/java/com -name "*.java"`
cp -R src/resources/* build/META-INF/services
fastjar -C build -c -f ${JARFILENAME} .
}
SRC_URI[md5sum] = "3fc8e914d13316aa254b883a99fd2b85"
SRC_URI[sha256sum] = "e7ab2018865334a1b9b04161235192c2fdc7387baa422b576722db2011f75157"
``` |
24ee9c09-bdd5-4c85-b537-f99930561f67 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Low Level Skeleton Library for Communication on Intel platforms"
SECTION = "libs"
AUTHOR = "Brendan Le Foll, Tom Ingleby"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=e8db6501ed294e65418a933925d12058"
# git is required to get a good version from git describe
DEPENDS = "nodejs swig-native"
SRC_URI = "git://github.com/intel-iot-devkit/mraa.git;protocol=git;rev=64f377cdfcedaaff6a8fb76f83b7ece9eaba422e;nobranch=1"
S = "${WORKDIR}/git"
inherit distutils-base pkgconfig python-dir cmake
FILES_${PN}-doc += "${datadir}/mraa/examples/"
FILES_${PN}-dbg += "${libdir}/node_modules/mraajs/.debug/ \
${PYTHON_SITEPACKAGES_DIR}/.debug/"
do_compile_prepend () {
# when yocto builds in ${D} it does not have access to ../git/.git so git
# describe --tags fails. In order not to tag our version as dirty we use this
# trick
sed -i 's/-dirty//' src/version.c
}
```
Add pkgconfig options for python & nodejs bindings to mraa | ```bitbake
SUMMARY = "Low Level Skeleton Library for Communication on Intel platforms"
SECTION = "libs"
AUTHOR = "Brendan Le Foll, Tom Ingleby"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=e8db6501ed294e65418a933925d12058"
SRC_URI = "git://github.com/intel-iot-devkit/mraa.git;protocol=git;rev=64f377cdfcedaaff6a8fb76f83b7ece9eaba422e;nobranch=1"
S = "${WORKDIR}/git"
inherit distutils-base pkgconfig python-dir cmake
FILES_${PN}-doc += "${datadir}/mraa/examples/"
FILES_${PN}-dbg += "${libdir}/node_modules/mraajs/.debug/ \
${PYTHON_SITEPACKAGES_DIR}/.debug/"
PACKAGECONFIG ??= "python nodejs"
PACKAGECONFIG[python] = "-DBUILDSWIGPYTHON=ON, -DBUILDSWIGPYTHON=OFF, swig-native python"
PACKAGECONFIG[nodejs] = "-DBUILDSWIGNODE=ON, -DBUILDSWIGNODE=OFF, swig-native nodejs"
do_compile_prepend () {
# when yocto builds in ${D} it does not have access to ../git/.git so git
# describe --tags fails. In order not to tag our version as dirty we use this
# trick
sed -i 's/-dirty//' src/version.c
}
``` |
2ba7945f-0b13-4c05-8351-2c4ab0ed0f67 | {
"language": "BitBake"
} | ```bitbake
require xorg-lib-common.inc
DESCRIPTION = " Touchscreen calibration client library"
LICENSE = "BSD-X"
DEPENDS = "virtual/libx11 calibrateproto libxext"
PV = "0.0+gitr${SRCREV}"
PE = "1"
SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/libXCalibrate;protocol=git"
S = "${WORKDIR}/git"
FILES_${PN}-locale += "${datadir}/X11/locale"
```
Use increment-able PV format as other git version recipes do. | ```bitbake
require xorg-lib-common.inc
DESCRIPTION = "Touchscreen calibration client library"
LICENSE = "BSD-X"
DEPENDS = "virtual/libx11 calibrateproto libxext"
PR = "r0"
PV = "0.0+${PR}+gitr${SRCREV}"
PE = "1"
SRC_URI = "git://anongit.freedesktop.org/git/xorg/lib/libXCalibrate;protocol=git"
S = "${WORKDIR}/git"
FILES_${PN}-locale += "${datadir}/X11/locale"
``` |
1acfe67c-6a56-4d24-a783-948d6fdab245 | {
"language": "BitBake"
} | ```bitbake
require recipes-image/images/tizen-common-core-image-minimal.bb
SUMMARY = "A Wayland image with a terminal and crosswalk"
LICENSE = "MIT"
DESCRIPTION = "A weston image with Tizen common ."
IMAGE_INSTALL += "crosswalk"
IMAGE_INSTALL += "tizen-extensions-crosswalk"
IMAGE_INSTALL += "tzdata"
IMAGE_INSTALL += "ttf-dejavu-common"
IMAGE_INSTALL += "ttf-dejavu-sans"
IMAGE_INSTALL += "ttf-dejavu-sans-condensed"
IMAGE_INSTALL += "ttf-dejavu-sans-mono"
IMAGE_INSTALL += "ttf-dejavu-serif"
IMAGE_INSTALL += "ttf-dejavu-serif-condensed"```
Add pango module to image | ```bitbake
require recipes-image/images/tizen-common-core-image-minimal.bb
SUMMARY = "A Wayland image with a terminal and crosswalk"
LICENSE = "MIT"
DESCRIPTION = "A weston image with Tizen common ."
IMAGE_INSTALL += "crosswalk"
IMAGE_INSTALL += "tizen-extensions-crosswalk"
IMAGE_INSTALL += "tzdata"
IMAGE_INSTALL += "ttf-dejavu-common"
IMAGE_INSTALL += "ttf-dejavu-sans"
IMAGE_INSTALL += "ttf-dejavu-sans-condensed"
IMAGE_INSTALL += "ttf-dejavu-sans-mono"
IMAGE_INSTALL += "ttf-dejavu-serif"
IMAGE_INSTALL += "ttf-dejavu-serif-condensed"
# Pango modules
IMAGE_INSTALL += "pango-module-basic-fc"
IMAGE_INSTALL += "pango-module-arabic-lang"
IMAGE_INSTALL += "pango-module-indic-lang"``` |
920d771f-f3da-4d35-bf47-ca51d700eb00 | {
"language": "BitBake"
} | ```bitbake
SRCBRANCH ?= "master-rel-2021.1"
SRCREV = "84041fa84d9bc524357b030ebe9a5174b01377bd"
BRANCH = "master-rel-2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=0e6d7bfe689fe5b0d0a89b2ccbe053fa"
PV = "${SRCBRANCH}+git${SRCPV}"
include open-amp.inc
```
Update branch for 2021.1 release | ```bitbake
SRCBRANCH ?= "xlnx_rel_v2021.1"
SRCREV = "84041fa84d9bc524357b030ebe9a5174b01377bd"
BRANCH = "xlnx_rel_v2021.1"
LIC_FILES_CHKSUM ?= "file://LICENSE.md;md5=0e6d7bfe689fe5b0d0a89b2ccbe053fa"
PV = "${SRCBRANCH}+git${SRCPV}"
include open-amp.inc
``` |
f47fa75a-02c0-46b9-9fea-839d2a1c85e0 | {
"language": "BitBake"
} | ```bitbake
PR = "r1"
LICENSE = "LGPL"
MAINTAINER = "Koen Kooi <[email protected]>"
DEPENDS = "dbus hildon-lgpl hildon-fm outo gtk+-2.6.4-1.osso7"
SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/h/hildon-libs/hildon-libs_${PV}.tar.gz \
file://hildon-libs-no-werror.patch;patch=1"
S = "${WORKDIR}/hildon-libs-0.9.6"
inherit pkgconfig autotools
EXTRA_OECONF = "--disable-gtk-doc"
do_stage() {
install -d ${STAGING_LIBDIR}/outo
install -m755 ${S}/ut/.libs/libhildonwidgets_unittests.so ${STAGING_LIBDIR}/outo
install -m755 ${S}/ut/.libs/libhildonwidgets_clock_unittests.so ${STAGING_LIBDIR}/outo
install -m755 ${S}/hildon-widgets/.libs/libhildonwidgets.so* ${STAGING_LIBDIR}
install -d ${STAGING_INCDIR}/hildon-widgets
install -m 644 hildon-widgets/*.h ${STAGING_INCDIR}/hildon-widgets
}
```
Fix SRC_URI to contain patch. Fix shipped files. | ```bitbake
PR = "r1"
LICENSE = "LGPL"
MAINTAINER = "Koen Kooi <[email protected]>"
DEPENDS = "dbus hildon-lgpl hildon-fm outo gtk+-2.6.4-1.osso7"
SRC_URI = "http://repository.maemo.org/pool/maemo/ossw/source/h/${PN}/${PN}_${PV}.tar.gz \
file://hildon-libs-no-werror.patch;patch=1"
S = "${WORKDIR}/hildon-libs-0.9.6"
inherit autotools pkgconfig
EXTRA_OECONF = "--disable-gtk-doc"
FILES_${PN} += "${libdir}/outo/*.so"
do_stage() {
install -d ${STAGING_LIBDIR}/outo
install -m755 ${S}/ut/.libs/libhildonwidgets_unittests.so ${STAGING_LIBDIR}/outo
install -m755 ${S}/ut/.libs/libhildonwidgets_clock_unittests.so ${STAGING_LIBDIR}/outo
install -m755 ${S}/hildon-widgets/.libs/libhildonwidgets.so* ${STAGING_LIBDIR}
install -d ${STAGING_INCDIR}/hildon-widgets
install -m 644 hildon-widgets/*.h ${STAGING_INCDIR}/hildon-widgets
}
``` |
61eabb6d-8c09-4ad1-af56-aa4d8476fdea | {
"language": "BitBake"
} | ```bitbake
require bluez-utils.inc
PR = "r0"
EXTRA_OECONF += "--without-dbus"
```
Add ti patch used in bluez-utils-dbus. | ```bitbake
require bluez-utils.inc
PR = "r1"
SRC_URI += " file://hciattach-ti-bts.patch;patch=1"
EXTRA_OECONF += "--without-dbus"
``` |
16e27144-a067-4cc9-a777-21b8ce9597a7 | {
"language": "BitBake"
} | ```bitbake
```
Fix the octave SRC_URI, courtesy Simon Pickering. | ```bitbake
LICENSE = GPL
DESCRIPTION = "GNU Octave is a high-level language, primarily intended for numerical computations. \
It provides a convenient command line interface for solving linear and nonlinear problems numerically, \
and for performing other numerical experiments using a language that is mostly compatible with Matlab. \
It may also be used as a batch-oriented language."
SECTION = "console/util"
DEPENDS = "readline ncurses"
MAINTAINER = "Simon Pickering <[email protected]>"
SRC_URI = "ftp://ftp.octave.org/pub/octave/bleeding-edge/octave-${PV}.tar.gz"
inherit autotools
FILES_${PN}-dev += "${libdir}/octave-${PV}/*.la ${libdir}/octave-${PV}/*.a"
do_configure() {
gnu-configize
oe_runconf
}
``` |
22d47e7b-e217-4ae1-b70c-c8d5e733562c | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "DVD access multimeda library"
SECTION = "libs/multimedia"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
SRC_URI = "git://git.debian-maintainers.org/git/daniel/${PN}.git;protocol=git;branch=debian"
SRCREV = "e465b500c12be5b4c0b6918a9b98038611f66c57"
S = "${WORKDIR}/git"
inherit autotools lib_package binconfig pkgconfig
do_unpackpost() {
QUILT_PATCHES=debian/patches quilt push -a
}
addtask unpackpost after do_unpack before do_patch
```
Update to newer GIT server | ```bitbake
DESCRIPTION = "DVD access multimeda library"
SECTION = "libs/multimedia"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
SRC_URI = "git://daniel-baumann.ch/git/debian/libdvdread.git;protocol=http;branch=debian"
PR = "r1"
SRCREV = "a733b19584000a9c80ef5b8dfb187f8f00e4d1e7"
S = "${WORKDIR}/git"
inherit autotools lib_package binconfig pkgconfig
do_unpackpost() {
QUILT_PATCHES=debian/patches quilt push -a
}
addtask unpackpost after do_unpack before do_patch
``` |
fe77c50c-74a4-417d-b657-f986dc903435 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Settings-daemon provides a bridge between gconf and xsettings"
LICENSE = "GPL"
DEPENDS = "gconf glib-2.0"
RDEPENDS = "xrdb"
SECTION = "x11"
PV = "0.0+svnr${SRCREV}"
SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http \
file://70settings-daemon"
S = "${WORKDIR}/${PN}"
inherit autotools pkgconfig gettext gconf
FILES_${PN} = "${bindir}/* ${sysconfdir}"
do_install_append () {
install -d ${D}/${sysconfdir}/X11/Xsession.d
install -m 755 ${WORKDIR}/70settings-daemon ${D}/${sysconfdir}/X11/Xsession.d/
}
```
Add missing dependency to gtk+ | ```bitbake
DESCRIPTION = "Settings-daemon provides a bridge between gconf and xsettings"
LICENSE = "GPL"
DEPENDS = "gconf glib-2.0 gtk+"
RDEPENDS = "xrdb"
SECTION = "x11"
PV = "0.0+svnr${SRCREV}"
PR = "r1"
SRC_URI = "svn://svn.o-hand.com/repos/matchbox/trunk;module=${PN};proto=http \
file://70settings-daemon"
S = "${WORKDIR}/${PN}"
inherit autotools pkgconfig gettext gconf
FILES_${PN} = "${bindir}/* ${sysconfdir}"
do_install_append () {
install -d ${D}/${sysconfdir}/X11/Xsession.d
install -m 755 ${WORKDIR}/70settings-daemon ${D}/${sysconfdir}/X11/Xsession.d/
}
``` |
abaefd8e-dd1a-4f4f-8727-318528f1a566 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Tool to edit the Redboot FIS partition layout from userspace"
SRC_URI = "http://svn.chezphil.org/utils/trunk/fis.cc \
svn://svn.chezphil.org/;module=libpbe;proto=http"
do_compile() {
${CXX} -Os -W -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis ${WORKDIR}/fis.cc \
${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
${STRIP} ${WORKDIR}/fis-${PV}/fis
# ${CXX} -Os -W -static -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis-static ${WORKDIR}/fis.cc \
# ${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
# ${STRIP} ${WORKDIR}/fis-${PV}/fis-static
}```
Make one shared and one static version, split into two packages | ```bitbake
DESCRIPTION = "Tool to edit the Redboot FIS partition layout from userspace"
PR = "r1"
SRC_URI = "http://svn.chezphil.org/utils/trunk/fis.cc \
svn://svn.chezphil.org/;module=libpbe;proto=http"
PACKAGES =+ "fis-static"
FILES_${PN}-static = "${sbindir}/fis-static"
FILES_${PN} = "${sbindir}/fis"
do_compile() {
${CXX} -Os -W -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis ${WORKDIR}/fis.cc \
${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
# Work around boost threading issue when compiling static
# We're singlethreading anyway
echo "#define BOOST_SP_DISABLE_THREADS" > ${WORKDIR}/tmpfile
cat ${WORKDIR}/tmpfile ${WORKDIR}/fis.cc > ${WORKDIR}/fis.new
mv ${WORKDIR}/fis.new ${WORKDIR}/fis.cc
rm ${WORKDIR}/tmpfile
${CXX} -Os -W -static -I${STAGING_INCDIR} -I${WORKDIR}/libpbe/trunk/include -o fis-static ${WORKDIR}/fis.cc \
${WORKDIR}/libpbe/trunk/src/Exception.cc ${WORKDIR}/libpbe/trunk/src/utils.cc
}
do_install() {
${STRIP} ${WORKDIR}/fis-${PV}/fis-static
${STRIP} ${WORKDIR}/fis-${PV}/fis
install -d ${D}/${sbindir}
install -m 755 ${WORKDIR}/fis-${PV}/fis-static ${D}/${sbindir}
install -m 755 ${WORKDIR}/fis-${PV}/fis ${D}/${sbindir}
}
``` |
9d8d9877-2926-4394-9389-77344fcce5b8 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Libraries and applications to facilitate working with GPS data for research and high accuracy uses."
AUTHOR = "ARL:UT"
HOMEPAGE = "https://github.com/SGL-UT/GPSTk/"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING.md;md5=d32239bcb673463ab874e80d47fae504"
SRC_URI = "https://github.com/SGL-UT/GPSTk/archive/v${PV}.tar.gz"
SRC_URI[md5sum] = "b085879c4b4197e4d01e90f83352e6cd"
SRC_URI[sha256sum] = "fe45c79537d263eb145623c456a0d0bf79acd0ac8dd79136d6b5610aa26055e4"
S="${WORKDIR}/GPSTk-${PV}"
inherit cmake
EXTRA_OECMAKE += " -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_SKIP_RPATH=ON -DBUILD_EXT=OFF -DBUILD_PYTHON=OFF"
PACKAGE = "gpstk"
FILES_${PN} += " ${bindir}/* /usr/share/cmake/*"
```
Fix QA issue: SRC_URI uses unstable GitHub archives | ```bitbake
DESCRIPTION = "Libraries and applications to facilitate working with GPS data for research and high accuracy uses."
AUTHOR = "ARL:UT"
HOMEPAGE = "https://github.com/SGL-UT/GPSTk/"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING.md;md5=d32239bcb673463ab874e80d47fae504"
SRC_URI = "git://github.com/SGL-UT/GPSTk.git"
SRCREV = "f8febf70861ecfae83ba72bf5b68ff760d0f9c45"
S="${WORKDIR}/git"
inherit cmake
EXTRA_OECMAKE += " -DCMAKE_SKIP_INSTALL_RPATH=ON -DCMAKE_SKIP_RPATH=ON -DBUILD_EXT=OFF -DBUILD_PYTHON=OFF"
PACKAGE = "gpstk"
FILES_${PN} += " ${bindir}/* /usr/share/cmake/*"
``` |
b05dc096-cdb3-4063-968d-79388533e98f | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "ANTLR runtime for Python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=6e514123aedb5d9fb133d1bc6c598d46"
SRC_URI[sha256sum] = "061a49bc72ae05a35d9b61c0ba0ac36c0397708819f02fbfb20a80e47d287a1b"
PYPI_PACKAGE = "antlr4-python3-runtime"
inherit pypi setuptools3
BBCLASSEXTEND = "nativesdk native"
```
Revert "python3-antlr4-runtime: Inherit setuptools3 instead of python_setuptools_build_meta" | ```bitbake
SUMMARY = "ANTLR runtime for Python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=6e514123aedb5d9fb133d1bc6c598d46"
SRC_URI[sha256sum] = "061a49bc72ae05a35d9b61c0ba0ac36c0397708819f02fbfb20a80e47d287a1b"
PYPI_PACKAGE = "antlr4-python3-runtime"
inherit pypi python_setuptools_build_meta
BBCLASSEXTEND = "nativesdk native"
``` |
1748c783-7152-4e12-a61a-baddaebb01d4 | {
"language": "BitBake"
} | ```bitbake
SECTION = "console/network"
DEPENDS = "openssl"
DESCRIPTION = "Extremely simple MTA to get mail off the system to a mail hub."
PR = "r2"
SRC_URI = "${DEBIAN_MIRROR}/main/s/ssmtp/ssmtp_${PV}.orig.tar.gz \
file://ldflags.patch;patch=1 \
file://configure.patch;patch=1 \
file://libs-lcrypto.patch;patch=1 \
file://ssmtp.conf"
S = "${WORKDIR}/${PN}-2.61"
LICENSE = "GPL"
CONFFILE = "${sysconfdir}/ssmtp/ssmtp.conf"
inherit autotools
EXTRA_OECONF = "--enable-ssl"
do_compile () {
oe_runmake 'LDFLAGS=${LDFLAGS}'
}
do_install () {
oe_runmake 'prefix=${D}${prefix}' 'exec_prefix=${D}${exec_prefix}' \
'bindir=${D}${bindir}' 'mandir=${D}${mandir}' \
'etcdir=${D}${sysconfdir}' GEN_CONFIG="`which echo`" install
install -d ${D}${sysconfdir}/ssmtp
install -m 0644 ${WORKDIR}/ssmtp.conf ${D}${sysconfdir}/ssmtp/ssmtp.conf
}
pkg_postinst () {
update-alternatives --install ${sbindir}/sendmail sendmail ${bindir}/ssmtp
}
pkg_postrm () {
update-alternatives --remove ${sbindir}/sendmail sendmail
}
```
Fix priority on ssmtp sendmail symlink | ```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
}
``` |
106b3341-f75e-4fcd-8bfc-4dad09978322 | {
"language": "BitBake"
} | ```bitbake
# This recipe builds the Linux kernel from the GIT tree for Freescale PowerPC
# This tree is not upstream and should be used for bleeding-edge testing only.
require linux.inc
FILESPATHPKG =. "linux-powerpc-fsl-git/${MACHINE}:"
SRCREV = "1406de8e11eb043681297adf86d6892ff8efc27a"
PV = "2.6.30"
PR = "r4"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git;protocol=git \
file://defconfig"
SRC_URI_append_mpc8315e-rdb = " file://mpc8315erdb-add-msi-to-dts.patch;patch=1"
COMPATIBLE_MACHINE = "mpc8315e-rdb"
S = "${WORKDIR}/git"
```
Update GIT revision for Freescale Calamari board kernel. | ```bitbake
# This recipe builds the Linux kernel from the GIT tree for Freescale PowerPC
# This tree is not upstream and should be used for bleeding-edge testing only.
# http://git.kernel.org/?p=linux/kernel/git/galak/powerpc.git;a=summary
require linux.inc
FILESPATHPKG =. "linux-powerpc-fsl-git/${MACHINE}:"
SRCREV = "1406de8e11eb043681297adf86d6892ff8efc27a"
PV = "2.6.30"
SRCREV_calamari = "7c0a57d5c47bcfc492b3139e77400f888a935c44"
PR = "r4"
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git;protocol=git \
file://defconfig"
SRC_URI_append_mpc8315e-rdb = " file://mpc8315erdb-add-msi-to-dts.patch;patch=1"
COMPATIBLE_MACHINE = "(mpc8315e-rdb|calamari)"
S = "${WORKDIR}/git"
``` |
de5c36e2-4687-4943-ba7a-217cefe7c955 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "The calibrator and other useful utilities for TI wireless solution based on wl12xx driver"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d"
DEPENDS = "libnl"
RDEPENDS_${PN} = "linux-firmware-wl12xx linux-firmware-wl18xx"
PV = "R8.6+git${SRCPV}"
#Tag: R8.6
SRCREV = "cf8965aad73764022669647fa33852558a657930"
SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git \
"
S = "${WORKDIR}/git"
export CROSS_COMPILE = "${TARGET_PREFIX}"
EXTRA_OEMAKE = 'CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32 " \
LDFLAGS="${LDFLAGS} -L${STAGING_LIBDIR}" \
CC="${CC}" \
NLVER=3'
do_install() {
install -d ${D}${bindir}
install -m 0755 calibrator ${D}${bindir}/
}
```
Revert "meta-nilrt: remove PR from recipes" | ```bitbake
DESCRIPTION = "The calibrator and other useful utilities for TI wireless solution based on wl12xx driver"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://COPYING;md5=4725015cb0be7be389cf06deeae3683d"
DEPENDS = "libnl"
RDEPENDS_${PN} = "linux-firmware-wl12xx linux-firmware-wl18xx"
PV = "R8.6+git${SRCPV}"
PR = "r5"
#Tag: R8.6
SRCREV = "cf8965aad73764022669647fa33852558a657930"
SRC_URI = "git://git.ti.com/wilink8-wlan/18xx-ti-utils.git \
"
S = "${WORKDIR}/git"
export CROSS_COMPILE = "${TARGET_PREFIX}"
EXTRA_OEMAKE = 'CFLAGS="${CFLAGS} -I${STAGING_INCDIR}/libnl3/ -DCONFIG_LIBNL32 " \
LDFLAGS="${LDFLAGS} -L${STAGING_LIBDIR}" \
CC="${CC}" \
NLVER=3'
do_install() {
install -d ${D}${bindir}
install -m 0755 calibrator ${D}${bindir}/
}
``` |
9e0ceedd-6ea7-4944-9670-5c44c8c6c399 | {
"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"
``` |
163f592e-494c-4ea6-9ecd-8be7fa9a67fc | {
"language": "BitBake"
} | ```bitbake
LICENSE = "GPL"
inherit autotools gpe
DESCRIPTION = "GPE time tracker"
GPE_TARBALL_SUFFIX = "bz2"
MAINTAINER = "Florian Boor <[email protected]>"
DEPENDS = "libgpewidget gtk+ sqlite"
SECTION = "gpe"
RDEPENDS = "gpe-icons"
```
Add missing dependency for latest release. | ```bitbake
LICENSE = "GPL"
inherit autotools gpe
DESCRIPTION = "GPE time tracker"
GPE_TARBALL_SUFFIX = "bz2"
MAINTAINER = "Florian Boor <[email protected]>"
DEPENDS = "libgpewidget gtk+ sqlite libtododb"
SECTION = "gpe"
RDEPENDS = "gpe-icons"
PR = "r1"
``` |
e39975b2-c579-4d08-aace-78e5f91ef021 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Enable NumLock in X11 sessions"
HOMEPAGE = "http://home.kde.org/~seli/numlockx/"
SECTION = "x11/apps"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dcb1cc75e21540a4a66b54e38d95b047"
DEPENDS = "virtual/libx11 libxtst"
SRC_URI = "http://home.kde.org/~seli/numlockx/numlockx-${PV}.tar.gz"
SRC_URI[md5sum] = "be9109370447eae23f6f3f8527bb1a67"
SRC_URI[sha256sum] = "e468eb9121c94c9089dc6a287eeb347e900ce04a14be37da29d7696cbce772e4"
inherit autotools
EXTRA_OECONF = "--x-includes=${STAGING_INCDIR} \
--x-libraries=${STAGING_LIBDIR}"
do_configure_prepend() {
# remove this from acinclude.m4 or build fails
sed -i '/_AC_PATH_X_XMKMF/d' ${S}/acinclude.m4
}
```
Update SRC_URI to somewhere fetchable | ```bitbake
SUMMARY = "Enable NumLock in X11 sessions"
HOMEPAGE = "http://home.kde.org/~seli/numlockx/"
SECTION = "x11/apps"
LICENSE = "MIT-X"
LIC_FILES_CHKSUM = "file://LICENSE;md5=dcb1cc75e21540a4a66b54e38d95b047"
DEPENDS = "virtual/libx11 libxtst"
SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/numlockx/numlockx-${PV}.tar.gz/be9109370447eae23f6f3f8527bb1a67/numlockx-${PV}.tar.gz"
SRC_URI[md5sum] = "be9109370447eae23f6f3f8527bb1a67"
SRC_URI[sha256sum] = "e468eb9121c94c9089dc6a287eeb347e900ce04a14be37da29d7696cbce772e4"
inherit autotools
EXTRA_OECONF = "--x-includes=${STAGING_INCDIR} \
--x-libraries=${STAGING_LIBDIR}"
do_configure_prepend() {
# remove this from acinclude.m4 or build fails
sed -i '/_AC_PATH_X_XMKMF/d' ${S}/acinclude.m4
}
``` |
b226a2bf-d9c5-4ab3-9c93-f910c93f5c68 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Linux Kernel for Marvell Kirkwood based devices"
SECTION = "kernel"
LICENSE = "GPL"
COMPATIBLE_MACHINE = "openrd-base"
# SheevaPlug still needs testing
#COMPATIBLE_MACHINE = "(openrd-base|sheevaplug)"
require linux.inc
# Change MACHINE_KERNEL_PR in conf/machine/include/kirkwood.inc
PV = "2.6.31"
# last commit at the time of release of upstream v2.6.31
SRCREV = "8cb424312d88810bb62edbeef42a510725ceb482"
SRC_URI = "git://git.marvell.com/orion.git;protocol=git \
file://defconfig"
SRC_URI_append_openrd-base = " file://openrd-base-enable-pcie.patch;patch=1"
# update machine types list for ARM architecture, only for machines that need it
do_arm_mach_types() {
if test ${MACHINE} == openrd-base; then
curl -o mach-types "http://www.arm.linux.org.uk/developer/machines/download.php" && \
cp mach-types arch/arm/tools/mach-types
fi
}
addtask arm_mach_types after do_patch before do_configure
S = "${WORKDIR}/git"
KERNEL_IMAGETYPE ?= "uImage"
```
Add patch that re-enables interrupts from idle. | ```bitbake
DESCRIPTION = "Linux Kernel for Marvell Kirkwood based devices"
SECTION = "kernel"
LICENSE = "GPL"
COMPATIBLE_MACHINE = "openrd-base"
# SheevaPlug still needs testing
#COMPATIBLE_MACHINE = "(openrd-base|sheevaplug)"
require linux.inc
# Change MACHINE_KERNEL_PR in conf/machine/include/kirkwood.inc
PV = "2.6.31"
# last commit at the time of release of upstream v2.6.31
SRCREV = "8cb424312d88810bb62edbeef42a510725ceb482"
SRC_URI = "git://git.marvell.com/orion.git;protocol=git \
file://defconfig"
SRC_URI_append_openrd-base = " file://openrd-base-enable-pcie.patch;patch=1 \
file://cpuidle-reenable-interrupts.patch;patch=1"
# update machine types list for ARM architecture, only for machines that need it
do_arm_mach_types() {
if test ${MACHINE} == openrd-base; then
curl -o mach-types "http://www.arm.linux.org.uk/developer/machines/download.php" && \
cp mach-types arch/arm/tools/mach-types
fi
}
addtask arm_mach_types after do_patch before do_configure
S = "${WORKDIR}/git"
KERNEL_IMAGETYPE ?= "uImage"
``` |
cb8bbdb8-d417-419f-9c11-960ffd804671 | {
"language": "BitBake"
} | ```bitbake
#IMAGE_INSTALL = "mingetty util-linux-agetty strace s6-initscript s6-networking s6-portable-utils s6-linux-utils s6-initscript anopa"
IMAGE_INSTALL = "mingetty util-linux-agetty strace s6-networking s6-portable-utils s6-linux-utils anopa-baselayout anopa coreutils gdb gnupg bash busybox"
IMAGE_LINGUAS = " "
inherit core-image
```
Convert install list to be by-line for easier editing and diffing | ```bitbake
IMAGE_INSTALL = "\
anopa \
anopa-baselayout \
bash \
busybox \
coreutils \
gdb \
gnupg \
mingetty \
s6-linux-utils \
s6-networking \
s6-portable-utils \
strace \
util-linux-agetty \
"
IMAGE_LINGUAS = " "
inherit core-image
``` |
d1d33f8e-6221-4b29-bb29-36c4e91f3ad4 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "GStreamer elements to use the Video Processing Engine (VPE) found on some TI devices"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
require gstreamer1.0-plugins-ti.inc
PR = "${INC_PR}.14"
SRCREV = "6ec1a9c9fc17e0cae781aed067a2a6f2c1f92d68"
SRC_URI = "git://git.ti.com/glsdk/gst-plugin-vpe.git;protocol=git \
file://ti-video.conf \
"
do_install_append() {
install -d ${D}/etc/modprobe.d
install -m 644 ${WORKDIR}/ti-video.conf ${D}/etc/modprobe.d
}
```
Update SRC_REV and bump PR | ```bitbake
DESCRIPTION = "GStreamer elements to use the Video Processing Engine (VPE) found on some TI devices"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
require gstreamer1.0-plugins-ti.inc
PR = "${INC_PR}.15"
SRCREV = "3c44b9f4769d8a2b1e3b3441d789a62047c7f940"
SRC_URI = "git://git.ti.com/glsdk/gst-plugin-vpe.git;protocol=git \
file://ti-video.conf \
"
do_install_append() {
install -d ${D}/etc/modprobe.d
install -m 644 ${WORKDIR}/ti-video.conf ${D}/etc/modprobe.d
}
``` |
e8d230b7-b9ad-4a29-be11-1e95a9fda88c | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "config.txt file for the Raspberry Pi."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
COMPATIBLE_MACHINE = "raspberrypi"
SRC_URI = "file://config.txt"
S = "${WORKDIR}/git"
PR = "r5"
INHIBIT_DEFAULT_DEPS = "1"
inherit deploy siteinfo nopackages
do_deploy() {
install -d ${DEPLOYDIR}/bcm2835-bootfiles
cp ${WORKDIR}/config.txt ${DEPLOYDIR}/bcm2835-bootfiles/
conf_file='${DEPLOYDIR}/bcm2835-bootfiles/config.txt'
if [ "${SITEINFO_BITS}" = "64" ]; then
echo '# Force 64 bit - see: https://github.com/raspberrypi/firmware/issues/1193' >> "$conf_file"
echo 'arm_64bit=1' >> "$conf_file"
echo >> "$conf_file"
fi
cat >> "$conf_file" <<EOF
[pi4]
max_framebuffers=2
dtoverlay=vc4-fkms-v3d,noaudio=on
#dtoverlay=vc4-kms-v3d-pi4,noaudio=on
[all]
dtoverlay=vc4-kms-v3d,noaudio=on
EOF
}
addtask deploy before do_package after do_install
do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"
PACKAGE_ARCH = "${MACHINE_ARCH}"
```
Remove arm_64bit=1 - it is not necessary with modern firmwares | ```bitbake
SUMMARY = "config.txt file for the Raspberry Pi."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
COMPATIBLE_MACHINE = "raspberrypi"
SRC_URI = "file://config.txt"
S = "${WORKDIR}/git"
PR = "r5"
INHIBIT_DEFAULT_DEPS = "1"
inherit deploy nopackages
do_deploy() {
install -d ${DEPLOYDIR}/bcm2835-bootfiles
cp ${WORKDIR}/config.txt ${DEPLOYDIR}/bcm2835-bootfiles/
conf_file='${DEPLOYDIR}/bcm2835-bootfiles/config.txt'
cat >> "$conf_file" <<EOF
[pi4]
max_framebuffers=2
dtoverlay=vc4-fkms-v3d,noaudio=on
#dtoverlay=vc4-kms-v3d-pi4,noaudio=on
[all]
dtoverlay=vc4-kms-v3d,noaudio=on
EOF
}
addtask deploy before do_package after do_install
do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles"
PACKAGE_ARCH = "${MACHINE_ARCH}"
``` |
b53bea21-5f5c-4166-a569-ed63a840185e | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Power management demo descriptions for Matrix v2"
HOMEPAGE = "https://gitorious.org/matrix-gui-v2/matrix-gui-v2-apps"
LICENSE = "CC-BY-SA"
require matrix-gui-apps-git.inc
PR = "${INC_PR}.0"
inherit allarch
S = "${WORKDIR}/git/power_apps"
# Make sure power submenu and app images has been installed
RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-power"
FILES_${PN} += "${MATRIX_BASE_DIR}/*"
```
Update pm demos to the latest version. Add dependency. | ```bitbake
DESCRIPTION = "Power management demo descriptions for Matrix v2"
HOMEPAGE = "https://gitorious.org/matrix-gui-v2/matrix-gui-v2-apps"
LICENSE = "CC-BY-SA"
require matrix-gui-apps-git.inc
PR = "${INC_PR}.1"
inherit allarch
S = "${WORKDIR}/git/power_apps"
# Make sure power submenu and app images has been installed
RDEPENDS += "matrix-gui-apps-images matrix-gui-submenus-power matrix-gui-generic-pm"
# Break out the individual files into separate packages. That way only the
# PM features supported for each device can be installed. Prepend the list
# so that we can get the files in ${bindir} first.
PACKAGES =+ "${PN}-count ${PN}-dump-reg ${PN}-snapshot1 ${PN}-snapshot2 ${PN}-suspend"
# Split the matrix files by PM app
FILES_${PN}-count += "${MATRIX_APP_DIR}/pm_count/*"
FILES_${PN}-dump-reg += "${MATRIX_APP_DIR}/pm_dump_reg/*"
FILES_${PN}-snapshot1 += "${MATRIX_APP_DIR}/pm_snapshot_1/*"
FILES_${PN}-snapshot2 += "${MATRIX_APP_DIR}/pm_snapshot_2/*"
FILES_${PN}-suspend += "${MATRIX_APP_DIR}/pm_suspend/*"
# Split the ${bindir} files by PM app
FILES_${PN}-count += "${bindir}/pm_count.sh"
FILES_${PN}-dump-reg += "${bindir}/pm_dump_reg.sh"
FILES_${PN}-snapshot1 += "${bindir}/pm_snapshot_1.sh"
FILES_${PN}-snapshot2 += "${bindir}/pm_snapshot_2.sh"
FILES_${PN}-suspend += "${bindir}/pm_suspend.sh"
``` |
488c3d54-bab5-4d69-8eb2-9867b2bc95fd | {
"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 = "opkg"
PV = "0.1+git${SRCREV}"
PR = "r8"
SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git \
file://disable-docbook2man.patch;patch=1"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg --enable-opkg"
do_configure_prepend() {
echo "EXTRA_DIST=" > gtk-doc.make
}
do_stage () {
autotools_stage_all
}
FILES_${PN} += "${libdir}/packagekit-backend/*.so ${datadir}/dbus-1/system-services/"
```
Package the debug symbols of the backends as well | ```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 = "opkg"
PV = "0.1+git${SRCREV}"
PR = "r8"
SRC_URI = "git://anongit.freedesktop.org/git/packagekit;protocol=git \
file://disable-docbook2man.patch;patch=1"
SRCREV = "${AUTOREV}"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
EXTRA_OECONF = "--with-security-framework=dummy --with-default-backend=opkg --enable-opkg"
do_configure_prepend() {
echo "EXTRA_DIST=" > gtk-doc.make
}
do_stage () {
autotools_stage_all
}
FILES_${PN} += "${libdir}/packagekit-backend/*.so ${datadir}/dbus-1/system-services/"
FILES_${PN}-dbg += "${libdir}/packagekit-backend/.debug/*.so "
``` |
45ab7333-1137-48db-a9e7-11ea607218a6 | {
"language": "BitBake"
} | ```bitbake
SECTION = "libs"
LICENSE = "BSD"
DESCRIPTION = "A library for configuring and customizing font access."
DEPENDS = "expat freetype freetype-native zlib fontconfig-native"
SRC_URI = "http://pdx.freedesktop.org/fontconfig/release/fontconfig-${PV}.tar.gz \
file://fc-glyphname.patch;patch=1 \
file://fc-lang.patch;patch=1"
PR = "r3"
PACKAGES =+ "fontconfig-utils"
FILES_fontconfig-utils = "${bindir}/*"
AUTO_LIBNAME_PKGS = "fontconfig-utils"
S = "${WORKDIR}/fontconfig-${PV}"
inherit autotools pkgconfig
export HASDOCBOOK="no"
EXTRA_OECONF = " --disable-docs "
EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname"
do_stage () {
oe_libinstall -so -a -C src libfontconfig ${STAGING_LIBDIR}
install -d ${STAGING_INCDIR}/fontconfig
for i in ${S}/fontconfig/*.h; do install -m 0644 $i ${STAGING_INCDIR}/fontconfig/; done
}
do_install () {
autotools_do_install
}
```
Correct the hack to avoid problems with debian.bbclass | ```bitbake
SECTION = "libs"
LICENSE = "BSD"
DESCRIPTION = "A library for configuring and customizing font access."
DEPENDS = "expat freetype freetype-native zlib fontconfig-native"
SRC_URI = "http://pdx.freedesktop.org/fontconfig/release/fontconfig-${PV}.tar.gz \
file://fc-glyphname.patch;patch=1 \
file://fc-lang.patch;patch=1"
PR = "r4"
PACKAGES =+ "fontconfig-utils"
FILES_fontconfig-utils = "${bindir}/*"
# Hacks to work around broken debian.bbclass
RPROVIDES = "libfontconfig-utils"
PKG_fontconfig-utils = "fontconfig-utils"
S = "${WORKDIR}/fontconfig-${PV}"
inherit autotools pkgconfig
export HASDOCBOOK="no"
EXTRA_OECONF = " --disable-docs "
EXTRA_OEMAKE = "FC_LANG=fc-lang FC_GLYPHNAME=fc-glyphname"
do_stage () {
oe_libinstall -so -a -C src libfontconfig ${STAGING_LIBDIR}
install -d ${STAGING_INCDIR}/fontconfig
for i in ${S}/fontconfig/*.h; do install -m 0644 $i ${STAGING_INCDIR}/fontconfig/; done
}
do_install () {
autotools_do_install
}
``` |
6d99a533-0561-4586-a5dd-40ec91b47206 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "ACPI data gathering library."
SECTION = "base"
HOMEPAGE = "http://www.ngolde.de/libacpi.html"
LICENSE = "MIT"
PR = "r1"
SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
file://makefile-fix.patch "
PACKAGES += "${PN}-bin"
FILES_${PN} = "${libdir}/libacpi.so.*"
FILES_${PN}-bin = "${bindir}"
COMPATIBLE_HOST = '(x86_64|i.86.*)-(linux|freebsd.*)'
do_install() {
oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix}
}
SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c"
SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29"
```
SET OE LDFLAGS in recipe | ```bitbake
DESCRIPTION = "ACPI data gathering library."
SECTION = "base"
HOMEPAGE = "http://www.ngolde.de/libacpi.html"
LICENSE = "MIT"
PR = "r1"
SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \
file://makefile-fix.patch "
PACKAGES += "${PN}-bin"
FILES_${PN} = "${libdir}/libacpi.so.*"
FILES_${PN}-bin = "${bindir}"
COMPATIBLE_HOST = '(x86_64|i.86.*)-(linux|freebsd.*)'
EXTRA_OEMAKE = "LDFLAGS='${LDFLAGS}'"
do_install() {
oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix}
}
SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c"
SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29"
``` |
f2d29028-0b87-4417-98b5-ff687f4eb590 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "Simple top-like I/O monitor"
DESCRIPTION = "iotop does for I/O usage what top(1) does for CPU usage. \
It watches I/O usage information output by the Linux kernel and displays \
a table of current I/O usage by processes on the system."
HOMEPAGE = "http://guichaz.free.fr/iotop/"
PR = "r0"
inherit debian-package
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
inherit distutils
#Empty DEBIAN_QUILT_PATCHES to avoid error "debian/patches not found"
DEBIAN_QUILT_PATCHES = ""
do_install_append() {
rm ${D}${libdir}/python2.7/site-packages/${DPN}/*.pyc
}
```
Add python modules to runtime dependency | ```bitbake
SUMMARY = "Simple top-like I/O monitor"
DESCRIPTION = "iotop does for I/O usage what top(1) does for CPU usage. \
It watches I/O usage information output by the Linux kernel and displays \
a table of current I/O usage by processes on the system."
HOMEPAGE = "http://guichaz.free.fr/iotop/"
PR = "r0"
inherit debian-package
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=4325afd396febcb659c36b49533135d4"
inherit distutils
#Empty DEBIAN_QUILT_PATCHES to avoid error "debian/patches not found"
DEBIAN_QUILT_PATCHES = ""
do_install_append() {
rm ${D}${libdir}/python2.7/site-packages/${DPN}/*.pyc
}
RDEPENDS_${PN} += " \
python-ctypes \
python-curses \
python-pprint \
python-shell \
python-subprocess \
python-textutils \
"
``` |
6611b9ea-8ee7-4d1d-adae-e6d0b9981a2b | {
"language": "BitBake"
} | ```bitbake
SECTION = "console/utils"
LICENSE = "GPL"
DESCRIPTION = "A tool to encode and decode the Sharp Zaurus updater.sh skript"
SRC_URI = "file://encdec-updater.c"
COMPATIBLE_MACHINE = '(poodle|c7x0|spitz|akita|tosa)'
do_compile() {
${CC} -o encdec-updater ${WORKDIR}/encdec-updater.c
}
do_install() {
install -d ${D}${bindir}
install -m 0755 encdec-updater ${D}${bindir}/
}
```
Fix typo in description (from poky) | ```bitbake
SECTION = "console/utils"
LICENSE = "GPL"
DESCRIPTION = "A tool to encode and decode the Sharp Zaurus updater.sh script"
SRC_URI = "file://encdec-updater.c"
COMPATIBLE_MACHINE = '(poodle|c7x0|spitz|akita|tosa)'
do_compile() {
${CC} -o encdec-updater ${WORKDIR}/encdec-updater.c
}
do_install() {
install -d ${D}${bindir}
install -m 0755 encdec-updater ${D}${bindir}/
}
``` |
014b76f0-3b7c-43ee-87de-64ef09f3b2f0 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "This is CCZE, a fast log colorizer written in C, intended to be a drop-in replacement for colorize (http://colorize.raszi.hu)."
HOMEPAGE = "https://github.com/madhouse/ccze"
SECTION = "console/utils"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
PR = "r0"
PV = "0.2.1-2+gitr${SRCPV}"
DEPENDS = "libpcre ncurses"
SRC_URI = " \
git://github.com/madhouse/${BPN}.git;protocol=git;branch=master \
file://pkgconfig.patch \
"
SRCREV = "7c7927fba98275c10ae614bd8c1a1367f87a258c"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
TARGET_CC_ARCH += "${LDFLAGS}"
```
Use own ccze mirror (github.com/madhouse seems to no longer exist). | ```bitbake
SUMMARY = "This is CCZE, a fast log colorizer written in C, intended to be a drop-in replacement for colorize (http://colorize.raszi.hu)."
HOMEPAGE = "https://github.com/stromerbike/ccze"
SECTION = "console/utils"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
PR = "r0"
PV = "0.2.1-2+gitr${SRCPV}"
DEPENDS = "libpcre ncurses"
SRC_URI = " \
git://github.com/stromerbike/${BPN}.git;protocol=git;branch=master \
file://pkgconfig.patch \
"
SRCREV = "7c7927fba98275c10ae614bd8c1a1367f87a258c"
S = "${WORKDIR}/git"
inherit autotools pkgconfig
TARGET_CC_ARCH += "${LDFLAGS}"
``` |
e49e15fc-73ac-41db-8aa2-515e5da28847 | {
"language": "BitBake"
} | ```bitbake
require recipes-devtools/bison/${PN}_2.7.1.bb
FILESEXTRAPATHS_prepend = "${COREBASE}/meta/recipes-devtools/bison/bison:"
inherit debian-package
DEBIAN_SECTION = "devel"
DPR = "0"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
"
# Exclude following patches because they were tried to apply on
# doc/Makefile.am but there is no such file:
# fix_cross_manpage_building.patch
# dont-depend-on-help2man.patch
# FIXME: file doc/bison.texi is missing, temporarily build without document
# and examples for minimal implementation with
# remove-document-examples-target.patch
BASE_SRC_URI = " \
file://m4.patch \
file://remove-document-examples-target.patch \
"
SRC_URI_class-native = " \
${DEBIAN_SRC_URI} \
${BASE_SRC_URI} \
"
SRC_URI += " \
${BASE_SRC_URI} \
"
inherit debian-fix-timestamp
```
Revert "bison: inherit debian-fix-timestamp to fix build behavior" | ```bitbake
require recipes-devtools/bison/${PN}_2.7.1.bb
FILESEXTRAPATHS_prepend = "${COREBASE}/meta/recipes-devtools/bison/bison:"
inherit debian-package
DEBIAN_SECTION = "devel"
DPR = "0"
LICENSE = "GPL-3.0"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=d32239bcb673463ab874e80d47fae504 \
"
# Exclude following patches because they were tried to apply on
# doc/Makefile.am but there is no such file:
# fix_cross_manpage_building.patch
# dont-depend-on-help2man.patch
# FIXME: file doc/bison.texi is missing, temporarily build without document
# and examples for minimal implementation with
# remove-document-examples-target.patch
BASE_SRC_URI = " \
file://m4.patch \
file://remove-document-examples-target.patch \
"
SRC_URI_class-native = " \
${DEBIAN_SRC_URI} \
${BASE_SRC_URI} \
"
SRC_URI += " \
${BASE_SRC_URI} \
"
``` |
081ba9e0-f76a-4f84-97bc-2c2b934f0102 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Desktop environment and phone stack GUI for SHR"
HOMEPAGE = "http://gitorious.org/mokosuite2"
AUTHOR = "Daniele Ricci"
LICENSE = "GPLv3"
DEPENDS = "mokowm elementary libfreesmartphone-glib libphone-utils eggdbus glib-2.0 dbus-glib alsa-lib db sqlite3"
SECTION = "misc/utils"
PV = "1.0.99+gitr${SRCPV}"
PR = "r1"
SRCREV = "e70e928216eea9d07c28327634ea49c87bc0c92f"
SRC_URI = "git://gitorious.org/mokosuite2/appbunch.git;protocol=git"
S = "${WORKDIR}/git"
PARALLEL_MAKE = ""
CFLAGS += "-DOPENMOKO"
EXTRA_OECONF = " --enable-contactsdb-sqlite --enable-settings-config --with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc"
FILES_${PN} += "${datadir}/mokosuite ${sysconfdir}/dbus-1 ${sysconfdir}/X11 ${sysconfdir}/mokosuite.conf {$datadir}/applications"
CONFFILES_${PN} = "${sysconfdir}/mokosuite.conf"
inherit pkgconfig autotools
```
Add `libfakekey` and `vala-native` to DEPENDS. | ```bitbake
DESCRIPTION = "Desktop environment and phone stack GUI for SHR"
HOMEPAGE = "http://gitorious.org/mokosuite2"
AUTHOR = "Daniele Ricci"
LICENSE = "GPLv3"
DEPENDS = "mokowm elementary libfakekey libfreesmartphone-glib libphone-utils eggdbus glib-2.0 dbus-glib alsa-lib db sqlite3 vala-native"
SECTION = "misc/utils"
PV = "1.0.99+gitr${SRCPV}"
PR = "r1"
SRCREV = "e70e928216eea9d07c28327634ea49c87bc0c92f"
SRC_URI = "git://gitorious.org/mokosuite2/appbunch.git;protocol=git"
S = "${WORKDIR}/git"
PARALLEL_MAKE = ""
CFLAGS += "-DOPENMOKO"
EXTRA_OECONF = " --enable-contactsdb-sqlite --enable-settings-config --with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc"
FILES_${PN} += "${datadir}/mokosuite ${sysconfdir}/dbus-1 ${sysconfdir}/X11 ${sysconfdir}/mokosuite.conf {$datadir}/applications"
CONFFILES_${PN} = "${sysconfdir}/mokosuite.conf"
inherit pkgconfig autotools
``` |
de6044fd-1154-4e80-b28e-f8b0ed6b2676 | {
"language": "BitBake"
} | ```bitbake
#
# base recipe: meta/recipes-gnome/gnome/gnome-common_3.14.0.bb
# base branch: jethro
#
SUMMARY = "common scripts and macros to develop with GNOME"
DESCRIPTION = "gnome-common is an extension to autoconf, automake and libtool for the GNOME \
environment and GNOME using applications. Included are gnome-autogen.sh and \
several macros to help in GNOME source trees."
PR = "r0"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
# debian-package needs be inherited after gnomebase
# to overwrite SRC_URI value.
inherit gnomebase allarch
inherit debian-package
PV = "3.14.0"
# source format is 3.0 (quilt) but there is no debian patch
DEBIAN_QUILT_PATCHES = ""
EXTRA_AUTORECONF = ""
DEPENDS = ""
BBCLASSEXTEND = "native"
```
Correct files shipment and dependencies | ```bitbake
#
# base recipe: meta/recipes-gnome/gnome/gnome-common_3.14.0.bb
# base branch: jethro
#
SUMMARY = "common scripts and macros to develop with GNOME"
DESCRIPTION = "gnome-common is an extension to autoconf, automake and libtool for the GNOME \
environment and GNOME using applications. Included are gnome-autogen.sh and \
several macros to help in GNOME source trees."
PR = "r0"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
# debian-package needs be inherited after gnomebase
# to overwrite SRC_URI value.
inherit gnomebase allarch
inherit debian-package
PV = "3.14.0"
# source format is 3.0 (quilt) but there is no debian patch
DEBIAN_QUILT_PATCHES = ""
EXTRA_AUTORECONF = ""
DEPENDS = ""
FILES_${PN} += "${datadir}/aclocal"
FILES_${PN}-dev = ""
RDEPENDS_${PN} += "autoconf automake libtool pkg-config gettext intltool autopoint"
RDEPENDS_${PN}_class-native = ""
BBCLASSEXTEND = "native nativesdk"
``` |
35206c52-0e75-468d-926c-d7317bf9fc3b | {
"language": "BitBake"
} | ```bitbake
inherit core-image
inherit mksdcard
INC_PR = "r0"
IMAGE_FEATURES += "dev-pkgs"
DEPENDS += "linux-yocto-mainline"
FSTYPE_VIRT ?= "ext3"
IMAGE_INSTALL += "util-linux"
IMAGE_INSTALL += "util-linux-blkid"
IMAGE_INSTALL += "util-linux-mount"
IMAGE_INSTALL += "tree"
IMAGE_INSTALL += "acme-utils"
IMAGE_INSTALL += "acme-iio-init"
IMAGE_INSTALL += "acme-cape-init"
IMAGE_INSTALL += "i2c-tools"
IMAGE_INSTALL += "libiio"
IMAGE_INSTALL += "btrfs-tools"
IMAGE_INSTALL += "systemd-analyze"
IMAGE_BOOT_FILES += "zImage zImage-am335x-boneblack.dtb uEnv.txt"
```
Remove btrfs tools and add libusbg to enable USB devices | ```bitbake
inherit core-image
inherit mksdcard
INC_PR = "r0"
IMAGE_FEATURES += "dev-pkgs"
DEPENDS += "linux-yocto-mainline"
FSTYPE_VIRT ?= "ext3"
IMAGE_INSTALL += "util-linux"
IMAGE_INSTALL += "util-linux-blkid"
IMAGE_INSTALL += "util-linux-mount"
IMAGE_INSTALL += "tree"
IMAGE_INSTALL += "acme-utils"
IMAGE_INSTALL += "acme-iio-init"
IMAGE_INSTALL += "acme-cape-init"
IMAGE_INSTALL += "i2c-tools"
IMAGE_INSTALL += "libiio"
IMAGE_INSTALL += "libusbg"
IMAGE_INSTALL += "systemd-analyze"
IMAGE_BOOT_FILES += "zImage zImage-am335x-boneblack.dtb uEnv.txt"
``` |
a26b142d-944d-4b73-8f9c-53390302557d | {
"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."
}
do_install_prepend() {
install -d ${D}/lib/firmware
}
```
Update kernel to latest upstream | ```bitbake
COMPATIBLE_MACHINE = "raspberrypi"
require linux.inc
DESCRIPTION = "Linux kernel for the RaspberryPi board"
PR = "r2"
# Bump MACHINE_KERNEL_PR in the machine config if you update the kernel.
# This is on the rpi-patches branch
SRCREV = "14ad68cf4afc7acf14076f895b539d81cd9f32ab"
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
}
``` |
1136e1d9-4c90-4d33-a10e-eec31a4d6a9e | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Rdesktop rdp client for X"
HOMEPAGE = "http://www.rdesktop.org"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
PR = "r0"
inherit debian-package
DEPENDS = "virtual/libx11 openssl libgssglue alsa-lib"
inherit autotools-brokensep pkgconfig
# Currently, we have no recipe for pcsclite, so temporary disable smartcard.
EXTRA_OECONF = "--with-openssl=${STAGING_LIBDIR}/.. \
--with-ipv6 --with-sound=alsa \
--disable-smartcard \
"
INSANE_SKIP_rdesktop_forcevariable = " already-stripped"
```
Fix error when build for qemuppc | ```bitbake
DESCRIPTION = "Rdesktop rdp client for X"
HOMEPAGE = "http://www.rdesktop.org"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
PR = "r1"
inherit debian-package
DEPENDS = "virtual/libx11 openssl libgssglue alsa-lib"
inherit autotools-brokensep pkgconfig
# Currently, we have no recipe for pcsclite, so temporary disable smartcard.
EXTRA_OECONF = "--with-openssl=${STAGING_LIBDIR}/.. \
--with-ipv6 --with-sound=alsa \
--disable-smartcard \
"
# We are cross compiling, set 'fu_cv_sys_stat_statvfs64=cross'
# to prevent sys_stat_statvfs64 is 'yes' by running test code in configure,
# because it make error when build for qemuppc target:
# | disk.c:726:18: error: storage size of 'stat_fs' isn't known
# | struct STATFS_T stat_fs;
CACHED_CONFIGUREVARS += "fu_cv_sys_stat_statvfs64=cross"
INSANE_SKIP_rdesktop_forcevariable = " already-stripped"
``` |
eeca8f75-3c27-4e47-8f0c-519c0bb53876 | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "XSL stylesheets for the yelp help browser"
LICENSE = "LGPLv2.1 & GPLv2"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=3e2bad3c5e3990988f9fa1bc5785b147 \
file://COPYING.GPL;md5=eb723b61539feef013de476e68b5c50a \
file://COPYING.LGPL;md5=a6f89e2100d9b6cdffcea4f398e37343 \
"
inherit gnomebase gettext itstool
DEPENDS += "libxml2"
SRC_URI[archive.md5sum] = "7d71af68fff4a92bcb2b8989f126be6c"
SRC_URI[archive.sha256sum] = "4fe51c0233b79a4c204c68498d45f09b342c30ed02c4e418506c0e35f0904ec3"
RDEPENDS_${PN}_append_class-target = " libxml2 itstool"
# ensure our native consumers are forced to inherit itstool
RDEPENDS_${PN}_append_class-native = " libxml2"
BBCLASSEXTEND = "native"
```
Mark native libxml2 in rdeps | ```bitbake
SUMMARY = "XSL stylesheets for the yelp help browser"
LICENSE = "LGPLv2.1 & GPLv2"
LIC_FILES_CHKSUM = " \
file://COPYING;md5=3e2bad3c5e3990988f9fa1bc5785b147 \
file://COPYING.GPL;md5=eb723b61539feef013de476e68b5c50a \
file://COPYING.LGPL;md5=a6f89e2100d9b6cdffcea4f398e37343 \
"
inherit gnomebase gettext itstool
DEPENDS += "libxml2"
SRC_URI[archive.md5sum] = "7d71af68fff4a92bcb2b8989f126be6c"
SRC_URI[archive.sha256sum] = "4fe51c0233b79a4c204c68498d45f09b342c30ed02c4e418506c0e35f0904ec3"
RDEPENDS_${PN}_append_class-target = " libxml2 itstool"
# ensure our native consumers are forced to inherit itstool
RDEPENDS_${PN}_append_class-native = " libxml2-native"
BBCLASSEXTEND = "native"
``` |
6fb94cf3-4248-4186-b827-1d26c8ac714d | {
"language": "BitBake"
} | ```bitbake
# This recipe allows for a 'bleeding edge' u-boot-xlnx build.
# Since this tree is frequently updated, AUTOREV is used to track its contents.
#
# To enable this recipe, set
# PREFERRED_VERSION_u-boot-xlnx ?= "${UBOOT_XLNX_DEV_BRANCH}"
# Alternatively to track and build master branch instead, set
# UBOOT_XLNX_DEV_BRANCH ?= "master"
# PREFERRED_VERSION_u-boot-xlnx ?= "${UBOOT_XLNX_DEV_BRANCH}"
UBOOT_XLNX_DEV_BRANCH ?= "master-next"
include u-boot-xlnx.inc
SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https;branch=${UBOOT_XLNX_DEV_BRANCH}"
# Set default SRCREVs. SRCREVs statically set to prevent network access during
# parsing.
# AUTOREV is set in the anonymous python routine and resolved when the variables
# are finalized.
SRCREV="f40924452f947fbd6886eaa677c1b0bd47edfcf5"
python () {
d.setVar("SRCREV", "${AUTOREV}")
}
PR = "r0"
PV = "${UBOOT_XLNX_DEV_BRANCH}${XILINX_EXTENSION}+git"
```
Update license checksum for master-next | ```bitbake
# This recipe allows for a 'bleeding edge' u-boot-xlnx build.
# Since this tree is frequently updated, AUTOREV is used to track its contents.
#
# To enable this recipe, set
# PREFERRED_VERSION_u-boot-xlnx ?= "${UBOOT_XLNX_DEV_BRANCH}"
# Alternatively to track and build master branch instead, set
# UBOOT_XLNX_DEV_BRANCH ?= "master"
# PREFERRED_VERSION_u-boot-xlnx ?= "${UBOOT_XLNX_DEV_BRANCH}"
UBOOT_XLNX_DEV_BRANCH ?= "master-next"
include u-boot-xlnx.inc
LIC_FILES_CHKSUM = "file://README;beginline=1;endline=6;md5=157ab8408beab40cd8ce1dc69f702a6c"
SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https;branch=${UBOOT_XLNX_DEV_BRANCH}"
# Set default SRCREVs. SRCREVs statically set to prevent network access during
# parsing.
# AUTOREV is set in the anonymous python routine and resolved when the variables
# are finalized.
SRCREV="f40924452f947fbd6886eaa677c1b0bd47edfcf5"
python () {
d.setVar("SRCREV", "${AUTOREV}")
}
PR = "r0"
PV = "${UBOOT_XLNX_DEV_BRANCH}${XILINX_EXTENSION}+git"
``` |
0eeca8e6-456c-4657-a447-22a58fa69207 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Packages that are required for the OpenSlug native build environment"
LICENSE = MIT
PR = "r3"
INHIBIT_DEFAULT_DEPS = "1"
ALLOW_EMPTY = 1
PACKAGES = "${PN}"
OPENSLUG_NATIVE = "\
automake \
bash \
binutils binutils-dev \
bison \
bzip2 \
coreutils \
cpp cpp-symlinks \
cvs \
flex \
gawk \
g++ g++-symlinks \
gcc gcc-symlinks \
glibc-extra-nss glibc-utils \
gnu-config \
libc6 libc6-dev \
libg2c-dev \
libgdbm3 \
libperl5 \
libreadline4 libreadline-dev \
libstdc++-dev \
libthread-db1 \
lrzsz \
m4 \
make \
ncurses ncurses-dev ncurses-terminfo \
patch \
sed \
tar \
util-linux \
wget \
"
RDEPENDS = '${OPENSLUG_NATIVE}'
pkg_postinst_${PN} () {
# Fix some strange .so-files with strange comments in them. This should
# really be done in the packages providing these, but untill that, this
# works, and will not break anything when it actually gets fixed
tail -n 2 /usr/lib/libc.so > /tmp/tmpfile
mv /tmp/tmpfile /usr/lib/libc.so
tail -n 2 /usr/lib/libpthread.so > /tmp/tmpfile
mv /tmp/tmpfile /usr/lib/libpthread.so
}
```
Add binutils-symlinks, remove the libc.so and libpthread.so fix since things work without it | ```bitbake
DESCRIPTION = "Packages that are required for the OpenSlug native build environment"
LICENSE = MIT
PR = "r4"
INHIBIT_DEFAULT_DEPS = "1"
ALLOW_EMPTY = 1
PACKAGES = "${PN}"
OPENSLUG_NATIVE = "\
automake \
bash \
binutils binutils-dev binutils-symlinks \
bison \
bzip2 \
coreutils \
cpp cpp-symlinks \
cvs \
flex \
gawk \
g++ g++-symlinks \
gcc gcc-symlinks \
glibc-extra-nss glibc-utils \
gnu-config \
libc6 libc6-dev \
libg2c-dev \
libgdbm3 \
libperl5 \
libreadline4 libreadline-dev \
libstdc++-dev \
libthread-db1 \
lrzsz \
m4 \
make \
ncurses ncurses-dev ncurses-terminfo \
patch \
sed \
tar \
util-linux \
wget \
"
RDEPENDS = '${OPENSLUG_NATIVE}'
``` |
2e7bf90a-1186-4114-bd42-36aaa95d259c | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Linux kernel for Beck IPC Hardware"
require recipes-kernel/linux/linux.inc
require recipes-kernel/linux/linux-dtb.inc
COMPATIBLE_MACHINE = "(sc145-db150|sc165-db150)"
PV = "4.9.18"
SRCREV_pn-${PN} = "da35c239a1e652ee91ed52729e951e38e753b2bc"
SRC_URI += "git://github.com/beck-ipc/kernel-at-chip.git;protocol=https;branch=v4.9-beck; \
file://defconfig"
S = "${WORKDIR}/git"
```
Update to latest git revision. Supports configuration of Ethernet device numbers through devicetree. | ```bitbake
DESCRIPTION = "Linux kernel for Beck IPC Hardware"
require recipes-kernel/linux/linux.inc
require recipes-kernel/linux/linux-dtb.inc
COMPATIBLE_MACHINE = "(sc145-db150|sc165-db150)"
PV = "4.9.18"
SRCREV_pn-${PN} = "82c7be97cce616209d32ea2220247b3bce7196ea"
SRC_URI += "git://github.com/beck-ipc/kernel-at-chip.git;protocol=https;branch=v4.9-beck; \
file://defconfig"
S = "${WORKDIR}/git"
``` |
98f3902f-f27b-4f6f-a2a6-b609c41eeccd | {
"language": "BitBake"
} | ```bitbake
SUMMARY = "An image that builds a Docker image of the environment \
for GNSS-SDR testing purposes."
EXTRA_IMAGE_FEATURES += "tools-debug tools-profile tools-sdk dev-pkgs"
LICENSE = "MIT"
IMAGE_INSTALL = " \
packagegroup-core-container \
packagegroup-gnss-sdr-base \
"
require gnuradio-dev-image.bb
RDEPENDS_packagegroup-sdr-base-python += " python-six"
SDK_EXTRA_TOOLS += "nativesdk-python-six"
CORE_IMAGE_EXTRA_INSTALL += " \
packagegroup-gnss-sdr-base \
"
IMAGE_CLASSES += "image_type_docker"
IMAGE_FSTYPES = "docker"
inherit core-image
# set a meaningful name and tag for the docker output image
DOCKER_IMAGE_TAG = "latest"
DOCKER_IMAGE_NAME_EXPORT ?= "core-image-container:${DOCKER_IMAGE_TAG}"
```
Add core-image-container to docker image | ```bitbake
SUMMARY = "An image that builds a Docker image of the environment \
for GNSS-SDR testing purposes."
EXTRA_IMAGE_FEATURES += "tools-debug tools-profile tools-sdk dev-pkgs"
LICENSE = "MIT"
IMAGE_INSTALL = " \
packagegroup-core-container \
packagegroup-gnss-sdr-base \
"
require core-image-container.bb
require gnuradio-dev-image.bb
RDEPENDS_packagegroup-sdr-base-python += " python-six"
SDK_EXTRA_TOOLS += "nativesdk-python-six"
CORE_IMAGE_EXTRA_INSTALL += " \
packagegroup-gnss-sdr-base \
"
IMAGE_CLASSES += "image_type_docker"
IMAGE_FSTYPES = "docker"
inherit core-image
# set a meaningful name and tag for the docker output image
DOCKER_IMAGE_TAG = "latest"
DOCKER_IMAGE_NAME_EXPORT ?= "core-image-container:${DOCKER_IMAGE_TAG}"
``` |
cd26bc9e-abb8-4fec-8898-d71f1780bab5 | {
"language": "BitBake"
} | ```bitbake
SECTION = "libs"
LICENSE = "GD"
LIC_FILES_CHKSUM = "file://COPYING;md5=c97638cafd3581eb87abd37332137669"
DESCRIPTION = "gd is a library used to create PNG, JPEG, or WBMP images."
DEPENDS = "freetype libpng jpeg zlib"
PR = "r5"
SRC_URI = "http://www.libgd.org/releases/gd-2.0.36RC1.tar.gz"
SRC_URI[md5sum] = "39ac48e6d5e0012a3bd2248a0102f209"
SRC_URI[sha256sum] = "dd7c1795271221b9237769b96b8cec7fbdc5db7b8954d864ead51fc1296a6ac8"
S = "${WORKDIR}/gd-2.0.36RC1"
inherit autotools binconfig gettext
EXTRA_OECONF += " --with-zlib=${STAGING_LIBDIR}/.. \
--with-png=${STAGING_LIBDIR}/.. \
--with-jpeg=${STAGING_LIBDIR}/.. \
--with-freetype \
--without-fontconfig \
--without-xpm \
--without-x"
EXTRA_OEMAKE = 'LDFLAGS="${LDFLAGS}"'
```
Add mirror for when libgd.org is down | ```bitbake
SECTION = "libs"
LICENSE = "GD"
LIC_FILES_CHKSUM = "file://COPYING;md5=c97638cafd3581eb87abd37332137669"
DESCRIPTION = "gd is a library used to create PNG, JPEG, or WBMP images."
DEPENDS = "freetype libpng jpeg zlib"
PR = "r5"
SRC_URI = "http://www.libgd.org/releases/gd-2.0.36RC1.tar.gz"
SRC_URI[md5sum] = "39ac48e6d5e0012a3bd2248a0102f209"
SRC_URI[sha256sum] = "dd7c1795271221b9237769b96b8cec7fbdc5db7b8954d864ead51fc1296a6ac8"
MIRRORS += "http://www.libgd.org/releases/ http://fossies.org/unix/www/ \n"
S = "${WORKDIR}/gd-2.0.36RC1"
inherit autotools binconfig gettext
EXTRA_OECONF += " --with-zlib=${STAGING_LIBDIR}/.. \
--with-png=${STAGING_LIBDIR}/.. \
--with-jpeg=${STAGING_LIBDIR}/.. \
--with-freetype \
--without-fontconfig \
--without-xpm \
--without-x"
EXTRA_OEMAKE = 'LDFLAGS="${LDFLAGS}"'
``` |
a07f84e1-f1aa-4faa-953a-cfc99a79ddf6 | {
"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=61ac10ffd8cd46f9637586205af76cea"
XLNX_HDMI_VERSION = "5.4.0"
PV = "${XLNX_HDMI_VERSION}"
S = "${WORKDIR}/git"
BRANCH ?= "rel-v2020.1"
REPO ?= "git://github.com/xilinx/hdmi-modules.git;protocol=https"
SRCREV ?= "3a6e440b50263a3ed99492aba3e507d7c130355c"
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"
inherit module
EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"
PACKAGE_ARCH = "${SOC_FAMILY_ARCH}"
```
Update commit id and license md5sum for 2020.2 | ```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=498a38cdcb922b9e987bbbb46e8a9ee5"
XLNX_HDMI_VERSION = "5.4.0"
PV = "${XLNX_HDMI_VERSION}"
S = "${WORKDIR}/git"
BRANCH ?= "rel-v2020.2"
REPO ?= "git://github.com/xilinx/hdmi-modules.git;protocol=https"
SRCREV ?= "2cbacc12910bab236e491c5aa44999fa16cbaea9"
BRANCHARG = "${@['nobranch=1', 'branch=${BRANCH}'][d.getVar('BRANCH', True) != '']}"
SRC_URI = "${REPO};${BRANCHARG}"
inherit module
EXTRA_OEMAKE += "O=${STAGING_KERNEL_BUILDDIR}"
COMPATIBLE_MACHINE = "^$"
COMPATIBLE_MACHINE_zynqmp = "zynqmp"
COMPATIBLE_MACHINE_versal = "versal"
PACKAGE_ARCH = "${SOC_FAMILY_ARCH}"
``` |
36610d06-04a2-4e8a-82c5-d09c76db19c0 | {
"language": "BitBake"
} | ```bitbake
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "libxml-simple-perl-native"
SRC_URI = "http://tango.freedesktop.org/releases/icon-naming-utils-${PV}.tar.gz"
SRC_URI[md5sum] = "2c5c7a418e5eb3268f65e21993277fba"
SRC_URI[sha256sum] = "044ab2199ed8c6a55ce36fd4fcd8b8021a5e21f5bab028c0a7cdcf52a5902e1c"
S = "${WORKDIR}/icon-naming-utils-${PV}"
inherit autotools
FILES_${PN} += "${datadir}/dtds"
BBCLASSEXTEND = "native"
```
Fix long path to perl in icon-name-mapping | ```bitbake
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
DEPENDS = "libxml-simple-perl-native"
PR = "r1"
SRC_URI = "http://tango.freedesktop.org/releases/icon-naming-utils-${PV}.tar.gz"
SRC_URI[md5sum] = "2c5c7a418e5eb3268f65e21993277fba"
SRC_URI[sha256sum] = "044ab2199ed8c6a55ce36fd4fcd8b8021a5e21f5bab028c0a7cdcf52a5902e1c"
S = "${WORKDIR}/icon-naming-utils-${PV}"
inherit autotools
do_configure_append() {
# replace paths to STAGING_BINDIR_NATIVE/perl with ${bindir}/perl
sed -i -e "1s:#!.*:#! /usr/bin/env perl:" ${S}/icon-name-mapping.pl.in
}
FILES_${PN} += "${datadir}/dtds"
BBCLASSEXTEND = "native"
``` |
aaea7267-a223-46ec-80ff-2cf4ecfe10c9 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "A web Nas Menu"
SECTION = "network"
HOMEPAGE = "https://github.com/baillaw/meta-nas"
RDEPENDS_${PN} = "transmission-web filemanager"
SRC_URI = "file://index.html"
SRC_URI += "file://COPYING"
SRC_URI[md5sum] = "665547ad10bd4aeda5f36fd23558fd8b"
SRC_URI[sha256sum] = "03057cf948d9a63ed832931bd0dbaf692889a9da51015ec7c294451643090942"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
S = "${WORKDIR}"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=6b2a2e44797724bf46ea769edb0f54a7"
do_compile[noexec] = "1"
do_configure[noexec] = "1"
do_install () {
# Do it carefully
[ -d "${S}" ] || exit 1
mkdir -p ${D}/www/pages || exit 1
cp ${WORKDIR}/index.html ${D}/www/pages/
}
FILES_${PN} = "/"
```
Add minidlna as depency for the nas menu | ```bitbake
DESCRIPTION = "A web Nas Menu"
SECTION = "network"
HOMEPAGE = "https://github.com/baillaw/meta-nas"
RDEPENDS_${PN} = "transmission-web filemanager minidlna "
SRC_URI = "file://index.html"
SRC_URI += "file://COPYING"
SRC_URI[md5sum] = "665547ad10bd4aeda5f36fd23558fd8b"
SRC_URI[sha256sum] = "03057cf948d9a63ed832931bd0dbaf692889a9da51015ec7c294451643090942"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
S = "${WORKDIR}"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING;md5=6b2a2e44797724bf46ea769edb0f54a7"
do_compile[noexec] = "1"
do_configure[noexec] = "1"
do_install () {
# Do it carefully
[ -d "${S}" ] || exit 1
mkdir -p ${D}/www/pages || exit 1
cp ${WORKDIR}/index.html ${D}/www/pages/
}
FILES_${PN} = "/"
``` |
33fcee7e-f64f-40da-b81b-7746d14a6dd8 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "IBM Internet of Things Foundation Client for Python"
HOMEPAGE = "https://github.com/ibm-messaging/iot-python"
LICENSE = "ECL-1.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=8e63150e06ca345cebdd9a63642ac49d"
inherit setuptools
RDEPENDS_${PN} = "\
${PYTHON_PN}-requests \
${PYTHON_PN}-paho-mqtt \
${PYTHON_PN}-iso8601 \
${PYTHON_PN}-pytz \
${PYTHON_PN}-json \
${PYTHON_PN}-datetime \
${PYTHON_PN}-threading \
${PYTHON_PN}-netclient \
${PYTHON_PN}-distribute \
"
SRC_NAME = "ibmiotf"
SRC_URI = "https://pypi.python.org/packages/source/i/${SRC_NAME}/${SRC_NAME}-${PV}.zip"
SRC_URI[md5sum] = "fb29e562fc9ed22fc926c0ed34e383be"
SRC_URI[sha256sum] = "330fca8e9b98f85620f0fa09e6e4b36deca92c14d34ace1bd586bcfe7391da3a"
S = "${WORKDIR}/${SRC_NAME}-${PV}"
```
Fix dependency for ibmiotf recipe. | ```bitbake
DESCRIPTION = "IBM Internet of Things Foundation Client for Python"
HOMEPAGE = "https://github.com/ibm-messaging/iot-python"
LICENSE = "ECL-1.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=8e63150e06ca345cebdd9a63642ac49d"
inherit setuptools
PR = "r2"
RDEPENDS_${PN} = "\
${PYTHON_PN}-requests \
${PYTHON_PN}-paho-mqtt \
${PYTHON_PN}-iso8601 \
${PYTHON_PN}-pytz \
${PYTHON_PN}-json \
${PYTHON_PN}-datetime \
${PYTHON_PN}-threading \
${PYTHON_PN}-netclient \
${PYTHON_PN}-distribute \
${PYTHON_PN}-contextlib \
"
SRC_NAME = "ibmiotf"
SRC_URI = "https://pypi.python.org/packages/source/i/${SRC_NAME}/${SRC_NAME}-${PV}.zip"
SRC_URI[md5sum] = "fb29e562fc9ed22fc926c0ed34e383be"
SRC_URI[sha256sum] = "330fca8e9b98f85620f0fa09e6e4b36deca92c14d34ace1bd586bcfe7391da3a"
S = "${WORKDIR}/${SRC_NAME}-${PV}"
``` |
7c1dda50-40a0-454c-baf2-fd1e35aa6336 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "rosdep package manager abstraction tool for ROS"
SECTION = "devel/python"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709"
SRCNAME = "rosdep"
DEPENDS = "python-nose"
SRC_URI = "http://download.ros.org/downloads/rosdep/rosdep-${PV}.tar.gz"
SRC_URI[md5sum] = "2c5669bc5cafcb1df8cd21ce14844cc4"
SRC_URI[sha256sum] = "46e072074270a1ea25411829814f4bdc1f34b358c950e9b8a7b75b4a40efd96a"
S = "${WORKDIR}/${SRCNAME}-${PV}"
RDEPENDS_${PN} += "python-catkin-pkg python-rospkg python-pyyaml python-netclient"
inherit setuptools
BBCLASSEXTEND += "native"
```
Add run-time dependency on python-rosdistro | ```bitbake
DESCRIPTION = "rosdep package manager abstraction tool for ROS"
SECTION = "devel/python"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=8;endline=8;md5=e910b35b0ef4e1f665b9a75d6afb7709"
SRCNAME = "rosdep"
DEPENDS = "python-nose"
SRC_URI = "http://download.ros.org/downloads/rosdep/rosdep-${PV}.tar.gz"
SRC_URI[md5sum] = "2c5669bc5cafcb1df8cd21ce14844cc4"
SRC_URI[sha256sum] = "46e072074270a1ea25411829814f4bdc1f34b358c950e9b8a7b75b4a40efd96a"
S = "${WORKDIR}/${SRCNAME}-${PV}"
RDEPENDS_${PN} += "python-catkin-pkg python-rospkg python-pyyaml python-netclient python-rosdistro"
inherit setuptools
BBCLASSEXTEND += "native"
``` |
e85a6d20-737b-4aac-856c-bfd187cdbec3 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Very high-quality data compression program."
SECTION = "console/utils"
PR = "r0"
LICENSE = "bzip2"
SRC_URI = "http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz \
file://configure.ac \
file://Makefile.am"
S = "${WORKDIR}/bzip2-${PV}"
CFLAGS_append = " -fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64"
inherit autotools native
do_configure_prepend () {
cp ${WORKDIR}/configure.ac ${S}/
cp ${WORKDIR}/Makefile.am ${S}/
cp ${STAGING_DATADIR_NATIVE}/automake*/install-sh ${S}/
}
do_stage () {
install -m 0644 bzlib.h ${STAGING_INCDIR}/
oe_libinstall -a -so libbz2 ${STAGING_LIBDIR}
}
```
Kill the manual copy of install-sh, autoreconf will handle that. | ```bitbake
DESCRIPTION = "Very high-quality data compression program."
SECTION = "console/utils"
PR = "r0"
LICENSE = "bzip2"
SRC_URI = "http://www.bzip.org/1.0.5/bzip2-1.0.5.tar.gz \
file://configure.ac \
file://Makefile.am"
S = "${WORKDIR}/bzip2-${PV}"
CFLAGS_append = " -fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64"
inherit autotools native
do_configure_prepend () {
cp ${WORKDIR}/configure.ac ${S}/
cp ${WORKDIR}/Makefile.am ${S}/
}
do_stage () {
install -m 0644 bzlib.h ${STAGING_INCDIR}/
oe_libinstall -a -so libbz2 ${STAGING_LIBDIR}
}
``` |
350fb066-789f-4936-8a36-a0ed73d0dcc1 | {
"language": "BitBake"
} | ```bitbake
require xorg-proto-common.inc
DESCRIPTION = "Touchscreen calibration protocol"
PV = "0.0+gitr${SRCREV}"
PR = "r1"
PE = "1"
SRC_URI = "git://anongit.freedesktop.org/git/xorg/proto/calibrateproto;protocol=git"
S = "${WORKDIR}/git"
```
Use increment-able PV format as other git version recipes do. | ```bitbake
require xorg-proto-common.inc
DESCRIPTION = "Touchscreen calibration protocol"
PR = "r0"
PV = "0.0+${PR}+gitr${SRCREV}"
PE = "1"
SRC_URI = "git://anongit.freedesktop.org/git/xorg/proto/calibrateproto;protocol=git"
S = "${WORKDIR}/git"
``` |
3bfd4a5e-5614-49f0-8c5f-c4f32cc06b21 | {
"language": "BitBake"
} | ```bitbake
require navit.inc
SRCREV = "4495"
PV = "0.2.0+svnr${SRCPV}"
PR = "${INC_PR}.12"
S = "${WORKDIR}/navit"
SRC_URI += "svn://[email protected]/svnroot/navit/trunk;module=navit;proto=http "
```
Update to SVN revision 4503. | ```bitbake
require navit.inc
SRCREV = "4503"
PV = "0.2.0+svnr${SRCPV}"
PR = "${INC_PR}.12"
S = "${WORKDIR}/navit"
SRC_URI += "svn://[email protected]/svnroot/navit/trunk;module=navit;proto=http "
``` |
e13c3b6f-e620-4874-835f-0d1dc9e4193c | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "luaposix is a POSIX binding for Lua."
LICENSE = "MIT"
HOMEPAGE = "https://github.com/luaposix/luaposix"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f81069e00c0cad249f20efe958276db1"
DEPENDS += "lua-native lua libxcrypt"
SRC_URI = "git://github.com/luaposix/luaposix.git;branch=release-v${PV} \
"
SRCREV = "14043c5086ae738823a5dfbc9170d9e14193fbef"
S = "${WORKDIR}/git"
LUA_VERSION = "5.4"
B = "${S}"
inherit pkgconfig
do_compile() {
${S}/build-aux/luke
}
do_install() {
${S}/build-aux/luke PREFIX=${D}${prefix} install
}
FILES:${PN} = "${datadir}/lua/${LUA_VERSION} \
${libdir}/lua/${LUA_VERSION}"
```
Use virtual/crypt instread of hardcoding libxcrypt | ```bitbake
DESCRIPTION = "luaposix is a POSIX binding for Lua."
LICENSE = "MIT"
HOMEPAGE = "https://github.com/luaposix/luaposix"
LIC_FILES_CHKSUM = "file://LICENSE;md5=f81069e00c0cad249f20efe958276db1"
DEPENDS += "lua-native lua virtual/crypt"
SRC_URI = "git://github.com/luaposix/luaposix.git;branch=release-v${PV} \
"
SRCREV = "14043c5086ae738823a5dfbc9170d9e14193fbef"
S = "${WORKDIR}/git"
LUA_VERSION = "5.4"
B = "${S}"
inherit pkgconfig
do_compile() {
${S}/build-aux/luke
}
do_install() {
${S}/build-aux/luke PREFIX=${D}${prefix} install
}
FILES:${PN} = "${datadir}/lua/${LUA_VERSION} \
${libdir}/lua/${LUA_VERSION}"
``` |
a2cffaab-1eb2-4071-b314-1efcfccd8719 | {
"language": "BitBake"
} | ```bitbake
DESCRIPTION = "Base software to install on USRP Embedded"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
PR = "r6"
inherit task
RDEPENDS_${PN} = "\
kernel-modules \
oprofile \
screen \
htop \
powertop \
python-lxml \
python-subprocess \
gdb \
vim-vimrc \
"
```
Install all python modules on the e100. | ```bitbake
DESCRIPTION = "Base software to install on USRP Embedded"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
PR = "r6"
inherit task
RDEPENDS_${PN} = "\
kernel-modules \
oprofile \
screen \
htop \
powertop \
python-lxml \
python-modules \
gdb \
vim-vimrc \
"
``` |
79eaf1b5-f34f-4ba4-b8f5-9d67dfc162f1 | {
"language": "BitBake"
} | ```bitbake
require u-boot.inc
# This is needs to be validated among supported BSP's before we can
# make it default
DEFAULT_PREFERENCE = "-1"
# To build u-boot for your machine, provide the following lines in
# your machine config, replacing the assignments as appropriate for
# your machine.
# UBOOT_MACHINE = "omap3_beagle_config"
# UBOOT_ENTRYPOINT = "0x80008000"
# UBOOT_LOADADDRESS = "0x80008000"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
PV = "v2013.01.01+git${SRCPV}"
PR = "r5"
SRCREV = "14c8f0753662a7b4802340279e62e4e6b9a6d612"
SRC_URI = "git://git.denx.de/u-boot-sh.git;branch=renesas/bsp/rcar-gen2-5.3;protocol=git"
S = "${WORKDIR}/git"
PACKAGE_ARCH = "${MACHINE_ARCH}"
```
Update BSP to version 0.5.4 | ```bitbake
require u-boot.inc
# This is needs to be validated among supported BSP's before we can
# make it default
DEFAULT_PREFERENCE = "-1"
# To build u-boot for your machine, provide the following lines in
# your machine config, replacing the assignments as appropriate for
# your machine.
# UBOOT_MACHINE = "omap3_beagle_config"
# UBOOT_ENTRYPOINT = "0x80008000"
# UBOOT_LOADADDRESS = "0x80008000"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
PV = "v2013.01.01+git${SRCPV}"
PR = "r6"
SRCREV = "fb213ade2bdd7a20a74b34ef4effdfcaa74ae96c"
SRC_URI = "git://git.denx.de/u-boot-sh.git;branch=renesas/bsp/rcar-gen2-5.4;protocol=git"
S = "${WORKDIR}/git"
PACKAGE_ARCH = "${MACHINE_ARCH}"
``` |
551a4588-f4d2-48e6-bb8a-b078a4654be0 | {
"language": "BitBake"
} | ```bitbake
# Copyright (C) 2015 Shanghai Zhixing Information Technology Co.Ltd
require recipes-bsp/u-boot/u-boot-curie.inc
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRCBRANCH = "curie_v2015.04_3.14.38_6ul_ga"
REV = "6717e63130518d7a67f3781d6e9dee6cf643ba50"
SRCREPO = "rehsack"
SRC_URI += "file://bootsettings.patch \
"
```
Apply fixes from Matthias Rabe to educate u-boot about curie boards | ```bitbake
# Copyright (C) 2015 Shanghai Zhixing Information Technology Co.Ltd
require recipes-bsp/u-boot/u-boot-curie.inc
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRCBRANCH = "curie_v2015.04_3.14.38_6ul_ga"
REV = "695a9e2d8d921eabe7816054a124e34a8b963827"
SRCREPO = "rehsack"
SRC_URI += "file://bootsettings.patch \
"
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.