Skip to content

Commit

Permalink
ppc-sbc-nxp-spsdk-image
Browse files Browse the repository at this point in the history
  • Loading branch information
IvoBCD committed May 16, 2024
1 parent c666993 commit 49f3473
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ default: all

#all:kas-base
all:kas-rpi4
all:kas-nxp-spsdk-rpi4

.PHONY: kas-%
kas-%: scripts/kas/kas-%.yml
Expand Down
39 changes: 39 additions & 0 deletions images/ppc-sbc-nxp-spsdk-image.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# ppc-sbc-nxp-spsdk-image
SUMMARY = "PPC SBC NXP SPSDK image"
DESCRIPTION = " \
Image to be loaded in an Board Computer (SBC) \
embedded in a custom Pogo-Pin Cassette (PPC) used to \
interact with a Device-under-Test (DUT) during production \
firmware programming and In-Circuit Testing (ICT) with \
Blue Clover's Production Line Tool (PLT) with \
the NXP Secure Provisioning SDK (SPSDK). \
"
HOMEPAGE = "https://docs.pltcloud.com/acc/ppc/yocto/"

inherit core-image

IMAGE_FEATURES:append = " debug-tweaks"
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"

# Optional, non-redistributable packages
#IMAGE_INSTALL:append = " nxp-mcu-link"
#IMAGE_INSTALL:append = " nxp-libusbsio-bin"
#IMAGE_INSTALL:append = " nxp-lpcscrypt"
#IMAGE_INSTALL:append = " segger-jlink-ob-nxp"

IMAGE_INSTALL:append:rpi = " rpi-eeprom"

# lrzsz is a unix communication package providing the XMODEM,
# YMODEM ZMODEM file transfer protocols.
IMAGE_INSTALL:append = " lrzsz"

fakeroot do_populate_bcdevices_src () {
# Allow pltagent to use sudo
echo "pltagent ALL=(ALL) NOPASSWD: ALL" >> ${IMAGE_ROOTFS}/etc/sudoers
}
IMAGE_PREPROCESS_COMMAND += "do_populate_bcdevices_src; "
7 changes: 2 additions & 5 deletions images/ppc-sbc-test-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DESCRIPTION = " \
firmware programming and In-Circuit Testing (ICT) with \
Blue Clover's Production Line Tool (PLT). \
"
HOMEPAGE = "https://bcdevices.com/pages/production-line-tool"
HOMEPAGE = "https://docs.pltcloud.com/acc/ppc/yocto/"

inherit core-image

Expand All @@ -17,11 +17,8 @@ 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"

# lrzsz is a unix communication package providing the XMODEM,
# YMODEM ZMODEM file transfer protocols.
IMAGE_INSTALL:append = " lrzsz"
IMAGE_INSTALL:append:rpi = " rpi-eeprom"

fakeroot do_populate_bcdevices_src () {
# Allow pltagent to use sudo
Expand Down
9 changes: 9 additions & 0 deletions scripts/kas/kas-nxp-spsdk-rpi4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# kas-nxp-spsdk-rpi4.yml
---
header:
version: 13
includes:
- scripts/kas/kas-rpi4.yml

target:
- ppc-sbc-nxp-spsdk-image

0 comments on commit 49f3473

Please sign in to comment.