blob: 7c043f808f366dd49a602e75403556a0b07e89bd [file] [log] [blame]
Benjamin Fairf90af742022-10-18 20:33:29 +00001SUMMARY = "Image Generation and Programming Scripts for NPCM8XX (Arbel) devices"
2DESCRIPTION = "Image Generation and Programming Scripts for NPCM8XX (Arbel) devices"
3HOMEPAGE = "https://github.com/Nuvoton-Israel/igps-npcm8xx"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
6
7IGPS_BRANCH ?= "main"
8SRC_URI = " \
9 git://github.com/Nuvoton-Israel/igps-npcm8xx;branch=${IGPS_BRANCH};protocol=https \
Benjamin Fairf90af742022-10-18 20:33:29 +000010"
11
12S = "${WORKDIR}/git"
13
14DEST = "${D}${datadir}/${BPN}"
15
Benjamin Fair5d5c9f12022-10-19 21:28:35 +000016# Adjust paths for use with bitbake
17do_patch() {
Tim Leefd7b67d2024-02-19 17:13:09 +080018 sed -i -e 's,output_binaries/tmp/,,g' ${S}/py_scripts/ImageGeneration/references/*.xml \
Benjamin Fair3a39b8b2022-10-26 17:04:57 +000019 ${S}/py_scripts/ImageGeneration/inputs/*.xml
Benjamin Fair5d5c9f12022-10-19 21:28:35 +000020}
21
Benjamin Fairf90af742022-10-18 20:33:29 +000022do_install() {
23 install -d ${DEST}
Tim Leed52b0f62023-05-29 10:12:08 +080024 if [ "${TIP_IMAGE}" = "True" ] ; then
25 install py_scripts/ImageGeneration/references/BootBlockAndHeader_${DEVICE_GEN}_${IGPS_MACHINE}.xml ${DEST}
Tim Leefedbc0b2023-05-23 10:19:18 +080026 else
Tim Leed52b0f62023-05-29 10:12:08 +080027 install py_scripts/ImageGeneration/references/BootBlockAndHeader_${DEVICE_GEN}_${IGPS_MACHINE}_NoTip.xml ${DEST}
28 fi
Benjamin Fairf90af742022-10-18 20:33:29 +000029 install py_scripts/ImageGeneration/references/UbootHeader_${DEVICE_GEN}.xml ${DEST}
30 install py_scripts/ImageGeneration/inputs/BL31_AndHeader.xml ${DEST}
31 install py_scripts/ImageGeneration/inputs/OpTeeAndHeader.xml ${DEST}
Tim Leed52b0f62023-05-29 10:12:08 +080032 install py_scripts/ImageGeneration/asn1.py ${DEST}
33 install py_scripts/ImageGeneration/BinarySignatureGenerator.py ${DEST}
34}
35
36inherit deploy
37
38do_deploy () {
39 # copy default keys to deploy folder
40 install -d ${DEPLOYDIR}
41 cp -vur py_scripts/ImageGeneration/keys/${SIGN_TYPE} ${DEPLOYDIR}/
Benjamin Fairf90af742022-10-18 20:33:29 +000042}
43
44inherit native
Tim Leed52b0f62023-05-29 10:12:08 +080045
46addtask deploy before do_build after do_compile