Skip to contentSkip to conversation

rpi-default-versions.inc: Use fallback weak assignment

PATCH New Khem Raj 1 participant 3 messages Feb 16, 2017 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/3 rpi-default-versions.inc: Use fallback weak assignment

This lets machines use ?= to choose their preferred kernel e.g. 64bit rpi3 needs 4.9 minimum but default right now is 4.4

At the same time it keeps the option for user to override any of these settings via config metadata e.g. local.conf

---
 conf/machine/include/rpi-default-versions.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/rpi-default-versions.inc +1 -1
index e65a4ae..2007cc0 100644
@@ -1,3 +1,3 @@
 # RaspberryPi BSP default versions
 
-PREFERRED_VERSION_linux-raspberrypi ?= "4.4.%"
+PREFERRED_VERSION_linux-raspberrypi ??= "4.4.%"
Signature · 1 line
2.11.1
author
#1 lore raw

PATCH 2/3 raspberrypi3-64.conf: Add vc4graphics to MACHINE_FEATURES

Userland wont work in 64bit mode

---
 conf/machine/raspberrypi3-64.conf | 1 +
 1 file changed, 1 insertion(+)
conf/machine/raspberrypi3-64.conf +1 -0
index e7d9af2..0bf1397 100644
@@ -36,5 +36,6 @@ SERIAL_CONSOLE = "115200 ttyS0"
 VC4_CMA_SIZE ?= "cma-256"
 
 UBOOT_MACHINE = "rpi_3_config"
+MACHINE_FEATURES_append = " vc4graphics"
 
 PREFERRED_VERSION_linux-raspberrypi ?= "4.9.%"
Signature · 1 line
2.11.1
author
#2 lore raw

PATCH 3/3 linux-raspberrypi_dev: Fix build on rpi3 64bit

In reply to Khem Raj
---
 recipes-kernel/linux/linux-raspberrypi_dev.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-kernel/linux/linux-raspberrypi_dev.bb +2 -1
index f186ac0..97bd4ed 100644
@@ -1,8 +1,9 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.9:"
 
 LINUX_VERSION ?= "4.10.0-rc7"
 
 SRCREV = "28439f3b9b1de5c3b5ccf04fc359730fc8cd0646"
 SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.10.y \
+           file://0001-build-arm64-Add-rules-for-.dtbo-files-for-dts-overla.patch \
 "
 require linux-raspberrypi.inc
Signature · 1 line
2.11.1