X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=utils%2Ffirmwarehotplug%2FMakefile;h=8b10fb7a8741dfead1a29355109084033e1df744;hp=08e17f6ac19c11e50723e9eafa318713f55259a4;hb=ed12a878c406dbfbd4b75a85a2409a665505268e;hpb=db2d936be7437b795491d3828b01d1b01dd7edde diff --git a/utils/firmwarehotplug/Makefile b/utils/firmwarehotplug/Makefile index 08e17f6ac1..8b10fb7a87 100644 --- a/utils/firmwarehotplug/Makefile +++ b/utils/firmwarehotplug/Makefile @@ -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,8 +49,12 @@ endef $(eval $(call BuildPackage,firmwarehotplug)) -$(foreach command, sdcc sgml2html, \ - $(eval $(call RequireCommand,$(command), \ - $(PKG_NAME) requires $(command). \ - )) \ -) +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). \ +))