Default flats for running dtc from kernel build

Kumar Gala galak at kernel.crashing.org
Sat Jun 7 00:51:44 EST 2008


On Jun 6, 2008, at 9:33 AM, Wolfgang Denk wrote:

> In message  
> <A261F367-1C5F-4197-92FD-07E7AD1D21FC at kernel.crashing.org> you wrote:
>>
>>> As I see it, I have to define DTS_FLAGS manually
>>>
>>> $ export DTS_FLAGS="-R4 -S0x3000"
>>> $ make ARCH=powerpc tqm8548.dtb
>>>
>>> to get a working blob. Is that the intended behavior?
>>
>> this is normal.  Andy Fleming has posted a patch to u-boot to help
>> improve the situation.  I'm not sure if WD has picked it up for 1.3.4
>> yet.
>
> 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


- k



More information about the Linuxppc-dev mailing list