From 437eeee95c10c613d992fc786350618bbafcdf57 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 25 Dec 2022 14:40:47 -0500 Subject: sim: modules: trigger generation from top-level Add rules for tracking generated subdir modules.c files. This doesn't actually generate the file from the top-level, but allows us to add rules that need to be ordered wrt it. Once those changes land, we can rework this to actually generate from the top-level. This currently builds off of the objects that go into the libsim.a as we don't build those from the top-level either. Once we migrate that up, we can switch this to the source files directly. It's a bit hacky overall, but makes it easier to migrate things in smaller chunks, and we aren't going to keep this logic long term. --- sim/mips/local.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'sim/mips') diff --git a/sim/mips/local.mk b/sim/mips/local.mk index 9db960c..5a7b12c 100644 --- a/sim/mips/local.mk +++ b/sim/mips/local.mk @@ -96,6 +96,7 @@ endif ## This makes sure build tools are available before building the arch-subdirs. SIM_ALL_RECURSIVE_DEPS += $(%C%_BUILD_OUTPUTS) +%D%/modules.c: | $(%C%_BUILD_OUTPUTS) $(%C%_BUILT_SRC_FROM_IGEN_ITABLE): %D%/stamp-igen-itable $(%C%_BUILT_SRC_FROM_GEN_MODE_SINGLE): %D%/stamp-gen-mode-single -- cgit v1.1