mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-01 04:43:27 +00:00
Use ${PN} rather than dhcp to keep align with oe-core to fix:
WARNING: oe-core/meta/recipes-connectivity/dhcp/dhcp_4.3.4.bb: Variable key SYSTEMD_AUTO_ENABLE_${PN}-client (enable) replaces original key SYSTEMD_AUTO_ENABLE_dhcp-client (disable).
WARNING: oe-core/meta/recipes-connectivity/dhcp/dhcp_4.3.4.bb: Variable key SYSTEMD_SERVICE_${PN}-client (dhclient.service) replaces original key SYSTEMD_SERVICE_dhcp-client (dhclient.service).
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
25 lines
846 B
Plaintext
25 lines
846 B
Plaintext
# look for files in the layer first
|
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
|
|
|
SYSTEMD_PACKAGES += "dhcp-client"
|
|
SYSTEMD_SERVICE_${PN}-client = "dhclient.service"
|
|
SYSTEMD_AUTO_ENABLE_${PN}-client = "disable"
|
|
|
|
FILES_${PN}-client += "${systemd_unitdir}/system/dhclient.service"
|
|
RPROVIDES_dhcp-server += "dhcp-server-systemd"
|
|
RREPLACES_dhcp-server += "dhcp-server-systemd"
|
|
RCONFLICTS_dhcp-server += "dhcp-server-systemd"
|
|
RPROVIDES_dhcp-relay += "dhcp-relay-systemd"
|
|
RREPLACES_dhcp-relay += "dhcp-relay-systemd"
|
|
RCONFLICTS_dhcp-relay += "dhcp-relay-systemd"
|
|
RPROVIDES_${PN}-client += "dhcp-client-systemd"
|
|
RREPLACES_${PN}-client += "dhcp-client-systemd"
|
|
RCONFLICTS_${PN}-client += "dhcp-client-systemd"
|
|
|
|
SRC_URI += "file://dhclient.service"
|
|
|
|
do_install_append() {
|
|
install -m 0644 ${WORKDIR}/dhclient.service ${D}${systemd_unitdir}/system
|
|
}
|
|
|