Skip to content

Commit e9c8705

Browse files
Yann Dirsonjforissier
authored andcommitted
Makefile: shell fixes
"exit -1" has traditionally had "exit 255" result, but starts to be rejected by some shells (eg. dash, which is is the default on many Debian systems): host$ bash $ exit -1 exit host$ echo $? 255 host$ dash $ exit -1 dash: 1: exit: Illegal number: -1 $ host$ echo $? 2 Signed-off-by: Yann Dirson <yann@blade-group.com> Reviewed-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
1 parent 7923cf1 commit e9c8705

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ clean: examples-clean prepare-for-rootfs-clean
1212

1313
examples:
1414
@for example in $(EXAMPLE_LIST); do \
15-
$(MAKE) -C $$example CROSS_COMPILE="$(HOST_CROSS_COMPILE)" || exit -1; \
15+
$(MAKE) -C $$example CROSS_COMPILE="$(HOST_CROSS_COMPILE)" || exit 1; \
1616
done
1717

1818
examples-clean:
1919
@for example in $(EXAMPLE_LIST); do \
20-
$(MAKE) -C $$example clean || exit -1; \
20+
$(MAKE) -C $$example clean || exit 1; \
2121
done
2222

2323
prepare-for-rootfs: examples

0 commit comments

Comments
 (0)