[OE-core] [PATCH] nativesdk-rpm: Add wrappers for nativesdk support
Alexander Kanavin
alexander.kanavin at linux.intel.com
Tue Feb 27 14:09:53 UTC 2018
On 02/27/2018 03:45 PM, Ovidiu Panait wrote:
> +do_install_append_class-nativesdk() {
> + tools="\
> + ${bindir}/rpm \
> + ${bindir}/rpm2archive \
> + ${bindir}/rpm2cpio \
> + ${bindir}/rpmbuild \
> + ${bindir}/rpmdb \
> + ${bindir}/rpmgraph \
> + ${bindir}/rpmkeys \
> + ${bindir}/rpmsign \
> + ${bindir}/rpmspec \
> + ${libdir}/rpm/rpmdeps \
> + "
> +
> + for tool in $tools; do
> + create_wrapper ${D}$tool \
> + RPM_CONFIGDIR='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \
> + RPM_ETCCONFIGDIR='$'{RPM_ETCCONFIGDIR-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/..} \
> + MAGIC='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/misc/magic.mgc \
> + RPM_NO_CHROOT_FOR_SCRIPTS=1
> + done
> +
> + rm -rf ${D}/var
> +}
Can this be done without copy-pasting an existing function please?
Alex
More information about the Openembedded-core
mailing list