How to build a native python extension
Hi,
I add "inherit distutils" in my recipe.
It will make my recipe depends on "python-native" and "python". Finally it use arm-gcc to build the python extension. But I want to use x86-gcc to build a native python extension. How to do this?
Best Regards
cddatemp
inherit native to make the recipe native.
Ross
Quoted 18 lines · cddatemp
Hi,
I add "inherit distutils" in my recipe.
It will make my recipe depends on "python-native" and "python". Finally it use arm-gcc to build the python extension. But I want to use x86-gcc to build a native python extension. How to do this?Best Regards
cddatemp--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
At 2017-11-20 19:35:31, "Burton, Ross" <[email protected]> wrote:
inherit native to make the recipe native.
It really help, when my recipe is just a helloworld python extension. Unfortunately, this recipe is u-boot.
It will compile a native python extension named "libfdt", then use it to compile u-boot. So I cannot add "inherit native" to the u-boot recipe.
Ross
On 20 November 2017 at 11:33, cddatemp <[email protected]> wrote:
Hi,
I add "inherit distutils" in my recipe.
It will make my recipe depends on "python-native" and "python". Finally it use arm-gcc to build the python extension. But I want to use x86-gcc to build a native python extension. How to do this?
Best Regards
cddatemp
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
There's numerous u-boot recipes out there, including on in oe-core. Ideally customise the u-boot in oe-core instead of writing your own recipe from scratch.
Ross
Quoted 34 lines · cddatemp
At 2017-11-20 19:35:31, "Burton, Ross" <[email protected]> wrote:
inherit native to make the recipe native.
It really help, when my recipe is just a helloworld python extension. Unfortunately, this recipe is u-boot.
It will compile a native python extension named "libfdt", then use it to compile u-boot.
So I cannot add "inherit native" to the u-boot recipe.Ross
Quoted 18 lines · cddatemp
Hi,
I add "inherit distutils" in my recipe.
It will make my recipe depends on "python-native" and "python". Finally it use arm-gcc to build the python extension. But I want to use x86-gcc to build a native python extension. How to do this?Best Regards
cddatemp--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto
Quoted 4 lines · Ross
There's numerous u-boot recipes out there, including on in oe-core. Ideally customise the u-boot in oe-core instead of writing your own recipe from scratch.
Ross
Thanks for your help, I finally solved this problem as below:
# u-boot_2017.09.bbappend # base recipe: meta/recipes-bsp/u-boot/u-boot_2017.09.bb # base branch: rocko #
inherit pythonnative
DEPENDS += "swig-native"
do_compile_prepend() {
export STAGING_LIBDIR="${STAGING_LIBDIR_NATIVE}"
export STAGING_INCDIR="${STAGING_INCDIR_NATIVE}"
}Then I can build u-boot for allwinner a20. Maybe this is useful for x86 too according to [1].
[1] u-boot commit e38ffc42674fedc750ca895046be0bd983b56dd5
Best Regards
cddatemp
Quoted 28 lines · cddatemp
Quoted 27 lines
Quoted 1 line · Ross
inherit native to make the recipe native.
It really help, when my recipe is just a helloworld python extension. Unfortunately, this recipe is u-boot.
It will compile a native python extension named "libfdt", then use it to compile u-boot. So I cannot add "inherit native" to the u-boot recipe.Quoted 19 lines
Ross
Quoted 16 lines · cddatemp
Hi,
I add "inherit distutils" in my recipe.
It will make my recipe depends on "python-native" and "python". Finally it use arm-gcc to build the python extension. But I want to use x86-gcc to build a native python extension. How to do this?Best Regards
cddatemp--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto