-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create an tbf parsing crate #1 #2
Conversation
The tbf parser should be in its own crate, different from elf2tab. I would create a wrokspace in the root folder (https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html) and place the two crates, elf2tab and tbfparser, in the workspace. Adapt the readme to this. |
I have created the workspace and moved both crates into the workspace. Also updated the readme file for compilation instructions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the workspace to the root.
I have moved the workspace to the root level and removed the utils.rs from the elf2tab crate, to remove code duplication (utils.rs can be also found in the tbfparser crate as a public module). However I do not find something in the README file to modify, should I create a new section to write explicity that the repository contains one workspace with two crates? P.S: I have also edited the PR overview |
I think this is a good solution. |
I created a subsubsection under the Details section from the README and described very shortly how the project is structured. |
Formatting fails, please run |
Please open a pull request to the upstream repository and post here a link. |
Sorry for the question, how can I open the pull request from a fork that is forked from the main repository? Or it should be merged to this upstream firstly and then to the main repository. Thanks for the answer |
Open a new pull request and select the upstream (original) repository. You should have a dropdown there. |
Link to the pull request : tock#62 |
Hello, sorry for the question. I wanted to ask if is anything more to do on this pull request, I do not seem to understand what I should do next by reading the bradjc's comment from the main stream. Thanks in advice! |
What Brad was suggesting is that you take a look at tock-tbf crate and see if we can merge this. This may or not be possible, as tock-tbf does not depend on the std crate ( |
Program header load replacing section placement guesses.
Any update here? |
I have looked over the tock-tbf and revised the tbfparser and for me, it seems impossible to modify the tbfparser code in order no to use the standard library (#no-std), as suggested bradjc creating a separate repository just for the tbfparser would make the deal. |
One approach would be to use the data types from the tbf crate defined in tock instead of redefining them. What about adding the crate in the tock repository, next to the tbf parser? |
I closed the last pull request and I will work on the new idea that you have suggested, on using the types defined in the tock/libraries/tbfparser
|
Pull Request Overview
The idea of this pull request is to set the foundation for building a rust version of
tockloader
. The arguments for this are:pip
, otherwise it needspip --user
orsudo
.Created a new workspace
Modifications in the elf2tab
Creating the new library crate tbfparser
Testing Strategy
This pull request was tested by compiling.
Copiled the project in the workspace using cargo build, resulting in elf2tab elf file.
TODO or Help Wanted
N/A
Documentation Updated
Added a new subsubsection in the elf2tabDetails to describe the project's structure. (workflow)