Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clap flags to the riscv example #54

Merged
merged 5 commits into from
Jul 30, 2023
Merged

Add clap flags to the riscv example #54

merged 5 commits into from
Jul 30, 2023

Conversation

onsdagens
Copy link
Collaborator

This adds some flexibility to the RISC-V example.

The flag --toolchain-prefix=$PREFIX allows using toolchain with non-standard naming. The default is riscv32-unknown-elf-

The flag --use-elf allows the user to provide a pre-compiled elf file. --elf-path=$ELF_PATH sets the path to the elf file. This is off by default.

Finally, --asm-path=$ASM_PATH and --ls-path=$LS_PATH allow the user to set the paths to the assembly source file and linker script respectively. The defaults are asm.s and memory.x

Copy link
Owner

@perlindgren perlindgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@perlindgren perlindgren merged commit 98466f6 into master Jul 30, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants