From 742df4f614f25d25b97b502dea45eb23a92c04ac Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 4 Jan 2017 19:06:14 +0100 Subject: [PATCH] rockchip: Build m0 firmware without standard libraries Depending on the compiler used, it might try to link in libc even though it's not required. Stop it from doing that. Signed-off-by: Patrick Georgi --- plat/rockchip/rk3399/drivers/m0/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/rockchip/rk3399/drivers/m0/Makefile b/plat/rockchip/rk3399/drivers/m0/Makefile index b8e3cd41..c9454fe6 100644 --- a/plat/rockchip/rk3399/drivers/m0/Makefile +++ b/plat/rockchip/rk3399/drivers/m0/Makefile @@ -59,7 +59,7 @@ ASFLAGS := -g -Wa,--gdwarf-2 ASFLAGS += -mcpu=$(ARCH) -mthumb -Wall -ffunction-sections -O3 CFLAGS += -mcpu=$(ARCH) -mthumb -Wall -ffunction-sections -O3 -LDFLAGS := -mcpu=$(ARCH) -mthumb -g -nostartfiles -O3 +LDFLAGS := -mcpu=$(ARCH) -mthumb -g -nostartfiles -nostdlib -O3 LDFLAGS += -Wl,--gc-sections -Wl,--build-id=none # Cross tool -- 2.30.2