blob: e7eeb5a5afa70962d2c68926dd274798f10f07f5 [file] [log] [blame]
Sergey Solominc7419c62016-08-16 14:18:18 -05001FILES_${PN}-catalog-extralocales = \
2 "${exec_prefix}/lib/systemd/catalog/*.*.catalog"
3PACKAGES =+ "${PN}-catalog-extralocales"
Brad Bishop3fc171c2018-02-26 14:28:46 -05004PACKAGECONFIG_append = " networkd coredump journald-dbus"
Sergey Solominc7419c62016-08-16 14:18:18 -05005PACKAGECONFIG_remove = "machined hibernate ldconfig binfmt backlight localed \
Joel Stanleye1c31452018-02-23 14:22:20 +10306 quotacheck kdbus ima smack polkit logind bootchart utmp \
7 manpages"
Brad Bishop11821852015-10-30 03:02:05 -04008FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
9SRC_URI += "file://default.network"
Andrew Geissler1b3762a2017-09-07 14:32:45 -050010SRC_URI += "file://service-restart-policy.conf"
Brad Bishop44a22c22016-08-15 20:16:55 -040011SRC_URI += "file://0001-Export-message_append_cmdline.patch"
Edward A. James3d6db402016-10-14 16:07:14 -050012SRC_URI += "file://0002-systemd-Make-pam-compile-shared-library.patch"
Brad Bishop8ef5fd22017-01-11 20:42:58 -050013SRC_URI += "file://0003-basic-Factor-out-string-checking-from-name_to_prefix.patch"
14SRC_URI += "file://0004-basic-Use-path-escaping-when-mangling-path-instances.patch"
Ratan Gupta87497e82017-07-20 12:08:11 +053015#TODO upstream the below patch via below issue
16#https://github.com/openbmc/openbmc/issues/2016
17SRC_URI += "file://0005-dont-return-error-if-unable-to-create-network-namespace.patch"
Adriana Kobylak72a4a3f2017-06-04 15:41:59 -050018SRC_URI += "file://0006-journal-Create-journald-dbus-object.patch"
Brad Bishop3fc171c2018-02-26 14:28:46 -050019
20# Extra configuration for journald-dbus patch
21PACKAGECONFIG[journald-dbus] = "--enable-journald-dbus,--disable-journald-dbus"
22FILES_${PN} += "${datadir}/dbus-1/system.d/org.freedesktop.journal1.conf"
23
Adriana Kobylak72a4a3f2017-06-04 15:41:59 -050024SRC_URI += "file://0007-journal-Add-Synchronize-dbus-method.patch"
Brad Bishop8623bbe2018-03-09 00:04:00 -050025SRC_URI_append_df-obmc-ubi-fs = " file://software.conf"
Yong Li250bde82017-12-15 21:25:05 +080026SRC_URI += "file://0008-man-update-machine-id-5-with-a-note-about-privacy-46.patch"
27SRC_URI += "file://0009-sd-id128-add-new-sd_id128_get_machine_app_specific-A.patch"
28SRC_URI += "file://0010-core-add-khash-API-to-src-basic-as-wrapper-around-ke.patch"
Brad Bishop11821852015-10-30 03:02:05 -040029
Brad Bishope3060732016-08-08 20:21:44 -040030RRECOMMENDS_${PN} += "obmc-targets"
Brad Bishop11821852015-10-30 03:02:05 -040031FILES_${PN} += "${libdir}/systemd/network/default.network"
Andrew Geissler1b3762a2017-09-07 14:32:45 -050032FILES_${PN} += "${libdir}/systemd/system.conf.d/service-restart-policy.conf"
Brad Bishop11821852015-10-30 03:02:05 -040033
Edward A. James52523132016-08-04 16:19:18 -050034EXTRA_OECONF += " --disable-hwdb"
35
Brad Bishop11821852015-10-30 03:02:05 -040036do_install_append() {
37 install -m 644 ${WORKDIR}/default.network ${D}${libdir}/systemd/network/
Andrew Geissler1b3762a2017-09-07 14:32:45 -050038 install -m 644 -D ${WORKDIR}/service-restart-policy.conf ${D}${libdir}/systemd/system.conf.d/service-restart-policy.conf
Adriana Kobylakbbf2cb82016-01-30 11:12:10 -060039
40 #TODO Remove after this issue is resolved
41 #https://github.com/openbmc/openbmc/issues/152
42 ln -s /dev/null ${D}/etc/systemd/system/systemd-hwdb-update.service
Brad Bishop8623bbe2018-03-09 00:04:00 -050043}
Gunnar Mills1e445242017-11-01 14:09:04 -050044
Brad Bishop8623bbe2018-03-09 00:04:00 -050045do_install_append_df-obmc-ubi-fs() {
Gunnar Mills1e445242017-11-01 14:09:04 -050046 # /tmp/images is the software image upload directory.
47 # It should not be deleted since it is watched by the Image Manager
48 # for new images.
Brad Bishop8623bbe2018-03-09 00:04:00 -050049 install -m 0644 ${WORKDIR}/software.conf ${D}${exec_prefix}/lib/tmpfiles.d/
Brad Bishop11821852015-10-30 03:02:05 -040050}