summaryrefslogtreecommitdiff
path: root/meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc
diff options
context:
space:
mode:
authorBenjamin Fair <benjaminfair@google.com>2022-10-20 00:28:35 +0300
committerBenjamin Fair <benjaminfair@google.com>2022-10-25 23:22:08 +0300
commit5d5c9f1806b3c324a107f98685d1f81f05ca08ba (patch)
tree1fc6c2201bf3724b1f40076794d2c87aa3c5129e /meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc
parentf9c38bfa66ea2bd22fec064bf4f439f181509bc7 (diff)
downloadopenbmc-5d5c9f1806b3c324a107f98685d1f81f05ca08ba.tar.xz
meta-nuvoton: npcm8xx-igps: use sed instead of patch
This method is less likely to break and require fixes when Nuvoton adjusts the XML files. Tested: Still able to build successfully Signed-off-by: Benjamin Fair <benjaminfair@google.com> Change-Id: Ib8e67b67cd837d1d5510ab326012d0644b3a2780
Diffstat (limited to 'meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc')
-rw-r--r--meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc b/meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc
index c4202e49df..5d64d17662 100644
--- a/meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc
+++ b/meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc
@@ -7,13 +7,17 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
IGPS_BRANCH ?= "main"
SRC_URI = " \
git://github.com/Nuvoton-Israel/igps-npcm8xx;branch=${IGPS_BRANCH};protocol=https \
- file://0001-Adjust-paths-for-use-with-Bitbake.patch \
"
S = "${WORKDIR}/git"
DEST = "${D}${datadir}/${BPN}"
+# Adjust paths for use with bitbake
+do_patch() {
+ sed -i -e 's,inputs/,,g' ${S}/py_scripts/ImageGeneration/{references,inputs}/*.xml
+}
+
do_install() {
install -d ${DEST}
install py_scripts/ImageGeneration/references/BootBlockAndHeader_${DEVICE_GEN}_${IGPS_MACHINE}.xml ${DEST}