zephyr/scripts
Max Filippov a4f7e562ef Makefile.toolchain.zephyr: fix xtensa support
Building zephyr for xtensa with gcc requires additional include paths and
additional library (libhal).

Add xtensa sysroot and include paths to CFLAGS when building for xtensa.
The root Makefile then does the right thing adding these parameters to
KBUILD_CFLAGS and KBUILD_ASFLAGS.

Add xtensa libhal to the TOOLCHAIN_LIBS_xtensa. Modify TOOLICHAIN_LIBS to
include arch-specific libraries.

Seems that it would be nice to have TOOLCHAIN_CFLAGS_$(ARCH) with the
same behavior as TOOLCHAIN_LIBS_$(ARCH). It also seems that the SYSROOT
definition doesn't have to be restricted to MAKEFILE_TOOLCHAIN_DO_PASS2.

Change-Id: Ia6703ca067b964ac2f8be8fe8513ca28f101a6a3
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2017-05-11 16:51:56 -04:00
..
basic scripts: Update fixdep from kernel.org 2016-10-31 20:58:57 +00:00
ci ci: update path to theme repo 2017-05-03 15:36:03 -04:00
cross_compiler
gen_idt Introduce new sized integer typedefs 2017-04-20 16:07:08 +00:00
gen_offset_header license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
gitlint gitlint: verify full name in signed-off-by line 2017-05-05 16:11:11 -05:00
kconfig build: support building host tools 2017-04-25 22:48:23 +00:00
sanity_chk xtensa: remove xt-sim_XRC_D2PM 2017-05-11 12:47:23 -04:00
support build: honor V=1 when flashing via DFU 2017-05-08 09:15:09 -04:00
.gitignore expr_parser.py: simple expression language 2016-05-04 22:57:39 +00:00
build_grub.sh grub: Tweak build_grub.sh for proxy issues 2016-08-23 13:20:52 +00:00
check_known_checkpatch_issues.sh license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
check_link_map.py build: make sure we are calling python3 in all scripts 2017-04-13 20:22:54 +00:00
checkconfig.py scripts: Explicitly call out python2 2017-01-12 10:28:02 -07:00
checkpatch.pl checkpatch: per coding style, we do not allow c++ style comments 2017-04-28 13:03:33 +00:00
checkstack.pl
compare_footprint scripts: Explicitly call out python2 2017-01-12 10:28:02 -07:00
config
devicetree.py build: make sure we are calling python3 in all scripts 2017-04-13 20:22:54 +00:00
diffconfig scripts: Explicitly call out python2 2017-01-12 10:28:02 -07:00
do_checkpatch.sh license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
expr_parser.py expr_parser: fix issue with hex values in environment 2017-04-18 20:51:26 +00:00
extract_dts_includes.py build: make sure we are calling python3 in all scripts 2017-04-13 20:22:54 +00:00
filter-known-issues.py filter-known-issues: fix missing variable printing 2017-02-27 21:51:47 +00:00
gcc-version.sh
get_maintainer.pl MAINTAINERS: replace git pointer to github 2017-04-30 20:10:07 -04:00
headerdep.pl
Kbuild.include build: support pre-built host tools 2016-11-12 00:34:03 +00:00
maintainer-checkpatch.bash license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
make-ll license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Makefile build: remove unused linux related code 2016-02-05 20:25:15 -05:00
Makefile.build build: support pre-built host tools 2016-11-12 00:34:03 +00:00
Makefile.clean
Makefile.extrawarn
Makefile.headersinst
Makefile.help
Makefile.host
Makefile.lib dts: Add application overlay support. 2017-04-06 09:19:28 +00:00
Makefile.modbuiltin
Makefile.qemu build: make sure we are calling python3 in all scripts 2017-04-13 20:22:54 +00:00
Makefile.toolchain.gccarmemb toolchain.gccarmemb: set DTC for building targets that use devicetrees 2017-02-14 14:15:10 +00:00
Makefile.toolchain.issm build: Improve usage of the ISSM toolchain 2016-07-21 02:48:03 +00:00
Makefile.toolchain.riscv32 scripts: added Makefile to handle an external riscv32 toolchain 2017-01-13 19:52:22 +00:00
Makefile.toolchain.xcc xtensa: build similar to other Zephyr arches 2017-04-13 12:42:06 +00:00
Makefile.toolchain.xtools build: Make QEMU_BIN_PATH optional 2016-09-12 02:35:20 +00:00
Makefile.toolchain.zephyr Makefile.toolchain.zephyr: fix xtensa support 2017-05-11 16:51:56 -04:00
Makefile.xt-run xtensa: build similar to other Zephyr arches 2017-04-13 12:42:06 +00:00
Makefile.xtsc-run xtensa: build similar to other Zephyr arches 2017-04-13 12:42:06 +00:00
mkmakefile
mksysmap
qemu-machine-hack.py build: make sure we are calling python3 in all scripts 2017-04-13 20:22:54 +00:00
sanitycheck sanitycheck: include qemu log when failure is not a build issue 2017-05-01 17:48:24 -04:00
size_report license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
spelling.txt
tags.sh
timestamp license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
uncrustify.cfg scripts: add configuration file for uncrustify 2017-02-04 01:46:29 +00:00
vercomp sdk: zephyr: check for minimum required version of SDK 2016-09-15 21:17:02 +00:00
waitpid sanitycheck: Let waitpid script kill Xtensa ISS if user hits ctrl+c. 2017-04-11 16:53:41 +00:00