replace sdcc prereq check with a simple command test
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6152 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1a3a876080
commit
27df6b8239
@ -49,17 +49,6 @@ endef
|
|||||||
|
|
||||||
$(eval $(call BuildPackage,firmwarehotplug))
|
$(eval $(call BuildPackage,firmwarehotplug))
|
||||||
|
|
||||||
define Require/working-sdcc
|
$(eval $(call RequireCommand,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, \
|
|
||||||
Please install the SDCC Cross Compiler (sdcc). \
|
Please install the SDCC Cross Compiler (sdcc). \
|
||||||
))
|
))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user