Skip to content

Conversation

@hikinggrass
Copy link
Member

No description provided.

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>
@hikinggrass hikinggrass requested a review from dorezyuk April 16, 2025 13:17
Copy link
Contributor

@barsnick barsnick left a 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 \
Copy link
Contributor

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(){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit whitespace () {

Suggested change
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}
Copy link
Contributor

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).

Suggested change
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"
Copy link
Contributor

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 \
Copy link
Contributor

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/
Copy link
Contributor

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.

Suggested change
cp -R ${WORKDIR}/git/everestrs ${D}${datadir}/everest/
cp -a ${WORKDIR}/git/everestrs ${D}${datadir}/everest/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants