diff options
author | Chunrong Guo <chunrong.guo@nxp.com> | 2019-07-05 11:48:56 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2019-07-12 17:18:34 -0300 |
commit | d9d4c44812dfbb8808ba3759e4ad21e76efb8c30 (patch) | |
tree | 7be6534a43a07887d8aa1dd228e38eeb5f1d1828 /recipes-bsp/qe-ucode | |
parent | 1b1bddcdda2b71b8c1d8122e1671696b3f6340ad (diff) | |
download | meta-freescale-d9d4c44812dfbb8808ba3759e4ad21e76efb8c30.tar.gz |
qe-ucode: update recipes
*install *.bin to boot
*set COMPATIBLE_MACHINE to qoriq
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Diffstat (limited to 'recipes-bsp/qe-ucode')
-rw-r--r-- | recipes-bsp/qe-ucode/qe-ucode_git.bb | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/recipes-bsp/qe-ucode/qe-ucode_git.bb b/recipes-bsp/qe-ucode/qe-ucode_git.bb index 9bac32d9..58dffa3b 100644 --- a/recipes-bsp/qe-ucode/qe-ucode_git.bb +++ b/recipes-bsp/qe-ucode/qe-ucode_git.bb | |||
@@ -10,29 +10,20 @@ SRCREV= "57401f6dff6507055558eaa6838116baa8a2fd46" | |||
10 | 10 | ||
11 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |
12 | 12 | ||
13 | python () { | ||
14 | if not d.getVar("QE_UCODE"): | ||
15 | PN = d.getVar("PN") | ||
16 | FILE = os.path.basename(d.getVar("FILE")) | ||
17 | bb.debug(1, "To build %s, see %s for instructions on \ | ||
18 | setting up your qe-ucode" % (PN, FILE)) | ||
19 | raise bb.parse.SkipRecipe("because QE_UCODE is not set") | ||
20 | } | ||
21 | |||
22 | do_install () { | 13 | do_install () { |
23 | install -d ${D}/boot | 14 | install -d ${D}/boot |
24 | install -m 644 ${B}/${QE_UCODE} ${D}/boot | 15 | install -m 644 ${B}/*.bin ${D}/boot |
25 | } | 16 | } |
26 | 17 | ||
27 | do_deploy () { | 18 | do_deploy () { |
28 | install -d ${DEPLOYDIR}/boot | 19 | install -d ${DEPLOYDIR}/boot |
29 | install -m 644 ${B}/${QE_UCODE} ${DEPLOYDIR}/boot | 20 | install -m 644 ${B}/*.bin ${DEPLOYDIR}/boot |
30 | } | 21 | } |
31 | addtask deploy before do_build after do_install | 22 | addtask deploy before do_build after do_install |
32 | 23 | ||
33 | PACKAGES += "${PN}-image" | 24 | PACKAGES += "${PN}-image" |
34 | FILES_${PN}-image += "/boot/*" | 25 | FILES_${PN}-image += "/boot/*" |
35 | 26 | ||
36 | COMPATIBLE_MACHINE = "(ls1021a|ls1043a|t1042|t1024)" | 27 | COMPATIBLE_MACHINE = "(qoriq)" |
37 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 28 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
38 | 29 | ||