From 7444992999dc98e6ae6109eefae5bb91c5c70691 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Mon, 18 Jun 2018 17:13:54 +0800 Subject: [PATCH] soc: bios: fix windows build The BIOS builds just fine on Windows, but afterwards tries to run `chmod`. This command does not exist on Windows, and is unnecessary. Add a conditional guard to prevent this command from running on Windows. Signed-off-by: Sean Cross --- litex/soc/software/bios/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/litex/soc/software/bios/Makefile b/litex/soc/software/bios/Makefile index 6a33698b..14e44920 100644 --- a/litex/soc/software/bios/Makefile +++ b/litex/soc/software/bios/Makefile @@ -12,7 +12,9 @@ all: bios.bin %.bin: %.elf $(OBJCOPY) -O binary $< $@ +ifneq ($(OS),Windows_NT) chmod -x $@ +endif ifeq ($(CPUENDIANNESS),little) $(PYTHON) -m litex.soc.tools.mkmscimg $@ --little else @@ -29,7 +31,9 @@ bios.elf: $(BIOS_DIRECTORY)/linker.ld $(OBJECTS) -L../libbase \ -L../libcompiler_rt \ -lnet -lbase-nofloat -lcompiler_rt +ifneq ($(OS),Windows_NT) chmod -x $@ +endif # pull in dependency info for *existing* .o files -include $(OBJECTS:.o=.d) -- 2.30.2