Merge pull request #75 from xobs/bios-windows-build
soc: bios: fix windows build
This commit is contained in:
commit
78639fa952
|
@ -12,7 +12,9 @@ all: bios.bin
|
||||||
|
|
||||||
%.bin: %.elf
|
%.bin: %.elf
|
||||||
$(OBJCOPY) -O binary $< $@
|
$(OBJCOPY) -O binary $< $@
|
||||||
|
ifneq ($(OS),Windows_NT)
|
||||||
chmod -x $@
|
chmod -x $@
|
||||||
|
endif
|
||||||
ifeq ($(CPUENDIANNESS),little)
|
ifeq ($(CPUENDIANNESS),little)
|
||||||
$(PYTHON) -m litex.soc.tools.mkmscimg $@ --little
|
$(PYTHON) -m litex.soc.tools.mkmscimg $@ --little
|
||||||
else
|
else
|
||||||
|
@ -29,7 +31,9 @@ bios.elf: $(BIOS_DIRECTORY)/linker.ld $(OBJECTS)
|
||||||
-L../libbase \
|
-L../libbase \
|
||||||
-L../libcompiler_rt \
|
-L../libcompiler_rt \
|
||||||
-lnet -lbase-nofloat -lcompiler_rt
|
-lnet -lbase-nofloat -lcompiler_rt
|
||||||
|
ifneq ($(OS),Windows_NT)
|
||||||
chmod -x $@
|
chmod -x $@
|
||||||
|
endif
|
||||||
|
|
||||||
# pull in dependency info for *existing* .o files
|
# pull in dependency info for *existing* .o files
|
||||||
-include $(OBJECTS:.o=.d)
|
-include $(OBJECTS:.o=.d)
|
||||||
|
|
Loading…
Reference in New Issue