From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-sender-0.a4lg.com (mail-sender-0.a4lg.com [IPv6:2401:2500:203:30b:4000:6bfe:4757:0]) by sourceware.org (Postfix) with ESMTPS id 214733858CDB for ; Sun, 9 Oct 2022 03:57:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 214733858CDB Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail-sender-0.a4lg.com (Postfix) with ESMTPSA id 747A4300089; Sun, 9 Oct 2022 03:57:14 +0000 (UTC) From: Tsukasa OI To: Tsukasa OI , Andrew Burgess , Mike Frysinger , Anthony Green Cc: gdb-patches@sourceware.org Subject: [PATCH v2 0/1] sim/moxie: add custom directory stamp rule Date: Sun, 9 Oct 2022 03:57:11 +0000 Message-Id: In-Reply-To: References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_NONE, SPF_PASS, TXREP 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: Sun, 09 Oct 2022 03:57:17 -0000 Hello, v1: [Changes: v1 -> v2] - Commit message changes (removed ChangeLog) [It's pretty much like a PING] While I'm building all-architecture Binutils with maintainer mode by: $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: c10a862f17847bc9c50d680c87b87dc51ae4b95e -- 2.34.1