-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from VisorFolks/development
Added several new features: - Helios Updates (compatibility with newer updates pending) - VCall Updates - ARM-M Code updates - Updates to basic documentation - Add build demo program using qemu Closes Issue: #87 #155 #184 #243
- Loading branch information
Showing
132 changed files
with
3,659 additions
and
1,805 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,44 @@ | ||
.scannerwork | ||
sonar-cfamily-reproducer.zip | ||
temp | ||
out/ | ||
tools/ | ||
backup/ | ||
bkp/ | ||
projects/ | ||
*.elf | ||
*.bin | ||
*.d | ||
*.o | ||
*.ko | ||
*.obj | ||
*.dll | ||
*.so | ||
*.so.* | ||
*.dylib | ||
*.lib | ||
*.la | ||
*.lo | ||
*.a | ||
*.ilk | ||
*.map | ||
*.dis | ||
*.new | ||
*.bkp | ||
*.backup | ||
*.b | ||
*.dev | ||
*.old | ||
*.temp | ||
*.tmp | ||
*.sw* | ||
*.exe | ||
*.out | ||
*.app | ||
*.i*86 | ||
*.x86_64 | ||
*.hex | ||
*.mod* | ||
*.cmd | ||
*.todo | ||
.scannerwork | ||
.vscode/ | ||
sonar-cfamily-reproducer.zip | ||
temp | ||
out/ | ||
tools/ | ||
backup/ | ||
bkp/ | ||
projects/ | ||
*.elf | ||
*.bin | ||
*.d | ||
*.o | ||
*.ko | ||
*.obj | ||
*.dll | ||
*.so | ||
*.so.* | ||
*.dylib | ||
*.lib | ||
*.la | ||
*.lo | ||
*.a | ||
*.ilk | ||
*.map | ||
*.dis | ||
*.new | ||
*.bkp | ||
*.backup | ||
*.b | ||
*.dev | ||
*.old | ||
*.temp | ||
*.tmp | ||
*.sw* | ||
*.exe | ||
*.out | ||
*.app | ||
*.i*86 | ||
*.x86_64 | ||
*.hex | ||
*.mod* | ||
*.cmd | ||
*.todo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,73 @@ | ||
# | ||
# CYANCORE LICENSE | ||
# Copyrights (C) 2019, Cyancore Team | ||
# Copyrights (C) 2023, Cyancore Team | ||
# | ||
# File Name : help.mk | ||
# Description : This file prints cyancore build help | ||
# Primary Author : Akash Kollipara [[email protected]] | ||
# Organisation : Cyancore Core-Team | ||
# | ||
|
||
.PHONY: help | ||
T_ALLOWLIST += help | ||
|
||
HELP :="\ | ||
==================< Cyancore Make Help >==================\n\ | ||
Usage: make [<project_name>|default|...] (V=|PP=|...)\n\ | ||
\n\ | ||
Examples:\n\ | ||
$$ make demo_avr \# Builds project demo_avr\n\ | ||
$$ make clean \# Cleans the build out folder \n\ | ||
$$ make demo_avr V=1 \# Builds demo_avr with verbose\n\ | ||
$$ make list \# Displays all the available projects\n\ | ||
$$ make get_all_tc \# Fetches all toolchains\n\ | ||
\n\ | ||
----------\n\ | ||
Variables:\n\ | ||
----------\n\ | ||
V=(*0/1) Verbose build logs.\n\ | ||
If 1, the build will spew all the build logs.\n\ | ||
\n\ | ||
PP=(*0/1) PreProcess stage enable.\n\ | ||
If 1, the build engine shall generate/save preprocessed\n\ | ||
file which can be used for debugging.\n\ | ||
\n\ | ||
DEBUG=(*0/1/2/3/5) Enable build with debug code.\n\ | ||
This Flag is used to enable debug routines to log info\n\ | ||
while program executes. Visit libsyslog directory for\n\ | ||
more info.\n\ | ||
\n\ | ||
* - marks default value\n\ | ||
For more variablea that can be passed,\n\ | ||
please visit [DOCS REPO]\n\ | ||
\n\ | ||
--------\n\ | ||
Targets:\n\ | ||
--------\n\ | ||
project_name: Name of the project.\n\ | ||
The build engine will automatically create dynamic target\n\ | ||
using project name. Any following target which will\n\ | ||
depend on project name will be marked with \`~\`.\n\ | ||
\n\ | ||
~ default: The default target of make, this need not be\n\ | ||
passed. This uses multi threaded build.\n\ | ||
~ cyancore: This performs 1 thread build.\n\ | ||
Use this for debug as it will be slow than default.\n\ | ||
~ clean: Cleans the project build artifacts.\n\ | ||
~ check: Perform static analysis.\n\ | ||
clean: Cleans all the build artifacts.\n\ | ||
list: Displays all the projects available for build.\n\ | ||
get_all_tc: Fetches all Toolchains.\n\ | ||
get_avr_tc: Fetches AVR Toolchain.\n\ | ||
get_arm_tc: Fetches ARM Toolchain.\n\ | ||
get_riscv_tc: Fetches RISC-V Toolchain.\n\ | ||
qemu_test: Performs build and runs a demo on qemu.\n\ | ||
\n\ | ||
For more targets/info, please visit [DOCS REPO].\n\ | ||
\n\ | ||
----------------------------------------------------------\n\ | ||
DOCS REPO: https://github.com/VisorFolks/cc_docs\n\ | ||
----------------------------------------------------------\ | ||
" | ||
|
||
help: | ||
less mk/usage_help.txt | ||
echo -e $(HELP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# | ||
# CYANCORE LICENSE | ||
# Copyrights (C) 2019, Cyancore Team | ||
# Copyrights (C) 2023, Cyancore Team | ||
# | ||
# File Name : qemu.mk | ||
# Description : This file helps fetch and build qemu | ||
# Primary Author : Akash Kollipara [[email protected]] | ||
# Organisation : Cyancore Core-Team | ||
# | ||
|
||
T_ALLOWLIST += get_qemu clean_qemu | ||
T_ALLOWLIST += get_qemu clean_qemu qemu_test | ||
|
||
QEMU_CHECKOUT := v7.2.0 | ||
QEMU_PATH := $(TOOLS_ROOT)/qemu | ||
|
@@ -43,3 +43,15 @@ clean_qemu: | |
@echo "< ! > Removing cc-qemu installation ..." | ||
rm -rf $(QEMU_OUT_PATH) $(QEMU_PATH) | ||
@echo "< / > Done!" | ||
|
||
qemu_test: | ||
ifeq ($(realpath $(QEMU_OUT_PATH)/bin/qemu-system-riscv32),) | ||
$(info < x > QEMU is not installed...) | ||
$(info < ! > Please run `make get_qemu`) | ||
$(error < x > Stopping demo simulation!) | ||
endif | ||
make demo_qemu_sifive_e | ||
@echo | ||
@echo "Press Ctrl+A - X to exit!" | ||
@echo | ||
$(QEMU_OUT_PATH)/bin/qemu-system-riscv32 -machine sifive_e -device loader,file=out/qemu_sifive_e_bl/qemu_sifive_e_bl.elf -kernel out/demo_qemu_sifive_e/demo_qemu_sifive_e.elf -nographic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.