[U-Boot] [PATCH v2 06/13] common: makefile: Add optional cflags to object: common/lcd.o
Inha Song
ideal.song at samsung.com
Thu Dec 19 06:44:10 CET 2013
Hi, Marczak
On Wed, 18 Dec 2013 19:31:31 +0100
Przemyslaw Marczak <p.marczak at samsung.com> wrote:
> This change adds CFLAGS: -mno-unaligned-access
> which depends on option: PLATFORM_NO_UNALIGNED
>
> This option avoids unaligned data access exception on armv7, caused
> by access to logo data which is mostly unaligned initialized array.
>
> more info: README.arm-unaligned-accesses
>
> Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
>
> ---
> Changes v2:
> - new patch
> ---
> common/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/common/Makefile b/common/Makefile
> index 74404be..619d72c 100644
> --- a/common/Makefile
> +++ b/common/Makefile
> @@ -240,3 +240,4 @@ $(obj)env_embedded.o: $(src)env_embedded.c
> # SEE README.arm-unaligned-accesses
> $(obj)hush.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
> $(obj)fdt_support.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
> +$(obj)lcd.o: CFLAGS += $(PLATFORM_NO_UNALIGNED)
> --
> 1.7.9.5
>
Certainly, unaligned data access exception doesn't occur on trats2 board.
- arm-linux-gnueabi-gcc 4.6.3
Thank you.
--
Inha Song <ideal.song at samsung.com>
More information about the U-Boot
mailing list