lib: run shellfmt; remove commented-out; no actual changes

This commit is contained in:
Ricardo Pardini
2023-03-28 20:13:03 +02:00
committed by Igor Pečovnik
parent f75b9c110f
commit 77921725fb
6 changed files with 10 additions and 16 deletions

View File

@@ -96,7 +96,7 @@ function kernel_prepare_build_and_package() {
declare -A kernel_install_dirs
build_targets=("all") # "All" builds the vmlinux/Image/Image.gz default for the ${ARCH}
build_targets+=( "${KERNEL_IMAGE_TYPE}" )
build_targets+=("${KERNEL_IMAGE_TYPE}")
declare cleanup_id="" kernel_dest_install_dir=""
prepare_temp_dir_in_workdir_and_schedule_cleanup "k" cleanup_id kernel_dest_install_dir # namerefs
@@ -107,12 +107,12 @@ function kernel_prepare_build_and_package() {
#["INSTALL_HDR_PATH"]="${kernel_dest_install_dir}/libc_headers" # Used by `make headers_install` - disabled, only used for libc headers
)
[ -z "${SRC_LOADADDR}" ] || install_make_params_quoted+=( "${SRC_LOADADDR}" ) # For uImage
[ -z "${SRC_LOADADDR}" ] || install_make_params_quoted+=("${SRC_LOADADDR}") # For uImage
# @TODO: Only combining `install` and `modules_install` enable mixed-build and __build_one_by_one
# We should spilt the `build` and `install` into two make steps as the kernel required
build_targets+=( "install" "${KERNEL_INSTALL_TYPE:-install}" )
build_targets+=("install" "${KERNEL_INSTALL_TYPE:-install}")
build_targets+=( "modules_install" ) # headers_install disabled, only used for libc headers
build_targets+=("modules_install") # headers_install disabled, only used for libc headers
if [[ "${KERNEL_BUILD_DTBS:-yes}" == "yes" ]]; then
display_alert "Kernel build will produce DTBs!" "DTBs YES" "debug"
build_targets+=("dtbs_install")

View File

@@ -570,9 +570,7 @@ driver_uwe5622_allwinner() {
fi
}
driver_rtl8723cs()
{
driver_rtl8723cs() {
# Realtek rtl8723cs wireless support.
# Driver has been borrowed from sunxi 6.1 megous patch archive.
# Applies only from linux 6.1 onwards, so older kernel archives does not require to be altered
@@ -614,8 +612,6 @@ driver_rtl8723cs()
process_patch_file "${SRC}/patch/misc/wireless-rtl8723cs/bluetooth-btrtl-add-rtl8703bs.patch" "applying"
fi
}
patch_drivers_network() {

View File

@@ -199,8 +199,6 @@ function config_post_main() {
ATFSOURCEDIR="${ATFDIR}/$(branch2dir "${ATFBRANCH}")"
fi
# declare -g BSP_CLI_PACKAGE_NAME="armbian-bsp-cli-${BOARD}${EXTRA_BSP_NAME}"
# declare -g BSP_CLI_PACKAGE_FULLNAME="${BSP_CLI_PACKAGE_NAME}_${REVISION}_${ARCH}"
declare -g BSP_DESKTOP_PACKAGE_NAME="armbian-bsp-desktop-${BOARD}${EXTRA_BSP_NAME}"
declare -g BSP_DESKTOP_PACKAGE_FULLNAME="${BSP_DESKTOP_PACKAGE_NAME}_${REVISION}_${ARCH}"