FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" PACKAGECONFIG = "\ coredump \ hostnamed \ networkd \ nss \ pam \ pstore \ randomseed \ resolved \ seccomp \ sysusers \ timedated \ timesyncd \ zstd \ " EXTRA_OEMESON:append = " -Ddns-servers=''" PACKAGES =+ "${PN}-catalog-extralocales" RRECOMMENDS:${PN}:append:openbmc-phosphor = " phosphor-systemd-policy" FILES:${PN}-catalog-extralocales = "\ ${exec_prefix}/lib/systemd/catalog/*.*.catalog \ " SRC_URI:append = " \ file://40-hardware-watchdog.conf \ file://1000-socket-resolve-unit-specifiers-in-BindToDevice.patch \ " FILES:${PN}:append = " \ ${systemd_unitdir}/system.conf.d/40-hardware-watchdog.conf \ " do_install:append() { install -d -m 0755 ${D}${systemd_unitdir}/system.conf.d/ install -m 0644 ${UNPACKDIR}/40-hardware-watchdog.conf ${D}${systemd_unitdir}/system.conf.d/ # A number of udev devices would unlikely be present on a BMC and have large # helper executables associated with them. Delete both the helpers and the # rules. for f in cdrom_id dmi_memory_id fido_id iocost v4l_id; do rm ${D}${libdir}/udev/${f} done for f in 60-cdrom_id.rules 70-memory.rules 60-fido-id.rules 90-iocost.rules 60-persistent-v4l.rules; do rm ${D}${libdir}/udev/rules.d/${f} done } # udev is added to the USERADD_PACKAGES due to some 'render' group # being necessary to create for /dev/dri handling, which we don't # have to worry about. A side-effect of this is udev would RDEPEND on # 'shadow' which prevents us from putting it into the initramfs. We # have plenty of other stuff that RDEPENDS on 'shadow' so, remove udev # from USERADD_PACKAGES to get around that. USERADD_PACKAGES:remove = "udev" ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init" ALTERNATIVE_PRIORITY[init] ?= "300" ALTERNATIVE:${PN} += "init" ALTERNATIVE_TARGET[init] = "${rootlibexecdir}/systemd/systemd"