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
diff --git a/meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc b/meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc
index c4202e4..5d64d17 100644
--- a/meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc
+++ b/meta-nuvoton/recipes-bsp/images/npcm8xx-igps.inc
@@ -7,13 +7,17 @@
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}