Message ID | 20130605070625.13311.17016.sendpatchset@w520 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Wednesday 05 June 2013 16:06:25 Magnus Damm wrote: > > +__ZRELADDR := $(shell /bin/bash -c \ > + 'echo $(loadaddr-y) | tr " " "\n" | sort | uniq') > + It's not important, but I think this can be written much simpler using makefile syntax as __ZRELADDR := $(sort $(loadaddr-y)) Arnd
Hi Arnd, On Wed, Jun 5, 2013 at 5:29 PM, Arnd Bergmann <arnd@arndb.de> wrote: > On Wednesday 05 June 2013 16:06:25 Magnus Damm wrote: >> >> +__ZRELADDR := $(shell /bin/bash -c \ >> + 'echo $(loadaddr-y) | tr " " "\n" | sort | uniq') >> + > > It's not important, but I think this can be written much simpler using > makefile syntax as > > __ZRELADDR := $(sort $(loadaddr-y)) Yes, correct. Just double checked by comparing the output. Your proposal is much cleaner, will follow that if/when I send a V2. Thanks, / magnus
--- 0001/arch/arm/mach-shmobile/Makefile.boot +++ work/arch/arm/mach-shmobile/Makefile.boot 2013-06-04 12:33:07.000000000 +0900 @@ -1,6 +1,9 @@ -__ZRELADDR := $(shell /bin/bash -c 'printf "0x%08x" \ +loadaddr-y := $(shell /bin/bash -c 'printf "0x%08x" \ $$[$(CONFIG_MEMORY_START) + 0x8000]') +__ZRELADDR := $(shell /bin/bash -c \ + 'echo $(loadaddr-y) | tr " " "\n" | sort | uniq') + zreladdr-y += $(__ZRELADDR) # Unsupported legacy stuff