Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jun 2006 16:47:13 GMT
From:      Olivier Houchard <cognet@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 99059 for review
Message-ID:  <200606121647.k5CGlDgj090040@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=99059

Change 99059 by cognet@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606121647.k5CGlDgj090040>