]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
intel-microcode: fix build error on rebuild 24077/head
authorRany Hany <rany_hany@riseup.net>
Sat, 4 Jul 2026 23:58:34 +0000 (23:58 +0000)
committerRobert Marko <robimarko@gmail.com>
Sun, 5 Jul 2026 15:55:50 +0000 (17:55 +0200)
When rebuilding the package, iucode_tool fails with a "File exists"
error if the directory already contained firmware from the previous
build (incl. in the successful build case).

Fix this by removing the directory before invoking iucode_tool.

Fixes the following build error:
iucode_tool: 06-0f-02: cannot write to, or create file: File exists
make[2]: *** [Makefile:57: .../.built] Error 2

Signed-off-by: Rany Hany <rany_hany@riseup.net>
Link: https://github.com/openwrt/openwrt/pull/24077
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/firmware/intel-microcode/Makefile

index 2808aa6810d8991ddfae7c0f5af20dcdcf8baec5..b183f5c9d92d10cd6c5363322d3c193ae7e05415 100644 (file)
@@ -39,6 +39,7 @@ endef
 
 define Build/Compile
        IUCODE_TOOL=$(STAGING_DIR)/../host/bin/iucode_tool $(MAKE) -C $(PKG_BUILD_DIR)
+       rm -rf $(PKG_BUILD_DIR)/intel-ucode-ipkg
        mkdir -p $(PKG_BUILD_DIR)/intel-ucode-ipkg
        $(STAGING_DIR)/../host/bin/iucode_tool -q \
                --write-firmware=$(PKG_BUILD_DIR)/intel-ucode-ipkg $(PKG_BUILD_DIR)/$(MICROCODE).bin