poky/meta/classes
Hongxu Jia 18fe42cef9 toolchain-scripts.bbclass:add PYTHONHOME variable to environment-setup
When relocating the SDK, applications using python will search for
python modules in the default location and will fail to start.
The below errors are thrown by gdb, for example:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site

In order to overcome this, add the PYTHONHOME variable to the
environment-setup script for both standalone toolchain and
adt-installer. No need to do that for meta-ide-support environment
script since this toolchain does not get relocated.

Cherry-pick commit db0a02492c

[YOCTO #3839]

(From OE-Core rev: 15454b99e3cbeaf2e411f1e374b512a19a72995a)

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-23 13:00:51 +01:00
..
allarch.bbclass allarch: No need to make packaging machine specific 2012-07-22 11:42:23 +01:00
archive-configured-source.bbclass archiver.bbclass: fix the coding style 2012-08-29 16:02:07 -07:00
archive-original-source.bbclass archiver.bbclass: fix the coding style 2012-08-29 16:02:07 -07:00
archive-patched-source.bbclass archiver.bbclass: fix the coding style 2012-08-29 16:02:07 -07:00
archiver.bbclass Rename task to packagegroup 2012-09-04 12:52:55 +01:00
autotools_stage.bbclass
autotools.bbclass Revert "autotools.bbclass: using relative paths for acpaths" 2012-09-27 17:57:58 +01:00
base.bbclass nativesdk: Switch to using nativesdk as a prefix, not a suffix 2012-09-02 05:52:06 -07:00
bin_package.bbclass bin_package.bbclass: binary package recipe class 2012-09-10 13:01:46 +01:00
binconfig.bbclass binconfig: add *-config files to the -dev package 2012-06-21 13:02:56 +01:00
blacklist.bbclass blacklist.bbclass: Refactor, use PNBLACKLIST[pn] 2012-05-11 17:50:49 +01:00
boot-directdisk.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
bootimg.bbclass bootimg: Use FAT 32 for images larger than 512MB 2013-01-07 11:32:13 +00:00
bugzilla.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00
buildhistory.bbclass buildhistory.bbclass: Fix hostname print for 'No changes' case 2012-12-13 15:21:40 +00:00
buildstats.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00
ccache.bbclass ccache: Ensure CCACHE_DIR is cleaned by do_clean task 2012-07-10 14:25:38 +01:00
chrpath.bbclass chrpath.bbclass: Account for case when ORIGIN is in RPATH 2012-08-17 17:45:12 +01:00
cmake.bbclass cmake.bbclass: Add OECMAKE_C_LINK_FLAGS and OECMAKE_CXX_LINK_FLAGS variables 2012-06-11 13:49:51 +01:00
cml1.bbclass cml1.bbclass: Convert tab indentation in python functions into four-space 2012-09-27 15:21:53 +01:00
copyleft_compliance.bbclass copyleft_compliance.bbclass: remove the duplicated code 2012-08-29 16:02:08 -07:00
core-image.bbclass classes/core-image: improve comments listing IMAGE_FEATURES 2012-09-07 00:07:44 +01:00
cpan_build.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
cpan-base.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
cpan.bbclass cpan.bbclass: Fix CCFLAGS. 2012-07-17 10:53:56 +01:00
cross-canadian.bbclass cross-canadian.bbclass: add native chrpath dependency 2012-10-10 15:21:41 +01:00
cross.bbclass classes: Add recipe class to overrides 2012-04-30 11:37:22 +01:00
crosssdk.bbclass crosssdk/nativesdk: Ensure EXTRA_OECONF_FPU is unset 2012-07-17 10:53:57 +01:00
debian.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
deploy.bbclass
devshell.bbclass Rework how the devshell functions 2011-08-10 13:33:07 +01:00
distrodata.bbclass distrodata: Update distrocheck functions 2012-10-03 17:37:33 +01:00
distutils-base.bbclass Cleanup: fix PN == BPN cases 2012-10-02 11:40:50 +01:00
distutils-common-base.bbclass distutils-common-base: Create staticdev pacakge for static libraries 2012-12-13 15:21:44 +00:00
distutils-native-base.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
distutils.bbclass distutils: Replacing path to native python by path to python in the image to support python packages with console-script setup 2013-04-23 13:00:50 +01:00
dummy.bbclass bootimg: Add grub-efi support 2011-11-30 22:18:08 +00:00
externalsrc.bbclass externalsrc.bbclass: Add class for handling external source trees 2012-03-01 15:56:50 +00:00
gconf.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
gettext.bbclass gettext.bbclass: Ensure we don't overwrite other DEPENDS_GETTEXT values 2012-04-22 15:59:56 +01:00
gnome.bbclass classes/[gnome|gnomebase|mime]: enhance gnome related classes 2011-11-10 11:37:11 +00:00
gnomebase.bbclass gnomebase: depend on gnome-common-native 2013-02-14 15:19:53 +00:00
grub-efi.bbclass grub-efi: fix Nothing PROVIDES 'grub-efi-x86_64-native' 2012-08-25 14:47:00 +01:00
gsettings.bbclass gsettings.bbclass: fix whitespace 2012-09-05 22:25:23 +01:00
gtk-doc.bbclass gtk-doc.bbclass: unbreak dependency-chain for native recipes 2012-07-28 09:20:52 +01:00
gtk-icon-cache.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
gzipnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
icecc.bbclass Revert "meta: replace os.popen with subprocess.Popen" 2012-05-30 14:21:29 +01:00
image_types_uboot.bbclass image_types_uboot: Update to work after recent image_types changes 2012-02-29 18:25:03 +00:00
image_types.bbclass image_types: fix squashfs-lzma image creation 2012-09-19 18:16:16 +01:00
image-empty.bbclass classes/image*: Revamp creation of live images 2011-07-27 12:02:46 +01:00
image-live.bbclass image-live: Allow LABELS to be modified 2012-03-01 15:51:38 +00:00
image-mklibs.bbclass image-mklibs: pass correct libdir to mklibs 2012-08-07 12:56:34 +01:00
image-prelink.bbclass classes: Remove various bashisms 2011-11-10 11:51:18 +00:00
image-swab.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00
image-vmdk.bbclass vmdk: Update for direstdisk 2012-03-27 13:26:36 +01:00
image.bbclass image.bbclass: Enable the complementary install to be called w/ globbing params 2012-09-12 15:13:35 +01:00
imagetest-dummy.bbclass
imagetest-qemu.bbclass qemuimagetest: collect and print runqemu output 2013-03-27 17:28:01 +00:00
insane.bbclass classes: Update to use corrected bb.utils.explode_dep_versions2 API 2012-10-02 11:40:53 +01:00
insserv.bbclass
kernel-arch.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
kernel-yocto.bbclass kernel-yocto: checkout known branch before leaving do_validate_branches 2012-12-13 15:21:44 +00:00
kernel.bbclass kernel.bbclass: remove explicit version.h target 2012-12-13 15:21:44 +00:00
lib_package.bbclass lib_package: use PACKAGE_BEFORE_PN 2012-07-04 17:40:33 +01:00
libc-common.bbclass libc-common: Ensure sysconfdir exists before installing files to it 2012-12-13 15:21:45 +00:00
libc-package.bbclass Add and use 'localedir' variable 2012-09-25 10:41:28 +01:00
license.bbclass license.bbclass: Including locale packages 2013-02-14 15:19:52 +00:00
linux-kernel-base.bbclass kernel.bblass: remove get_kernelmajorversion 2011-07-01 23:34:18 +01:00
logging.bbclass logging: add bb* logging mechanisms for bash recipe functions 2011-04-28 10:45:41 +01:00
meta.bbclass
metadata_scm.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
mime.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
mirrors.bbclass classes/mirrors: remove bogus gnutls mirror 2012-09-10 13:01:45 +01:00
module_strip.bbclass
module-base.bbclass kernel,module-base.bbclass: Improve KERNEL_LD & KERNEL_AR variables 2011-08-05 17:16:03 +01:00
module.bbclass {kernel, module}.bbclass: don't run depmod for module packages during do_rootfs 2012-04-26 10:05:15 +01:00
multilib_global.bbclass packagedata/multilib: Fix search patch for multilib builds 2012-09-26 15:02:25 +01:00
multilib_header.bbclass multilib_header.bbclass: Add oe_multilib_header wrapper 2011-07-27 15:45:47 +01:00
multilib.bbclass classes: Update to use corrected bb.utils.explode_dep_versions2 API 2012-10-02 11:40:53 +01:00
native.bbclass native.bbclass: correct PATH to have native-intercept be prepended 2012-06-28 16:26:44 +01:00
nativesdk.bbclass nativesdk.bbclass: Ensure we have chrpath >=0.14 2012-10-02 17:10:34 +01:00
oelint.bbclass
own-mirrors.bbclass own-mirrors.bbclass: Bring own-mirrors.bbclass from oe commit 0ef914b250df46a41348479446214575668943fb 2011-03-15 01:19:26 +00:00
package_deb.bbclass classes: Update to use corrected bb.utils.explode_dep_versions2 API 2012-10-02 11:40:53 +01:00
package_ipk.bbclass opkg: Convert select-higher-version option to prefer-arch-to-version 2012-10-02 17:10:33 +01:00
package_rpm.bbclass package_rpm.bbclass: Fix an issue where complementary installs fail 2012-10-10 15:24:11 +01:00
package_tar.bbclass meta: replace os.system with subprocess.call 2012-05-30 12:04:45 +01:00
package.bbclass package.bbclass: Fix regression in -dbg packages introduced by explode_dep_versions change 2012-10-03 10:02:22 +01:00
packagedata.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
packagegroup.bbclass classes/packagegroup: disable superfluous tasks 2012-09-04 12:52:59 +01:00
packageinfo.bbclass classes/packageinfo: use better method to check if package exists 2012-09-10 21:52:43 +01:00
patch.bbclass patch.bbclass: increase security 2012-09-14 17:12:43 +01:00
perlnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
pkg_distribute.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
pkg_metainfo.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
pkgconfig.bbclass nativesdk: Switch to using nativesdk as a prefix, not a suffix 2012-09-02 05:52:06 -07:00
populate_sdk_base.bbclass populate_sdk_base.bbclass: add execution permission for self-extracting archive 2013-04-23 13:00:50 +01:00
populate_sdk_deb.bbclass rootfs_deb: move the lock from WORKDIR to DEPLOY_DIR_DEB 2012-08-17 18:04:23 +01:00
populate_sdk_ipk.bbclass Rework installation of dev, dbg, doc, and locale packages 2012-07-29 10:16:14 +01:00
populate_sdk_rpm.bbclass populate_sdk_rpm.bbclass: Depend do_populate_sdk task on createrepo-native 2012-08-06 15:18:46 +01:00
populate_sdk.bbclass nativesdk: Switch to using nativesdk as a prefix, not a suffix 2012-09-02 05:52:06 -07:00
prexport.bbclass prexport.bbclass: Fix typo in warning: "AUROPR" -> "AUTOPR". 2012-07-04 17:40:38 +01:00
primport.bbclass prservice: Added sanity check for prservice connection. 2012-03-08 12:16:29 -08:00
prserv.bbclass meta/PRService: Added export/import fuctions. 2012-01-11 10:37:43 +00:00
python-dir.bbclass python-dir: change PYTHON_BASEVERSION to 2.7 2011-10-31 22:03:22 +00:00
pythonnative.bbclass base/perlnative/pythonnative/gzipnative: Add a new variable to enable easier handling of native path issues 2012-07-26 14:56:20 +01:00
qemu.bbclass qemu.bbclass: Map the qemu binary name for powerpc64 2012-07-26 14:40:46 +01:00
qmake_base.bbclass classes/qmake_base: support linux-gnuspe/linux-uclibcspe TARGET_OS 2012-09-05 17:32:14 +01:00
qmake2.bbclass qt4: Enable accessibility and sm option for LSB. 2011-01-20 21:37:01 +00:00
qt4e.bbclass qt4: Avoid circular dependencies with multilib 2012-10-03 10:02:21 +01:00
qt4x11.bbclass qt4: Avoid circular dependencies with multilib 2012-10-03 10:02:21 +01:00
recipe_sanity.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00
relocatable.bbclass relocatable.bbclass: split it up, to reuse code 2012-08-02 15:28:39 +01:00
rm_work.bbclass Various typoes fixed, all comments or output strings. 2012-03-26 12:13:05 +01:00
rootfs_deb.bbclass rootfs_deb: move the lock from WORKDIR to DEPLOY_DIR_DEB 2012-08-17 18:04:23 +01:00
rootfs_ipk.bbclass rootfs_ipk.bbclass: add missing --force_postinstall option 2013-04-23 13:00:47 +01:00
rootfs_rpm.bbclass classes/rootfs_rpm: fix missed complementary packages with complex arch names 2013-02-14 15:19:54 +00:00
sanity.bbclass sanity.bbclass: Fix invalid test for network error 2012-10-02 12:00:03 +01:00
scons.bbclass classes: scons: add EXTRA_OESCONS 2012-03-26 23:29:44 +01:00
sdl.bbclass classes/sdl: remove Opie-specific desktop file/packaging 2012-02-21 17:00:46 +00:00
setuptools.bbclass distutils/steuptools: Fix files layout and unbreak builds 2012-08-24 17:25:15 +01:00
sip.bbclass sip.bbclass: fix sip-native dependency 2012-08-02 15:28:37 +01:00
siteconfig.bbclass siteconfig: Clear cache before rebuilding 2012-09-28 15:19:42 +01:00
siteinfo.bbclass meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True) 2012-03-05 10:22:56 -08:00
sstate.bbclass sstate: Also add datadir/sgl to sstate whitelist to avoid openjade warning 2012-10-10 15:24:13 +01:00
staging.bbclass staging.bbclass: Might as well drop the applications, fonts and pixmap directories from ${datadir} 2012-08-29 16:02:07 -07:00
syslinux.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
task.bbclass Rename task to packagegroup 2012-09-04 12:52:55 +01:00
terminal.bbclass terminal: pass data store all the way through to terminal class 2012-09-24 15:35:30 +01:00
tinderclient.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00
toolchain-scripts.bbclass toolchain-scripts.bbclass:add PYTHONHOME variable to environment-setup 2013-04-23 13:00:51 +01:00
typecheck.bbclass typecheck.bbclass: update per current variable typing code 2012-05-11 17:50:50 +01:00
update-alternatives.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00
update-rc.d.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
useradd.bbclass Convert tab indentation in python functions into four-space 2012-07-19 10:24:50 +01:00
utility-tasks.bbclass utility-tasks: Set T to alternate location during do_clean 2012-08-18 16:23:59 +01:00
utils.bbclass meta/classes: Various python whitespace fixes 2012-08-21 12:15:30 +01:00