From fbf258a361056e803832df080828c1dd75833840 Mon Sep 17 00:00:00 2001 From: Benjamin Fair Date: Mon, 21 Oct 2019 18:45:41 -0700 Subject: meta-nuvoton: add npcm7xx-igps recipe Fetch the XML files which describe how to assemble the bootloaders for an NPCM7XX BMC. Apply a patch which changes the image paths to work with our BitBake build environment. The original files are intended to be used with custom Python build scripts which place the intermediate images at different paths than we use. (From meta-nuvoton rev: 878ffb6430f74d9b3398797a04f429ab2dc3f679) Change-Id: I90877d4f288afc75d6ba29045d13064b610275a6 Signed-off-by: Benjamin Fair Signed-off-by: Brad Bishop --- .../images/npcm7xx-igps-native_02.01.12.bb | 25 ++++ .../0001-Adjust-paths-for-use-with-Bitbake.patch | 145 +++++++++++++++++++++ 2 files changed, 170 insertions(+) create mode 100644 meta-nuvoton/recipes-bsp/images/npcm7xx-igps-native_02.01.12.bb create mode 100644 meta-nuvoton/recipes-bsp/images/npcm7xx-igps/0001-Adjust-paths-for-use-with-Bitbake.patch (limited to 'meta-nuvoton') diff --git a/meta-nuvoton/recipes-bsp/images/npcm7xx-igps-native_02.01.12.bb b/meta-nuvoton/recipes-bsp/images/npcm7xx-igps-native_02.01.12.bb new file mode 100644 index 000000000..c04d92a0a --- /dev/null +++ b/meta-nuvoton/recipes-bsp/images/npcm7xx-igps-native_02.01.12.bb @@ -0,0 +1,25 @@ +SUMMARY = "Image Generation and Programming Scripts for NPCM7XX (Poleg) devices" +DESCRIPTION = "Image Generation and Programming Scripts for NPCM7XX (Poleg) devices" +HOMEPAGE = "https://github.com/Nuvoton-Israel/igps" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" + +SRC_URI = " \ + git://github.com/Nuvoton-Israel/igps \ + file://0001-Adjust-paths-for-use-with-Bitbake.patch \ +" +# tag IGPS_02.01.12 +SRCREV = "2fb1a3b0d61164ed1157e27889a4ec2292cbc760" + +S = "${WORKDIR}/git" + +DEST = "${D}${datadir}/${BPN}" + +do_install() { + install -d ${DEST} + install ImageGeneration/references/BootBlockAndHeader_${IGPS_MACHINE}.xml ${DEST} + install ImageGeneration/references/UbootHeader_${IGPS_MACHINE}.xml ${DEST} + install ImageGeneration/inputs/mergedBootBlockAndUboot.xml ${DEST} +} + +inherit native diff --git a/meta-nuvoton/recipes-bsp/images/npcm7xx-igps/0001-Adjust-paths-for-use-with-Bitbake.patch b/meta-nuvoton/recipes-bsp/images/npcm7xx-igps/0001-Adjust-paths-for-use-with-Bitbake.patch new file mode 100644 index 000000000..118f19964 --- /dev/null +++ b/meta-nuvoton/recipes-bsp/images/npcm7xx-igps/0001-Adjust-paths-for-use-with-Bitbake.patch @@ -0,0 +1,145 @@ +From 215a2d9660a929beae8bc420239467fc9e135b4f Mon Sep 17 00:00:00 2001 +From: Benjamin Fair +Date: Wed, 23 Oct 2019 14:23:08 -0700 +Subject: [PATCH] Adjust paths for use with Bitbake + +Signed-off-by: Benjamin Fair +--- + ImageGeneration/inputs/mergedBootBlockAndUboot.xml | 10 +++++----- + ImageGeneration/references/BootBlockAndHeader_EB.xml | 6 +++--- + .../references/BootBlockAndHeader_RunBMC.xml | 6 +++--- + ImageGeneration/references/UbootHeader_EB.xml | 6 +++--- + ImageGeneration/references/UbootHeader_RunBMC.xml | 6 +++--- + 5 files changed, 17 insertions(+), 17 deletions(-) + +diff --git a/ImageGeneration/inputs/mergedBootBlockAndUboot.xml b/ImageGeneration/inputs/mergedBootBlockAndUboot.xml +index d832f96..f4c7756 100644 +--- a/ImageGeneration/inputs/mergedBootBlockAndUboot.xml ++++ b/ImageGeneration/inputs/mergedBootBlockAndUboot.xml +@@ -18,18 +18,18 @@ + BootBlock + + 0 +- output_binaries/BootBlockAndHeader.bin ++ Poleg_bootblock.bin.full + +- output_binaries/BootBlockAndHeader.bin ++ Poleg_bootblock.bin.full + + + + u-boot + +- output_binaries/BootBlockAndHeader.bin +- output_binaries/UbootAndHeader.bin ++ Poleg_bootblock.bin.full ++ u-boot.bin.full + +- output_binaries/UbootAndHeader.bin ++ u-boot.bin.full + + + +diff --git a/ImageGeneration/references/BootBlockAndHeader_EB.xml b/ImageGeneration/references/BootBlockAndHeader_EB.xml +index 775534f..157535d 100644 +--- a/ImageGeneration/references/BootBlockAndHeader_EB.xml ++++ b/ImageGeneration/references/BootBlockAndHeader_EB.xml +@@ -42,7 +42,7 @@ + 0x144 + 0x4 + +- inputs/Poleg_bootblock.bin ++ Poleg_bootblock.bin + + + +@@ -50,9 +50,9 @@ + Code + + 0x200 +- inputs/Poleg_bootblock.bin ++ Poleg_bootblock.bin + +- inputs/Poleg_bootblock.bin ++ Poleg_bootblock.bin + + + +diff --git a/ImageGeneration/references/BootBlockAndHeader_RunBMC.xml b/ImageGeneration/references/BootBlockAndHeader_RunBMC.xml +index cc719e9..4d1e972 100644 +--- a/ImageGeneration/references/BootBlockAndHeader_RunBMC.xml ++++ b/ImageGeneration/references/BootBlockAndHeader_RunBMC.xml +@@ -42,7 +42,7 @@ + 0x144 + 0x4 + +- inputs/Poleg_bootblock.bin ++ Poleg_bootblock.bin + + + +@@ -50,9 +50,9 @@ + Code + + 0x200 +- inputs/Poleg_bootblock.bin ++ Poleg_bootblock.bin + +- inputs/Poleg_bootblock.bin ++ Poleg_bootblock.bin + + + +diff --git a/ImageGeneration/references/UbootHeader_EB.xml b/ImageGeneration/references/UbootHeader_EB.xml +index 1e72e22..475ec45 100644 +--- a/ImageGeneration/references/UbootHeader_EB.xml ++++ b/ImageGeneration/references/UbootHeader_EB.xml +@@ -42,7 +42,7 @@ + 0x144 + 0x4 + +- inputs/u-boot.bin ++ u-boot.bin + + + +@@ -50,9 +50,9 @@ + Code + + 0x200 +- inputs/u-boot.bin ++ u-boot.bin + +- inputs/u-boot.bin ++ u-boot.bin + + + +diff --git a/ImageGeneration/references/UbootHeader_RunBMC.xml b/ImageGeneration/references/UbootHeader_RunBMC.xml +index 7eb3076..481ed2f 100644 +--- a/ImageGeneration/references/UbootHeader_RunBMC.xml ++++ b/ImageGeneration/references/UbootHeader_RunBMC.xml +@@ -42,7 +42,7 @@ + 0x144 + 0x4 + +- inputs/u-boot.bin ++ u-boot.bin + + + +@@ -50,9 +50,9 @@ + Code + + 0x200 +- inputs/u-boot.bin ++ u-boot.bin + +- inputs/u-boot.bin ++ u-boot.bin + + + +-- +2.24.0.rc0.303.g954a862665-goog + -- cgit v1.2.3