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.
This commit is contained in:
Haggai Eran 2015-05-25 22:44:04 +03:00 committed by Stephan Raue
parent a09ae66ee4
commit e3203be00e
2 changed files with 2 additions and 1 deletions

View File

@ -333,6 +333,7 @@ fi
UUID_SYSTEM="$(uuidgen)" \
UUID_STORAGE="$(uuidgen)" \
UBOOT_SYSTEM="$UBOOT_SYSTEM" \
EXTRA_CMDLINE="$EXTRA_CMDLINE" \
$SCRIPTS/mkimage
fi

View File

@ -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