3 # Test script to check uintptr_t and 64-bit types for warnings
5 # It builds a few boards with different toolchains. If there are no warnings
10 # Make sure that your toolchains are correct at the bottom of this file
13 # ./test/stdint/test-includes.sh
15 out=/tmp/test-includes.tmp
25 if ! which ${gcc} >/dev/null 2>&1; then
26 echo "Not found: ${gcc}"
33 mkdir -p ${out}/generated
34 touch ${out}/generated/generic-asm-offsets.h
35 mkdir -p ${out}/include/asm
36 ln -s $(pwd)/arch/${arch}/include/asm/arch-${soc} \
37 ${out}/include/asm/arch
39 cmd="${gcc} -c -D__KERNEL__ ${flags} \
40 -fno-builtin -ffreestanding \
41 -Iarch/${arch}/include \
43 -I${out} -I${out}/include \
44 -include configs/${board}.h test/stdint/int-types.c \
53 # board arch soc path-to-gcc
54 try_both sandbox sandbox - gcc
55 try_both coreboot x86 - x86_64-linux-gnu-gcc
56 try_both seaboard arm tegra20 /opt/linaro/gcc-linaro-arm-linux-gnueabihf-4.8-2013.08_linux/bin/arm-linux-gnueabihf-gcc