如何在yocto build中添加python模块

时间:2018-08-04 03:13:47

标签: python yocto recipe

我想将此python模块添加到我的构建映像中( yocto rocko版本):

  • 蟒蛇旋风,
  • python txaio,
  • python txJSON-RPC,
  • python超链接。

我曾经使用过 recipe工具,并尝试了以下链接: How do I add more python modules to my yocto/openembedded project?

但是 yocto 无法解析存储在本地配置文件(local.conf)中的内容。

如何添加这些或任何python包?

$ cat local.conf 

MACHINE ??= 'var-som-mx6'
DISTRO ?= 'fslc-x11'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"
IMAGE_INSTALL_append = " tcpdump"
IMAGE_INSTALL_append = " python"
IMAGE_INSTALL_append = " python-pip"
IMAGE_INSTALL_append = " firefox"
IMAGE_INSTALL_append = " sqlite3"
IMAGE_INSTALL_append = " python-pysqlite"
IMAGE_INSTALL_append = " zlib"
IMAGE_INSTALL_append = " libpcre"
IMAGE_INSTALL_append = " openssl"
IMAGE_INSTALL_append = " python-redis"
IMAGE_INSTALL_append = " python-tornado-redis"
IMAGE_INSTALL_append = " nginx"
IMAGE_INSTALL_append = " python-jsonschema"
IMAGE_INSTALL_append = " jsonrpc"
IMAGE_INSTALL_append = " python-tornado"
IMAGE_INSTALL_append = " python-singledispatch"
IMAGE_INSTALL_append = " python-pyopenssl"
IMAGE_INSTALL_append = " python-pycparser"
IMAGE_INSTALL_append = " python-pyasn1"
IMAGE_INSTALL_append = " python-ipaddress"
IMAGE_INSTALL_append = " python-idna"
IMAGE_INSTALL_append = " python-futures"
IMAGE_INSTALL_append = " python-functools32"
IMAGE_INSTALL_append = " python-enum34"
IMAGE_INSTALL_append = " python-cryptography"
IMAGE_INSTALL_append = " python-cffi"
IMAGE_INSTALL_append = " python-certifi"
IMAGE_INSTALL_append = " python-backports-abc"
IMAGE_INSTALL_append = " python-asn1crypto"
IMAGE_INSTALL_append = " python-setuptools"
IMAGE_INSTALL_append = " python-twisted-core"
IMAGE_INSTALL_append = " python-automat"
IMAGE_INSTALL_append = " python-txaio"

LICENSE_FLAGS_WHITELIST += "commercial_libav commercial_x264"
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

...
following error comes
ERROR: Nothing RPROVIDES 'python-txaio' (but /home/administrator/var-fslc-yocto/sources/meta-variscite-fslc/recipes-fsl/images/fsl-image-gui.bb RDEPENDS on or otherwise requires it)

我为 python-txaio 添加了类似于 python-six 的食谱,并分别添加了 txaio-18.7.1.tar.gz 进入下载文件夹。

谢谢。

0 个答案:

没有答案