Skip to content

sim_moxie_custom_dirstamp

Tsukasa OI edited this page Oct 30, 2022 · 7 revisions

sim/moxie: Add custom directory stamp rule

Issue Solved

If maintainer mode is enabled and try to build Moxie simulator, the build fails because there's no rule to make sim/moxie/.dirstamp to build sim/moxie/moxie-gdb.dtb.

Normally, Automake creates directory stamp file when an output is in a subdirectory. However, only if the output is either a program or a library.

Because sim/moxie/moxie-gdb.dtb is neither a program nor a library, Automake does not generate dirstamp file ($builddir/sim/moxie/.dirstamp) for it and causes this error.

This commit adds its own rule for the directory stamp (modified copy of the Automake output) and adds the directory stamp file to DISTCLEANFILES to mimic Automake-generated behavior (although make distclean does not work when maintainer mode is enabled).

This patchset is merged with additional comments by Andrew Burgess.

Clone this wiki locally