From: Ewen McNeill Date: Thu, 18 Jan 2018 02:09:34 +0000 (+1100) Subject: BIOS: set TFTP_SERVER_PORT from enviroment X-Git-Tag: 24jan2021_ls180~1758^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb31266500b8693cd3b4124e775edb23172eea96;p=litex.git BIOS: set TFTP_SERVER_PORT from enviroment --- diff --git a/litex/soc/software/bios/Makefile b/litex/soc/software/bios/Makefile index 6fd21dd2..25217e11 100644 --- a/litex/soc/software/bios/Makefile +++ b/litex/soc/software/bios/Makefile @@ -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