mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
bash: run shellfmt, no changes
This commit is contained in:
@@ -9,15 +9,15 @@
|
|||||||
declare -g CRUST_TARGET_MAP="scp;;build/scp/scp.bin"
|
declare -g CRUST_TARGET_MAP="scp;;build/scp/scp.bin"
|
||||||
|
|
||||||
if [[ -n "${CRUSTCONFIG}" ]]; then
|
if [[ -n "${CRUSTCONFIG}" ]]; then
|
||||||
[[ -z $CRUSTSOURCE ]] && CRUSTSOURCE='https://github.com/crust-firmware/crust'
|
[[ -z $CRUSTSOURCE ]] && CRUSTSOURCE='https://github.com/crust-firmware/crust'
|
||||||
[[ -z $CRUSTDIR ]] && CRUSTDIR='crust-sunxi-mainline'
|
[[ -z $CRUSTDIR ]] && CRUSTDIR='crust-sunxi-mainline'
|
||||||
[[ -z $CRUSTBRANCH ]] && CRUSTBRANCH='tag:v0.6'
|
[[ -z $CRUSTBRANCH ]] && CRUSTBRANCH='tag:v0.6'
|
||||||
[[ -z $CRUST_USE_GCC ]] && CRUST_USE_GCC='> 9.1.0'
|
[[ -z $CRUST_USE_GCC ]] && CRUST_USE_GCC='> 9.1.0'
|
||||||
[[ -z $CRUST_COMPILER ]] && CRUST_COMPILER='or1k-elf-'
|
[[ -z $CRUST_COMPILER ]] && CRUST_COMPILER='or1k-elf-'
|
||||||
|
|
||||||
# Apply crust patches if crust is enabled
|
# Apply crust patches if crust is enabled
|
||||||
BOOTPATCHDIR="${BOOTPATCHDIR} u-boot-sunxi-crust"
|
BOOTPATCHDIR="${BOOTPATCHDIR} u-boot-sunxi-crust"
|
||||||
|
|
||||||
# Use a different BOOTDIR so that we don't leave scp.bin behind for non crust builds
|
# Use a different BOOTDIR so that we don't leave scp.bin behind for non crust builds
|
||||||
BOOTDIR="u-boot-crust"
|
BOOTDIR="u-boot-crust"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ function pre_update_initramfs__change_initrd_compression() {
|
|||||||
function image_specific_armbian_env_ready__force_16x9_display() {
|
function image_specific_armbian_env_ready__force_16x9_display() {
|
||||||
if [[ ${BRANCH} == "legacy" ]]; then
|
if [[ ${BRANCH} == "legacy" ]]; then
|
||||||
display_alert "Forcing 16x9 display"
|
display_alert "Forcing 16x9 display"
|
||||||
run_host_command_logged echo "force_16x9_display=true" >>${SDCARD}/boot/armbianEnv.txt
|
run_host_command_logged echo "force_16x9_display=true" >> ${SDCARD}/boot/armbianEnv.txt
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ function extension_prepare_config__check_sanity_usb_gadget_ums() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# @TODO: maybe include this in the bsp-cli, so it can be updated later
|
# @TODO: maybe include this in the bsp-cli, so it can be updated later
|
||||||
function pre_customize_image__inject_initramfs_usb_gadget_ums() {
|
function pre_customize_image__inject_initramfs_usb_gadget_ums() {
|
||||||
display_alert "Enabling" "usb-gadget-ums into initramfs" "info"
|
display_alert "Enabling" "usb-gadget-ums into initramfs" "info"
|
||||||
@@ -28,4 +27,3 @@ function pre_customize_image__inject_initramfs_usb_gadget_ums() {
|
|||||||
run_host_command_logged chmod -v +x "${script_file_dst}"
|
run_host_command_logged chmod -v +x "${script_file_dst}"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -53,10 +53,10 @@ function do_main_configuration() {
|
|||||||
[[ -z $VENDORBUGS ]] && VENDORBUGS="https://armbian.atlassian.net/"
|
[[ -z $VENDORBUGS ]] && VENDORBUGS="https://armbian.atlassian.net/"
|
||||||
[[ -z $VENDORDOCS ]] && VENDORDOCS="https://docs.armbian.com/"
|
[[ -z $VENDORDOCS ]] && VENDORDOCS="https://docs.armbian.com/"
|
||||||
[[ -z $VENDORLOGO ]] && VENDORLOGO="armbian-logo"
|
[[ -z $VENDORLOGO ]] && VENDORLOGO="armbian-logo"
|
||||||
[[ -z $ROOTPWD ]] && ROOTPWD="1234" # Must be changed @first login
|
[[ -z $ROOTPWD ]] && ROOTPWD="1234" # Must be changed @first login
|
||||||
[[ -z $MAINTAINER ]] && MAINTAINER="John Doe" # deb signature
|
[[ -z $MAINTAINER ]] && MAINTAINER="John Doe" # deb signature
|
||||||
[[ -z $MAINTAINERMAIL ]] && MAINTAINERMAIL="john.doe@somewhere.on.planet" # deb signature
|
[[ -z $MAINTAINERMAIL ]] && MAINTAINERMAIL="john.doe@somewhere.on.planet" # deb signature
|
||||||
DEST_LANG="${DEST_LANG:-"en_US.UTF-8"}" # en_US.UTF-8 is default locale for target
|
DEST_LANG="${DEST_LANG:-"en_US.UTF-8"}" # en_US.UTF-8 is default locale for target
|
||||||
display_alert "DEST_LANG..." "DEST_LANG: ${DEST_LANG}" "debug"
|
display_alert "DEST_LANG..." "DEST_LANG: ${DEST_LANG}" "debug"
|
||||||
|
|
||||||
declare -g SKIP_EXTERNAL_TOOLCHAINS="${SKIP_EXTERNAL_TOOLCHAINS:-yes}" # don't use any external toolchains, by default.
|
declare -g SKIP_EXTERNAL_TOOLCHAINS="${SKIP_EXTERNAL_TOOLCHAINS:-yes}" # don't use any external toolchains, by default.
|
||||||
|
|||||||
Reference in New Issue
Block a user