blob: 03621665bbcc1447a422b76a4a769a4ef2d1d2af [file] [log] [blame]
Ed Tanous9936f862022-09-19 09:13:20 -07001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
Patrick Williams43bac4f2020-05-02 06:31:39 -05002PACKAGECONFIG = "\
Patrick Williamsbf5597f2022-11-17 07:29:11 -06003 cgroupv2 \
Patrick Williams43bac4f2020-05-02 06:31:39 -05004 coredump \
5 hostnamed \
Patrick Williams43bac4f2020-05-02 06:31:39 -05006 networkd \
Anton D. Kachalov23e749b2021-02-04 13:13:57 +01007 nss \
Patrick Williams43bac4f2020-05-02 06:31:39 -05008 pam \
Patrick Williams0434ea62023-02-15 06:27:30 -06009 pstore \
Patrick Williams43bac4f2020-05-02 06:31:39 -050010 randomseed \
11 resolved \
Anton D. Kachalovaff02432021-02-04 13:33:53 +010012 seccomp \
Patrick Williams43bac4f2020-05-02 06:31:39 -050013 sysusers \
Patrick Williams43bac4f2020-05-02 06:31:39 -050014 timedated \
15 timesyncd \
Patrick Williams3aa0aa82021-08-17 15:51:55 -050016 zstd \
Patrick Williams43bac4f2020-05-02 06:31:39 -050017 "
Brad Bishop19323692019-04-05 15:28:33 -040018
Patrick Williamsed104d42021-08-31 13:19:27 -050019EXTRA_OEMESON:append = " -Ddns-servers=''"
Brad Bishop11821852015-10-30 03:02:05 -040020
Ed Tanous9936f862022-09-19 09:13:20 -070021PACKAGES =+ "${PN}-catalog-extralocales"
22
23RRECOMMENDS:${PN}:append:openbmc-phosphor = " phosphor-systemd-policy"
24
25FILES:${PN}-catalog-extralocales = "\
26 ${exec_prefix}/lib/systemd/catalog/*.*.catalog \
27"
28
BonnieLo-wiwynn1a910ed2023-02-06 13:43:45 +080029SRC_URI:append = " \
30 file://40-hardware-watchdog.conf \
31 "
32
33FILES:${PN}:append = " \
34 ${systemd_unitdir}/system.conf.d/40-hardware-watchdog.conf \
35 "
36
37do_install:append() {
38 install -d -m 0755 ${D}${systemd_unitdir}/system.conf.d/
39 install -m 0644 ${WORKDIR}/40-hardware-watchdog.conf ${D}${systemd_unitdir}/system.conf.d/
40}
41
Patrick Williamsbcd29052022-11-18 12:47:02 -060042# udev is added to the USERADD_PACKAGES due to some 'render' group
43# being necessary to create for /dev/dri handling, which we don't
44# have to worry about. A side-effect of this is udev would RDEPEND on
45# 'shadow' which prevents us from putting it into the initramfs. We
46# have plenty of other stuff that RDEPENDS on 'shadow' so, remove udev
47# from USERADD_PACKAGES to get around that.
48USERADD_PACKAGES:remove = "udev"
49
Brad Bishopc6219fa2018-11-29 08:39:53 -050050ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init"
51ALTERNATIVE_PRIORITY[init] ?= "300"
Brad Bishop0e72d712020-08-12 07:03:47 -040052
Ed Tanous9936f862022-09-19 09:13:20 -070053ALTERNATIVE:${PN} += "init"
54ALTERNATIVE_TARGET[init] = "${rootlibexecdir}/systemd/systemd"