diff mbox series

[8/8] board/raspberrypi: post-image --kernel option

Message ID 20190129132309.3455-9-robert.heywood@codethink.co.uk
State Changes Requested
Headers show
Series board/raspberrypi: post-image customisations. | expand

Commit Message

Robert Heywood Jan. 29, 2019, 1:23 p.m. UTC
Add an option to specify the kernel to boot.
This can be used to enable uboot on the pi.

Signed-off-by: Robert J. Heywood <robert.heywood@codethink.co.uk>
---
 board/raspberrypi/post-image.sh | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/board/raspberrypi/post-image.sh b/board/raspberrypi/post-image.sh
index dbcaf3b1f8..71d9857f09 100755
--- a/board/raspberrypi/post-image.sh
+++ b/board/raspberrypi/post-image.sh
@@ -66,6 +66,9 @@  __EOF__
 		--skip-sdimg)
 		SEDCMD_SDIMG=" -e '/{SDIMG_START}/,/{SDIMG_END}/d' "
 		;;
+		--kernel=*)
+		sed -e "/^kernel=/s,=.*,=${arg:9}," -i "${BINARIES_DIR}/rpi-firmware/config.txt"
+		;;
 	esac
 
 done