[Sound-open-firmware] [PATCH 1/2] configure: add OBJCOPY and OBJDUMP log
From: Pan Xiuli xiuli.pan@linux.intel.com
Output OBJCOPY and OBJDUMP to check if we misuse them.
Signed-off-by: Pan Xiuli xiuli.pan@linux.intel.com --- configure.ac | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/configure.ac b/configure.ac index c3e9fc4..65114f3 100644 --- a/configure.ac +++ b/configure.ac @@ -483,6 +483,8 @@ Install Prefix: ${prefix} PEM: ${PEM_KEY_PREFIX}
Compiler: ${CC} +OBJCOPY: ${OBJCOPY} +OBJDUMP: ${OBJDUMP} CFLAGS: ${CFLAGS} LDFLAGS: ${LDFLAGS} ARCH_CFLAGS: ${ARCH_CFLAGS}
From: Pan Xiuli xiuli.pan@linux.intel.com
Need to export XTENSA_SYSTEM and override OBJCOPY and OBJDUMP for xt-xcc build.
Signed-off-by: Pan Xiuli xiuli.pan@linux.intel.com --- scripts/xtensa-build-all.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/scripts/xtensa-build-all.sh b/scripts/xtensa-build-all.sh index 62b94b2..d3991df 100755 --- a/scripts/xtensa-build-all.sh +++ b/scripts/xtensa-build-all.sh @@ -121,8 +121,12 @@ do if [ -d $XTENSA_TOOLS_DIR ] then XCC="xt-xcc" + XTOBJCOPY="xt-objcopy" + XTOBJDUMP="xt-objdump" else XCC="none" + XTOBJCOPY="none" + XTOBJDUMP="none" fi fi
@@ -130,13 +134,14 @@ do if [ $XCC == "xt-xcc" ] then ROOT="$XTENSA_BUILDS_DIR/$XTENSA_CORE/xtensa-elf" - XTENSA_SYSTEM=$XTENSA_BUILDS_DIR/$XTENSA_CORE/config + export XTENSA_SYSTEM=$XTENSA_BUILDS_DIR/$XTENSA_CORE/config PATH=$XTENSA_TOOLS_DIR/XtensaTools/bin:$OLDPATH else PATH=$pwd/../$HOST/bin:$OLDPATH fi
- ./configure --with-arch=xtensa --with-platform=$PLATFORM --with-root-dir=$ROOT --host=$HOST CC=$XCC --with-dsp-core=$XTENSA_CORE + ./configure --with-arch=xtensa --with-platform=$PLATFORM --with-root-dir=$ROOT --host=$HOST \ + CC=$XCC OBJCOPY=$XTOBJCOPY OBJDUMP=$XTOBJDUMP --with-dsp-core=$XTENSA_CORE
make clean make
On Tue, 2018-06-19 at 18:02 +0800, Xiuli Pan wrote:
From: Pan Xiuli xiuli.pan@linux.intel.com
Need to export XTENSA_SYSTEM and override OBJCOPY and OBJDUMP for xt-xcc build.
Signed-off-by: Pan Xiuli xiuli.pan@linux.intel.com
Both applied.
Thanks
Liam
participants (2)
-
Liam Girdwood
-
Xiuli Pan