From 86cbd3577d2c4380799b73b046ae8cffdf0007ec Mon Sep 17 00:00:00 2001 From: adrizcorp Date: Sat, 24 Feb 2024 01:45:53 -0800 Subject: [PATCH] modifying common file --- sw/bootloader/makefile | 12 +++++++++++- sw/common/make_image.bat | 4 ++-- sw/example/demo_blink_led/makefile | 2 +- sw/example/demo_blink_led_asm/makefile | 9 +++++++++ 4 files changed, 23 insertions(+), 4 deletions(-) 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