From 98183ef572298e5541b1cdabc2021c1cd24f3373 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Tue, 25 Jan 2022 00:56:11 +0330 Subject: [PATCH] Meta: Correct the PNP ID download condition `PNP_IDS_PATH` does not exist, set this to `PNP_IDS_EXPORT_PATH` to avoid redownloading the database every reconfigure. --- Meta/CMake/pnp_ids.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/CMake/pnp_ids.cmake b/Meta/CMake/pnp_ids.cmake index 4ee371f8f2..8396006af5 100644 --- a/Meta/CMake/pnp_ids.cmake +++ b/Meta/CMake/pnp_ids.cmake @@ -5,7 +5,7 @@ set(PNP_IDS_URL http://www.uefi.org/uefi-pnp-export) set(PNP_IDS_EXPORT_PATH ${CMAKE_BINARY_DIR}/pnp.ids.html) set(PNP_IDS_INSTALL_PATH ${CMAKE_INSTALL_DATAROOTDIR}/${PNP_IDS_FILE}) -if(ENABLE_PNP_IDS_DOWNLOAD AND NOT EXISTS ${PNP_IDS_PATH}) +if(ENABLE_PNP_IDS_DOWNLOAD AND NOT EXISTS ${PNP_IDS_EXPORT_PATH}) message(STATUS "Downloading PNP ID database from ${PNP_IDS_URL}...") file(MAKE_DIRECTORY ${CMAKE_INSTALL_DATAROOTDIR}) file(DOWNLOAD ${PNP_IDS_URL} ${PNP_IDS_EXPORT_PATH} INACTIVITY_TIMEOUT 10)