blob: 66eacd7f53b4fc41882bffe3ad2395795134f284 [file] [log] [blame]
developer9fd01dc2022-05-20 14:14:11 +08001SUMMARY = "mtk factory read and write"
2SECTION = "applications"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
5
6S = "${WORKDIR}"
7inherit systemd
8
9SRC_URI = " \
10 file://COPYING \
11 file://mtk_factory_rw.sh \
12 file://init-MacAddr.sh \
13 file://init-MacAddr.service \
developerca4a9f62022-11-03 17:43:30 +080014 file://fix-rdkb-get-board-name-issue.patch \
developer9fd01dc2022-05-20 14:14:11 +080015 "
16
17SYSTEMD_PACKAGES = "${PN}"
18SYSTEMD_SERVICE_${PN} = " init-MacAddr.service"
19FILES_${PN} += "{systemd_unitdir}/system/init-MacAddr.service"
20
21do_install() {
22 install -d ${D}${sbindir}
23 install -m 0755 ${WORKDIR}/mtk_factory_rw.sh ${D}${sbindir}
24 install -m 0755 ${WORKDIR}/init-MacAddr.sh ${D}${sbindir}
25 install -d ${D}${systemd_unitdir}/system/
26 install -m 0644 ${S}/init-MacAddr.service ${D}${systemd_unitdir}/system
27}