]> code.ossystems Code Review - openembedded-core.git/commitdiff
createrepo-c: Add nativesdk
authorZheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Sat, 23 Jun 2018 19:52:58 +0000 (03:52 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Jun 2018 12:53:28 +0000 (13:53 +0100)
Add nativesdk for createrepo-c.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/createrepo-c/createrepo-c_git.bb

index 31761368b7282299e7c74f3571d3479cd841dc91..9be9f9e51a43fa938e4e2e9bfd4e1cbf480ed87f 100644 (file)
@@ -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
+}