From 73fb6407d6eef8c1f9f9412c7309ad659be04ab8 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Thu, 5 Dec 2024 16:08:55 -0300 Subject: [PATCH] system/nxdiag: Change the order to generate the sysinfo.h file The generation of `sys info.h` depends on evaluating whether Espressif's HAL exists in the arch folder. However, cloning the HAL itself happens in the `context` phase of the build, so it is necessary to wait for it to finish before proceeding to the evaluation in nxdiag. This is done by using the `depend` phase to generate the `sysinfo.h` file. --- system/nxdiag/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/nxdiag/Makefile b/system/nxdiag/Makefile index f25d17aac8d..0da0a0a84b1 100644 --- a/system/nxdiag/Makefile +++ b/system/nxdiag/Makefile @@ -113,7 +113,7 @@ sysinfo.h : checkpython3 $(INFO_DEPS) exit 1; \ fi -context:: sysinfo.h +depend:: sysinfo.h distclean:: $(call DELFILE, sysinfo.h)