This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]