diff options
Diffstat (limited to 'meta-fsl-extras/recipes/u-boot/u-boot-script-toradex.bb')
-rw-r--r-- | meta-fsl-extras/recipes/u-boot/u-boot-script-toradex.bb | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex.bb b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex.bb index bb209ad..b5d96b6 100644 --- a/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex.bb +++ b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex.bb | |||
@@ -31,11 +31,15 @@ LICENSE = "The-Qt-Company-DCLA-2.1" | |||
31 | LIC_FILES_CHKSUM = "file://${QT_LICENSE};md5=80e06902b5f0e94ad0a78ee4f7fcb74b" | 31 | LIC_FILES_CHKSUM = "file://${QT_LICENSE};md5=80e06902b5f0e94ad0a78ee4f7fcb74b" |
32 | DEPENDS = "u-boot-mkimage-native" | 32 | DEPENDS = "u-boot-mkimage-native" |
33 | 33 | ||
34 | PV = "v2.3" | 34 | PV = "v2.6" |
35 | 35 | ||
36 | SRC_URI = " \ | 36 | SRC_URI = " \ |
37 | file://flash_mmc.scr \ | 37 | file://fwd_mmc.scr \ |
38 | file://fwd_blk.scr \ | ||
39 | file://fwd_eth.scr \ | ||
38 | file://flash_blk.scr \ | 40 | file://flash_blk.scr \ |
41 | file://flash_eth.scr \ | ||
42 | file://0001-Update-only-u-boot.patch \ | ||
39 | " | 43 | " |
40 | 44 | ||
41 | S = "${WORKDIR}" | 45 | S = "${WORKDIR}" |
@@ -43,27 +47,20 @@ S = "${WORKDIR}" | |||
43 | inherit deploy | 47 | inherit deploy |
44 | 48 | ||
45 | do_mkimage () { | 49 | do_mkimage () { |
46 | uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ | 50 | for scr in ${WORKDIR}/*.scr; do |
47 | -n "update script" -d ${WORKDIR}/flash_mmc.scr \ | 51 | uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ |
48 | flash_mmc.img | 52 | -n "update script" -d ${scr} \ |
49 | 53 | $(basename ${scr} .scr).img | |
50 | uboot-mkimage -A arm -O linux -T script -C none -a 0 -e 0 \ | 54 | done |
51 | -n "update script" -d ${WORKDIR}/flash_blk.scr \ | ||
52 | flash_blk.img | ||
53 | } | 55 | } |
54 | 56 | ||
55 | addtask mkimage after do_compile before do_install | 57 | addtask mkimage after do_compile before do_install |
56 | 58 | ||
57 | do_deploy () { | 59 | do_deploy () { |
58 | install -d ${DEPLOYDIR} | 60 | install -d ${DEPLOYDIR}/${MACHINE} |
59 | install ${S}/flash_mmc.img ${DEPLOYDIR}/flash_mmc-${MACHINE}-${PV}-${PR}.img | 61 | install -m 0644 -t ${DEPLOYDIR} ${S}/*.img |
60 | install ${S}/flash_blk.img ${DEPLOYDIR}/flash_blk-${MACHINE}-${PV}-${PR}.img | 62 | ln -s ../flash_blk.img ${DEPLOYDIR}/${MACHINE}/ |
61 | 63 | ln -s ../flash_eth.img ${DEPLOYDIR}/${MACHINE}/ | |
62 | cd ${DEPLOYDIR} | ||
63 | rm -f flash_mmc-${MACHINE}.img | ||
64 | ln -sf flash_mmc-${MACHINE}-${PV}-${PR}.img flash_mmc-${MACHINE}.img | ||
65 | rm -f flash_blk-${MACHINE}.img | ||
66 | ln -sf flash_blk-${MACHINE}-${PV}-${PR}.img flash_blk-${MACHINE}.img | ||
67 | } | 64 | } |
68 | 65 | ||
69 | addtask deploy after do_install before do_build | 66 | addtask deploy after do_install before do_build |