public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/1] sim/moxie: add custom directory stamp rule
@ 2022-09-08 11:45 Tsukasa OI
  2022-09-08 11:45 ` [PATCH 1/1] " Tsukasa OI
  2022-10-09  3:57 ` [PATCH v2 0/1] " Tsukasa OI
  0 siblings, 2 replies; 5+ messages in thread
From: Tsukasa OI @ 2022-09-08 11:45 UTC (permalink / raw)
  To: Tsukasa OI, Anthony Green; +Cc: gdb-patches

Hello,

While I'm testing maintainer mode with:

$srcdir/configure \
    --enable-targets=all \
    --enable-maintainer-mode \
    --enable-gold \
    --enable-ld \
    --enable-nls \
&& make

I encountered several issues.  Along with:

1.  <https://sourceware.org/pipermail/binutils/2022-September/122770.html>
    which is resolved by:
    <https://sourceware.org/pipermail/binutils/2022-September/122780.html>
2.  <https://sourceware.org/pipermail/gdb-patches/2022-September/191731.html>

this is the third (and the last) issue preventing all-arch build with
the maintainer mode enabled.



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 (but a
binary-format DeviceTree, a data file), 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).

Thanks,
Tsukasa




Tsukasa OI (1):
  sim/moxie: add custom directory stamp rule

 sim/Makefile.in    | 23 ++++++++++++++---------
 sim/moxie/local.mk |  5 +++++
 2 files changed, 19 insertions(+), 9 deletions(-)


base-commit: 39eedb20b7e95e469d11667c11233233e9d0226b
-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-11 10:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08 11:45 [PATCH 0/1] sim/moxie: add custom directory stamp rule Tsukasa OI
2022-09-08 11:45 ` [PATCH 1/1] " Tsukasa OI
2022-10-09  3:57 ` [PATCH v2 0/1] " Tsukasa OI
2022-10-09  3:57   ` [PATCH v2 1/1] " Tsukasa OI
2022-10-11 10:34     ` Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).