From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755588AbYEEBsE (ORCPT ); Sun, 4 May 2008 21:48:04 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753636AbYEEBrx (ORCPT ); Sun, 4 May 2008 21:47:53 -0400 Received: from uki.us.mooball.net ([66.98.178.13]:48705 "EHLO uki.us.mooball.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751613AbYEEBrw (ORCPT ); Sun, 4 May 2008 21:47:52 -0400 X-ClientAddr: 220.233.82.121 Subject: Re: [PATCH 02/56] microblaze_v2: Makefiles for Microblaze cpu From: John Williams To: monstr@seznam.cz Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, linux-arch@vger.kernel.org, stephen.neuendorffer@xilinx.com, John.Linn@xilinx.com, matthew@wil.cx, will.newton@gmail.com, drepper@redhat.com, microblaze-uclinux@itee.uq.edu.au, grant.likely@secretlab.ca, Michal Simek In-Reply-To: References: <1209901305-6404-1-git-send-email-monstr@seznam.cz> Content-Type: text/plain Organization: PetaLogix Date: Mon, 05 May 2008 11:47:10 +1000 Message-Id: <1209952030.5798.32.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.8.0 (2.8.0-40.el5_1.1) Content-Transfer-Encoding: 7bit X-Mooball.com-MailScanner-Information: Please contact the ISP for more information X-Mooball.com-MailScanner: Not scanned: please contact your Internet E-Mail Service Provider for details X-MailScanner-From: john.williams@petalogix.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > --- /dev/null > +++ b/arch/microblaze/Makefile > @@ -0,0 +1,63 @@ > +UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" > + > +# What CPU vesion are we building for, and crack it open > +# as major.minor.rev > +CPU_VER=$(subst ",,$(CONFIG_XILINX_MICROBLAZE0_HW_VER) ) > +CPU_MAJOR=$(shell echo $(CPU_VER) | cut -d '.' -f 1) > +CPU_MINOR=$(shell echo $(CPU_VER) | cut -d '.' -f 2) > +CPU_REV=$(shell echo $(CPU_VER) | cut -d '.' -f 3) No doubt there's some cleaner shell-fu to do this but I'm not complaining as I'm responsible for the original yucky version! > --- /dev/null > +++ b/arch/microblaze/platform/Makefile > @@ -0,0 +1,3 @@ > +# > +# Makefile for arch/microblaze/platform directory > +# How about a single obj-$(CONFIG_PLATFORM_GENERIC) += generic/ to show how platform-specific setup code can be added (even though there's none in the default generic target)?