From e3203be00ea0a055f51da8760a37bcd2bcc17a7a Mon Sep 17 00:00:00 2001 From: Haggai Eran Date: Mon, 25 May 2015 22:44:04 +0300 Subject: [PATCH] add EXTRA_CMDLINE option to add kernel command line arguments Allow configuring extra kernel command line arguments by using the EXTRA_CMDLINE variable. The patch handles EXTRA_CMDLINE only for the bcm2835 boot loaders. --- scripts/image | 1 + scripts/mkimage | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/image b/scripts/image index 50cc9a0fbf..3147c463c0 100755 --- a/scripts/image +++ b/scripts/image @@ -333,6 +333,7 @@ fi UUID_SYSTEM="$(uuidgen)" \ UUID_STORAGE="$(uuidgen)" \ UBOOT_SYSTEM="$UBOOT_SYSTEM" \ + EXTRA_CMDLINE="$EXTRA_CMDLINE" \ $SCRIPTS/mkimage fi diff --git a/scripts/mkimage b/scripts/mkimage index aeb4f6c3d6..590ec3928b 100755 --- a/scripts/mkimage +++ b/scripts/mkimage @@ -148,7 +148,7 @@ elif [ "$BOOTLOADER" = "bcm2835-bootloader" ]; then # create bootloader configuration echo "image: creating bootloader configuration..." cat << EOF > "$OE_TMP"/cmdline.txt -boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 quiet +boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 quiet $EXTRA_CMDLINE EOF # copy files