]> code.ossystems Code Review - meta-freescale.git/commitdiff
uefi: add recipes
authorChunrong Guo <chunrong.guo@nxp.com>
Wed, 9 Aug 2017 08:54:38 +0000 (16:54 +0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 21 Aug 2017 20:04:36 +0000 (17:04 -0300)
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-bsp/uefi/uefi_git.bb [new file with mode: 0644]

diff --git a/recipes-bsp/uefi/uefi_git.bb b/recipes-bsp/uefi/uefi_git.bb
new file mode 100644 (file)
index 0000000..5b71047
--- /dev/null
@@ -0,0 +1,30 @@
+DESCRIPTION = "Unified Extensible Firmware Interface"
+SECTION = "bootloaders"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"
+
+inherit deploy
+
+SRC_URI = "git://github.com/qoriq-open-source/uefi-binary.git;nobranch=1"
+SRCREV= "d0974b734d0c50c99baebf54957ce32433905e40"
+
+S = "${WORKDIR}/git"
+
+do_install () {
+       install -d ${D}/uefi
+       cp -r  ${B}/grub ${D}/uefi
+       cp -r  ${B}/${MACHINE} ${D}/uefi
+}
+
+do_deploy () {
+       install -d ${DEPLOYDIR}/uefi
+       cp -r  ${B}/grub   ${DEPLOYDIR}/uefi
+       cp -r  ${B}/${MACHINE} ${DEPLOYDIR}/uefi
+}
+addtask deploy before do_build after do_install
+
+PACKAGES += "${PN}-image"
+FILES_${PN}-image += "/uefi/*"
+
+PACKAGE_ARCH = "${MACHINE_SOCARCH}"
+