aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/recipes-bsp/v4l2-fw/v4l2-fw_1.0.bb
blob: 31647d40e417dd87148a537ddb0f6e522101e126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
SUMMARY = "OV10640/OV490 SPI flash firmware update tool"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=eb766567485731157b3c21013c3ce4b8"

S = "${WORKDIR}/v4l2-fw"

SRC_URI = " \
    file://v4l2-fw.tar.gz \
"

do_compile() {
    cd ${S}
    make all || die
}

do_install() {
    install -d ${D}${bindir}
    install -m 755 ${S}/v4l2-fw ${D}${bindir}

    install -d ${D}/usr/share/factory/
    install -m 644 ${S}/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_1280x1080@30_96Mhz.bin ${D}/usr/share/factory/
    install -m 644 ${S}/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_1280x800@30_96Mhz.bin ${D}/usr/share/factory/
    install -m 644 ${S}/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_1280x966@30_96Mhz.bin ${D}/usr/share/factory/
    install -m 644 ${S}/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_640x480@30_96Mhz.bin ${D}/usr/share/factory/
    install -m 644 ${S}/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_640x480@60_96MHz.bin ${D}/usr/share/factory/
    install -m 644 ${S}/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_1280x528@60_96MHz.bin ${D}/usr/share/factory/
    install -m 644 ${S}/rdcam21.rdcam24.1280x1080@30.bin ${D}/usr/share/factory/
    install -m 755 ${S}/ov10640_ov490_flash_0-3.sh ${D}/usr/share/factory/
    install -m 755 ${S}/ov10640_ov490_flash_4-7.sh ${D}/usr/share/factory/
    install -m 755 ${S}/rdcam21_rdcam24_flash_0-3.sh ${D}/usr/share/factory/

    install -m 755 ${S}/otp_10640_read_bank1.sh ${D}/usr/share/factory/
    install -m 755 ${S}/otp_10640_write_bank1.sh ${D}/usr/share/factory/
    install -m 755 ${S}/ov10640_read.sh ${D}/usr/share/factory/
    install -m 755 ${S}/ov10640_write.sh ${D}/usr/share/factory/
    install -m 755 ${S}/ov490_read.sh ${D}/usr/share/factory/
    install -m 755 ${S}/ov490_write.sh ${D}/usr/share/factory/
}

FILES_${PN} = " \
    ${bindir}/v4l2-fw \
    /usr/share/factory/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_1280x1080@30_96Mhz.bin \
    /usr/share/factory/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_1280x800@30_96Mhz.bin \
    /usr/share/factory/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_1280x966@30_96Mhz.bin \
    /usr/share/factory/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_640x480@30_96Mhz.bin \
    /usr/share/factory/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_640x480@60_96MHz.bin \
    /usr/share/factory/OV10640_OV490_combine_general_v491_20160105_common_withSPIHeader_1280x528@60_96MHz.bin \
    /usr/share/factory/rdcam21.rdcam24.1280x1080@30.bin \
    /usr/share/factory/ov10640_ov490_flash_0-3.sh \
    /usr/share/factory/ov10640_ov490_flash_4-7.sh \
    /usr/share/factory/rdcam21_rdcam24_flash_0-3.sh \
    /usr/share/factory/otp_10640_read_bank1.sh \
    /usr/share/factory/otp_10640_write_bank1.sh \
    /usr/share/factory/ov10640_read.sh \
    /usr/share/factory/ov10640_write.sh \
    /usr/share/factory/ov490_read.sh \
    /usr/share/factory/ov490_write.sh \
"