diff options
| author | Ross Burton <ross.burton@arm.com> | 2022-07-22 12:13:01 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-25 22:59:00 +0100 |
| commit | 454a0ea700b1118e8b24136e03bb03879db960e1 (patch) | |
| tree | 916cd3e20eecfea26b7a54415ea122471c22cc6b /meta/recipes-core/zlib | |
| parent | fa4b74a5a78273fd2f951963e196174070a3d0b3 (diff) | |
| download | poky-454a0ea700b1118e8b24136e03bb03879db960e1.tar.gz | |
zlib: remove historical movement of libz.so to /lib
Historically there's been a split between /lib for early boot and
/usr/lib for everything else, but with modern systems this split is
meaningless and incomplete. If a minimal system for early boot is
needed, it should be a full minimal system in a initramfs.
[RP: Fixed up selftest to match]
(From OE-Core rev: 990073dfc167354b4af41db83ac46c18b1aa99d5)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/zlib')
| -rw-r--r-- | meta/recipes-core/zlib/zlib_1.2.12.bb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/meta/recipes-core/zlib/zlib_1.2.12.bb b/meta/recipes-core/zlib/zlib_1.2.12.bb index e921703137..77e7a4937f 100644 --- a/meta/recipes-core/zlib/zlib_1.2.12.bb +++ b/meta/recipes-core/zlib/zlib_1.2.12.bb | |||
| @@ -39,16 +39,4 @@ do_install_ptest() { | |||
| 39 | install ${B}/examplesh ${D}${PTEST_PATH} | 39 | install ${B}/examplesh ${D}${PTEST_PATH} |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | # Move zlib shared libraries for target builds to $base_libdir so the library | ||
| 43 | # can be used in early boot before $prefix is mounted. | ||
| 44 | do_install:append:class-target() { | ||
| 45 | if [ ${base_libdir} != ${libdir} ] | ||
| 46 | then | ||
| 47 | mkdir -p ${D}/${base_libdir} | ||
| 48 | mv ${D}/${libdir}/libz.so.* ${D}/${base_libdir} | ||
| 49 | libname=`readlink ${D}/${libdir}/libz.so` | ||
| 50 | ln -sf ${@oe.path.relative("${libdir}", "${base_libdir}")}/$libname ${D}${libdir}/libz.so | ||
| 51 | fi | ||
| 52 | } | ||
| 53 | |||
| 54 | BBCLASSEXTEND = "native nativesdk" | 42 | BBCLASSEXTEND = "native nativesdk" |
