OpenCores
URL https://opencores.org/ocsvn/neorv32/neorv32/trunk

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [common/] [common.mk] - Diff between revs 63 and 64

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 63 Rev 64
Line 22... Line 22...
# User flags for additional configuration (will be added to compiler flags)
# User flags for additional configuration (will be added to compiler flags)
USER_FLAGS ?=
USER_FLAGS ?=
 
 
# Relative or absolute path to the NEORV32 home folder
# Relative or absolute path to the NEORV32 home folder
NEORV32_HOME ?= ../../..
NEORV32_HOME ?= ../../..
 
NEORV32_LOCAL_RTL ?= $(NEORV32_HOME)/rtl
 
 
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# NEORV32 framework
# NEORV32 framework
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Path to NEORV32 linker script and startup file
# Path to NEORV32 linker script and startup file
Line 36... Line 36...
# Path to main NEORV32 library source files
# Path to main NEORV32 library source files
NEORV32_SRC_PATH = $(NEORV32_HOME)/sw/lib/source
NEORV32_SRC_PATH = $(NEORV32_HOME)/sw/lib/source
# Path to NEORV32 executable generator
# Path to NEORV32 executable generator
NEORV32_EXG_PATH = $(NEORV32_HOME)/sw/image_gen
NEORV32_EXG_PATH = $(NEORV32_HOME)/sw/image_gen
# Path to NEORV32 core rtl folder
# Path to NEORV32 core rtl folder
NEORV32_RTL_PATH = $(NEORV32_HOME)/rtl/core
NEORV32_RTL_PATH = $(NEORV32_LOCAL_RTL)/core
# Path to NEORV32 sim folder
# Path to NEORV32 sim folder
NEORV32_SIM_PATH = $(NEORV32_HOME)/sim
NEORV32_SIM_PATH = $(NEORV32_HOME)/sim
# Marker file to check for NEORV32 home folder
# Marker file to check for NEORV32 home folder
NEORV32_HOME_MARKER = $(NEORV32_INC_PATH)/neorv32.h
NEORV32_HOME_MARKER = $(NEORV32_INC_PATH)/neorv32.h
 
 
Line 263... Line 263...
        @echo "---------------- Info: Host Native GCC Flags ----------------"
        @echo "---------------- Info: Host Native GCC Flags ----------------"
        @echo "CC_X86:     $(CC_X86)"
        @echo "CC_X86:     $(CC_X86)"
 
 
 
 
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# In-console simulation using default testbench and GHDL
# In-console simulation using default/simple testbench and GHDL
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
sim: $(APP_IMG)
sim: $(APP_IMG)
        @echo "Simulating $(APP_IMG)..."
        @echo "Simulating $(APP_IMG)..."
        @sh $(NEORV32_SIM_PATH)/ghdl.sh
        @sh $(NEORV32_SIM_PATH)/simple/ghdl.sh
 
 
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Show final ELF details (just for debugging)
# Show final ELF details (just for debugging)
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
elf_info: main.elf
elf_info: main.elf
Line 289... Line 289...
        @echo " check      - check toolchain"
        @echo " check      - check toolchain"
        @echo " info       - show makefile/toolchain configuration"
        @echo " info       - show makefile/toolchain configuration"
        @echo " exe        - compile and generate  executable for upload via bootloader"
        @echo " exe        - compile and generate  executable for upload via bootloader"
        @echo " hex        - compile and generate  executable raw file"
        @echo " hex        - compile and generate  executable raw file"
        @echo " install    - compile, generate and install VHDL IMEM boot image (for application)"
        @echo " install    - compile, generate and install VHDL IMEM boot image (for application)"
        @echo " sim        - in-console simulation using default testbench and GHDL"
        @echo " sim        - in-console simulation using default/simple testbench and GHDL"
        @echo " all        - exe + hex + install"
        @echo " all        - exe + hex + install"
        @echo " elf_info   - show ELF layout info"
        @echo " elf_info   - show ELF layout info"
        @echo " clean      - clean up project"
        @echo " clean      - clean up project"
        @echo " clean_all  - clean up project, core libraries and image generator"
        @echo " clean_all  - clean up project, core libraries and image generator"
        @echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"
        @echo " bootloader - compile, generate and install VHDL BOOTROM boot image (for bootloader only!)"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.