| # Test script to check uintptr_t and 64-bit types for warnings |
| # It builds a few boards with different toolchains. If there are no warnings |
| # Make sure that your toolchains are correct at the bottom of this file |
| # ./test/stdint/test-includes.sh |
| out=/tmp/test-includes.tmp |
| if ! which ${gcc} >/dev/null 2>&1; then |
| mkdir -p ${out}/generated |
| touch ${out}/generated/generic-asm-offsets.h |
| mkdir -p ${out}/include/asm |
| ln -s $(pwd)/arch/${arch}/include/asm/arch-${soc} \ |
| cmd="${gcc} -c -D__KERNEL__ ${flags} \ |
| -fno-builtin -ffreestanding \ |
| -I${out} -I${out}/include \ |
| -include configs/${board}.h test/stdint/int-types.c \ |
| # Run a test with and without CONFIG_USE_STDINT |
| try_test $@ -DCONFIG_USE_STDINT |
| # board arch soc path-to-gcc |
| try_both sandbox sandbox - gcc |
| try_both coreboot x86 - x86_64-linux-gnu-gcc |
| try_both seaboard arm tegra20 /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.8-2013.08_linux/bin/arm-linux-gnueabihf-gcc |