-
Notifications
You must be signed in to change notification settings - Fork 212
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
[sw/example] add common.mk #118
Conversation
Good one! I always wanted to simplify that because the current structure requires to change every single makefile if there are new flags to be added. 👍 I will move Also I think that all software projects should reference the central makefile - so also the bootloader and the freeRTOS demo. There are some minor edits required in order to pass the correct flags but I will do that. What do you think? Are you ok with this? |
I had some further enhancements in branch https://github.com/umarcor/neorv32/tree/sw-common-mv, because I expected to have this PR merged as is, and discuss those afterwards. Anyway, I now rebased that branch on top of the commits you pushed here, and then updated this PR.
I did that in
I would prefer some time to reply to these type of proposals.... I saw the notification, I came to the computer, but by the time I sat down you had already pushed to this PR/branch! The main difference is that I |
Sorry for that 😅
I think it is cleaner to have linker script, start-up code and main makefile combined in one folder. Especially because there will be at least one |
No worries 😉 This was an easy conflict 😄
There will be five files at most:
I believe that Anyway, I will reorder the commits, so you can remove the last. |
I see what you mean. I just wanted to keep things at a simple level. Beginners do not need to interact with the main makefile, the start-up code or the linker script. So these are "insulated" in a specific folder. Furthermore, there might be several versions of the start-up code and the linker script some day - each one optimized for a certain "abstract setup". (Sorry for being pedantic sometimes - I just like having files only in leaf directories 😄) I think the README is good here, because it gives you a brief overview - especially if you are browsing through the repository on GitHub. The makefile provides a help target that should give some basic information for all target. So I would not put to much information here, because it is all in the data sheet. |
Convinced! I will change it when I rebase this after #117 is merged. |
This is now rebased and all the common files are kept in |
CI passed successfully. |
Great thanks! |
In order to reduce the maintenance burden of the
sw/example/**/makefile
files, in this PRsw/example/common.mk
is created, and it is included by all the others.