xtensa: fix 'make debug' for xt-sim targets
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
diff --git a/scripts/Makefile.toolchain.xcc b/scripts/Makefile.toolchain.xcc
index 193d761..c9f756d 100644
--- a/scripts/Makefile.toolchain.xcc
+++ b/scripts/Makefile.toolchain.xcc
@@ -112,6 +112,6 @@
XTRUN = ${CROSS_COMPILE}run
XTRUN_FLAGS += --turbo --cc_none
-export CROSS_COMPILE XTENSA_SYSTEM LIB_INCLUDE_DIR
+export CROSS_COMPILE XTENSA_SYSTEM LIB_INCLUDE_DIR XCC_TOOLS
endif # CONFIG_XTENSA
diff --git a/scripts/support/xt-gdb.sh b/scripts/support/xt-gdb.sh
old mode 100644
new mode 100755
index ab78eb1..edd8f0f
--- a/scripts/support/xt-gdb.sh
+++ b/scripts/support/xt-gdb.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-XT_GDB=$XTENSA_TOOLS_PATH/bin/xt-gdb
+XT_GDB=$XCC_TOOLS/bin/xt-gdb
ELF_NAME=${O}/${KERNEL_ELF_NAME}
set -e