From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11773 invoked by alias); 21 Jan 2017 03:04:45 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 11690 invoked by uid 89); 21 Jan 2017 03:04:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-pg0-f68.google.com Received: from mail-pg0-f68.google.com (HELO mail-pg0-f68.google.com) (74.125.83.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 21 Jan 2017 03:04:34 +0000 Received: by mail-pg0-f68.google.com with SMTP id 75so8256750pgf.3 for ; Fri, 20 Jan 2017 19:04:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=xxWCifMJlf4OWU5l/X3rkO6Mff8Mz+T12V8XjuXdAyY=; b=Z1JFbsboLTfGliDTd9Sb5pV1npIv/oAe33yyXDIuUwv1j3hQToB9+Cydxay3boh087 pNDB+NjeRDR74LpnwQm4mbWR8cCdb97UMOi0JxG1k3k58SsV4KSD+nGBFGNvm8p/6kxq iEixFkrV8iG7Sh5jebU4zZNZFWfYH+QtnWd4KpbmeehycPSsML5n7FNGqeWP2bVhSBcN 2BXNJpIN5a4Y0qteSgdCVeIf1Lli6SQ0SEW7TH571Ui8hzA0wMVvdRMlT/dfGL2MyJLQ 4jG/7TPxn+xiohfP18+xTrdLlL88vC6tDSzuvfKpMBWB7fd1fm/24/0ddLUoKgZuaN3N hDzg== X-Gm-Message-State: AIkVDXKA4xpeS8QWexglbDKGYcw+0voXpInOK2z5k+FlzKd2kELWNiKuaivOpPesUB1qKA== X-Received: by 10.98.102.196 with SMTP id s65mr20224258pfj.137.1484967873154; Fri, 20 Jan 2017 19:04:33 -0800 (PST) Received: from localhost (g149.219-103-224.ppp.wakwak.ne.jp. [219.103.224.149]) by smtp.gmail.com with ESMTPSA id j28sm888216pfj.2.2017.01.20.19.04.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jan 2017 19:04:32 -0800 (PST) From: Stafford Horne To: gdb-patches@sourceware.org Cc: openrisc@lists.librecores.org, Peter Gavin Subject: [PATCH v2 3/6] sim: cgen: allow suffix on generated arch.[ch] and cpuall.h Date: Sat, 21 Jan 2017 03:04:00 -0000 Message-Id: <97fcce284b71d38403654d5b65216f1922a37e11.1484967575.git.shorne@gmail.com> In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00438.txt.bz2 From: Peter Gavin sim/ChangeLog: * Make-common.in: pass $(SUFFIX) to cgen.sh in cgen-arch target * cgen.sh: append suffix to names of arch.[ch] and cpuall.h --- sim/common/Make-common.in | 2 +- sim/common/cgen.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in index 9075b9c..a4f8988 100644 --- a/sim/common/Make-common.in +++ b/sim/common/Make-common.in @@ -566,7 +566,7 @@ CGEN_FLAGS_TO_PASS = \ cgen-arch: force $(SHELL) $(srccom)/cgen.sh arch $(srcdir) \ $(CGEN) $(CGENDIR) "$(CGENFLAGS)" \ - $(arch) "$(FLAGS)" ignored "$(isa)" $(mach) ignored \ + $(arch) "$(FLAGS)" ignored "$(isa)" $(mach) "$(SUFFIX)" \ $(archfile) ignored cgen-cpu: force diff --git a/sim/common/cgen.sh b/sim/common/cgen.sh index 394ef2d..c03a4a7 100755 --- a/sim/common/cgen.sh +++ b/sim/common/cgen.sh @@ -70,11 +70,11 @@ arch) -B ${tmp}-arch.c1 \ -N ${tmp}-all.h1 sed $sedscript < ${tmp}-arch.h1 > ${tmp}-arch.h - ${rootdir}/move-if-change ${tmp}-arch.h ${srcdir}/arch.h + ${rootdir}/move-if-change ${tmp}-arch.h ${srcdir}/arch${suffix}.h sed $sedscript < ${tmp}-arch.c1 > ${tmp}-arch.c - ${rootdir}/move-if-change ${tmp}-arch.c ${srcdir}/arch.c + ${rootdir}/move-if-change ${tmp}-arch.c ${srcdir}/arch${suffix}.c sed $sedscript < ${tmp}-all.h1 > ${tmp}-all.h - ${rootdir}/move-if-change ${tmp}-all.h ${srcdir}/cpuall.h + ${rootdir}/move-if-change ${tmp}-all.h ${srcdir}/cpuall${suffix}.h rm -f ${tmp}-arch.h1 ${tmp}-arch.c1 ${tmp}-all.h1 ;; -- 2.9.3