summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Fair <benjaminfair@google.com>2022-10-19 01:05:09 +0300
committerBenjamin Fair <benjaminfair@google.com>2022-10-25 23:22:08 +0300
commitf9c38bfa66ea2bd22fec064bf4f439f181509bc7 (patch)
treec3ecd68ca0b24d250708eaf40943aff1f42dc5c5
parentf90af74b70c9aa8f5178567f2a57deae88cedd6b (diff)
downloadopenbmc-f9c38bfa66ea2bd22fec064bf4f439f181509bc7.tar.xz
meta-nuvoton: move npcm8xx-tip-fw recipe into inc file
This will allow us to use different versions of this recipe for different platforms. Tested: No impact to the resulting recipe Signed-off-by: Benjamin Fair <benjaminfair@google.com> Change-Id: I90cf725589c5df48d17668bf8afe3ef3db7d8e2e
-rw-r--r--meta-nuvoton/recipes-bsp/images/npcm8xx-tip-fw.inc24
-rw-r--r--meta-nuvoton/recipes-bsp/images/npcm8xx-tip-fw_0.4.6.0.3.5.bb24
2 files changed, 26 insertions, 22 deletions
diff --git a/meta-nuvoton/recipes-bsp/images/npcm8xx-tip-fw.inc b/meta-nuvoton/recipes-bsp/images/npcm8xx-tip-fw.inc
new file mode 100644
index 0000000000..0c25cd6392
--- /dev/null
+++ b/meta-nuvoton/recipes-bsp/images/npcm8xx-tip-fw.inc
@@ -0,0 +1,24 @@
+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=650b869bd8ff2aed59c62bad2a22a821"
+
+FILENAME = "Kmt_TipFwL0_Skmt_TipFwL1_${PV}.bin"
+
+S = "${WORKDIR}"
+
+SRC_URI = " \
+ https://github.com/Nuvoton-Israel/npcm8xx-tip-fw/${SRCREV}/LICENSE;name=lic \
+ https://github.com/Nuvoton-Israel/npcm8xx-tip-fw/releases/download/${RELEASE}/Kmt_TipFwL0_Skmt_TipFwL1.bin;downloadfilename=${FILENAME};name=bin \
+"
+
+SRC_URI[lic.sha256sum] = "7c34d28e784b202aa4998f477fd0aa9773146952d7f6fa5971369fcdda59cf48"
+
+inherit deploy
+
+do_deploy () {
+ install -D -m 644 ${WORKDIR}/${FILENAME} ${DEPLOYDIR}/Kmt_TipFwL0_Skmt_TipFwL1.bin
+}
+
+addtask deploy before do_build after do_compile
diff --git a/meta-nuvoton/recipes-bsp/images/npcm8xx-tip-fw_0.4.6.0.3.5.bb b/meta-nuvoton/recipes-bsp/images/npcm8xx-tip-fw_0.4.6.0.3.5.bb
index 16befee5ef..7f023bbd81 100644
--- a/meta-nuvoton/recipes-bsp/images/npcm8xx-tip-fw_0.4.6.0.3.5.bb
+++ b/meta-nuvoton/recipes-bsp/images/npcm8xx-tip-fw_0.4.6.0.3.5.bb
@@ -1,26 +1,6 @@
-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=650b869bd8ff2aed59c62bad2a22a821"
-
-FILENAME = "Kmt_TipFwL0_Skmt_TipFwL1_${PV}.bin"
-
-S = "${WORKDIR}"
-
SRCREV = "04e43fbacdc55860153444e04672097e3f2b29fa"
-SRC_URI = " \
- https://github.com/Nuvoton-Israel/npcm8xx-tip-fw/${SRCREV}/LICENSE;name=lic \
- https://github.com/Nuvoton-Israel/npcm8xx-tip-fw/releases/download/TIP_FW_L0_0.4.6_L1_0.3.5/Kmt_TipFwL0_Skmt_TipFwL1.bin;downloadfilename=${FILENAME};name=bin \
-"
+RELEASE = "TIP_FW_L0_0.4.6_L1_0.3.5"
-SRC_URI[lic.sha256sum] = "7c34d28e784b202aa4998f477fd0aa9773146952d7f6fa5971369fcdda59cf48"
SRC_URI[bin.sha256sum] = "f7229664b05d506df90a110dd64bcfa7fa409da254ffc9f6d7367a845a75d8aa"
-inherit deploy
-
-do_deploy () {
- install -D -m 644 ${WORKDIR}/${FILENAME} ${DEPLOYDIR}/Kmt_TipFwL0_Skmt_TipFwL1.bin
-}
-
-addtask deploy before do_build after do_compile
+require npcm8xx-tip-fw.inc