From 53f48ca221dd5ee65297fdce42ff52aecdc03cde Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 20 Dec 2007 13:16:21 +0000 Subject: Fix some build system error handling. Signed-off-by: Ian Jackson --- tools/xm-test/ramdisk/Makefile.am | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/xm-test') diff --git a/tools/xm-test/ramdisk/Makefile.am b/tools/xm-test/ramdisk/Makefile.am index a59e0be21a..944a07146e 100644 --- a/tools/xm-test/ramdisk/Makefile.am +++ b/tools/xm-test/ramdisk/Makefile.am @@ -59,8 +59,8 @@ $(BR_IMG): $(BR_SRC) cp configs/buildroot-$(BR_ARCH) $(BR_SRC)/.config cp configs/busybox $(BR_SRC)/package/busybox/busybox.config cp configs/uClibc $(BR_SRC)/toolchain/uClibc/uClibc.config - (for i in patches/buildroot/*.patch; do \ - cd $(BR_SRC) && patch -p1 <../$$i && cd ..; done ) + set -e; for i in patches/buildroot/*.patch; do \ + cd $(BR_SRC) && patch -p1 <../$$i && cd ..; done cd $(BR_SRC) && make oldconfig && make $(XMTEST_VER_IMG): $(BR_IMG) @@ -69,8 +69,8 @@ $(XMTEST_VER_IMG): $(BR_IMG) -[ -e "$(BLKDRV)" ] && cp $(BLKDRV) skel/modules -[ -e "$(NETDRV)" ] && cp $(NETDRV) skel/modules -[ -e "$(PKTDRV)" ] && cp $(PKTDRV) skel/modules - (cd skel; tar cf - .) \ - | (cd $(BR_SRC)/$(BR_ROOT); tar xvf -) + (cd skel && tar cf - .) \ + | (cd $(BR_SRC)/$(BR_ROOT) && tar xvf -) cd $(BR_SRC) && make cp $(BR_IMG) $(XMTEST_VER_IMG) -- cgit v1.2.3