BIOS: set TFTP_SERVER_PORT from enviroment
authorEwen McNeill <ewen@naos.co.nz>
Thu, 18 Jan 2018 02:09:34 +0000 (13:09 +1100)
committerEwen McNeill <ewen@naos.co.nz>
Thu, 18 Jan 2018 02:09:34 +0000 (13:09 +1100)
litex/soc/software/bios/Makefile

index 6fd21dd276e5436e58d2bb1d28082b5772a94b72..25217e11ebe1361edd35d49e353f5781be6841bc 100644 (file)
@@ -1,6 +1,11 @@
 include ../include/generated/variables.mak
 include $(SOC_DIRECTORY)/software/common.mak
 
+# Permit TFTP_SERVER_PORT override from shell environment / command line
+ifdef TFTP_SERVER_PORT
+CFLAGS += -DTFTP_SERVER_PORT=$(TFTP_SERVER_PORT)
+endif
+
 OBJECTS=isr.o sdram.o main.o boot-helper-$(CPU).o boot.o
 
 all: bios.bin