summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2019-06-21Default target is the first BSPNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-06-21Allow list-* targets to work without specifying a valid TARGETKevin Mills
2019-06-20fixup standalone targets to work.Kevin Mills
2019-06-06Allow sed to work on MacOSKevin Mills
2019-06-05Merge pull request #265 from sifive/open-docsNathaniel Graff
Add make target to open local documentation
2019-06-03Add make target to open local documentationNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-06-02Update Makefile to handle special ENV require for coremark, dhrystoneBunnaroath Sou
2019-05-22Simplify the list-programs make targetNathaniel Graff
Just lists all the subdirectiores of PROGRAM_ROOT/software Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-29Mix a minor cleanup missedBunnaroath Sou
2019-03-19Reverted to naming verilog hex files .hexcgsfv
2019-03-19Added .map + .lst + .rtl extra output filescgsfv
2019-03-15Mark list-* as PHONYNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-15Add the list-target-tags make targetNathaniel Graff
`make list-target-tags` returns a list of all unique values in TARGET_TAGS for all of the BSPs. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-14list-targets accepts TARGET_REQUIRE_TAGS as filterNathaniel Graff
make list-targets TARGET_REQUIRE_TAGS="tag1 tag2 tag3" will list only the BSPs with all of the requested tags. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-14BSPs are any directory with settings.mkNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-14Use TARGET_TAGS in MakefileNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-13Enable elf2hex in standalone projectsNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-12Build program into SRC_DIR/CONFIGURATION/PROGRAMNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-12Build metal libs into install/lib/CONFIGURATIONNathaniel Graff
Removes the INCLUDE_METAL_SOURCES option. If we want to be able to support multiple build configurations for standalone projects, the Metal library must be rebuilt to take into account those options. An alternative is to put back the prebuilt library option and just remove the configuration option from standalone projects without the Metal library sources. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-12ELF output has .elf extensionNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-12Support Debug/Release configurationsNathaniel Graff
- Puts shared flags in scripts/standalone and adds "build configurations" for debug and release which customize the build flags for specific purposes. - Documents CONFIGURATION in Sphinx docs and makefile help Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-07Remove BSP checks from MakefileNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-03-06Add support for Segger J-LinkNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-02-13Document INCLUDE_METAL_SOURCES for standalone targetNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-02-13Create standalone target which copies metal sourceNathaniel Graff
Don't include .git* files in the copied metal sources. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-02-12Move libmetal make targets to scripts/libmetal.mkNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-02-04Replace all mee with metalNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-31Add TARGET as a synonym for BOARDNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-29Remove '-r' from sed command (not required and does not work on MacOS). ↵Kevin Mills
Remove 'echo Done', no longer needed.
2019-01-24Put back OpenOCD into the top-level MakefileNathaniel Graff
Finding OpenOCD with RISCV_OPENOCD_PATH got accidentally dropped with the split to the standalone Makefile. Put it back. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-24make it clearKevin Mills
2019-01-24Do this more efficiently and with less duplication.Kevin Mills
2019-01-24Make list-options target for Freedom Studio to parse.Kevin Mills
2019-01-23Move comment out of recipe and prevent var expansionKevin Mills
2019-01-23Disable maintainer mode in MEE buildNathaniel Graff
To support users without automake/autoconf/m4, disable maintainer mode during the Freedom Metal build to make sure that the autoconf scripts don't try to run automatically. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-18Enumerate MEE boards and programsNathaniel Graff
Make targets `list-boards` and `list-programs` will enumerate the available boards and programs for use with Freedom Metal Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-18Document standalone targetNathaniel Graff
Add documentation to README and `make help` Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-18Add export of standalone projectNathaniel Graff
Split out board init, toolchain setup, and program build into scripts/standalone.mk which can be included in the top-level Makefile to allow in-SDK builds or be exported and used on its own. Create a `standalone` Make target which copies and example, the built Freedom Metal library, and the standalone Makefile into an external project. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-15Update make helpNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-11Add Makefile arguments for out-of-tree BSPs and programsNathaniel Graff
2019-01-04Look for OpenOCD in RISCV_OPENOCD_PATHNathaniel Graff
The README states that OpenOCD should be pointed to by RISCV_OPENOCD_PATH, not RISCV_PATH. Fix the makefile to look in the right place. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-03Fix relocation error on 64-bit targetsNathaniel Graff
Set the code model to medium-any to fix build errors on 64-bit targets. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-03Add MEE BSP include path to MakefileNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2019-01-03Link with libgccNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2018-12-18Pass AR through when building MEE-based examplesPalmer Dabbelt
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2018-12-13Add support for generating coreip hex files via elf2hexPalmer Dabbelt
This just calls elf2hex on the compiled elf files, producing a hex file that can be fed into RTL simulation. Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2018-12-13Support Building of MEE and MEE examplesNathaniel Graff
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
2018-12-12Allow users to set a CROSS_COMPLIE argumentPalmer Dabbelt
This allows users to select a different cross complier than the default 'riscv64-unknown-elf'. Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2018-12-11Remove tools from MakefileNathaniel Graff
2018-09-11spaces will break the make invocationKen Takusagawa