Skip to content

Commit

Permalink
add sw build from external (#217)
Browse files Browse the repository at this point in the history
* Modified Makefiles and added external.mk so building external sources is supported.

* Added readme for Building External Sources
  • Loading branch information
JuanSapriza authored Mar 9, 2023
1 parent f6b4766 commit c87d7ea
Show file tree
Hide file tree
Showing 7 changed files with 405 additions and 146 deletions.
134 changes: 0 additions & 134 deletions ExtendingViaXIF.md

This file was deleted.

8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ COMPILER ?= gcc
# Arch options are any RISC-V ISA string supported by the CPU. Default 'rv32imc'
ARCH ?= rv32imc

# Path relative from the location of sw/Makefile from which to fetch source files. The directory of that file is the default value.
SOURCE ?= "."



## @section Linux-Emulation

## Generates FEMU
Expand Down Expand Up @@ -88,10 +93,11 @@ verible:
## @param COMPILER=gcc(default), clang
## @param ARCH=rv32imc(default), <any RISC-V ISA string supported by the CPU>
app: clean-app
$(MAKE) -C sw PROJECT=$(PROJECT) TARGET=$(TARGET) LINKER=$(LINKER) COMPILER=$(COMPILER) ARCH=$(ARCH)
$(MAKE) -C sw PROJECT=$(PROJECT) TARGET=$(TARGET) LINKER=$(LINKER) COMPILER=$(COMPILER) ARCH=$(ARCH) SOURCE=$(SOURCE)

## Just list the different application names available
app-list:
@echo "Note: Applications outside the X-HEEP sw/applications directory will not be listed."
tree sw/applications/

## @section Simulation
Expand Down
Loading

0 comments on commit c87d7ea

Please sign in to comment.