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

⚠️ [makefile] modify handling of MARCH and MABI variables #184

Merged
merged 3 commits into from
Oct 17, 2021

Conversation

stnolting
Copy link
Owner

@stnolting stnolting commented Oct 15, 2021

The main software/application makefile variables MARCH and MABI are used to define the machine architecture and the machine's architecture binary interface. These variable can be overridden when invoking make to customize compiler settings.

Old Version (current state, pre-PR)

In the current (pre-PR) version these variables also require the -march and -mabi flags, respectively:

  • MARCH=-march=rv32i
  • MABI=-mabi=ilp32

The -march and -mabi flags should not be used here.

New Version (this PR)

This PR modifies the usage of those makefile flags as this seems to be more straightforward (and much cleaner):

  • MARCH=rv32i
  • MABI=ilp32

⚠️ Backwards Compatibility

The modifications are not backward-compatible! Scripts that invoke the main software makefile need to be adapted.


@umarcor
Could you have a quick look that I did not oversee something? 😉

Pre-commit usage: `MARCH=-march=rv32i`, the `-march` should not be here

Post-commit usage: `MARCH=rv32i`, this is more straightforward

Same for `MABI=-mabi=...` -> `MABI=...`
@stnolting stnolting changed the title [makefile] modify handling of MARCH and MABI variables ⚠️ [makefile] modify handling of MARCH and MABI variables Oct 15, 2021
@stnolting stnolting marked this pull request as ready for review October 15, 2021 15:38
CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@umarcor umarcor left a comment

Choose a reason for hiding this comment

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

LGTM!

@stnolting stnolting merged commit 126054b into master Oct 17, 2021
@stnolting stnolting deleted the make_march_variable branch October 17, 2021 04:19
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