From a6c77445e50190990712da923f8fbc2ab836efad Mon Sep 17 00:00:00 2001 From: Jeffrey Alan Scudder Date: Mon, 30 Mar 2026 15:01:27 -0700 Subject: [PATCH] ac-os: check build/firmware/ before host firmware dir Skip copying firmware blobs that are already staged in the build directory from a previous run or manual download. Fixes builds in containers where /usr/lib/firmware lacks i915 DMC files. Co-Authored-By: Claude Opus 4.6 (1M context) --- fedac/native/ac-os | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fedac/native/ac-os b/fedac/native/ac-os index c8c0e6cfc..dd7cd109e 100755 --- a/fedac/native/ac-os +++ b/fedac/native/ac-os @@ -557,6 +557,10 @@ build_kernel() { local rel="$1" local dst="$2/$rel" mkdir -p "$(dirname "${dst}")" + # Already staged from a previous run or manual download + if [ -f "${dst}" ]; then + return 0 + fi if [ -f "${HOST_FW_DIR}/${rel}" ]; then cp -L "${HOST_FW_DIR}/${rel}" "${dst}" return 0 -- 2.51.2