From 4824613ce6a289fc32d4831e7459c1bd8522f748 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 8 Feb 2015 16:35:58 +0100 Subject: [PATCH] noobs: add support for noobs 'supported_hex_versions' Signed-off-by: Stephan Raue --- config/noobs/os.json | 5 ++++- projects/RPi/options | 2 ++ projects/RPi2/options | 2 ++ scripts/image | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config/noobs/os.json b/config/noobs/os.json index 0e47c8e09e..5f085aaccb 100644 --- a/config/noobs/os.json +++ b/config/noobs/os.json @@ -3,5 +3,8 @@ "version": "@OPENELEC_VERSION@", "release_date": "@RELEASE_DATE@", "kernel": "@KERNEL_VERSION@", - "description": "@DESCRIPTION@" + "description": "@DESCRIPTION@", + "username": "root", + "password": "@ROOT_PASSWORD@", + "supported_hex_revisions": "@NOOBS_HEX@" } diff --git a/projects/RPi/options b/projects/RPi/options index ffbf199271..69f1805fcf 100644 --- a/projects/RPi/options +++ b/projects/RPi/options @@ -59,6 +59,8 @@ # default: default mainline kernel LINUX="default" + # NOOBS supported hex versions + NOOBS_HEX="2,3,4,5,6,7,8,9,d,e,f,10,11,12,14,19" ################################################################################ # setup build defaults diff --git a/projects/RPi2/options b/projects/RPi2/options index 7edbb5442d..6e3d0d87ae 100644 --- a/projects/RPi2/options +++ b/projects/RPi2/options @@ -59,6 +59,8 @@ # default: default mainline kernel LINUX="3.18" + # NOOBS supported hex versions + NOOBS_HEX="1040,1041" ################################################################################ # setup build defaults diff --git a/scripts/image b/scripts/image index 58da1f1f9d..03b7480fb4 100755 --- a/scripts/image +++ b/scripts/image @@ -339,6 +339,8 @@ IMAGE_NAME="$DISTRONAME-$TARGET_VERSION" -e "s%@RELEASE_DATE@%$(date +%F)%g" \ -e "s%@KERNEL_VERSION@%$(kernel_version)%g" \ -e "s%@DESCRIPTION@%$DESCRIPTION%g" \ + -e "s%@ROOT_PASSWORD@%$ROOT_PASSWORD%g" \ + -e "s%@NOOBS_HEX@%$NOOBS_HEX%g" \ -i $RELEASE_DIR/${DISTRONAME}_${PROJECT}/os.json sed -e "s%@DISTRONAME@%$DISTRONAME%g" \