15115c5a20
There is no 'redhat-release' or 'suse-release' provided by yocto, so add 'os-release' and 'lsb-release' into the search list so it will detect the correct 'releasever'. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
74 lines
1.7 KiB
Plaintext
74 lines
1.7 KiB
Plaintext
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
|
|
|
|
SRC_URI += "\
|
|
file://0001-const-add-os-release-and-lsb-release-into-the-search.patch \
|
|
"
|
|
|
|
DEPENDS += "\
|
|
python-native \
|
|
"
|
|
|
|
EXTRA_OECMAKE_PY2 = " \
|
|
-DWITH_MAN=0 \
|
|
-DPYTHON_INSTALL_DIR=${libdir}/python2.7/site-packages \
|
|
-DPYTHON_DESIRED:FILEPATH=${STAGING_BINDIR_NATIVE}/python-native/python \
|
|
"
|
|
|
|
RDEPENDS_${PN}_class-target += " \
|
|
python-codecs \
|
|
python-compression \
|
|
python-core \
|
|
python-curses \
|
|
python-distutils \
|
|
python-email \
|
|
python-fcntl \
|
|
python-iniparse \
|
|
python-json \
|
|
python-logging \
|
|
python-misc \
|
|
python-netclient \
|
|
python-pygpgme \
|
|
python-pyliblzma \
|
|
python-shell \
|
|
python-sqlite3 \
|
|
python-threading \
|
|
python2-rpm \
|
|
"
|
|
|
|
do_configure_append() {
|
|
rm -rf ${B}/build-py2
|
|
mkdir -p ${B}/build-py2
|
|
cd ${B}/build-py2
|
|
|
|
cmake \
|
|
${OECMAKE_GENERATOR_ARGS} \
|
|
$oecmake_sitefile \
|
|
${OECMAKE_SOURCEPATH} \
|
|
-DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
|
|
-DCMAKE_INSTALL_SYSCONFDIR:PATH=${sysconfdir} \
|
|
-DCMAKE_INSTALL_SO_NO_EXE=0 \
|
|
-DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
|
|
-DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \
|
|
${EXTRA_OECMAKE_PY2} \
|
|
-Wno-dev
|
|
}
|
|
|
|
cmake_runcmake_build_py2() {
|
|
bbnote ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '${B}/build-py2' "$@" -- ${EXTRA_OECMAKE_BUILD}
|
|
eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '${B}/build-py2' "$@" -- ${EXTRA_OECMAKE_BUILD}
|
|
}
|
|
|
|
do_compile_append() {
|
|
cd ${B}/build-py2
|
|
cmake_runcmake_build_py2 --target ${OECMAKE_TARGET_COMPILE}
|
|
}
|
|
|
|
do_install_append() {
|
|
cd ${B}/build-py2
|
|
DESTDIR='${D}' cmake_runcmake_build_py2 --target ${OECMAKE_TARGET_INSTALL}
|
|
|
|
# add a symlink for yum
|
|
lnr ${D}/${bindir}/dnf-2 ${D}/${bindir}/yum
|
|
}
|
|
|