From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27366 invoked by alias); 22 Sep 2008 19:51:26 -0000 Received: (qmail 27358 invoked by uid 22791); 22 Sep 2008 19:51:26 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 22 Sep 2008 19:50:51 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m8MJon73028818; Mon, 22 Sep 2008 15:50:49 -0400 Received: from pobox-3.corp.redhat.com (pobox-3.corp.redhat.com [10.11.255.67]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m8MJomwO001625; Mon, 22 Sep 2008 15:50:48 -0400 Received: from [127.0.0.1] (vpn-12-95.rdu.redhat.com [10.11.12.95]) by pobox-3.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m8MJojrF026457; Mon, 22 Sep 2008 15:50:48 -0400 Message-ID: <48D7F725.6090908@redhat.com> Date: Mon, 22 Sep 2008 19:51:00 -0000 From: Dave Brolley User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Steve Woloschek CC: sid@sourceware.org Subject: Re: Trouble adding additional CPU support References: <1222033611.7469.75.camel@gateway.zbuda.com> In-Reply-To: <1222033611.7469.75.camel@gateway.zbuda.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact sid-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sourceware.org X-SW-Source: 2008-q3/txt/msg00007.txt.bz2 Steve Woloschek wrote: > I have written a new processor description with cgen and I am trying to > update sid to incorporate the new processor. > > I have perused the configure.* and Makefile.* files to understand what > changes I need to make in order have the new processor built. > Unfortunately I am not an expert in autoconf and automake and every time > I attempt to rebuild the configure/Makefiles I run into multiple issues. > > 1) I am not entirely sure which configure.* and Makefile.* need to be > updated to add a new processor. > 2) Lack of understanding how to rebuild configure scripts and Makefiles > When creating a new port, I generally pick an existing one that has similar capabilities and clone it. That is, I find every instance where it is mentioned in a file or a file name and copy the file/code while changing only the name of the port. You end up with a new port for your architecture which behaves like the port you cloned. I then rip out the guts of the cloned code and replace with the details of my new processor. > When trying to rebuild configure scripts and Makefiles it appears there > is a restriction and/or assumption on the particular version of the > tools that required. > I usually look at the head of the file I'm trying to re-generate to see which version of the tool was used. I'm generally able to find the version I need using a simple google search. Note when cloning a port it can be very tedious to update generated files manually. The auto-tools are definitely your friend here (once you have the correct versions). I start at the root of the sid source tree and run aclocal/autoconf/automake and then look to see which subdirectories did not get updated. If there are any, I go there and repeat the process. > It would be very nice if I could use the latest versions of these > utilities to build. U just need the recipe to regenerate the proper > files to build. > I guess that would be up to higher powers than I to decide. If you are successful in using a later version of any tool, you should let us know what changes (if any) were needed. I hope this helps, Dave