summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rwxr-xr-xscripts/make-agl.sh2
2 files changed, 2 insertions, 1 deletions
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) $@