David Wang | 026925d | 2021-08-13 11:39:20 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend:olympus-nuvoton := "${THISDIR}/${PN}:" |
kfting | adb7818 | 2019-09-17 17:34:04 +0800 | [diff] [blame] | 2 | |
David Wang | 026925d | 2021-08-13 11:39:20 +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 | |
David Wang | 026925d | 2021-08-13 11:39:20 +0800 | [diff] [blame] | 5 | do_install:append:olympus-nuvoton() { |
Joseph Liu | 710489e | 2020-03-20 11:53:14 +0800 | [diff] [blame] | 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 | |
Anton Blanchard | 782d719 | 2021-08-16 23:51:27 -0600 | [diff] [blame] | 11 | install -d ${D}/${nonarch_base_libdir}/udev/rules.d |
| 12 | rm -f ${D}/${nonarch_base_libdir}/udev/rules.d/80-obmc-console-uart.rules |
| 13 | install -m 0644 ${WORKDIR}/80-olympus-nuvoton-sol.rules ${D}/${nonarch_base_libdir}/udev/rules.d |
kfting | adb7818 | 2019-09-17 17:34:04 +0800 | [diff] [blame] | 14 | } |