Benjamin Fair | f90af74 | 2022-10-18 20:33:29 +0000 | [diff] [blame] | 1 | SUMMARY = "Image Generation and Programming Scripts for NPCM8XX (Arbel) devices" |
| 2 | DESCRIPTION = "Image Generation and Programming Scripts for NPCM8XX (Arbel) devices" |
| 3 | HOMEPAGE = "https://github.com/Nuvoton-Israel/igps-npcm8xx" |
| 4 | LICENSE = "GPLv2" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 6 | |
| 7 | IGPS_BRANCH ?= "main" |
| 8 | SRC_URI = " \ |
| 9 | git://github.com/Nuvoton-Israel/igps-npcm8xx;branch=${IGPS_BRANCH};protocol=https \ |
Benjamin Fair | f90af74 | 2022-10-18 20:33:29 +0000 | [diff] [blame] | 10 | " |
| 11 | |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
| 14 | DEST = "${D}${datadir}/${BPN}" |
| 15 | |
Benjamin Fair | 5d5c9f1 | 2022-10-19 21:28:35 +0000 | [diff] [blame] | 16 | # Adjust paths for use with bitbake |
| 17 | do_patch() { |
Benjamin Fair | 3a39b8b | 2022-10-26 17:04:57 +0000 | [diff] [blame] | 18 | sed -i -e 's,inputs/,,g' ${S}/py_scripts/ImageGeneration/references/*.xml \ |
| 19 | ${S}/py_scripts/ImageGeneration/inputs/*.xml |
Benjamin Fair | 5d5c9f1 | 2022-10-19 21:28:35 +0000 | [diff] [blame] | 20 | } |
| 21 | |
Benjamin Fair | f90af74 | 2022-10-18 20:33:29 +0000 | [diff] [blame] | 22 | do_install() { |
| 23 | install -d ${DEST} |
Tim Lee | fedbc0b | 2023-05-23 10:19:18 +0800 | [diff] [blame] | 24 | 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 Fair | f90af74 | 2022-10-18 20:33:29 +0000 | [diff] [blame] | 29 | 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 | |
| 34 | inherit native |