From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw02.freescale.net (de01egw02.freescale.net [192.88.165.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "de01egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id AC206DE57D for ; Sat, 7 Jun 2008 01:31:46 +1000 (EST) Subject: Re: Default flats for running dtc from kernel build From: Jon Loeliger To: Kumar Gala In-Reply-To: References: <20080606143347.B35CC247FE@gemini.denx.de> Content-Type: text/plain Date: Fri, 06 Jun 2008 10:31:04 -0500 Message-Id: <1212766264.6788.4.camel@ld0161-tx32> Mime-Version: 1.0 Cc: "linuxppc-dev@ozlabs.org" , Wolfgang Denk List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2008-06-06 at 09:51 -0500, Kumar Gala wrote: > > > > I will. But wouldn't it make sense to allow at least for some level > > of compatibility with older versions of U-Boot? Adding these options > > as default would probably not hurt? > > Agreed. I didn't realize we could actually do this from the kernel > build system. > > I'm sure others will have their two cents to add. > > But something like: > > diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile > index c40fb82..52db85a 100644 > --- a/arch/powerpc/boot/Makefile > +++ b/arch/powerpc/boot/Makefile > @@ -29,6 +29,8 @@ ifdef CONFIG_DEBUG_INFO > BOOTCFLAGS += -g > endif > > +DTS_FLAGS ?= -R4 -S 0x3000 > + > ifeq ($(call cc-option-yn, -fstack-protector),y) > BOOTCFLAGS += -fno-stack-protector > endif Hrm. Should we use -p instead of -S ? Seems someone added this DTC commit last November: commit 2b7dc8dce549ad72ad437b254bf756d7ba4c2a5a Author: Kumar Gala Date: Wed Nov 28 10:21:12 2007 -0600 Add an option to pad the blob that is generated There are times when we need extra space in the blob and just want to have it added on w/o know the exact size to make it. The padding and min size options are mutually exclusive. Signed-off-by: Kumar Gala A thought, jdl