-
Notifications
You must be signed in to change notification settings - Fork 1
/
mx6x_evk_config
executable file
·25 lines (21 loc) · 1.03 KB
/
mx6x_evk_config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#kernel header path installed genreated by kernel build with below
#sudo make ARCH=arm headers_install INSTALL_HDR_PATH=<KLINUX_SRCDIR>
KLINUX_SRCDIR=/rootfs/imx63_rootfs/usr/src/linux/
#kernel source dir
KERNEL_SRCDIR=/home/vobs/linux-2.6-imx
#kernel build dir
KLINUX_BLTDIR=/home/vobs/linux-2.6-imx
#cross compiler path
export PATH=$PATH:/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/
#-----------------------------------------------------
#below you usually do not need to change
ARCH_CPU=arm
ARCH_PLATFORM=imx6q
export KLINUX_SRCDIR KLINUX_BLTDIR ARCH_CPU ARCH_PLATFORM KERNEL_SRCDIR
#CROSS_COMPILE=arm-none-linux-gnueabi-
CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-
export CROSS_COMPILE
#export CFLAGS="-O2 -fsigned-char -mfpu=vfp -mfloat-abi=softfp"
export CFLAGS="-Wall -O2 -fsigned-char -mcpu=cortex-a9 -mfpu=vfp -mfloat-abi=softfp -DFSL_ARM=1 "
export DEBUG_CFLAGS="-Wall"
export CC=${CROSS_COMPILE}gcc