Joseph Liu | 710489e | 2020-03-20 11:53:14 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:" |
kfting | adb7818 | 2019-09-17 17:34:04 +0800 | [diff] [blame] | 2 | |
Joseph Liu | 710489e | 2020-03-20 11:53:14 +0800 | [diff] [blame] | 3 | SRC_URI_append_olympus-nuvoton = " file://80-olympus-nuvoton-sol.rules" |
kfting | adb7818 | 2019-09-17 17:34:04 +0800 | [diff] [blame] | 4 | |
Joseph Liu | 710489e | 2020-03-20 11:53:14 +0800 | [diff] [blame] | 5 | do_install_append_olympus-nuvoton() { |
| 6 | install -m 0755 -d ${D}${sysconfdir}/${BPN} |
| 7 | rm -f ${D}${sysconfdir}/${BPN}/server.ttyVUART0.conf |
| 8 | install -m 0644 ${WORKDIR}/${BPN}.conf ${D}${sysconfdir}/ |
| 9 | ln -sr ${D}${sysconfdir}/${BPN}.conf ${D}${sysconfdir}/${BPN}/server.ttyS2.conf |
kfting | adb7818 | 2019-09-17 17:34:04 +0800 | [diff] [blame] | 10 | |
Joseph Liu | 710489e | 2020-03-20 11:53:14 +0800 | [diff] [blame] | 11 | install -d ${D}/lib/udev/rules.d |
| 12 | rm -f ${D}/lib/udev/rules.d/80-obmc-console-uart.rules |
| 13 | install -m 0644 ${WORKDIR}/80-olympus-nuvoton-sol.rules ${D}/lib/udev/rules.d |
kfting | adb7818 | 2019-09-17 17:34:04 +0800 | [diff] [blame] | 14 | } |