diff --git a/sw/bootloader/makefile b/sw/bootloader/makefile index e6aae68..6b29dbe 100644 --- a/sw/bootloader/makefile +++ b/sw/bootloader/makefile @@ -1,4 +1,14 @@ # Modify this variable to fit your NEORV32 setup (neorv32 home folder) -NEORV32_HOME ?= ../.. + +OSFLAG := + +ifeq ($(OS),Windows_NT) +NEORV32_HOME ?= ..\.. include $(NEORV32_HOME)\sw\common\common.mk +else + +NEORV32_HOME ?= ../.. + +include $(NEORV32_HOME)/sw/common/common.mk +endif \ No newline at end of file diff --git a/sw/common/make_image.bat b/sw/common/make_image.bat index e9b240e..0bdee4a 100644 --- a/sw/common/make_image.bat +++ b/sw/common/make_image.bat @@ -25,7 +25,7 @@ if exist %1\image_gen.exe ( ) - cp %3\neorv32_application_image.vhd %2 + REM cp %3\neorv32_application_image.vhd %2 echo "Generationg RAW HEX" image_gen.exe -raw_hex %3\main.bin %3\neorv32_raw_exe.hex @@ -51,7 +51,7 @@ if exist %1\image_gen.exe ( echo "FAILED - BOOT iMG VHD" ) - cp %3\neorv32_bootloader_image.vhd %2 + REM cp %3\neorv32_bootloader_image.vhd %2 echo "Memories Generated" ) else ( diff --git a/sw/example/demo_blink_led/makefile b/sw/example/demo_blink_led/makefile index 8f9e2fd..94c806e 100644 --- a/sw/example/demo_blink_led/makefile +++ b/sw/example/demo_blink_led/makefile @@ -1,4 +1,4 @@ # Modify this variable to fit your NEORV32 setup (neorv32 home folder) NEORV32_HOME ?= ../../.. -include $(NEORV32_HOME)/sw/common/common.mk +include $(NEORV32_HOME)\sw\common\common.mk diff --git a/sw/example/demo_blink_led_asm/makefile b/sw/example/demo_blink_led_asm/makefile index 8f9e2fd..fa59946 100644 --- a/sw/example/demo_blink_led_asm/makefile +++ b/sw/example/demo_blink_led_asm/makefile @@ -1,4 +1,13 @@ # Modify this variable to fit your NEORV32 setup (neorv32 home folder) +OSFLAG := + +ifeq ($(OS),Windows_NT) +NEORV32_HOME ?= ..\..\.. + +include $(NEORV32_HOME)\sw\common\common.mk +else + NEORV32_HOME ?= ../../.. include $(NEORV32_HOME)/sw/common/common.mk +endif \ No newline at end of file