Skip to content

Commit

Permalink
python3-spsdk v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoBCD committed Apr 18, 2024
1 parent 490cd54 commit c7c1478
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 3 deletions.
4 changes: 3 additions & 1 deletion conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ BBFILE_PATTERN_bcdevices = "^${LAYERDIR}/"
BBFILE_PRIORITY_bcdevices = "5"

LAYERVERSION_bcdevices = "1"
LAYERSERIES_COMPAT_bcdevices = "dunfell kirkstone langdale mickledore nanbield scarthgap"
LAYERSERIES_COMPAT_bcdevices = "dunfell kirkstone langdale mickledore nanbield scarthgap styhead"

LAYERDEPENDS_bcdevices = "core"

#PREFERRED_VERSION_python3-spsdk = "2.0.0"

INHERIT += "image-buildinfo"
1 change: 1 addition & 0 deletions images/ppc-sbc-test-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ IMAGE_FEATURES:append = " empty-root-password"
IMAGE_INSTALL:append = " packagegroup-ppc-sbc"
IMAGE_INSTALL:append = " python3-intelhex"
IMAGE_INSTALL:append = " python3-pyocd"
#IMAGE_INSTALL:append = " python3-spsdk"

fakeroot do_populate_bcdevices_src () {
# Allow pltagent to use sudo
Expand Down
12 changes: 10 additions & 2 deletions recipes-devtools/python3-spsdk/python3-libusbsio_2.1.11.bb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ SRC_URI[sha256sum] = "7d2e81f4aedccbe8a3c327b002c7750dd374abdf1ef6d54780728e653a

inherit pypi pkgconfig python_setuptools_build_meta

COMPATIBLE_HOST = "(aarch64.*|x86_64.*)-linux"

do_install:append() {
rm -rf ${D}/usr/lib/python3.*/site-packages/libusbsio/bin/linux_x86_64/*
#rm -rf ${D}/usr/lib/python3.*/site-packages/libusbsio/bin/linux_aarch64/libusbsio.so
if [ "${TARGET_ARCH}" != "x86_64" ]; then
rm -rf ${D}/usr/lib/python3.*/site-packages/libusbsio/bin/linux_x86_64/*
fi
if [ "${TARGET_ARCH}" != "aarch64" ]; then
rm -rf ${D}/usr/lib/python3.*/site-packages/libusbsio/bin/linux_aarch64/libusbsio.so
fi
rm -rf ${D}/usr/lib/python3.*/site-packages/libusbsio/bin/osx_arm64/*
rm -rf ${D}/usr/lib/python3.*/site-packages/libusbsio/bin/x64/*
rm -rf ${D}/usr/lib/python3.*/site-packages/libusbsio/bin/linux_armv7l/*
Expand All @@ -35,3 +41,5 @@ do_install:append() {
DEPENDS += " python3-setuptools-scm-native"

RDEPENDS:${PN} += " libudev"

PACKAGE_ARCH = "${TUNE_ARCH}"
73 changes: 73 additions & 0 deletions recipes-devtools/python3-spsdk/python3-spsdk_2.1.1.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# python3-spsdk
SUMMARY = "Secure Provisioning SDK (SPSDK) for NXP MCU portfolio."
DESCRIPTION = "\
Secure Provisioning SDK (SPSDK) enables connection and communication \
with target devices for purposes of secure provisioning and programming. \
Delivered as python library with command-line applications for direct \
utilization. \
"
HOMEPAGE = "https://github.com/nxp-mcuxpresso/spsdk"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=6c72a66edfa65948c15795224be74979"
SRC_URI[sha256sum] = "2251c370d7493729295a551564c206381a06e830e366f2f5fd3154172cd10f21"

PYPI_PACKAGE = "spsdk"

inherit pypi setuptools3

RDEPENDS:${PN} += "python3-appdirs"
RDEPENDS:${PN} += "python3-argparse-addons"
RDEPENDS:${PN} += "python3-asn1crypto"
RDEPENDS:${PN} += "python3-astunparse"
RDEPENDS:${PN} += "python3-bincopy"
RDEPENDS:${PN} += "python3-bitstring"
RDEPENDS:${PN} += "python3-capstone"
RDEPENDS:${PN} += "python3-cffi"
RDEPENDS:${PN} += "python3-click"
RDEPENDS:${PN} += "python3-click-command-tree"
RDEPENDS:${PN} += "python3-click-option-group"
RDEPENDS:${PN} += "python3-colorama"
RDEPENDS:${PN} += "python3-commentjson"
RDEPENDS:${PN} += "python3-construct"
RDEPENDS:${PN} += "python3-crcmod"
RDEPENDS:${PN} += "python3-cryptography"
RDEPENDS:${PN} += "python3-deepmerge"
RDEPENDS:${PN} += "python3-fastjsonschema"
RDEPENDS:${PN} += "python3-future"
RDEPENDS:${PN} += "python3-hexdump"
RDEPENDS:${PN} += "python3-humanfriendly"
RDEPENDS:${PN} += "python3-importlib-metadata"
RDEPENDS:${PN} += "python3-intelhex"
RDEPENDS:${PN} += "python3-intervaltree"
RDEPENDS:${PN} += "python3-jinja2"
RDEPENDS:${PN} += "python3-libusb-package"
RDEPENDS:${PN} += "python3-libusbsio"
RDEPENDS:${PN} += "python3-markupsafe"
RDEPENDS:${PN} += "python3-modules"
RDEPENDS:${PN} += "python3-natsort"
RDEPENDS:${PN} += "python3-oscrypto"
RDEPENDS:${PN} += "python3-platformdirs"
RDEPENDS:${PN} += "python3-prettytable"
RDEPENDS:${PN} += "python3-psutil"
RDEPENDS:${PN} += "python3-pyasn1"
RDEPENDS:${PN} += "python3-pycparser"
RDEPENDS:${PN} += "python3-pyelftools"
RDEPENDS:${PN} += "python3-pylink-square"
RDEPENDS:${PN} += "python3-pyocd"
RDEPENDS:${PN} += "python3-pyocd-pemicro"
RDEPENDS:${PN} += "python3-pypemicro"
RDEPENDS:${PN} += "python3-pyserial"
RDEPENDS:${PN} += "python3-pyusb"
RDEPENDS:${PN} += "python3-pyyaml"
RDEPENDS:${PN} += "python3-requests"
RDEPENDS:${PN} += "python3-ruamel.yaml"
RDEPENDS:${PN} += "python3-setuptools"
RDEPENDS:${PN} += "python3-six"
RDEPENDS:${PN} += "python3-sly"
RDEPENDS:${PN} += "python3-sortedcontainers"
RDEPENDS:${PN} += "python3-spsdk"
RDEPENDS:${PN} += "python3-typing-extensions"
RDEPENDS:${PN} += "python3-wcwidth"
RDEPENDS:${PN} += "python3-wheel"
RDEPENDS:${PN} += "python3-yamlloader"
RDEPENDS:${PN} += "python3-zipp"

0 comments on commit c7c1478

Please sign in to comment.