Add option to skip building dfu-util
authorJonathan Wakely <github@kayari.org>
Thu, 18 Feb 2021 17:04:39 +0000 (17:04 +0000)
committerMichael McMaster <michael@codesrc.com>
Mon, 26 Apr 2021 11:04:09 +0000 (21:04 +1000)
Set USE_SYSTEM_DFU_UTIL=Yes or USE_SYSTEM=Yes to skip building dfu-util.

src/scsi2sd-util6/Makefile

index 007789d56fa302133ba871d6761b470e163eaf02..76ac02342a493a1e533790d2ce35e4be08fe1d85 100755 (executable)
@@ -8,6 +8,7 @@ USE_SYSTEM_HIDAPI = Yes
 USE_SYSTEM_ZLIB = Yes
 USE_SYSTEM_WX = Yes
 USE_SYSTEM_LIBUSB = Yes
+USE_SYSTEM_DFU_UTIL = Yes
 endif
 
 ifeq ($(USE_SYSTEM_LIBUSB), Yes)
@@ -279,7 +280,9 @@ $(BUILD)/scsi2sd-test$(EXE): $(OBJ) $(BUILD)/scsi2sd-test.o
        mkdir -p $(dir $@)
        $(CXX) $(CXXFLAGS) $^ $(LDFLAGS_WX) $(LDFLAGS) -o $@
 
+ifneq ($(USE_SYSTEM_DFU_UTIL),Yes)
 all: $(BUILD)/dfu-util/buildstamp
+endif
 $(BUILD)/dfu-util/buildstamp: $(BUILD)/libusb/buildstamp
        mkdir -p $(dir $@)
        ( \