aboutsummaryrefslogtreecommitdiff
path: root/sim/bpf
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-12-25 14:40:47 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-10 01:15:23 -0500
commit437eeee95c10c613d992fc786350618bbafcdf57 (patch)
tree80eccebe64f76af4962276700a01830c5f2d7664 /sim/bpf
parent7dd38e31d67c2548b52bea313ab18e40824c05da (diff)
downloadgdb-437eeee95c10c613d992fc786350618bbafcdf57.zip
gdb-437eeee95c10c613d992fc786350618bbafcdf57.tar.gz
gdb-437eeee95c10c613d992fc786350618bbafcdf57.tar.bz2
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.
Diffstat (limited to 'sim/bpf')
-rw-r--r--sim/bpf/local.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/bpf/local.mk b/sim/bpf/local.mk
index 4ba1f46..f86f330 100644
--- a/sim/bpf/local.mk
+++ b/sim/bpf/local.mk
@@ -35,6 +35,7 @@ BUILT_SOURCES += \
## 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)
%D%/mloop-le.c %D%/eng-le.h: %D%/stamp-mloop-le ; @true
%D%/stamp-mloop-le: $(srccom)/genmloop.sh %D%/mloop.in