This commit is contained in:
Igor Pecovnik 2018-08-11 08:37:01 +02:00
parent f0947a17e0
commit 0e8a2769e6

View File

@ -32,6 +32,7 @@ create_board_package()
# add configuration for setting uboot environment from userspace with: fw_setenv fw_printenv
if [[ -n $UBOOT_FW_ENV ]]; then
UBOOT_FW_ENV=($(tr ',' ' ' <<< "$UBOOT_FW_ENV"))
mkdir -p $destination/etc
echo "# Device to access offset env size" > $destination/etc/fw_env.config
echo "/dev/mmcblk0 ${UBOOT_FW_ENV[0]} ${UBOOT_FW_ENV[1]}" >> $destination/etc/fw_env.config
fi