-
Notifications
You must be signed in to change notification settings - Fork 1
/
mx35_3stack_config
executable file
·24 lines (22 loc) · 1.03 KB
/
mx35_3stack_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
# To override them from the make commandline, do something like this:
# $ CROSS_COMPILER=/opt/cegl-1.4/hardhat/devkit/ppc/405/bin/powerpc-linux-
# $ make \
# CROSS_CFLAGS="-mcpu=403 -D__PPC405__" \
# CC=${CROSS_COMPILER}gcc \
# AR=${CROSS_COMPILER}ar \
# LDFLAGS=-static \
# LOADLIBES="-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc"
#
# Alternately, to override them by editing this file, uncomment the
# following lines:
KLINUX_SRCDIR=/home/vobs/linux-2.6-imx
KLINUX_BLTDIR=/home/vobs/linux-2.6-imx
ARCH_CPU=arm
ARCH_PLATFORM=imx35stack
export KLINUX_SRCDIR KLINUX_BLTDIR ARCH_CPU ARCH_PLATFORM
#CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-
CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-gnueabi-
#export CFLAGS="-DPROJECT_RINGO=1 -O2 -fsigned-char -mfloat-abi=softfp -mfpu=vfp"
export CFLAGS="-Wall -DPROJECT_MX25=1 -O2 -march=armv6 "
export CROSS_COMPILE
export CC=${CROSS_COMPILE}gcc