developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame^] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |
| 2 | |
| 3 | require ccsp_common_turris.inc |
| 4 | LDFLAGS += "-Wl,--no-as-needed -lulog" |
| 5 | |
| 6 | EXTRA_OECONF_append = " --with-ccsp-arch=arm" |
| 7 | |
| 8 | LDFLAGS_append_dunfell = " -lsafec-3.5.1 -lcrypto" |
| 9 | |
| 10 | do_install_append () { |
| 11 | # Config files and scripts |
| 12 | install -m 644 ${S}/config/ccsp_tr069_pa_certificate_cfg_arm.xml ${D}/usr/ccsp/tr069pa/ccsp_tr069_pa_certificate_cfg.xml |
| 13 | install -m 644 ${S}/config/ccsp_tr069_pa_cfg_arm.xml ${D}/usr/ccsp/tr069pa/ccsp_tr069_pa_cfg.xml |
| 14 | install -m 644 ${S}/config/ccsp_tr069_pa_mapper_arm.xml ${D}/usr/ccsp/tr069pa/ccsp_tr069_pa_mapper.xml |
| 15 | install -m 644 ${S}/config/sdm_arm.xml ${D}/usr/ccsp/tr069pa/sdm.xml |
| 16 | |
| 17 | install -d ${D}/fss/gw/ |
| 18 | install -d ${D}/fss/gw/usr/ccsp/ |
| 19 | install -d ${D}/etc |
| 20 | install -m 777 ${D}/usr/bin/CcspTr069PaSsp -t ${D}/usr/ccsp/tr069pa |
| 21 | |
| 22 | ln -sf /version.txt ${D}/fss/gw/version.txt |
| 23 | ln -sf /usr/ccsp/tr069pa/ ${D}/fss/gw/usr/ccsp/tr069pa |
| 24 | ln -sf /usr/ccsp/tr069pa/sdm.xml ${D}/usr/bin/sdm.xml |
| 25 | ln -sf /usr/ccsp/tr069pa/url ${D}${sysconfdir}/url |
| 26 | echo "5555" > ${D}/usr/ccsp/tr069pa/sharedkey |
| 27 | } |
| 28 | |
| 29 | FILES_${PN}-ccsp += " \ |
| 30 | ${prefix}/ccsp/tr069pa/CcspTr069PaSsp \ |
| 31 | " |
| 32 | |
| 33 | FILES_${PN} += " \ |
| 34 | /fss/gw/usr/ccsp/ \ |
| 35 | /fss/gw/version.txt \ |
| 36 | /etc/url \ |
| 37 | " |
| 38 | |
| 39 | do_package_qa(){ |
| 40 | } |