Skip to content

Commit

Permalink
merge in 2021-11-23
Browse files Browse the repository at this point in the history
commit 934064a01903b2ba9a82be93b3f0efdb4543a0e8 (HEAD -> dunfell, origin/dunfell)
Author: Pavel Zhukov <[email protected]>
Date:   Thu Nov 18 15:56:20 2021 +0100

    linux-firmware-rpidistro: Use buster branch instead of master

    Master branch has been renamed to buster.
    This change is dunfell-specific because master follows bullseye which
    diverted from ex-master quite a lot.

    Related: RPi-Distro/firmware-nonfree#20
    Signed-off-by: Pavel Zhukov <[email protected]>

commit 2e704f5ef61e4efd4b691a2ed1cad7a59811c791
Author: Changqing Li <[email protected]>
Date:   Thu May 13 11:15:47 2021 +0800

    99-com.rules: fix error invalid substitution type

    fix below error:
    /etc/udev/rules.d/99-com.rules:10 Invalid value "/bin/sh -c
    'ALIASES=/proc/device-tree/aliases; if cmp -s $ALIASES/uart0
    $ALIASES/serial0; then echo 0;elif cmp -s $ALIASES/uart0
    $ALIASES/serial1; then echo 1; else exit 1; fi'" for PROGRAM (char 58:
    invalid substitution type)

    Signed-off-by: Changqing Li <[email protected]>
    (cherry picked from commit fb253346c2fe85f8fdd49e5a66dff04d8f2bd53e)
    Signed-off-by: Pavel Zhukov <[email protected]>
  • Loading branch information
duvallee committed Nov 23, 2021
1 parent e68c4e6 commit b3b78c3
Show file tree
Hide file tree
Showing 16 changed files with 59 additions and 24 deletions.
2 changes: 2 additions & 0 deletions conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ BBFILE_PRIORITY_raspberrypi = "9"

LAYERSERIES_COMPAT_raspberrypi = "dunfell"

LAYERDEPENDS_raspberrypi = "core"

# Additional license directories.
LICENSE_PATH += "${LAYERDIR}/files/custom-licenses"

Expand Down
9 changes: 9 additions & 0 deletions docs/extra-build-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@ local.conf:

ENABLE_DWC2_PERIPHERAL = "1"

## Enable USB host support

By default in case of the Compute Module 4 IO Board the standard USB driver
that usually supports host mode operations is disabled for power saving reasons.
Users who want to use the 2 USB built-in ports or the other ports provided via
the header extension should set the following in local.conf:

ENABLE_DWC2_HOST = "1"

## Enable Openlabs 802.15.4 radio module

When using device tree kernels, set this variable to enable the 802.15.4 hat:
Expand Down
8 changes: 7 additions & 1 deletion recipes-bsp/bootfiles/rpi-config_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
COMPATIBLE_MACHINE = "^rpi$"

SRCREV = "648ffc470824c43eb0d16c485f4c24816b32cd6f"
SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \
SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=https;branch=master \
"

S = "${WORKDIR}/git"
Expand Down Expand Up @@ -194,6 +194,12 @@ do_deploy() {
echo "dtoverlay=dwc2,dr_mode=peripheral" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
fi

# DWC2 USB host mode support
if [ "${ENABLE_DWC2_HOST}" = "1" ]; then
echo "# Enable USB host mode" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
echo "dtoverlay=dwc2,dr_mode=host" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
fi

# AT86RF23X support
if [ "${ENABLE_AT86RF}" = "1" ]; then
echo "# Enable AT86RF23X" >>${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
Expand Down
6 changes: 3 additions & 3 deletions recipes-bsp/common/raspberrypi-firmware.inc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
RPIFW_DATE ?= "20201002"
SRCREV ?= "11e3c314bc2b64f7d862bac00ff3d9f42f3c5a50"
RPIFW_DATE ?= "20210527"
SRCREV ?= "1eb8921ae7158249894f89e8bb6c4bfb04ec7377"
RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/${SRCREV}.tar.gz;downloadfilename=raspberrypi-firmware-${SRCREV}.tar.gz"
RPIFW_S ?= "${WORKDIR}/firmware-${SRCREV}"

SRC_URI = "${RPIFW_SRC_URI}"
SRC_URI[sha256sum] = "b8c9f5a3e987f418f11526cbf59f6a6c8103e8f5e94bccffb9ef3fd7ae834f98"
SRC_URI[sha256sum] = "32fb5cc72703247622839c3cb4df2f369f91d2185770df867ac9758283bf5380"

PV = "${RPIFW_DATE}"
2 changes: 1 addition & 1 deletion recipes-connectivity/pi-bluetooth/pi-bluetooth_0.1.12.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "\
"

SRC_URI = "\
git://github.com/RPi-Distro/pi-bluetooth \
git://github.com/RPi-Distro/pi-bluetooth;branch=master;protocol=https \
file://0001-bthelper-correct-path-for-hciconfig-under-Yocto.patch \
"
SRCREV = "cbdbcb66bcc5b9af05f1a9fffe2254c872bb0ace"
Expand Down
8 changes: 4 additions & 4 deletions recipes-core/udev/udev-rules-rpi/99-com.rules
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\
ALIASES=/proc/device-tree/aliases; \
if cmp -s $ALIASES/uart0 $ALIASES/serial0; then \
if cmp -s $$ALIASES/uart0 $$ALIASES/serial0; then \
echo 0;\
elif cmp -s $ALIASES/uart0 $ALIASES/serial1; then \
elif cmp -s $$ALIASES/uart0 $$ALIASES/serial1; then \
echo 1; \
else \
exit 1; \
Expand All @@ -11,9 +11,9 @@ KERNEL=="ttyAMA[01]", PROGRAM="/bin/sh -c '\

KERNEL=="ttyS0", PROGRAM="/bin/sh -c '\
ALIASES=/proc/device-tree/aliases; \
if cmp -s $ALIASES/uart1 $ALIASES/serial0; then \
if cmp -s $$ALIASES/uart1 $$ALIASES/serial0; then \
echo 0; \
elif cmp -s $ALIASES/uart1 $ALIASES/serial1; then \
elif cmp -s $$ALIASES/uart1 $$ALIASES/serial1; then \
echo 1; \
else \
exit 1; \
Expand Down
2 changes: 1 addition & 1 deletion recipes-devtools/pi-blaster/pi-blaster_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SECTION = "devel/libs"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://README.md;beginline=268;endline=292;md5=86d10e4bcf4b4014d306dde7c1d2a80d"

SRC_URI = "git://github.com/sarfata/pi-blaster \
SRC_URI = "git://github.com/sarfata/pi-blaster;branch=master;protocol=https \
file://remove-initscript-lsb-dependency.patch \
"

Expand Down
2 changes: 1 addition & 1 deletion recipes-devtools/python/python3-rtimu_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SECTION = "devel/python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://../../LICENSE;md5=96cdecb41125f498958e09b72faf318e"

SRC_URI = "git://github.com/RPi-Distro/RTIMULib.git;protocol=http;branch=master \
SRC_URI = "git://github.com/RPi-Distro/RTIMULib.git;protocol=http;branch=master;protocol=https \
file://0001-include-asm-ioctl.h-for-ioctl-define.patch;patchdir=../.. \
"
SRCREV = "b949681af69b45f0f7f4bb53b6770037b5b02178"
Expand Down
3 changes: 3 additions & 0 deletions recipes-graphics/libva/libva_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# when using userland graphic KHR/khrplatform.h is provided by userland but virtual/libgl is provided by mesa-gl where
# we explicitly delete KHR/khrplatform.h since its already coming from userland package
DEPENDS_append_rpi = " ${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'userland', d)}"
2 changes: 1 addition & 1 deletion recipes-graphics/userland/userland_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SRCREV = "188d3bfe4a0ac36b119a2cee35a6be8d0c68e09e"
PV = "20200624"

SRC_URI = "\
git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \
git://github.com/${SRCFORK}/userland.git;protocol=https;branch=${SRCBRANCH} \
file://0001-Allow-applications-to-set-next-resource-handle.patch \
file://0002-wayland-Add-support-for-the-Wayland-winsys.patch \
file://0003-wayland-Add-Wayland-example.patch \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ LIC_FILES_CHKSUM = "\
# so that the license files will be copied from fetched source
NO_GENERIC_LICENSE[Firmware-cypress-rpidistro] = "LICENCE.cypress-rpidistro"

SRC_URI = "git://github.com/RPi-Distro/bluez-firmware"
SRC_URI = "git://github.com/RPi-Distro/bluez-firmware;branch=master;protocol=https"
SRCREV = "96eefffcccc725425fd83be5e0704a5c32b79e54"
PV = "0.0+git${SRCPV}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ LIC_FILES_CHKSUM = "\
NO_GENERIC_LICENSE[Firmware-broadcom_bcm43xx-rpidistro] = "LICENCE.broadcom_bcm43xx"
NO_GENERIC_LICENSE[WHENCE] = "WHENCE"

SRC_URI = "git://github.com/RPi-Distro/firmware-nonfree"
SRC_URI = "git://github.com/RPi-Distro/firmware-nonfree;branch=buster;protocol=https"

SRCREV = "98e815735e2c805d65994ccc608f399595b74438"
PV = "20190114-1+rpt8"
Expand Down
28 changes: 21 additions & 7 deletions recipes-kernel/linux/linux-raspberrypi-dev.bb
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,33 @@ python __anonymous() {
raise bb.parse.SkipRecipe(msg)
}

FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:"
LINUX_VERSION ?= "5.10.y"
LINUX_RPI_BRANCH ?= "rpi-5.10.y"
LINUX_RPI_KMETA_BRANCH ?= "yocto-5.10"

LINUX_VERSION ?= "4.19"
LINUX_RPI_BRANCH ?= "rpi-4.19.y"
# Set default SRCREVs. Both the machine and meta SRCREVs are statically set
# to the as in 5.10 recipe, and hence prevent network access during parsing. If
# linux-yocto-dev is the preferred provider, they will be overridden to
# AUTOREV in following anonymous python routine and resolved when the
# variables are finalized.
SRCREV_machine ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-raspberrypi-dev", "${AUTOREV}", "89399e6e7e33d6260a954603ca03857df594ffd3", d)}'
SRCREV_meta ?= '${@oe.utils.conditional("PREFERRED_PROVIDER_virtual/kernel", "linux-raspberrypi-dev", "${AUTOREV}", "a19886b00ea7d874fdd60d8e3435894bb16e6434", d)}'

KMETA = "kernel-meta"

SRCREV = "${AUTOREV}"
SRC_URI = " \
git://github.com/raspberrypi/linux.git;protocol=git;branch=${LINUX_RPI_BRANCH} \
git://github.com/raspberrypi/linux.git;name=machine;branch=${LINUX_RPI_BRANCH};protocol=https \
git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=${LINUX_RPI_KMETA_BRANCH};destsuffix=${KMETA} \
file://powersave.cfg \
file://android-drivers.cfg \
"

require linux-raspberrypi.inc

LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"

KERNEL_EXTRA_ARGS += "DTC_FLAGS='-@ -H epapr'"

# Disable version check so that we don't have to edit this recipe every time
# upstream bumps the version
KERNEL_VERSION_SANITY_SKIP = "1"

LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
1 change: 1 addition & 0 deletions recipes-kernel/linux/linux-raspberrypi_5.4.bb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
LINUX_VERSION ?= "5.4.72"
LINUX_RPI_BRANCH ?= "rpi-5.4.y"
LINUX_RPI_KMETA_BRANCH ?= "yocto-5.4"

SRCREV_machine = "154de7bbd5844a824a635d4f9e3f773c15c6ce11"
SRCREV_meta = "5d52d9eea95fa09d404053360c2351b2b91b323b"
Expand Down
2 changes: 1 addition & 1 deletion recipes-kernel/linux/linux-raspberrypi_5.4.inc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ KMETA = "kernel-meta"

SRC_URI = " \
git://github.com/raspberrypi/linux.git;name=machine;branch=${LINUX_RPI_BRANCH} \
git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.4;destsuffix=${KMETA} \
git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=${LINUX_RPI_KMETA_BRANCH};destsuffix=${KMETA} \
"
SRC_URI_remove = "file://rpi-kernel-misc.cfg"

Expand Down
4 changes: 2 additions & 2 deletions recipes-multimedia/omxplayer/omxplayer_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ SRCREV_default = "f543a0d0e707ab56415f17b0ca6d397394ee8b63"
# This SRCREV corresponds to the v4.0.3 release of ffmpeg.
SRCREV_ffmpeg = "fcbd117df3077bad495e99e20f01cf93737bce76"

SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=git;branch=master \
git://github.com/FFmpeg/FFmpeg;branch=release/4.0;protocol=git;depth=1;name=ffmpeg;destsuffix=git/ffmpeg \
SRC_URI = "git://github.com/popcornmix/omxplayer.git;protocol=https;branch=master \
git://github.com/FFmpeg/FFmpeg;branch=release/4.0;protocol=https;depth=1;name=ffmpeg;destsuffix=git/ffmpeg \
file://0002-Libraries-and-headers-from-ffmpeg-are-installed-in-u.patch \
file://0003-Remove-strip-step-in-Makefile.patch \
file://0004-Add-FFMPEG_EXTRA_CFLAGS-and-FFMPEG_EXTRA_LDFLAGS.patch \
Expand Down

0 comments on commit b3b78c3

Please sign in to comment.