Disable documentation --This line, and those below, will be ignored--
[openwrt/svn-archive/archive.git] / utils / firmwarehotplug / Makefile
index cf2ddee4ffd75639643fed5b24148fd9399a2fcc..8b10fb7a8741dfead1a29355109084033e1df744 100644 (file)
@@ -13,7 +13,7 @@ PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@SF/linux-hotplug
-PKG_MD5SUM:=unknown
+PKG_MD5SUM:=e5cf352b172f498e27b160167b981f24
 PKG_CAT:=zcat
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@@ -31,9 +31,10 @@ endef
 
 define Build/Compile
        $(call Build/Compile/Default, \
+               OPT="$(TARGET_CFLAGS)" \
                -C $(PKG_BUILD_DIR)/ezusb/midi/original \
                DESTDIR="$(PKG_INSTALL_DIR)" \
-                all install
+                all install \
        )
 endef
 
@@ -48,6 +49,12 @@ endef
 
 $(eval $(call BuildPackage,firmwarehotplug))
 
-$(eval $(call RequireCommand,sdcc, \
-       $(PKG_NAME) requires sdcc. \
+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.*
+endef
+
+$(eval $(call Require,working-sdcc, \
+        Please install the SDCC Cross Compiler (sdcc). \
 ))