mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
createrepo-c: Add nativesdk
Add nativesdk for createrepo-c. (From OE-Core rev: 802c4029f90cee3027b6bc62c5201e8b29f02557) Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c8a038a3e6
commit
bca21299ab
@@ -21,7 +21,7 @@ inherit cmake pkgconfig bash-completion distutils3-base
|
||||
|
||||
EXTRA_OECMAKE = " -DPYTHON_INSTALL_DIR=${PYTHON_SITEPACKAGES_DIR} -DPYTHON_DESIRED=3"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
# Direct createrepo to read rpm configuration from our sysroot, not the one it was compiled in
|
||||
do_install_append_class-native() {
|
||||
@@ -29,3 +29,8 @@ do_install_append_class-native() {
|
||||
RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm
|
||||
}
|
||||
|
||||
do_install_append_class-nativesdk() {
|
||||
create_wrapper ${D}/${bindir}/createrepo_c \
|
||||
RPM_CONFIGDIR=${SDKPATHNATIVE}${libdir_nativesdk}/rpm
|
||||
rm -rf ${D}/etc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user