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
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 0000000..0c25cd6
--- /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