From 132ac31c08e0f370335ccb26418a6a0944bc47e7 Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Fri, 23 Nov 2018 16:37:35 +1100 Subject: Clear LDFLAGS in Makefile Need to set, otherwise there is an unrecognized option '-Wl,-01' Signed-off-by: Mark Farrugia --- Makefile | 1 + scripts/make-agl.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 06a7c0c..c654996 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ obj-$(CONFIG_AVIRT_AP_LOOPBACK) += loopback/ ### ifdef PKG_CONFIG_SYSROOT_DIR # AGL SDK kernel src path + LDFLAGS= # Need to set, since unrecognized option '-Wl,-01' KERNEL_SRC=$(PKG_CONFIG_SYSROOT_DIR)/usr/src/kernel else # General Linux distro kernel src path diff --git a/scripts/make-agl.sh b/scripts/make-agl.sh index 6c94fbb..5cb8048 100755 --- a/scripts/make-agl.sh +++ b/scripts/make-agl.sh @@ -8,7 +8,7 @@ sdkpath=${long_sdkpath:4} # Build /opt/AGL/bin/xds-cli exec --config xds-project.conf -- \ - LDFLAGS= CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y \ + CONFIG_AVIRT=m CONFIG_AVIRT_BUILDLOCAL=y \ CONFIG_AVIRT_AP_DUMMY=m \ CONFIG_AVIRT_AP_LOOPBACK=m \ make -C $sdkpath/sysroots/aarch64-agl-linux/usr/src/kernel M=$(pwd) $@ -- cgit 1.2.3-korg