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
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 16befee..7f023bb 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