Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
SUMMARY = "Simple test application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://<myfirmware>"
S = "${WORKDIR}"
INSANE_SKIP:${PN} = "arch"
do_install() {
 install -d ${D}/lib/firmware
 install -m 0644 ${S}/<myfirmware> ${D}/lib/firmware/<myfirmware>
}
FILES_:${PN} = "/lib/firmware/<myfirmware>"
Info

For OpenAMP version 2022.1 onwards use “:” i.e. INSANE_SKIP:${PN}. For versions 2021.2 and older releases use “_” i.e. INSANE_SKIP_${PN}.

Adding User Application

Copy the code files and respective Makefile into this directory:

Code Block
$ cp <code-files> project-spec/meta-user/recipes-apps/<app-name>/files/

...

.

...

Modify the <plnx-user-proj-root>/project-spec/meta-user/recipes-apps/<app-name>/<app-name>.bb to have this user application in the RootFS.

for <app-name>.bb example,

Code Block
SUMMARY = "Simple test application" SECTION = "PETALINUX/apps" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" SRC_URI = "file://<makefile> \ file://<code-file> \ " S = "${WORKDIR}" do_install() { install -d ${D}/usr/bin install -m 0755 <app-name> ${D}/usr/bin/<app-name> } FILES_${PN} = "/usr/bin/<app-name>"

Building Firmware or User Applications

...