blob: 7238a9da53d236c47a18cd95c17bce8c0324a8de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
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"
|