Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
SUMMARY = "XML-based binary image generator"
|
||||
DESCRIPTION = "XML-based binary image generator"
|
||||
HOMEPAGE = "https://github.com/Nuvoton-Israel/bingo"
|
||||
PR = "r1"
|
||||
PV = "0.1+git${SRCPV}"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
SRC_URI = "git://github.com/Nuvoton-Israel/bingo;branch=master;protocol=https"
|
||||
SRCREV = "7c35658b667d04d6cc78b7ed569f4401168ae133"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
do_install () {
|
||||
|
||||
install -d "${D}${bindir}"
|
||||
install deliverables/linux/Release/bingo ${D}${bindir}
|
||||
}
|
||||
|
||||
inherit native
|
||||
@@ -0,0 +1,26 @@
|
||||
SUMMARY = "Primary bootloader for NPCM7XX (Poleg) devices"
|
||||
DESCRIPTION = "Primary bootloader for NPCM7XX (Poleg) devices"
|
||||
HOMEPAGE = "https://github.com/Nuvoton-Israel/npcm7xx-bootblock"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
FILENAME = "Poleg_bootblock_${PV}.bin"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
SRCREV = "4fa655f95547b927b0133c8ed96c88c5d14ac7b3"
|
||||
SRC_URI = " \
|
||||
https://raw.githubusercontent.com/Nuvoton-Israel/bootblock/${SRCREV}/LICENSE;name=lic \
|
||||
https://github.com/Nuvoton-Israel/bootblock/releases/download/BootBlock_${PV}/Poleg_bootblock_basic.bin;downloadfilename=${FILENAME};name=bin \
|
||||
"
|
||||
|
||||
SRC_URI[lic.md5sum] = "b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
SRC_URI[bin.sha256sum] = "a33f3fe96786929a8f35e986ae76bbd1bf53459770a6ece7d6777dced1d62ddf"
|
||||
|
||||
inherit deploy
|
||||
|
||||
do_deploy () {
|
||||
install -D -m 644 ${WORKDIR}/${FILENAME} ${DEPLOYDIR}/Poleg_bootblock.bin
|
||||
}
|
||||
|
||||
addtask deploy before do_build after do_compile
|
||||
@@ -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 = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/Nuvoton-Israel/igps;branch=master;protocol=https \
|
||||
file://0001-Adjust-paths-for-use-with-Bitbake.patch \
|
||||
"
|
||||
# tag IGPS_02.01.18
|
||||
SRCREV = "e0fc2ba58d561220a957bc06aefe1ac7f6e96126"
|
||||
|
||||
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
|
||||
+145
@@ -0,0 +1,145 @@
|
||||
From 215a2d9660a929beae8bc420239467fc9e135b4f Mon Sep 17 00:00:00 2001
|
||||
From: Benjamin Fair <benjaminfair@google.com>
|
||||
Date: Wed, 23 Oct 2019 14:23:08 -0700
|
||||
Subject: [PATCH] Adjust paths for use with Bitbake
|
||||
|
||||
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
|
||||
---
|
||||
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 @@
|
||||
<name>BootBlock</name> <!-- name of field -->
|
||||
<config>
|
||||
<offset>0</offset> <!-- offset in the header -->
|
||||
- <size format='FileSize'>output_binaries/BootBlockAndHeader.bin</size> <!-- size in the header -->
|
||||
+ <size format='FileSize'>Poleg_bootblock.bin.full</size> <!-- size in the header -->
|
||||
</config>
|
||||
- <content format='FileContent'>output_binaries/BootBlockAndHeader.bin</content> <!-- content the user should fill -->
|
||||
+ <content format='FileContent'>Poleg_bootblock.bin.full</content> <!-- content the user should fill -->
|
||||
</BinField>
|
||||
|
||||
<BinField>
|
||||
<name>u-boot</name> <!-- name of field -->
|
||||
<config>
|
||||
- <offset format='FileSize' align='0x1000'>output_binaries/BootBlockAndHeader.bin</offset> <!-- offset in the header -->
|
||||
- <size format='FileSize'>output_binaries/UbootAndHeader.bin</size> <!-- size in the header -->
|
||||
+ <offset format='FileSize' align='0x1000'>Poleg_bootblock.bin.full</offset> <!-- offset in the header -->
|
||||
+ <size format='FileSize'>u-boot.bin.full</size> <!-- size in the header -->
|
||||
</config>
|
||||
- <content format='FileContent'>output_binaries/UbootAndHeader.bin</content> <!-- content the user should fill -->
|
||||
+ <content format='FileContent'>u-boot.bin.full</content> <!-- content the user should fill -->
|
||||
</BinField>
|
||||
|
||||
</Bin_Ecc_Map>
|
||||
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 @@
|
||||
<offset>0x144</offset>
|
||||
<size>0x4</size>
|
||||
</config>
|
||||
- <content format='FileSize'>inputs/Poleg_bootblock.bin</content> <!-- content the user should fill -->
|
||||
+ <content format='FileSize'>Poleg_bootblock.bin</content> <!-- content the user should fill -->
|
||||
</BinField>
|
||||
|
||||
<BinField>
|
||||
@@ -50,9 +50,9 @@
|
||||
<name>Code</name> <!-- name of field -->
|
||||
<config>
|
||||
<offset>0x200</offset>
|
||||
- <size format='FileSize'>inputs/Poleg_bootblock.bin</size> <!-- size in the header calculated by tool-->
|
||||
+ <size format='FileSize'>Poleg_bootblock.bin</size> <!-- size in the header calculated by tool-->
|
||||
</config>
|
||||
- <content format='FileContent'>inputs/Poleg_bootblock.bin</content> <!-- content the user should fill -->
|
||||
+ <content format='FileContent'>Poleg_bootblock.bin</content> <!-- content the user should fill -->
|
||||
</BinField>
|
||||
|
||||
<!-- BMC optional fields -->
|
||||
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 @@
|
||||
<offset>0x144</offset>
|
||||
<size>0x4</size>
|
||||
</config>
|
||||
- <content format='FileSize'>inputs/Poleg_bootblock.bin</content> <!-- content the user should fill -->
|
||||
+ <content format='FileSize'>Poleg_bootblock.bin</content> <!-- content the user should fill -->
|
||||
</BinField>
|
||||
|
||||
<BinField>
|
||||
@@ -50,9 +50,9 @@
|
||||
<name>Code</name>
|
||||
<config>
|
||||
<offset>0x200</offset>
|
||||
- <size format='FileSize'>inputs/Poleg_bootblock.bin</size> <!-- size in the header calculated by tool-->
|
||||
+ <size format='FileSize'>Poleg_bootblock.bin</size> <!-- size in the header calculated by tool-->
|
||||
</config>
|
||||
- <content format='FileContent'>inputs/Poleg_bootblock.bin</content> <!-- content the user should fill -->
|
||||
+ <content format='FileContent'>Poleg_bootblock.bin</content> <!-- content the user should fill -->
|
||||
</BinField>
|
||||
|
||||
<!-- BMC optional fields -->
|
||||
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 @@
|
||||
<offset>0x144</offset> <!-- offset in the header -->
|
||||
<size>0x4</size> <!-- size in the header -->
|
||||
</config>
|
||||
- <content format='FileSize'>inputs/u-boot.bin</content> <!-- content the user should fill -->
|
||||
+ <content format='FileSize'>u-boot.bin</content> <!-- content the user should fill -->
|
||||
</BinField>
|
||||
|
||||
<BinField>
|
||||
@@ -50,9 +50,9 @@
|
||||
<name>Code</name> <!-- name of field -->
|
||||
<config>
|
||||
<offset>0x200</offset> <!-- offset in the header -->
|
||||
- <size format='FileSize'>inputs/u-boot.bin</size> <!-- size in the header calculated by tool-->
|
||||
+ <size format='FileSize'>u-boot.bin</size> <!-- size in the header calculated by tool-->
|
||||
</config>
|
||||
- <content format='FileContent'>inputs/u-boot.bin</content> <!-- content the user should fill -->
|
||||
+ <content format='FileContent'>u-boot.bin</content> <!-- content the user should fill -->
|
||||
</BinField>
|
||||
|
||||
<!-- BMC optional fields -->
|
||||
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 @@
|
||||
<offset>0x144</offset> <!-- offset in the header -->
|
||||
<size>0x4</size> <!-- size in the header -->
|
||||
</config>
|
||||
- <content format='FileSize'>inputs/u-boot.bin</content> <!-- content the user should fill -->
|
||||
+ <content format='FileSize'>u-boot.bin</content> <!-- content the user should fill -->
|
||||
</BinField>
|
||||
|
||||
<BinField>
|
||||
@@ -50,9 +50,9 @@
|
||||
<name>Code</name> <!-- name of field -->
|
||||
<config>
|
||||
<offset>0x200</offset> <!-- offset in the header -->
|
||||
- <size format='FileSize'>inputs/u-boot.bin</size> <!-- size in the header calculated by tool-->
|
||||
+ <size format='FileSize'>u-boot.bin</size> <!-- size in the header calculated by tool-->
|
||||
</config>
|
||||
- <content format='FileContent'>inputs/u-boot.bin</content> <!-- content the user should fill -->
|
||||
+ <content format='FileContent'>u-boot.bin</content> <!-- content the user should fill -->
|
||||
</BinField>
|
||||
|
||||
<!-- BMC optional fields -->
|
||||
--
|
||||
2.24.0.rc0.303.g954a862665-goog
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
SUMMARY = "Primary bootloader for NPCM8XX (Arbel) devices"
|
||||
DESCRIPTION = "Primary bootloader for NPCM8XX (Arbel) devices"
|
||||
HOMEPAGE = "https://github.com/Nuvoton-Israel/npcm8xx-bootblock"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
BB_TIP = "arbel_a35_bootblock.bin"
|
||||
BB_NO_TIP = "arbel_a35_bootblock_no_tip.bin"
|
||||
|
||||
OUTPUT_BB_TIP_BIN = "Images/tip"
|
||||
OUTPUT_BB_NO_TIP_BIN = "Images/no_tip"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRC_URI = " \
|
||||
git://github.com/Nuvoton-Israel/npcm8xx-bootblock;branch=main;protocol=https"
|
||||
|
||||
inherit deploy
|
||||
|
||||
do_deploy () {
|
||||
if [ "${TIP_IMAGE}" = "True" ] ; then
|
||||
install -D -m 644 ${OUTPUT_BB_TIP_BIN}/${BB_TIP} ${DEPLOYDIR}/${BB_TIP}
|
||||
else
|
||||
install -D -m 644 ${OUTPUT_BB_NO_TIP_BIN}/${BB_NO_TIP} ${DEPLOYDIR}/${BB_NO_TIP}
|
||||
fi
|
||||
}
|
||||
|
||||
addtask deploy before do_build after do_compile
|
||||
@@ -0,0 +1,3 @@
|
||||
SRCREV = "bc1b9c304490e54553f2d449fa2e9950a6f9e4ae"
|
||||
|
||||
require npcm8xx-bootblock.inc
|
||||
@@ -0,0 +1,4 @@
|
||||
# tag IGPS_03.09.02
|
||||
SRCREV = "c087fcc14a67ae912a51d6fd90c3daa27560d8bc"
|
||||
|
||||
require npcm8xx-igps.inc
|
||||
@@ -0,0 +1,46 @@
|
||||
SUMMARY = "Image Generation and Programming Scripts for NPCM8XX (Arbel) devices"
|
||||
DESCRIPTION = "Image Generation and Programming Scripts for NPCM8XX (Arbel) devices"
|
||||
HOMEPAGE = "https://github.com/Nuvoton-Israel/igps-npcm8xx"
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
IGPS_BRANCH ?= "main"
|
||||
SRC_URI = " \
|
||||
git://github.com/Nuvoton-Israel/igps-npcm8xx;branch=${IGPS_BRANCH};protocol=https \
|
||||
"
|
||||
|
||||
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/*.xml \
|
||||
${S}/py_scripts/ImageGeneration/inputs/*.xml
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${DEST}
|
||||
if [ "${TIP_IMAGE}" = "True" ] ; then
|
||||
install py_scripts/ImageGeneration/references/BootBlockAndHeader_${DEVICE_GEN}_${IGPS_MACHINE}.xml ${DEST}
|
||||
else
|
||||
install py_scripts/ImageGeneration/references/BootBlockAndHeader_${DEVICE_GEN}_${IGPS_MACHINE}_NoTip.xml ${DEST}
|
||||
fi
|
||||
install py_scripts/ImageGeneration/references/UbootHeader_${DEVICE_GEN}.xml ${DEST}
|
||||
install py_scripts/ImageGeneration/inputs/BL31_AndHeader.xml ${DEST}
|
||||
install py_scripts/ImageGeneration/inputs/OpTeeAndHeader.xml ${DEST}
|
||||
install py_scripts/ImageGeneration/asn1.py ${DEST}
|
||||
install py_scripts/ImageGeneration/BinarySignatureGenerator.py ${DEST}
|
||||
}
|
||||
|
||||
inherit deploy
|
||||
|
||||
do_deploy () {
|
||||
# copy default keys to deploy folder
|
||||
install -d ${DEPLOYDIR}
|
||||
cp -vur py_scripts/ImageGeneration/keys/${SIGN_TYPE} ${DEPLOYDIR}/
|
||||
}
|
||||
|
||||
inherit native
|
||||
|
||||
addtask deploy before do_build after do_compile
|
||||
@@ -0,0 +1,17 @@
|
||||
SUMMARY = "TIP FW for NPCM8XX (Arbel) devices"
|
||||
DESCRIPTION = "TIP FW for NPCM8XX (Arbel) devices"
|
||||
HOMEPAGE = "https://github.com/Nuvoton-Israel/npcm8xx-tip-fw"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=f789971f29c65e31dbb33ed209b4dc91"
|
||||
|
||||
TIP_FW = "Kmt_TipFwL0_Skmt_TipFwL1.bin"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
SRC_URI = "git://github.com/Nuvoton-Israel/npcm8xx-tip-fw;branch=main;protocol=https"
|
||||
|
||||
inherit deploy
|
||||
do_deploy () {
|
||||
install -D -m 644 ${OUTPUT_BIN}/${TIP_FW} ${DEPLOYDIR}/${TIP_FW}
|
||||
}
|
||||
|
||||
addtask deploy before do_build after do_compile
|
||||
@@ -0,0 +1,5 @@
|
||||
SRCREV = "49c4ddb7feed3653dde1c77e235e41e42c3e73e5"
|
||||
|
||||
OUTPUT_BIN = "output_binaries_${DEVICE_GEN}_${IGPS_MACHINE}"
|
||||
|
||||
require npcm8xx-tip-fw.inc
|
||||
Reference in New Issue
Block a user