build: fix configure naming to use newlib header directory.

The tool-dir naming was a bit ambiguous so rename and fix build-all.sh
to use new name too.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2016-10-18 17:18:16 +01:00
parent 419b086240
commit 8855ce5b4a
3 changed files with 16 additions and 11 deletions

View File

@ -6,7 +6,7 @@ SRC_DIR = $(abs_top_builddir)/src
export REEF_INCDIR = \
-I $(SRC_DIR)/include \
-I $(TOOL_DIR)/include
-I $(ROOT_DIR)/include
export ARCH_INCDIR = \
-I $(SRC_DIR)/arch/$(ARCH)/include \

View File

@ -1,14 +1,19 @@
# build images for all targets.
# build all images for all targets.
pwd=`pwd`
rm -fr src/arch/xtensa/*.ri
# Build for Baytrail
make clean
./configure --with-arch=xtensa --with-platform=baytrail --with-tool-dir=~/source/reef/xtensa-byt-elf --host=xtensa-byt-elf
./configure --with-arch=xtensa --with-platform=baytrail --with-root-dir=$pwd/../xtensa-root/xtensa-byt-elf --host=xtensa-byt-elf
make
make bin
# Build for Cherrytrail
make clean
./configure --with-arch=xtensa --with-platform=cherrytrail --with-tool-dir=~/source/reef/xtensa-byt-elf --host=xtensa-byt-elf
./configure --with-arch=xtensa --with-platform=cherrytrail --with-root-dir=$pwd/../xtensa-root/xtensa-byt-elf --host=xtensa-byt-elf
make
make bin
# list all the images
ls -l src/arch/xtensa/*.ri

View File

@ -21,13 +21,13 @@ AC_CANONICAL_HOST
CFLAGS="${CFLAGS:+$CFLAGS } -O2 -g -Wall -Werror -Wl,-EL -fno-inline-functions -nostdlib"
# Cross compiler tool libgcc and headers
AC_ARG_WITH([tool-dir],
AS_HELP_STRING([--with-tool-dir], [Specify location of cross gcc libraries and headers]),
[], [with_tool_dir=no])
AS_IF([test "x$with_tool_dir" = xno],
AC_MSG_ERROR([Please specify cross compiler tool directory]),
[TOOL_DIR=$with_tool_dir])
AC_SUBST(TOOL_DIR)
AC_ARG_WITH([root-dir],
AS_HELP_STRING([--with-root-dir], [Specify location of cross gcc libraries and headers]),
[], [with_root_dir=no])
AS_IF([test "x$with_root_dir" = xno],
AC_MSG_ERROR([Please specify cross compiler root header directory]),
[ROOT_DIR=$with_root_dir])
AC_SUBST(ROOT_DIR)
# Architecture support
AC_ARG_WITH([arch],