From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96074 invoked by alias); 23 Nov 2016 22:16:02 -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 72170 invoked by uid 89); 23 Nov 2016 22:14:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=cgen 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; Wed, 23 Nov 2016 22:14:41 +0000 Received: by mail-pg0-f68.google.com with SMTP id e9so1925835pgc.1 for ; Wed, 23 Nov 2016 14:14:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aAlwvttPU76NCDDWA0ZgjT+KvhmbzHyOu45fNIUGYoM=; b=Ob+eEuYJ81uA8ji5NaZt8xhHnx52+wwtKSefsay4qtAQUXgIppm359x1HAftFBe9rz 8xgNTy1IFpVlgOVeJr/JNWzvBl6wGEhNw191QED5Sd5t3lJhISbyp5tOska8aHa9jSoI AyxAIrirdV38JP9xhoqhiJoYRhfCX7DbU0CLxm8MF6zPhLqejpi56tjC+7Sf+dgY76vH A9tZ2AB1FQxYNSceoUElR26TwlnrM4GLX7ytndi80xU8HoFETKtl5fVNH9QrnjdWLtW0 zSiR7QDLuHvxpAzi+b3IgazChMwPMHExOE1GFgxFE8PnM77bAxFoLP6HfcRB3V492XVX bXHA== X-Gm-Message-State: AKaTC00culQWM7qVdH+tf0LS0+Mb/WONjdZOxsYtEDXMBT5WawvLyZxaoosp0zV+aAfpUQ== X-Received: by 10.98.32.151 with SMTP id m23mr5146921pfj.127.1479939279766; Wed, 23 Nov 2016 14:14:39 -0800 (PST) Received: from lianli.shorne-pla.net (z14.124-44-185.ppp.wakwak.ne.jp. [124.44.185.14]) by smtp.gmail.com with ESMTPSA id y134sm54965646pfg.81.2016.11.23.14.14.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Nov 2016 14:14:38 -0800 (PST) Received: from lianli.shorne-pla.net (localhost [127.0.0.1]) by lianli.shorne-pla.net (8.15.2/8.15.2) with ESMTPS id uANMEaw2001924 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 24 Nov 2016 07:14:36 +0900 Received: (from shorne@localhost) by lianli.shorne-pla.net (8.15.2/8.15.2/Submit) id uANMEaPv001923; Thu, 24 Nov 2016 07:14:36 +0900 From: Stafford Horne To: gdb-patches@sourceware.org Cc: openrisc@lists.librecores.org, Peter Gavin Subject: [PATCH 03/18] sim: cgen: allow suffix on generated arch.[ch] and cpuall.h Date: Wed, 23 Nov 2016 22:16:00 -0000 Message-Id: <1479939272-1754-4-git-send-email-shorne@gmail.com> In-Reply-To: <1479939272-1754-1-git-send-email-shorne@gmail.com> References: <1479939272-1754-1-git-send-email-shorne@gmail.com> X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00722.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 3d99f62..a78255c 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.7.4