This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] libgloss: bfin: catch install errors
- From: Mike Frysinger <vapier at gentoo dot org>
- To: newlib at sourceware dot org
- Date: Sat, 26 Mar 2011 23:39:38 -0400
- Subject: [PATCH] libgloss: bfin: catch install errors
i've committed this patch for Blackfin targets to catch install errors
2011-03-26 Mike Frysinger <vapier@gentoo.org>
* bfin/Makefile.in (install-sim): Exit when install fails.
(install-board): Likewise.
-mike
--- libgloss/bfin/Makefile.in 16 Oct 2010 17:06:55 -0000 1.7
+++ libgloss/bfin/Makefile.in 27 Mar 2011 03:38:08 -0000
@@ -146,12 +146,12 @@ install: ${SIM_INSTALL} ${BOARD_INSTALL}
install-sim:
for x in ${SIM_CRT0} ${SIM_BSP} ${SIM_SCRIPTS}; do \
- ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \
+ ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x || exit $$?; \
done
install-board:
for x in ${BOARD_CRT0S} ${BOARD_BSP}; do \
- ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x; \
+ ${INSTALL_DATA} $$x $(DESTDIR)${tooldir}/lib${MULTISUBDIR}/$$x || exit $$?; \
done
-if [ -z "${MULTISUBDIR}" ]; then \
for x in ${BOARD_SCRIPTS}; do \