Brandon Kim | 1e42709 | 2021-08-10 15:46:03 -0700 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend:gbs := "${THISDIR}/${PN}:" |
| 2 | SRC_URI:append:gbs = " file://00-bmc-usb0.network" |
| 3 | SRC_URI:append:gbs = " file://usb-network.conf" |
George Hung | 4054df2 | 2020-06-23 19:30:35 +0800 | [diff] [blame] | 4 | |
Brandon Kim | 1e42709 | 2021-08-10 15:46:03 -0700 | [diff] [blame] | 5 | FILES:${PN}:append:gbs = " ${datadir}/usb-network/usb-network.conf" |
| 6 | FILES:${PN}:append:gbs = " ${sysconfdir_native}/systemd/network/00-bmc-usb0.network" |
George Hung | 4054df2 | 2020-06-23 19:30:35 +0800 | [diff] [blame] | 7 | |
Brandon Kim | 1e42709 | 2021-08-10 15:46:03 -0700 | [diff] [blame] | 8 | do_install:append:gbs() { |
George Hung | 4054df2 | 2020-06-23 19:30:35 +0800 | [diff] [blame] | 9 | install -d ${D}${sysconfdir_native}/systemd/network/ |
| 10 | install -m 0644 ${WORKDIR}/00-bmc-usb0.network \ |
| 11 | ${D}${sysconfdir_native}/systemd/network |
| 12 | |
| 13 | install -d ${D}${datadir}/usb-network |
| 14 | install -m 0644 -D ${WORKDIR}/usb-network.conf \ |
| 15 | ${D}${datadir}/usb-network |
| 16 | } |