Hello to all YOCTO users, I have one (I should say naive) question considering/querying environment variables, initially set with bitbake scripts.
I have both python (2.7.14) and python3.6 (3.6.2). But, as far as I can see/say, both interpreters do NOT support export declaration (supported with /bin/bash). In other words, every child shell will (with export declaration on certain variables) inherit parent's environment. [user@192 conf]$ python Python 2.7.14 (default, Nov 2 2017, 18:42:05) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> [user@192 conf]$ python3.6 Python 3.6.2 (default, Oct 2 2017, 16:51:32) [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> [user@192 conf]$ Now, I see that bitbake (written in python language) supports export. From here: ...poky/meta/conf/bitbake.conf Excerpt from the file: # Path prefixes export base_prefix = "" export prefix = "/usr" export exec_prefix = "${prefix}" root_prefix = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '${exec_prefix}', '${base_prefix}', d)}" # Base paths export base_bindir = "${root_prefix}/bin" export base_sbindir = "${root_prefix}/sbin" export base_libdir = "${root_prefix}/${baselib}" export nonarch_base_libdir = "${root_prefix}/lib" I assume this file: ...poky/meta/conf/bitbake.conf mandatory executes when I source the oe-init-build-env file. Command: . oe-init-build-env After that I would like to access these environment variables from the /bin/bash, and query them, but it seems that this is NOT possible?! I need advise here: how I can query bitbake environment variables set by . oe-init-build-env, using /bin/bash? Or should I use some special written python procedure to do this? Help required/needed!? I hope what I write here does make sense, does'n it? Thank you, Zoran
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto