diff --git a/lib/functions/compilation/packages/firmware-deb.sh b/lib/functions/compilation/packages/firmware-deb.sh index 0f37a7f212..6c1ab74c67 100644 --- a/lib/functions/compilation/packages/firmware-deb.sh +++ b/lib/functions/compilation/packages/firmware-deb.sh @@ -30,21 +30,18 @@ function compile_firmware() { if [[ -n $FULL ]]; then # Fetch kernel firmware from git. This is large, but we don't have two copies of it anymore. So more manageable. declare fetched_revision - fetch_from_repo "$MAINLINE_FIRMWARE_SOURCE" "linux-firmware-git" "branch:main" + do_checkout="no" fetch_from_repo "$MAINLINE_FIRMWARE_SOURCE" "linux-firmware-git" "branch:main" declare -r mainline_firmware_git_sha1="${fetched_revision}" - # Usage of make install ensures proper symlink creation - cd "${SRC}/cache/sources/linux-firmware-git" || exit_with_error "can't change directory" - run_host_command_logged make DESTDIR="${fw_temp_dir}/${fw_dir}" FIRMWAREDIR=/lib/firmware install + # use git archive to export the ${mainline_firmware_git_sha1} revision into "${fw_temp_dir}/${fw_dir}/lib/firmware/" + run_host_command_logged git -C "${SRC}/cache/sources/linux-firmware-git" archive --format=tar "${mainline_firmware_git_sha1}" "|" tar -C "${fw_temp_dir}/${fw_dir}/lib/firmware/" -xf - # Full version conflicts with more stuff, of course. extra_conflicts_comma=",amd64-microcode,intel-microcode" - # This symlink messes with the armbian-firmware overwrite step - # @TODO: remove no longer needed symlink from armbian-firmware - if [[ -d "${fw_temp_dir}/${fw_dir}/lib/firmware/ath11k/WCN6855/hw2.1/" ]]; then - run_host_command_logged rm -r "${fw_temp_dir}/${fw_dir}/lib/firmware/ath11k/WCN6855/hw2.1/" - fi + # @TODO: rpardini: disabled, this is not the place to do this; move to extension/bsp/whatever + # cp : create hardlinks for ath11k WCN685x hw2.1 firmware since they are using the same firmware with hw2.0 + # run_host_command_logged cp -af --reflink=auto "${fw_temp_dir}/${fw_dir}/lib/firmware/ath11k/WCN6855/hw2.0/" "${fw_temp_dir}/${fw_dir}/lib/firmware/ath11k/WCN6855/hw2.1/" fi # Armbian firmware; this overwrites anything in the mainline firmware repo (if that was included, in the full version only) diff --git a/lib/functions/host/basic-deps.sh b/lib/functions/host/basic-deps.sh index 417d362540..e0d3825c59 100644 --- a/lib/functions/host/basic-deps.sh +++ b/lib/functions/host/basic-deps.sh @@ -26,7 +26,6 @@ function prepare_host_basic() { "linux-version:linux-base" "locale-gen:locales" "git:git" - "rdfind:rdfind" ) for check_pack in "${checklist[@]}"; do