diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-04-29 12:41:10 -0700 |
---|---|---|
committer | Andrei Gherzan <andrei@gherzan.com> | 2018-05-04 22:08:38 +0100 |
commit | 014408d1ac49ca7e4a748874c342fefb9376cc4a (patch) | |
tree | 71ed3122bf1de43cf172d8a6c4bd862e7f3f90e2 | |
parent | 070c894321bc9f2ddda8fe5622875c4f1fcef712 (diff) | |
download | meta-raspberrypi-014408d1ac49ca7e4a748874c342fefb9376cc4a.tar.gz |
linux-raspberrypi: Disable serial on kernel cmdline if ENABLE_UART is unset
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-kernel/linux/linux-raspberrypi.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index b7873d3..65c2ab7 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc | |||
@@ -19,7 +19,8 @@ KBUILD_DEFCONFIG_raspberrypi3 ?= "bcm2709_defconfig" | |||
19 | KBUILD_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig" | 19 | KBUILD_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig" |
20 | 20 | ||
21 | # CMDLINE for raspberrypi | 21 | # CMDLINE for raspberrypi |
22 | CMDLINE ?= "dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" | 22 | SERIAL = "${@oe.utils.conditional("ENABLE_UART", "1", "console=serial0,115200", "", d)}" |
23 | CMDLINE ?= "dwc_otg.lpm_enable=0 ${SERIAL} root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" | ||
23 | 24 | ||
24 | # Add the kernel debugger over console kernel command line option if enabled | 25 | # Add the kernel debugger over console kernel command line option if enabled |
25 | CMDLINE_append = ' ${@oe.utils.conditional("ENABLE_KGDB", "1", "kgdboc=serial0,115200", "", d)}' | 26 | CMDLINE_append = ' ${@oe.utils.conditional("ENABLE_KGDB", "1", "kgdboc=serial0,115200", "", d)}' |