tzdata: Make it compatible with devtool modify

This avoids the following build error after having run `devtool modify
tzdata`:

  cp: cannot stat '.../qemux86-64/workspace/sources/tzdata//usr': No
  such file or directory

(From OE-Core rev: 3c64d964089f2909d5dc7d94cd449ad068d04caf)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Kjellerstedt
2021-12-15 16:20:39 +01:00
committed by Richard Purdie
parent c39e671293
commit 7c7b22cd5d

View File

@@ -35,8 +35,8 @@ do_compile () {
}
do_install () {
install -d ${D}/$exec_prefix ${D}${datadir}/zoneinfo
cp -pPR ${S}/$exec_prefix ${D}/
install -d ${D}$exec_prefix ${D}${datadir}/zoneinfo
cp -pPR ${WORKDIR}$exec_prefix ${D}${base_prefix}
# libc is removing zoneinfo files from package
cp -pP "${S}/zone.tab" ${D}${datadir}/zoneinfo
cp -pP "${S}/zone1970.tab" ${D}${datadir}/zoneinfo