blob: ace078e61ade3c269484d1953d23fa2034537f11 [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() {
Benjamin Fair3a39b8b2022-10-26 17:04:57 +000018 sed -i -e 's,inputs/,,g' ${S}/py_scripts/ImageGeneration/references/*.xml \
19 ${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 Leefedbc0b2023-05-23 10:19:18 +080024 if [ "${TIP_IMAGE}" = "True" ] ; then
25 install py_scripts/ImageGeneration/references/BootBlockAndHeader_${DEVICE_GEN}_${IGPS_MACHINE}.xml ${DEST}
26 else
27 install py_scripts/ImageGeneration/references/BootBlockAndHeader_A1_${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}
32}
33
34inherit native