2020-07-07 21:13:18 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -u
|
|
|
|
set -e
|
2020-07-16 11:26:24 +00:00
|
|
|
set -x
|
2020-07-07 21:13:18 +00:00
|
|
|
|
2020-07-16 11:26:24 +00:00
|
|
|
BOARD_DIR="$(dirname $0)"
|
|
|
|
|
|
|
|
cp -f ${BOARD_DIR}/grub.cfg ${TARGET_DIR}/boot/grub/grub.cfg
|
|
|
|
|
2023-02-15 10:35:19 +00:00
|
|
|
echo "export VERSION=\"${VERSION}\"" > ${TARGET_DIR}/etc/environment
|
2023-02-15 12:52:28 +00:00
|
|
|
echo "export GIT_REF=\"${GIT_REF}\"" >> ${TARGET_DIR}/etc/environment
|
2020-07-17 02:15:03 +00:00
|
|
|
echo "export GIT_AUTHOR=\"${GIT_AUTHOR}\"" >> ${TARGET_DIR}/etc/environment
|
|
|
|
echo "export GIT_KEY=\"${GIT_KEY}\"" >> ${TARGET_DIR}/etc/environment
|
2023-02-13 05:41:33 +00:00
|
|
|
echo "export GIT_TIMESTAMP=\"${GIT_TIMESTAMP}\"" >> ${TARGET_DIR}/etc/environment
|
2020-07-17 02:15:03 +00:00
|
|
|
|
2020-07-16 11:26:24 +00:00
|
|
|
exit $?
|