mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-01 12:38:27 +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:
parent
0d888f897e
commit
372145cd29
@ -30,6 +30,7 @@ C_OBJS = $(patsubst %.c,%.o, $(C_SRCS))
|
|||||||
#SRCS := $(START: .o=.S) $(COBJS: .o=.c)
|
#SRCS := $(START: .o=.S) $(COBJS: .o=.c)
|
||||||
SRCS = ${S_SRCS} ${C_SRCS}
|
SRCS = ${S_SRCS} ${C_SRCS}
|
||||||
OBJS = ${S_OBJS} ${C_OBJS}
|
OBJS = ${S_OBJS} ${C_OBJS}
|
||||||
|
LIBS = -L${COMPILER_LIB_PATH} -lgcc
|
||||||
|
|
||||||
# GTA02 A5 and A6 U-Boot will eat these for DFU action
|
# GTA02 A5 and A6 U-Boot will eat these for DFU action
|
||||||
UDFU_VID = 0x1d50
|
UDFU_VID = 0x1d50
|
||||||
@ -51,7 +52,7 @@ all:${UDFU_IMAGE}
|
|||||||
${OBJS}:${SRCS}
|
${OBJS}:${SRCS}
|
||||||
|
|
||||||
${UDFU_IMAGE}:${OBJS}
|
${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}
|
$(OBJCOPY) -O binary -S ${TARGET} ${IMAGE}
|
||||||
$(MKUDFU) -v ${UDFU_VID} -p ${UDFU_PID} -r ${UDFU_REV} \
|
$(MKUDFU) -v ${UDFU_VID} -p ${UDFU_PID} -r ${UDFU_REV} \
|
||||||
-d ${IMAGE} ${UDFU_IMAGE}
|
-d ${IMAGE} ${UDFU_IMAGE}
|
||||||
|
@ -1,8 +1,13 @@
|
|||||||
#
|
#
|
||||||
# Include the make variables (CC, etc...)
|
# 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
|
AS = $(CROSS_COMPILE)as
|
||||||
LD = $(CROSS_COMPILE)ld
|
LD = $(CROSS_COMPILE)ld
|
||||||
|
Loading…
Reference in New Issue
Block a user