From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Clark Date: Sat, 9 Sep 2017 06:47:39 -0400 Subject: [U-Boot] [PATCH v2 1/5] kbuild: Enable -fshort-wchar In-Reply-To: <20170909104746.5948-1-robdclark@gmail.com> References: <20170909104746.5948-1-robdclark@gmail.com> Message-ID: <20170909104746.5948-2-robdclark@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 5bb3b09115..d635de12ab 100644 --- 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) -- 2.13.5