-
Notifications
You must be signed in to change notification settings - Fork 3k
Adi cog candidate #5097
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
Adi cog candidate #5097
Conversation
Committer: Edmund Hsu Changes to be committed: modified: objects.h new file: trng_api.c
Committer: Hsu <[email protected]> Changes to be committed: modified: targets.json
Changes to be committed: modified: .mbedignore
…ectly; - Increased the TRNG counter value to generate better random values; - Moved the TRNG enable and counter value setting calls to the init routine as they only need to be done once.
- Fixed some issues with sleep module; - Modified gpio_api.c to use global gpio driver memory which is now declared in a separate file.
…on of large bin files." This reverts commit 24f422e55bd8f1134e84c478a772ba8fd90a3f10.
2 renamed LED pin names for EVAL-ADICUP3029 3 enabled greentea test automation for EVAL-ADICUP3029
…the following test suite: mbed-os-rtos-rtx-target_cortex_m-tests-memory-heap_and_stack
mbed-os-tests-events-timing
…ntiate hardware specific configurations
- Changed ADC function to use non-Arduino pin names.
Conflicts: targets/targets.json
… to the github main trunk.
Hi @dave-wu. Thanks for the contribution! This is HUGE! I have several recommendations to get this in faster:
Now some information on what we can accept. In order to accept any PR into a patch release, we require that the PR does not contain merge commits. By the looks of it, your git history is somewhere between 10 and 20 percent merge commits. It should be possible to rebase these out. Further, we can only accept PRs based on master. It looks to me like you merged with a release branch at some point. Phew. I recommend breaking this PR into multiple PRs that introduce one thing at a time. This will both make the rebasing easier by reducing the number of commits in each rebase smaller, and make the PRs much easier to review. If you need help with this, just let us know. |
I'm curious, what's the "candidate" in the title supposed to indicate? |
Hi Jimmy, Thanks for the feedback. Based on the requirements for merging, would the following method be acceptable?
I think this may be a lot easier than going back and rebasing all the merges/branches etc. and is less error prone. Do you think this approach is workable? BTW, the name "candidate" was there just to let myself know this is to be used for the pull request, all the files are working and are in release form. Thanks |
Yes. The only problem you might encounter is losing your git history. If that does not bother you, then I see no downsides.
Yes.
Thanks for the clarification. For future reference, we take all pull requests as if they were "candidates" by your definition. |
Hi Jimmy, Is there a way to remove my existing dave-wu/mbed-os fork so I can create a new one from the main mbed-os repo? Or can I just fork on top of it and that will overwrite the existing one? Thanks. |
@dave-wu There is no way to do what you are asking for all at once. Since github just uses git underneath, you can just push (or force push, that is `git push -f) over any branch on your fork. If you provide me with some detail about what you are trying to do, I can offer some suggestions on ways to accomplish it. I'm asking for more high level goals, such as "break a single branch into multiple branches, each containing some of the commits" or "Rewrite git history to look like no merges took place". Explicitly:
You can technically do this, but I do not recommend it. It is generally more instructive to try to recover the situation you are it. You would have to go to the settings panel and delete the repo.
You can't do this at all. You would have to either force push a branch to match the original repo or delete your fork (as above) and re-fork it. I recommend using git to force push a branch back to it's original state, in preference to the other option I outlined, as it's less destructive in that it only affects one branch. These questions indicate to me that you want to rewrite your git history to change the commits in this Pull Request. How about you just try doing that directly with Some resources on rebasing can be found here. |
Hi Jimmy, Since the current fork dave-wu/mbed-os.git has all the undesirable merges and branches etc. that you mentioned so I am thinking of:
So based on what you said, my understanding is that the best way to get the existing forked repo (i.e. dave-wu/mbed-os.git) to match exactly the main mbed-os trunk (without any of my previous merges and branches) is to clone a fresh copy of the main mbed-os repo and then do a 'push -f ' it to the existing fork to overwrite it, as opposed to deleting the fork and re-forking, is this correct? Thanks. |
This is an unnecessary step, and not productive
I'm just confused by this sentence.
Yes. Although, there is no such branch called "trunk". Generally SVN and CVS calls things "trunk" and git calls them "master". |
@theotherjimmy: I have just made a new pull request PR #5137 for just the EV-COG-AD3029LZ board, this should be clean enough to be merged. I haven't yet made a pull request for the EV-COG-AD4050LZ. Should I hold off the pull request for the EV-COG-AD4050LZ until you have merged the EV-COG-AD3029LZ code? Thanks. |
That's up to you. It may be easier for you to deal with one PR at once. It may get in faster to do both at the same time. |
Notes:
Description
Add support for the ADI COG boards: EV-COG-AD3029LZ and EV-COG-AD4050LZ
Status
READY
Migrations
If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.
NO
Related PRs
None
Todos
Deploy notes
None
Steps to test or reproduce
N/A