From: Felix Fietkau Date: Sun, 21 Jan 2007 01:13:44 +0000 (+0000) Subject: replace sdcc prereq check with a simple command test X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=010035413654ae9ca0c67d22eecdf493ad571e2f replace sdcc prereq check with a simple command test SVN-Revision: 6152 --- diff --git a/utils/firmwarehotplug/Makefile b/utils/firmwarehotplug/Makefile index cff3be1c14..5011517398 100644 --- a/utils/firmwarehotplug/Makefile +++ b/utils/firmwarehotplug/Makefile @@ -49,17 +49,6 @@ 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.* \ - } || { \ - rm -f $(TMP_DIR)/a.*; \ - false \ - } - -endef - -$(eval $(call Require,working-sdcc, \ +$(eval $(call RequireCommand,sdcc, \ Please install the SDCC Cross Compiler (sdcc). \ ))