]> git.sur5r.net Git - u-boot/commitdiff
kbuild: Enable -fshort-wchar
authorRob Clark <robdclark@gmail.com>
Sat, 9 Sep 2017 10:47:39 +0000 (06:47 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 12 Sep 2017 21:57:57 +0000 (17:57 -0400)
EFI_LOADER really wants UTF-16 strings (ie. %ls and L"string" are 16bit
chars instead of 32bit chars).  But rather than enabling -fshort-wchar
conditionally if EFI_LOADER is enabled, it was deemed preferrable to
globally switch.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile

index 8086f3c93eca4ef3f8d4b71b760dfe7e257a9585..8250b3409a6853e4d304bc40403ecf19a6c16601 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -360,6 +360,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__
 KBUILD_CFLAGS   := -Wall -Wstrict-prototypes \
                   -Wno-format-security \
                   -fno-builtin -ffreestanding
+KBUILD_CFLAGS  += -fshort-wchar
 KBUILD_AFLAGS   := -D__ASSEMBLY__
 
 # Read UBOOTRELEASE from include/config/uboot.release (if it exists)