1 #WARNING: values of DEFAULT_TOOLCHAIN_PATH, DEFAULT_KERNEL_DIR and DEFAULT_KERNEL_CROSS_COMPILE
2 # variables are assigned in this file but should never be used directly.
3 # $(get_toolchain_path), $(get_kernel_dir) and $(get_kernel_cross_compile) to be used instead
5 #Toolchain path for applications build
6 DEFAULT_TOOLCHAIN_PATH=/home/toolchains/ugw/tag_${UGW_TAG}/openwrt/core
8 _BASE_TOOLCHANIN_PATH=`echo $(get_toolchain_path)/staging_dir/toolchain-mips_*`
9 _BASE_TARGET_PATH=`echo $(get_toolchain_path)/staging_dir/target-mips_*_${UGW_PLATFORM_NAME}`
11 #Compiler/precompiler flags applications build
12 CC="${_BASE_TOOLCHANIN_PATH}/bin/mips-*linux-gcc"
13 CXX="${_BASE_TOOLCHANIN_PATH}/bin/mips-*linux-g++"
14 CFLAGS="-O2 -fno-common -fno-builtin $CFLAGS"
16 CPPFLAGS="-I${_BASE_TARGET_PATH}/usr/include $CPPFLAGS"
17 LDFLAGS="-L${_BASE_TARGET_PATH}/usr/lib/ $LDFLAGS"
18 CXXFLAGS="$CFLAGS $CXXFLAGS"
20 #Linker flags for C++ applications linkage
23 #Additional kernel flags for this platform
24 kernel_cflags=-mlong-calls
26 #Target kernel architecture
28 #Kernel directory location
29 DEFAULT_KERNEL_DIR=$(get_toolchain_path)/build_dir/linux-lantiq_*${UGW_PLATFORM_NAME}/linux-?.*/
30 #Prefix for kernel compiler/binutils
31 DEFAULT_KERNEL_CROSS_COMPILE=${_BASE_TOOLCHANIN_PATH}/bin/mips-*linux-