Install libgcc*.dll along with OpenOCD
Since users might not have MinGW installed on their target machines we want to bundle all the necessary DLLs along with OpenOCD. This does so.
This commit is contained in:
parent
08fc145225
commit
f0d7137480
9
Makefile
9
Makefile
|
@ -131,7 +131,8 @@ $(OBJDIR)/%/build/expat/configure:
|
|||
|
||||
# The OpenOCD builds go here
|
||||
$(BINDIR)/riscv-openocd-$(ROCD_VERSION)-%.zip: \
|
||||
$(OBJDIR)/%/stamps/riscv-openocd/install.stamp
|
||||
$(OBJDIR)/%/stamps/riscv-openocd/install.stamp \
|
||||
$(OBJDIR)/%/stamps/riscv-openocd/libs.stamp
|
||||
$(eval $@_TARGET := $(patsubst $(BINDIR)/riscv-openocd-$(ROCD_VERSION)-%.zip,%,$@))
|
||||
mkdir -p $(dir $@)
|
||||
cd $(OBJDIR)/$($@_TARGET)/install; zip -r $(abspath $@) riscv-openocd-$(ROCD_VERSION)-$($@_TARGET)
|
||||
|
@ -168,6 +169,12 @@ $(OBJDIR)/%/build/riscv-openocd/configure:
|
|||
cd $(dir $@); autoreconf -i
|
||||
touch -c $@
|
||||
|
||||
# We might need some extra target libraries for OpenOCD
|
||||
$(OBJDIR)/%/stamps/riscv-openocd/libs.stamp: \
|
||||
$(OBJDIR)/%/stamps/riscv-openocd/install.stamp
|
||||
$(WIN64)-gcc -print-search-dirs | grep ^libraries | cut -d= -f2- | xargs -I {} -d: find {} -iname "libgcc_*.dll" | xargs cp -t $(OBJDIR)/$(WIN64)/install/riscv-openocd-$(ROCD_VERSION)-$(WIN64)/bin
|
||||
date > $@
|
||||
|
||||
# Use the host libusb unless we expect there to be none
|
||||
$(OBJ_WIN64)/stamps/riscv-openocd/install.stamp: \
|
||||
$(OBJ_WIN64)/stamps/libusb/install.stamp
|
||||
|
|
Loading…
Reference in New Issue