scipy: Added extra recipe for native package#16
Conversation
Signed-off-by: Marek Belisko <marek.belisko@gmail.com>
|
Same as #15 just for master |
There was a problem hiding this comment.
Instead of having a separate scipy-native recipe, let's just use the BBCLASSEXTENDS mechanism to add the -native variant.
So you'll just add the following to the end of the python3-scipy_1.5.3.bb file:
BBCLASSEXTEND =+ "native"
You actually don't even need to redefine DEPENDS for the native recipe, because Yocto automatically appends -native to all of the values in DEPENDS when building the -native variant.
Other than that, the rest of the recipe looks identical to me.
|
Original native recipe doesn't build on dunfell. I fails with some strange error which was caused by some cross-compilation flags. I basically extracted it and drop one flag + setup proper DEPENDS native flags. |
|
You can use overrides to set variables differently based on whether or not you're building the native package: This is preferable to having two separate recipes. There are plenty of examples of this in the poky repo and in the meta-openembedded layer. |
|
Yes I know. I was in hurry to compile scikit-learn so this was the first shot which works. Thanks for comments I'll give a try what was suggested and post an update. 👍 |
Signed-off-by: Marek Belisko marek.belisko@gmail.com