os-release: move to nonarch_libdir

Even on multilib systems, /usr/lib is where systemd expects the
os-release file to live.

(From OE-Core rev: b7b476efee8c959a0227905e40bd9b5ef493632d)

(From OE-Core rev: b1d7ff6eea46af96c84d16111d5327700723cb98)

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Dan McGregor 2018-10-18 09:24:23 -06:00 committed by Richard Purdie
parent 58d8fd09a5
commit 1b6a6b7791

View File

@ -42,9 +42,9 @@ python do_compile () {
do_compile[vardeps] += "${OS_RELEASE_FIELDS}"
do_install () {
install -d ${D}${libdir} ${D}${sysconfdir}
install -m 0644 os-release ${D}${libdir}/
lnr ${D}${libdir}/os-release ${D}${sysconfdir}/os-release
install -d ${D}${nonarch_libdir} ${D}${sysconfdir}
install -m 0644 os-release ${D}${nonarch_libdir}/
lnr ${D}${nonarch_libdir}/os-release ${D}${sysconfdir}/os-release
}
FILES_${PN} += "${libdir}/os-release"
FILES_${PN} += "${nonarch_libdir}/os-release"