Skip to contentSkip to conversation

Perl usage in recipe

DISCUSSION mar.krzeminski 2 participants 3 messages Aug 5, 2015

lore
Share & tools
lore
#0 lore raw

Hello,

In my recipe I want to call perl script that will create image.
How should I do that to be absolutely sure that perl will be used from yocto not from my system? Maybe is there any example somewhere that I can check how this should be done?

Regards,
Marcin

#1 lore raw
Quoted 7 lines · mar.krzeminski

Hello,

In my recipe I want to call perl script that will create image. How should I do that to be absolutely sure that perl will be used from yocto not from my system?
Maybe is there any example somewhere that I can check how this should be done?

inherit perlnative

Quoted 8 lines

Regards,
Marcin
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw

W dniu 05.08.2015 o 20:08, Khem Raj pisze:

Quoted 10 lines
Quoted 7 lines · mar.krzeminski

Hello,

In my recipe I want to call perl script that will create image. How should I do that to be absolutely sure that perl will be used from yocto not from my system?
Maybe is there any example somewhere that I can check how this should be done?

inherit perlnative

Ok, thanks. And one more question.
How about scrip call after this inherit?
Can I use simple perl MY_SCRIPT or should I consider to use something like this (from perf recipe)

inherit perlnative
# Env var which tells perl if it should use host (no) or target (yes) settings export PERLCONFIGTARGET = "${@is_target(d)}"
export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}/CORE" export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}"

Regards,
Marcin

Quoted 7 lines
Quoted 7 lines

Regards,
Marcin
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto