-
Notifications
You must be signed in to change notification settings - Fork 9
Experimental rust support for kirkstone #52
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
base: kirkstone
Are you sure you want to change the base?
Conversation
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
barsnick
left a comment
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.
Initial remarks.
Testing is not done, pending.
|
|
||
| SRC_URI = "git://github.com/EVerest/everest-framework.git;branch=main;protocol=https \ | ||
| file://0001-Set-PYTHON_MODULE_EXTENSION-to-.so-to-avoid-pollutin.patch \ | ||
| file://0001-Fix-everestrs-build-in-yocto.patch \ |
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.
Is this a patch from upstream, from a PR, or special to Yocto?
| } | ||
|
|
||
| # By default cargo installs the modules into /usr/bin which we do not want and fix here | ||
| do_install:append(){ |
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.
Nit whitespace () {
| do_install:append(){ | |
| do_install:append() { |
| bbnote "Installing EVerest Rust module: ${EVEREST_MODULE}" | ||
| mkdir -p ${D}/usr/libexec/everest/modules/${EVEREST_MODULE} | ||
| mv ${D}/usr/bin/${EVEREST_MODULE} ${D}/usr/libexec/everest/modules/${EVEREST_MODULE} | ||
| cp ${WORKDIR}/git/modules/${EVEREST_MODULE_PATH}/manifest.yaml ${D}/usr/libexec/everest/modules/${EVEREST_MODULE} |
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 prefer preserving dates with -p (even if Yocto might modify them later).
| cp ${WORKDIR}/git/modules/${EVEREST_MODULE_PATH}/manifest.yaml ${D}/usr/libexec/everest/modules/${EVEREST_MODULE} | |
| cp -p ${WORKDIR}/git/modules/${EVEREST_MODULE_PATH}/manifest.yaml ${D}/usr/libexec/everest/modules/${EVEREST_MODULE} |
| @@ -0,0 +1,80 @@ | |||
| LICENSE = "Apache-2.0" | |||
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.
Why is this recipe's file name unversioned, while everest-core's is versioned?
| crate://crates.io/zerofrom/0.1.5 \ | ||
| crate://crates.io/zerofrom-derive/0.1.5 \ | ||
| crate://crates.io/zerovec/0.10.4 \ | ||
| crate://crates.io/zerovec-derive/0.10.3 \ |
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 hope this isn't a maintenance nightmare, but I have no experience with Rust recipes. 😅
| if ${@bb.utils.contains('PACKAGECONFIG', 'rust', 'true', 'false', d)}; then | ||
| bbnote "everest-framework rust support enabled" | ||
| mkdir -p ${D}${datadir}/everest | ||
| cp -R ${WORKDIR}/git/everestrs ${D}${datadir}/everest/ |
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.
Preserve, so -rp or the well-known -a.
| cp -R ${WORKDIR}/git/everestrs ${D}${datadir}/everest/ | |
| cp -a ${WORKDIR}/git/everestrs ${D}${datadir}/everest/ |
No description provided.