icE1usb fw: Add support for the ICE1USB_DEV_GET_FW_BUILD control request

This was already defined but not implemented

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: Id65734153c92ef87bc9ecf967447e9bf11804f24
diff --git a/firmware/ice40-riscv/icE1usb/Makefile b/firmware/ice40-riscv/icE1usb/Makefile
index 1240a9f..36fd921 100644
--- a/firmware/ice40-riscv/icE1usb/Makefile
+++ b/firmware/ice40-riscv/icE1usb/Makefile
@@ -10,11 +10,12 @@
 DFU_UTIL = dfu-util
 
 TAG_PREFIX = icE1usb-fw
-GITVER = $(shell git describe --match '$(TAG_PREFIX)*')
+GITVER = $(shell git describe --match '$(TAG_PREFIX)*' --dirty)
 TARGET = $(GITVER)
 
 BOARD_DEFINE=BOARD_$(shell echo $(BOARD) | tr a-z\- A-Z_)
 CFLAGS=-Wall -Wextra -Wno-unused-parameter -Os -march=rv32i -mabi=ilp32 -ffreestanding -flto -nostartfiles -fomit-frame-pointer -Wl,--gc-section --specs=nano.specs -D$(BOARD_DEFINE) -I. -I../common
+CFLAGS += -DBUILD_INFO="\"$(GITVER) built $(shell date) on $(shell hostname)\""
 
 NO2USB_FW_VERSION=0
 include ../../../gateware/cores/no2usb/fw/fw.mk