From 4a2e37f96e6568d0ab60c12c85895961a9730d40 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Fri, 28 Apr 2017 11:34:32 +0200 Subject: [PATCH 1/2] linux-raspberrypi: Make CMDLINE overridable from outside currently there is no way to override the default CMDLINE, this variable needs to be set only if the developer didn't set it already from another layer. Signed-off-by: Gianfranco Costamagna --- recipes-kernel/linux/linux-raspberrypi.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index cf61cce..9265d55 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -21,7 +21,7 @@ KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig" KERNEL_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig" # CMDLINE for raspberrypi -CMDLINE = "dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" +CMDLINE ?= "dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" # Add the kernel debugger over console kernel command line option if enabled CMDLINE_append = ' ${@base_conditional("ENABLE_KGDB", "1", "kgdboc=serial0,115200", "", d)}' From e28e6e64224accf762887a597f5485af5bb12268 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Mon, 15 May 2017 08:07:15 +0200 Subject: [PATCH 2/2] raspberrypi0.conf: make SERIAL_CONSOLE overridable from outside currently there is no way to override the default SERIAL_CONSOLE, this variable needs to be set only if the developer didn't set it already from another layer. Signed-off-by: Gianfranco Costamagna --- conf/machine/raspberrypi0.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/machine/raspberrypi0.conf b/conf/machine/raspberrypi0.conf index 7c2b811..3bd9e95 100644 --- a/conf/machine/raspberrypi0.conf +++ b/conf/machine/raspberrypi0.conf @@ -5,5 +5,5 @@ MACHINEOVERRIDES = "raspberrypi:${MACHINE}" include conf/machine/raspberrypi.conf -SERIAL_CONSOLE = "115200 ttyAMA0" +SERIAL_CONSOLE ?= "115200 ttyAMA0" VC4_CMA_SIZE ?= "cma-128"