odroidxu4: fix the custom_kernel_config__hack_odroidxu4_firmware() for version hash (#4864)

This commit is contained in:
Ricardo Pardini
2023-02-24 16:03:27 -03:00
committed by GitHub
parent 25606ef3c8
commit 0ac37c51eb

View File

@@ -29,13 +29,17 @@ CPUMAX=2000000
GOVERNOR=ondemand
SERIALCON=ttySAC2
# @TODO: is this even needed? Looks like stuff for old HK vendor kernel...
function custom_kernel_config__hack_odroidxu4_firmware() {
display_alert "Copying firmware files" "odroidxu4 VENDOR KERNEL?" "warn"
# check $kernel_work_dir is set and exists, or bail
[[ -z "${kernel_work_dir}" ]] && exit_with_error "kernel_work_dir is not set"
[[ ! -d "${kernel_work_dir}" ]] && exit_with_error "kernel_work_dir does not exist: ${kernel_work_dir}"
run_host_command_logged mkdir -pv "${kernel_work_dir}/firmware/edid"
run_host_command_logged cp -pv "${SRC}"/packages/blobs/odroidxu4/*.bin "${kernel_work_dir}/firmware/edid"
kernel_config_modifying_hashes+=("odroidxu4_firmware")
if [[ -f .config ]]; then
display_alert "Copying firmware files" "odroidxu4 VENDOR KERNEL?" "warn"
# check $kernel_work_dir is set and exists, or bail
[[ -z "${kernel_work_dir}" ]] && exit_with_error "kernel_work_dir is not set"
[[ ! -d "${kernel_work_dir}" ]] && exit_with_error "kernel_work_dir does not exist: ${kernel_work_dir}"
run_host_command_logged mkdir -pv "${kernel_work_dir}/firmware/edid"
run_host_command_logged cp -pv "${SRC}"/packages/blobs/odroidxu4/*.bin "${kernel_work_dir}/firmware/edid"
fi
}
setup_write_uboot_platform() {