diff options
author | ToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp> | 2020-03-30 09:24:26 +0900 |
---|---|---|
committer | ToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp> | 2020-03-30 09:24:26 +0900 |
commit | 5b80bfd7bffd4c20d80b7c70a7130529e9a755dd (patch) | |
tree | b4bb18dcd1487dbf1ea8127e5671b7bb2eded033 /bsp/meta-freescale/recipes-bsp/qe-ucode/qe-ucode_git.bb | |
parent | 706ad73eb02caf8532deaf5d38995bd258725cb8 (diff) |
agl-basesystem
Diffstat (limited to 'bsp/meta-freescale/recipes-bsp/qe-ucode/qe-ucode_git.bb')
-rw-r--r-- | bsp/meta-freescale/recipes-bsp/qe-ucode/qe-ucode_git.bb | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/bsp/meta-freescale/recipes-bsp/qe-ucode/qe-ucode_git.bb b/bsp/meta-freescale/recipes-bsp/qe-ucode/qe-ucode_git.bb new file mode 100644 index 00000000..1af630a6 --- /dev/null +++ b/bsp/meta-freescale/recipes-bsp/qe-ucode/qe-ucode_git.bb @@ -0,0 +1,38 @@ +DESCRIPTION = "qe microcode binary" +SECTION = "qe-ucode" +LICENSE = "NXP-Binary-EULA" +LIC_FILES_CHKSUM = "file://NXP-Binary-EULA;md5=c62f8109b4df15ca37ceeb5e4943626c" + +inherit deploy fsl-eula-unpack + +SRC_URI = "git://github.com/NXP/qoriq-qe-ucode.git;fsl-eula=true;nobranch=1" +SRCREV= "57401f6dff6507055558eaa6838116baa8a2fd46" + +S = "${WORKDIR}/git" + +python () { + if not d.getVar("QE_UCODE", True): + PN = d.getVar("PN", True) + FILE = os.path.basename(d.getVar("FILE", True)) + bb.debug(1, "To build %s, see %s for instructions on \ + setting up your qe-ucode" % (PN, FILE)) + raise bb.parse.SkipRecipe("because QE_UCODE is not set") +} + +do_install () { + install -d ${D}/boot + install -m 644 ${B}/${QE_UCODE} ${D}/boot +} + +do_deploy () { + install -d ${DEPLOYDIR}/boot + install -m 644 ${B}/${QE_UCODE} ${DEPLOYDIR}/boot +} +addtask deploy before do_build after do_install + +PACKAGES += "${PN}-image" +FILES_${PN}-image += "/boot/*" + +COMPATIBLE_MACHINE = "(ls1021a|ls1043a|t1042|t1024)" +PACKAGE_ARCH = "${MACHINE_SOCARCH}" + |