From 27df6b8239b4df54d70104b313fc3e7f492d5a77 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 21 Jan 2007 01:13:44 +0000 Subject: [PATCH] replace sdcc prereq check with a simple command test git-svn-id: svn://svn.openwrt.org/openwrt/packages@6152 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- utils/firmwarehotplug/Makefile | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/utils/firmwarehotplug/Makefile b/utils/firmwarehotplug/Makefile index cff3be1c1..501151739 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). \ )) -- 2.11.0