From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender.a4lg.com [153.120.152.154]) by sourceware.org (Postfix) with ESMTPS id 58F663858D28 for ; Thu, 8 Sep 2022 11:46:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 58F663858D28 Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 17345300089; Thu, 8 Sep 2022 11:46:00 +0000 (UTC) From: Tsukasa OI To: Tsukasa OI , Anthony Green Cc: gdb-patches@sourceware.org Subject: [PATCH 0/1] sim/moxie: add custom directory stamp rule Date: Thu, 8 Sep 2022 11:45:46 +0000 Message-Id: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2022 11:46:08 -0000 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. which is resolved by: 2. 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