1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-25 15:47:31 +02:00

build-link-with-libgcc.patch

libgcc has divide and things we would like to use

Signed-off-by: Andy Green <andy@openmoko.com>
This commit is contained in:
Andy Green 2008-08-13 00:35:09 +01:00
parent 0d888f897e
commit 372145cd29
2 changed files with 9 additions and 3 deletions

View File

@ -30,6 +30,7 @@ C_OBJS = $(patsubst %.c,%.o, $(C_SRCS))
#SRCS := $(START: .o=.S) $(COBJS: .o=.c)
SRCS = ${S_SRCS} ${C_SRCS}
OBJS = ${S_OBJS} ${C_OBJS}
LIBS = -L${COMPILER_LIB_PATH} -lgcc
# GTA02 A5 and A6 U-Boot will eat these for DFU action
UDFU_VID = 0x1d50
@ -51,7 +52,7 @@ all:${UDFU_IMAGE}
${OBJS}:${SRCS}
${UDFU_IMAGE}:${OBJS}
$(LD) ${LDFLAGS} -T$(LDS) -g $(OBJS) -o ${TARGET}
$(LD) ${LDFLAGS} -T$(LDS) -g $(OBJS) -o ${TARGET} ${LIBS}
$(OBJCOPY) -O binary -S ${TARGET} ${IMAGE}
$(MKUDFU) -v ${UDFU_VID} -p ${UDFU_PID} -r ${UDFU_REV} \
-d ${IMAGE} ${UDFU_IMAGE}

View File

@ -1,8 +1,13 @@
#
# Include the make variables (CC, etc...)
#
#CROSS_COMPILE=arm-softfloat-linux-gnu-
CROSS_COMPILE=/usr/local/openmoko/arm/bin/arm-angstrom-linux-gnueabi-
CROSS_PATH=/usr/local/openmoko/arm
CROSS_COMPILE=${CROSS_PATH}/bin/arm-angstrom-linux-gnueabi-
####
COMPILER_LIB_PATH_PRE=${CROSS_PATH}/lib/gcc/arm-angstrom-linux-gnueabi
COMPILER_LIB_PATH=${COMPILER_LIB_PATH_PRE}/`ls ${COMPILER_LIB_PATH_PRE}`
AS = $(CROSS_COMPILE)as
LD = $(CROSS_COMPILE)ld