Fix u-boot handling (#1436)
This principle is needed for Allwinner boards. For others it needs to be checked. For now this fixes when building SPI boot loader.
This commit is contained in:
parent
e8e0c698f1
commit
ef5a797483
@ -39,7 +39,6 @@ compilation_prepare()
|
||||
|
||||
|
||||
# WireGuard - fast, modern, secure VPN tunnel
|
||||
|
||||
if linux-version compare $version ge 3.14 && [ "${WIREGUARD}" == yes ]; then
|
||||
|
||||
# attach to specifics tag or branch
|
||||
|
||||
@ -163,15 +163,21 @@ compile_uboot()
|
||||
# armbian specifics u-boot settings
|
||||
[[ -f .config ]] && sed -i 's/CONFIG_LOCALVERSION=""/CONFIG_LOCALVERSION="-armbian"/g' .config
|
||||
[[ -f .config ]] && sed -i 's/CONFIG_LOCALVERSION_AUTO=.*/# CONFIG_LOCALVERSION_AUTO is not set/g' .config
|
||||
if [[ $BOOTBRANCH =~ ^tag:v201[8-9](.*) ]]; then
|
||||
[[ -f .config ]] && sed -i 's/^.*CONFIG_ENV_IS_IN_FAT.*/# CONFIG_ENV_IS_IN_FAT is not set/g' .config
|
||||
[[ -f .config ]] && sed -i 's/^.*CONFIG_ENV_IS_IN_EXT4.*/CONFIG_ENV_IS_IN_EXT4=y/g' .config
|
||||
[[ -f .config ]] && sed -i 's/^.*CONFIG_ENV_IS_IN_MMC.*/# CONFIG_ENV_IS_IN_MMC is not set/g' .config
|
||||
[[ -f .config ]] && sed -i 's/^.*CONFIG_ENV_IS_NOWHERE.*/# CONFIG_ENV_IS_NOWHERE is not set/g' .config | echo "# CONFIG_ENV_IS_NOWHERE is not set" >> .config
|
||||
[[ -f .config ]] && echo 'CONFIG_ENV_EXT4_INTERFACE="mmc"' >> .config
|
||||
[[ -f .config ]] && echo 'CONFIG_ENV_EXT4_DEVICE_AND_PART="0:auto"' >> .config
|
||||
[[ -f .config ]] && echo 'CONFIG_ENV_EXT4_FILE="/boot/boot.env"' >> .config
|
||||
|
||||
# for modern kernel and non spi targets
|
||||
if [[ $BOOTBRANCH =~ ^tag:v201[8-9](.*) && target != "spi" && -f .config ]]; then
|
||||
|
||||
sed -i 's/^.*CONFIG_ENV_IS_IN_FAT.*/# CONFIG_ENV_IS_IN_FAT is not set/g' .config
|
||||
sed -i 's/^.*CONFIG_ENV_IS_IN_EXT4.*/CONFIG_ENV_IS_IN_EXT4=y/g' .config
|
||||
sed -i 's/^.*CONFIG_ENV_IS_IN_MMC.*/# CONFIG_ENV_IS_IN_MMC is not set/g' .config
|
||||
sed -i 's/^.*CONFIG_ENV_IS_NOWHERE.*/# CONFIG_ENV_IS_NOWHERE is not set/g' .config | echo \
|
||||
"# CONFIG_ENV_IS_NOWHERE is not set" >> .config
|
||||
echo 'CONFIG_ENV_EXT4_INTERFACE="mmc"' >> .config
|
||||
echo 'CONFIG_ENV_EXT4_DEVICE_AND_PART="0:auto"' >> .config
|
||||
echo 'CONFIG_ENV_EXT4_FILE="/boot/boot.env"' >> .config
|
||||
|
||||
fi
|
||||
|
||||
[[ -f tools/logos/udoo.bmp ]] && cp $SRC/packages/blobs/splash/udoo.bmp tools/logos/udoo.bmp
|
||||
touch .scmversion
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user