summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-07-30 10:34:07 +0200
committerAndrei Gherzan <andrei@gherzan.ro>2015-08-10 00:36:20 +0200
commitb47cbb69968c3e731cefa3ee1223fceade91758e (patch)
tree483b8d3e22a0fbd6863eefe5d53c50c68d322738 /recipes-kernel
parentbfe2307cc4f546e8534fb21cb7c11b1644fdde5b (diff)
downloadmeta-raspberrypi-b47cbb69968c3e731cefa3ee1223fceade91758e.tar.gz
linux-raspberrypi.inc: Make kgdboc kernel param optional
The kernel debugger over console (kgdboc) parameter is being added unconditionally to the kernel command line but this means that the kernel will stop and wait for gdb to attach in case of a exception or when sending a sysrq-g key. This behaviour may not be what most users wants that are not remotely debugging the kernel over serial console so make it optional by adding a ENABLE_KGDB config option. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com> [javier: Extended commit message and made it conditional] Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-raspberrypi.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc
index 7e36408..d60a3e9 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -19,7 +19,10 @@ KERNEL_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig"
19KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig" 19KERNEL_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig"
20 20
21# CMDLINE for raspberrypi 21# CMDLINE for raspberrypi
22CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" 22CMDLINE = "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
23
24# Add the kernel debugger over console kernel command line option if enabled
25CMDLINE_append = ' ${@base_conditional("ENABLE_KGDB", "1", "kgdboc=ttyAMA0,115200", "", d)}'
23 26
24UDEV_GE_141 ?= "1" 27UDEV_GE_141 ?= "1"
25 28