mirror of
git://git.yoctoproject.org/meta-raspberrypi.git
synced 2025-07-19 21:09:03 +02:00
Merge pull request #229 from agherzan/pbarker/for-rocko
Rocko Backports
This commit is contained in:
commit
acfb857227
|
@ -10,10 +10,11 @@ Yocto BSP layer for the Raspberry Pi boards - <http://www.raspberrypi.org/>.
|
|||
## Quick links
|
||||
|
||||
* Git repository web frontend:
|
||||
<http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/>
|
||||
<https://github.com/agherzan/meta-raspberrypi>
|
||||
* Mailing list (yocto mailing list): <yocto@yoctoproject.org>
|
||||
* Issues management (Github Issues):
|
||||
<https://github.com/agherzan/meta-raspberrypi/issues>
|
||||
* Documentation: <http://meta-raspberrypi.readthedocs.io/en/rocko/>
|
||||
|
||||
## Description
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ SOC_FAMILY = "rpi"
|
|||
include conf/machine/include/soc-family.inc
|
||||
|
||||
IMAGE_FSTYPES ?= "tar.bz2 ext3 rpi-sdimg"
|
||||
WKS_FILE ?= "sdimage-raspberrypi.wks"
|
||||
|
||||
XSERVER = " \
|
||||
xserver-xorg \
|
||||
|
@ -19,6 +20,7 @@ KERNEL_DEVICETREE ?= " \
|
|||
bcm2708-rpi-b-plus.dtb \
|
||||
bcm2709-rpi-2-b.dtb \
|
||||
bcm2710-rpi-3-b.dtb \
|
||||
bcm2710-rpi-3-b-plus.dtb \
|
||||
bcm2708-rpi-cm.dtb \
|
||||
bcm2710-rpi-cm3.dtb \
|
||||
\
|
||||
|
|
|
@ -120,7 +120,7 @@ todo_include_todos = False
|
|||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
#
|
||||
html_theme = 'alabaster'
|
||||
# html_theme = 'alabaster'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
* raspberrypi-cm (dummy alias for raspberrypi)
|
||||
* raspberrypi-cm3 (dummy alias for raspberrypi2)
|
||||
|
||||
Note: The raspberrypi3 machines include support for Raspberry Pi 3B+.
|
||||
|
||||
## Images
|
||||
|
||||
* rpi-hwup-image
|
||||
|
|
|
@ -31,25 +31,25 @@ do_deploy() {
|
|||
cp ${S}/config.txt ${DEPLOYDIR}/bcm2835-bootfiles/
|
||||
|
||||
if [ -n "${KEY_DECODE_MPG2}" ]; then
|
||||
sed -i '/#decode_MPG2/ c\decode_MPG2=${KEY_DECODE_MPG2}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
sed -i '/#decode_MPG2=/ c\decode_MPG2=${KEY_DECODE_MPG2}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
if [ -n "${KEY_DECODE_WVC1}" ]; then
|
||||
sed -i '/#decode_WVC1/ c\decode_WVC1=${KEY_DECODE_WVC1}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
sed -i '/#decode_WVC1=/ c\decode_WVC1=${KEY_DECODE_WVC1}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
if [ -n "${DISABLE_OVERSCAN}" ]; then
|
||||
sed -i '/#disable_overscan/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
sed -i '/#disable_overscan=/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
if [ -n "${ARM_FREQ}" ]; then
|
||||
sed -i '/#arm_freq/ c\arm_freq=${ARM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
sed -i '/#arm_freq=/ c\arm_freq=${ARM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
if [ -n "${CORE_FREQ}" ]; then
|
||||
sed -i '/#core_freq/ c\core_freq=${CORE_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
sed -i '/#core_freq=/ c\core_freq=${CORE_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
if [ -n "${SDRAM_FREQ}" ]; then
|
||||
sed -i '/#sdram_freq/ c\sdram_freq=${SDRAM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
sed -i '/#sdram_freq=/ c\sdram_freq=${SDRAM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
if [ -n "${OVER_VOLTAGE}" ]; then
|
||||
sed -i '/#over_voltage/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
sed -i '/#over_voltage=/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
|
||||
# GPU memory
|
||||
|
@ -57,13 +57,13 @@ do_deploy() {
|
|||
sed -i '/#gpu_mem=/ c\gpu_mem=${GPU_MEM}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
if [ -n "${GPU_MEM_256}" ]; then
|
||||
sed -i '/#gpu_mem_256/ c\gpu_mem_256=${GPU_MEM_256}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
sed -i '/#gpu_mem_256=/ c\gpu_mem_256=${GPU_MEM_256}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
if [ -n "${GPU_MEM_512}" ]; then
|
||||
sed -i '/#gpu_mem_512/ c\gpu_mem_512=${GPU_MEM_512}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
sed -i '/#gpu_mem_512=/ c\gpu_mem_512=${GPU_MEM_512}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
if [ -n "${GPU_MEM_1024}" ]; then
|
||||
sed -i '/#gpu_mem_1024/ c\gpu_mem_1024=${GPU_MEM_1024}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
sed -i '/#gpu_mem_1024=/ c\gpu_mem_1024=${GPU_MEM_1024}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt
|
||||
fi
|
||||
|
||||
# Video camera support
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
RPIFW_DATE ?= "20171029"
|
||||
RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/1.${RPIFW_DATE}.tar.gz"
|
||||
RPIFW_S ?= "${WORKDIR}/firmware-1.${RPIFW_DATE}"
|
||||
RPIFW_DATE ?= "20180313"
|
||||
SRCREV ?= "af994023ab491420598bfd5648b9dcab956f7e11"
|
||||
RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/${SRCREV}.tar.gz"
|
||||
RPIFW_S ?= "${WORKDIR}/firmware-${SRCREV}"
|
||||
|
||||
SRC_URI = "${RPIFW_SRC_URI}"
|
||||
SRC_URI[md5sum] = "4d27c1888a7bab3097471906e7b4a319"
|
||||
SRC_URI[sha256sum] = "46ce28c8d87ef22bdcc57ac1836ca3f04d1ec6f46580ff5a30bf76b3c0822117"
|
||||
PV = "${RPIFW_DATE}"
|
||||
SRC_URI[md5sum] = "0c388f3631093368ac92a15a262d0f7c"
|
||||
SRC_URI[sha256sum] = "e2afa23886de586856a1d604da2a85e4559715816dccbd70ae828b840beafc21"
|
||||
|
||||
PV = "${RPIFW_DATE}"
|
||||
|
|
|
@ -1,26 +1,26 @@
|
|||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||
FILESEXTRAPATHS_prepend_rpi := "${THISDIR}/files:"
|
||||
|
||||
SRC_URI += " \
|
||||
file://brcmfmac43430-sdio.bin \
|
||||
file://brcmfmac43430-sdio.txt \
|
||||
"
|
||||
SRC_URI_append_rpi = " \
|
||||
file://brcmfmac43430-sdio.bin \
|
||||
file://brcmfmac43430-sdio.txt \
|
||||
"
|
||||
|
||||
do_install_append() {
|
||||
# Overwrite v7.45.41.26 by the one we currently provide in this layer
|
||||
# (v7.45.41.46)
|
||||
local _firmware="brcmfmac43430-sdio.bin"
|
||||
local _oldmd5=9258986488eca9fe5343b0d6fe040f8e
|
||||
if [ "$(md5sum ${D}/lib/firmware/brcm/$_firmware | awk '{print $1}')" != "$_oldmd5" ]; then
|
||||
_firmware=""
|
||||
bbwarn "linux-firmware stopped providing brcmfmac43430 v7.45.41.26."
|
||||
else
|
||||
_firmware="${WORKDIR}/$_firmware"
|
||||
fi
|
||||
do_install_append_rpi() {
|
||||
# Overwrite v7.45.41.26 by the one we currently provide in this layer
|
||||
# (v7.45.41.46)
|
||||
local _firmware="brcmfmac43430-sdio.bin"
|
||||
local _oldmd5=9258986488eca9fe5343b0d6fe040f8e
|
||||
if [ "$(md5sum ${D}${nonarch_base_libdir}/firmware/brcm/$_firmware | awk '{print $1}')" != "$_oldmd5" ]; then
|
||||
_firmware=""
|
||||
bbwarn "linux-firmware stopped providing brcmfmac43430 v7.45.41.26."
|
||||
else
|
||||
_firmware="${WORKDIR}/$_firmware"
|
||||
fi
|
||||
|
||||
mkdir -p ${D}/lib/firmware/brcm
|
||||
install -m 0644 $_firmware ${WORKDIR}/brcmfmac43430-sdio.txt ${D}/lib/firmware/brcm
|
||||
mkdir -p ${D}/${nonarch_base_libdir}/firmware/brcm
|
||||
install -m 0644 $_firmware ${WORKDIR}/brcmfmac43430-sdio.txt ${D}${nonarch_base_libdir}/firmware/brcm
|
||||
}
|
||||
|
||||
FILES_${PN}-bcm43430 += " \
|
||||
/lib/firmware/brcm/brcmfmac43430-sdio.txt \
|
||||
FILES_${PN}-bcm43430_append_rpi = " \
|
||||
${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.txt \
|
||||
"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
||||
|
||||
LINUX_VERSION ?= "4.9.59"
|
||||
LINUX_VERSION ?= "4.9.80"
|
||||
|
||||
SRCREV = "e7976b2affa8c05bd299ead0ad9c36ddaf135b9d"
|
||||
SRCREV = "a7b4dd27c1c0d6510b8066b91ef01be0928d8529"
|
||||
SRC_URI = "git://github.com/raspberrypi/linux.git;branch=rpi-4.9.y"
|
||||
|
||||
require linux-raspberrypi.inc
|
||||
|
|
Loading…
Reference in New Issue
Block a user