summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-09-16 21:30:28 +0300
committerAndrei Gherzan <andrei@gherzan.ro>2012-09-16 21:35:21 +0300
commit890dca99f92252f1feeae251d493d47c67a509c9 (patch)
tree4404605a306e27f5b64331dfbd6b88b13077b232
parentc5e81857104fdbe4d66a1a637585c7a0d7e7f7d4 (diff)
downloadmeta-raspberrypi-890dca99f92252f1feeae251d493d47c67a509c9.tar.gz
linux-raspberrypi: Use cmdline.txt to supply kernel command line
The build-time kernel command line (as defined by the CONFIG_CMDLINE config parameter) is not respected by the RPI bootloader, and instead any custom command line must be suplied via the cmdline.txt file in the boot partition. This patch modifies the linux-raspberrypi recipe to generate a cmdline.txt file that corresponds to the build-time configured command line, and it also modifies the sdcard_image-rpi.bbclass to include this file in the generated SD card images. [GITHUB #62] Signed-off-by: Tomas Frydrych <tomas@sleepfive.com> Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
-rw-r--r--recipes-kernel/linux/linux-raspberrypi_3.2.27.bb8
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb b/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb
index 8006bd3..bfe63d4 100644
--- a/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_3.2.27.bb
@@ -4,7 +4,7 @@ require linux.inc
4 4
5DESCRIPTION = "Linux kernel for the RaspberryPi board" 5DESCRIPTION = "Linux kernel for the RaspberryPi board"
6 6
7PR = "r1" 7PR = "r2"
8 8
9# Bump MACHINE_KERNEL_PR in the machine config if you update the kernel. 9# Bump MACHINE_KERNEL_PR in the machine config if you update the kernel.
10# This is on the rpi-patches branch 10# This is on the rpi-patches branch
@@ -36,3 +36,9 @@ do_configure_prepend() {
36do_install_prepend() { 36do_install_prepend() {
37 install -d ${D}/lib/firmware 37 install -d ${D}/lib/firmware
38} 38}
39
40do_deploy_append() {
41 # Deploy cmdline.txt
42 install -d ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles
43 echo "${CMDLINE}" > ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/cmdline.txt
44}