diff options
author | Gabe Black <gabeblack@chromium.org> | 2013-06-10 20:49:15 -0400 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-06-11 05:20:47 +0200 |
commit | 6e5c86ff7da757687772fc9b1fc3ee41a613684c (patch) | |
tree | 740944cc9d2d7fad1961e4322ecf53497af9f469 /src/cpu/ti/am335x | |
parent | 73b7632ad4e03cdd3d161ea928c10d79e11ebca9 (diff) | |
download | coreboot-6e5c86ff7da757687772fc9b1fc3ee41a613684c.tar.gz coreboot-6e5c86ff7da757687772fc9b1fc3ee41a613684c.tar.bz2 coreboot-6e5c86ff7da757687772fc9b1fc3ee41a613684c.zip |
am335x: Revert how the header load size is calculated to an earlier method.
The current method will treat hex values as 0 and would calculate the wrong
size. This change switches back to an earlier method which used shell syntax
to add the offset and size.
Change-Id: I9fb2d9b323f113cc56a5ad2e38b47d2d22084f08
Signed-off-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/3432
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/cpu/ti/am335x')
-rw-r--r-- | src/cpu/ti/am335x/Makefile.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cpu/ti/am335x/Makefile.inc b/src/cpu/ti/am335x/Makefile.inc index 7dcdf0f77a48..9279c6947bdd 100644 --- a/src/cpu/ti/am335x/Makefile.inc +++ b/src/cpu/ti/am335x/Makefile.inc @@ -17,7 +17,10 @@ real-target: $(obj)/MLO header_ld = $(src)/cpu/ti/am335x/header.ld -get_header_size=$(shell $(CBFSTOOL) $(1) print | grep $(2) | awk '{print $$2 + $$4}') +get_header_size= \ + $(eval omap_header_info=$(shell $(CBFSTOOL) $(1) print | grep $(2))) \ + $(shell echo $$(($(word 2,$(omap_header_info)) + \ + $(word 4,$(omap_header_info))))) $(obj)/omap-header.bin: $$(omap-header-objs) $$(header_ld) $(obj)/coreboot.rom @printf " CC $(subst $(obj)/,,$(@))\n" |