-
Notifications
You must be signed in to change notification settings - Fork 5
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
Micro support #61
Micro support #61
Conversation
Hi, would it be possible to also include a test? As Sle Micro is kind of an exception among all the codestreams. |
Absolutely. I forgot to do it, but I'll prepare something in the next few days. |
Sure, I can rebase #62 on top of this. |
The changes are straighforward: * Started to handle patchinfoid, along with the IBS project * Changes in the parsing of the supported.csv due to MICRO * Use patchinfoid when querying and download the packages * Use the new config, symvers and vmlinux paths due to usrmerge being enabled on Micro It's still disabled until kernel-livepatch-devel is built accordly. Signed-off-by: Marcos Paulo de Souza <[email protected]>
1e14d78
to
4aa7dde
Compare
Rebased on top of current devel (after merging #63) |
|
||
|
||
@classmethod | ||
def from_data(cls, data): | ||
return cls(data["data_path"], data["lp_path"], data["sle"], data["sp"], | ||
data["update"], data["rt"], data["project"], data["kernel"], | ||
data["archs"], data["files"], data["modules"]) | ||
data["update"], data["rt"], data["project"], data["patchid"], |
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.
FWIW, I believe this breaks when loading codestream.json
files that were stored prior to this patch. I don't know if this can be an issue.
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.
Yes, I should have mentioned. We already had changes like this in the past, so I always suggest that people first finish their livepatch, and then apply the changes when starting to work on something new. I trully hope this is the last of the breaking changes that we need for MICRO...
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.
No problems on my side then!
91d05b1
to
c602d1c
Compare
Hi @marcosps ,
I noticed that the generated LP files externalize the symbols using the old method:
As a side note, and just for the record, I tried running
|
The ipa-clones were built manually, so it's now possible to enable it. Signed-off-by: Marcos Paulo de Souza <[email protected]>
This is needed since we now have _buildenv files that are created on kgraft-patches, and the filenames are using "standard" project, so change it accordly. The name "devbuild" is here since forever. Let's change it and see what happens. Signed-off-by: Marcos Paulo de Souza <[email protected]>
Signed-off-by: Marcos Paulo de Souza <[email protected]>
This is necessay because MICRO has vmlinux.xz on /usr/lib/modules, and we need this to be extracted in order to check for symbols when prepare-tests is called. Signed-off-by: Marcos Paulo de Souza <[email protected]>
This was overly complicated, and the version strings are different for MICRO, so refactor everything to be as generic as possible. Signed-off-by: Marcos Paulo de Souza <[email protected]>
Signed-off-by: Marcos Paulo de Souza <[email protected]>
Signed-off-by: Marcos Paulo de Souza <[email protected]>
Without this fix the symvers files isn't extract on MICRO codestreams. Signed-off-by: Marcos Paulo de Souza <[email protected]>
c602d1c
to
e007ab2
Compare
(@fgyanz Instead of quoting your comment I edited it, sorry....) Ouch... thanks a lot for catching this mistake! MICRO also uses IBT, and I forgot to tag as such. I've fixed it in the latest push. |
The rebase can fail is the target branch wasn't being tracked locally before the clone being done. When the clone succeeds, the origin remote is set to the local directory, so it's cannot find the remote branches on the original remote. The fix in this case is to readd the remote and fetch all codestreams before the rebase. Signed-off-by: Marcos Paulo de Souza <[email protected]>
Signed-off-by: Marcos Paulo de Souza <[email protected]>
LGTM! Code reviewed and tested. |
No description provided.