mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[GENIMAGE] DRY *.img version output
use BR2 config postcript args.
This commit is contained in:
@@ -1,20 +1,26 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
export IMAGE_NAME=${2}
|
||||
CFW_RELEASE="2.0.0"
|
||||
STATUS="BETA"
|
||||
BR2_VENDOR=${2}
|
||||
BR2_VERSION_FULL=${3}
|
||||
LIBC=${4}
|
||||
export IMAGE_NAME="${BR2_VENDOR}-cfw-${CFW_RELEASE}${BR2_VERSION_FULL}_${LIBC}-${STATUS}.img"
|
||||
STARTDIR=`pwd`
|
||||
SELFDIR=`dirname \`realpath ${0}\``
|
||||
CFW_RELEASE="2.0.0"
|
||||
BR2_HASH=`git rev-parse --short HEAD`
|
||||
LIBC=${3}
|
||||
|
||||
cp -r board/miyoo/boot "${BINARIES_DIR}"
|
||||
cp -r board/miyoo/main "${BINARIES_DIR}"
|
||||
mkdir -p "${BINARIES_DIR}/gmenu2x"
|
||||
cp -r "${BINARIES_DIR}/gmenu2x" "${BINARIES_DIR}/main/"
|
||||
if test "$CFW_HASH" == "$BR2_HASH"; then
|
||||
|
||||
#BR2 Version is tracked by git
|
||||
BR2_HASH=$(echo $BR2_VERSION_FULL | sed 's/^[-]g//')
|
||||
if (test "$CFW_HASH" == "$BR2_HASH" || test -z "$CFW_HASH"); then
|
||||
CFW_VERSION="BR2=${BR2_HASH}"
|
||||
else
|
||||
CFW_VERSION="CFW=${CFW_HASH}"
|
||||
fi
|
||||
convert board/miyoo/miyoo-boot.png -pointsize 12 -fill white -annotate +10+230 "v${CFW_RELEASE} ${CFW_VERSION} (${LIBC})" -alpha off -type truecolor -strip -define bmp:format=bmp4 -define bmp:subtype=RGB565 "${BINARIES_DIR}"/boot/miyoo-boot.bmp
|
||||
|
||||
convert board/miyoo/miyoo-boot.png -pointsize 12 -fill white -annotate +10+230 "v${CFW_RELEASE} ${CFW_VERSION} (${LIBC}) ${STATUS}" -alpha off -type truecolor -strip -define bmp:format=bmp4 -define bmp:subtype=RGB565 "${BINARIES_DIR}"/boot/miyoo-boot.bmp
|
||||
support/scripts/genimage.sh ${1} -c board/miyoo/genimage-sdcard.cfg
|
||||
|
Reference in New Issue
Block a user