From patchwork Wed Dec 27 07:45:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 82882 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4FD9B3858C56 for ; Wed, 27 Dec 2023 07:45:53 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 98E723858D32 for ; Wed, 27 Dec 2023 07:45:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 98E723858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 98E723858D32 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:ea4a:1:5054:ff:fec7:86e4 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703663138; cv=none; b=nJAbG/5T8uN/ONihOpXmKxExZjyeivqGpcinc/gs5uWwsiDBZJJeb5quUaoFIJWeXO45+fwXlYcAHTUomYUZkB8iC0/+spghqhzAyCtviXGiDnTh7K9auIUkrnHtoSYStonU3b0311XXCIxyzU2AlKn4ovIdAfogKGSf/L6eWJ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1703663138; c=relaxed/simple; bh=VBKGNG4QJVKMac/LhVpZ8dBMTPz0KtcbuaLFg/zDxJQ=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=MYWhvrAl++jQmvOSRw9UrEATDhBqtkap8KZ/XIIyd2fXuKh8VqjUc+FtqSufgnD4DaDStxBhUr6tpKwZMO5KGdNeKuGfO1WDTJsz9P0Wkz1yWnh54otn9ugChjnIrIMIoT5w3hmVOfAWUITWTJCeJTHl9AQno60571ej7BiIbJ8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 2CDF333FEF1; Wed, 27 Dec 2023 07:45:36 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH 1/2] libgloss: xtensa: fix crt0.o rule Date: Wed, 27 Dec 2023 02:45:33 -0500 Message-ID: <20231227074534.6579-1-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, 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: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: newlib-bounces+patchwork=sourceware.org@sourceware.org Don't hardcode a custom rule for this -- reuse libobjs_a_SOURCES which was designed for this exact scenario. --- libgloss/Makefile.in | 106 ++++++++++++++++++++--------------- libgloss/xtensa/Makefile.inc | 7 ++- 2 files changed, 64 insertions(+), 49 deletions(-) diff --git a/libgloss/xtensa/Makefile.inc b/libgloss/xtensa/Makefile.inc index 02308e4f3487..3ce02c190e8b 100644 --- a/libgloss/xtensa/Makefile.inc +++ b/libgloss/xtensa/Makefile.inc @@ -8,6 +8,10 @@ multilibtool_DATA += \ %D%/sys.qemu.specs \ %D%/sys.openocd.specs \ %D%/crt0.o +libobjs_a_SOURCES += \ + %D%/crt0.S \ + %D%/crt1-sim.S \ + %D%/crt1-boards.S multilibtool_LIBRARIES += %D%/libgloss.a @@ -50,6 +54,3 @@ multilibtool_DATA += %D%/boards/esp32s3/memory.elf.ld %C%_libsys_openocd_a_CPPFLAGS += -I$(srcdir)/%D%/boards/esp32s3/include endif endif - -%D%/crt0.$(OBJEXT): %D%/crt0.S - $(AM_V_CPPAS)$(CPPASCOMPILE) $(CPPFLAGS) -o $@ -c $<