PERFORCE change 99059 for review

Olivier Houchard cognet at FreeBSD.org
Mon Jun 12 16:49:29 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=99059

Change 99059 by cognet at cognet on 2006/06/12 16:46:19

	Honor ${LD} and ${OBJCOPY}.

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/at91/Makefile.inc#17 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/at91/Makefile.inc#17 (text+ko) ====

@@ -22,14 +22,17 @@
 
 LIBAT91=${.OBJDIR}/../libat91/libat91.a
 
+LD ?= ld
+OBJCOPY ?= objcopy
+
 .if defined(P)
 ${P}:	${P}.out
-	objcopy -S -O binary ${P}.out ${.TARGET}
+	${OBJCOPY} -S -O binary ${P}.out ${.TARGET}
 	@set -- `ls -l ${.TARGET}`; x=$$((12288-$$5)); \
 	    echo "$$x bytes available"; test $$x -ge 0
 
 ${P}.out: ${OBJS}
-	ld ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBAT91}
+	${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBAT91}
 
 CLEANFILES+= ${P} ${P}.out
 .endif


More information about the p4-projects mailing list