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

Subversion Repositories neorv32

[/] [neorv32/] [trunk/] [sw/] [example/] [demo_pwm/] [makefile] - Diff between revs 22 and 32

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

Rev 22 Rev 32
Line 123... Line 123...
IMAGE_GEN = $(NEORV32_EXG_PATH)/image_gen
IMAGE_GEN = $(NEORV32_EXG_PATH)/image_gen
 
 
# Compiler & linker flags
# Compiler & linker flags
CC_OPTS  = $(MARCH) $(MABI) $(EFFORT) -Wall -ffunction-sections -fdata-sections -nostartfiles
CC_OPTS  = $(MARCH) $(MABI) $(EFFORT) -Wall -ffunction-sections -fdata-sections -nostartfiles
CC_OPTS += -Wl,--gc-sections -lm -lc -lgcc -lc
CC_OPTS += -Wl,--gc-sections -lm -lc -lgcc -lc
 
# This accelerates instruction fetch after branches when C extension is enabled (irrelevant when C extension is disabled)
 
CC_OPTS += -falign-functions=4 -falign-labels=4 -falign-loops=4 -falign-jumps=4
CC_OPTS += $(USER_FLAGS)
CC_OPTS += $(USER_FLAGS)
 
 
 
 
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Application output definitions
# Application output definitions
Line 140... Line 142...
install: $(APP_ASM) $(APP_IMG)
install: $(APP_ASM) $(APP_IMG)
all:     $(APP_ASM) $(APP_EXE) $(APP_IMG)
all:     $(APP_ASM) $(APP_EXE) $(APP_IMG)
 
 
# Check if making bootloader
# Check if making bootloader
# Use different base address and legth for instruction memory/"rom" (BOOTMEM instead of IMEM)
# Use different base address and legth for instruction memory/"rom" (BOOTMEM instead of IMEM)
target bootloader: CC_OPTS += -Wl,--defsym=make_bootloader=1
# Also define "make_bootloader" for crt0.S
 
target bootloader: CC_OPTS += -Wl,--defsym=make_bootloader=1 -Dmake_bootloader
 
 
 
 
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Image generator targets
# Image generator targets
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------

powered by: WebSVN 2.1.0

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