From 7edeeba8dd40cc6bb0000cb7baa84ee109eca842 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 8b10fb7a87..cff3be1c14 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