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

Subversion Repositories neorv32

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

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

Rev 62 Rev 63
Line 37... Line 37...
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_HOME)/rtl/core
 
# Path to NEORV32 sim folder
 
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
 
 
# Core libraries (peripheral and CPU drivers)
# Core libraries (peripheral and CPU drivers)
CORE_SRC  = $(wildcard $(NEORV32_SRC_PATH)/*.c)
CORE_SRC  = $(wildcard $(NEORV32_SRC_PATH)/*.c)
Line 113... Line 115...
 
 
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Image generator targets
# Image generator targets
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# install/compile tools
# install/compile tools
$(IMAGE_GEN): $(NEORV32_EXG_PATH)/image_gen.cpp
$(IMAGE_GEN): $(NEORV32_EXG_PATH)/image_gen.c
        @echo Compiling $(IMAGE_GEN)
        @echo Compiling $(IMAGE_GEN)
        @$(CC_X86) $< -o $(IMAGE_GEN)
        @$(CC_X86) $< -o $(IMAGE_GEN)
 
 
 
 
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
Line 261... 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
 
# -----------------------------------------------------------------------------
 
sim: $(APP_IMG)
 
        @echo "Simulating $(APP_IMG)..."
 
        @sh $(NEORV32_SIM_PATH)/ghdl.sh
 
 
 
# -----------------------------------------------------------------------------
# Show final ELF details (just for debugging)
# Show final ELF details (just for debugging)
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
elf_info: main.elf
elf_info: main.elf
        @$(OBJDUMP) -x main.elf
        @$(OBJDUMP) -x main.elf
 
 
Line 280... 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 " 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.