From cb31266500b8693cd3b4124e775edb23172eea96 Mon Sep 17 00:00:00 2001 From: Ewen McNeill Date: Thu, 18 Jan 2018 13:09:34 +1100 Subject: [PATCH] BIOS: set TFTP_SERVER_PORT from enviroment --- litex/soc/software/bios/Makefile | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2