From 82f47e44fd8ed100b03fdf8dc98271c7badea9c4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 21 Jan 2007 01:12:37 +0000 Subject: [PATCH] fix firmwarehotplug prereq check on sdcc SVN-Revision: 6151 --- utils/firmwarehotplug/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/utils/firmwarehotplug/Makefile b/utils/firmwarehotplug/Makefile index 8b10fb7a8..cff3be1c1 100644 --- a/utils/firmwarehotplug/Makefile +++ b/utils/firmwarehotplug/Makefile @@ -50,9 +50,14 @@ endef $(eval $(call BuildPackage,firmwarehotplug)) define Require/working-sdcc - echo 'int main() { return 0; }' >$(TMP_DIR)/a.c; \ - sdcc -o $(TMP_DIR)/a.out $(TMP_DIR)/a.c; \ - rm -f $(TMP_DIR)/a.* + echo 'int main() { return 0; }' >$(TMP_DIR)/a.c; \ + sdcc -o $(TMP_DIR)/a.out $(TMP_DIR)/a.c && { \ + rm -f $(TMP_DIR)/a.* \ + } || { \ + rm -f $(TMP_DIR)/a.*; \ + false \ + } + endef $(eval $(call Require,working-sdcc, \ -- 2.30.2