summaryrefslogtreecommitdiff
path: root/multitech/recipes/images/corecdp-tftpboot.inc
blob: f27cf6bd6d4fe4070353b855265014f6c41bdc9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# make links to images in TFTPBOOT_DIR for ease of development
do_build_append () {
    TFTPBOOT_CLEAN="oe_bootstrap.bin oe_bootstrap_pmecc_padded.bin \
                    oe_u-boot.bin oe_uImage.bin oe_rootfs.jffs2 oe_images"

    if [ -n "${TFTPBOOT_DIR}" ]; then
        install -d ${DEPLOY_DIR_IMAGE}

        for f in ${TFTPBOOT_CLEAN}; do
            rm -f ${TFTPBOOT_DIR}/$f
        done

        ln -nfs ${DEPLOY_DIR_IMAGE}/at91bootstrap.bin ${TFTPBOOT_DIR}/oe_bootstrap.bin
        if [ -f ${DEPLOY_DIR_IMAGE}/at91bootstrap_pmecc_padded.bin ]; then
            ln -nfs ${DEPLOY_DIR_IMAGE}/at91bootstrap_pmecc_padded.bin ${TFTPBOOT_DIR}/oe_bootstrap_pmecc_padded.bin
        fi
        ln -nfs ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.bin ${TFTPBOOT_DIR}/oe_u-boot.bin
        ln -nfs ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE}.bin ${TFTPBOOT_DIR}/oe_uImage.bin
        ln -nfs ${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.jffs2 ${TFTPBOOT_DIR}/oe_rootfs.jffs2
        ln -nfs ${DEPLOY_DIR_IMAGE} ${TFTPBOOT_DIR}/oe_images
    fi
}