Bug 131 - Yocto SDK plugin set the wrong environment variables for cross autotool
Summary: Yocto SDK plugin set the wrong environment variables for cross autotool
Status: VERIFIED FIXED
Alias: None
Product: Eclipse Plugin
Classification: Yocto Project Subprojects
Component: eclipse-plugin (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium major
Target Milestone: 0.9 M2
Assignee: Jessica
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-07-19 20:34 UTC by Lianhao Lu
Modified: 2010-12-21 05:59 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified: Program Management
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lianhao Lu 2010-07-19 20:34:56 UTC
After Richard modified the meta-toolchain output infrastructure, the environment variables for cross autotool compile in Yocto SDK plugin is not valid any more.

The environment variables are set through YoctoSDKProjectNature.setEnvironmentVariables(), which set 3 variables "PATH", "PKG_CONFIG_SYSROOT_DIR", "PKG_CONFIG_PATH". They all need to be adjusted according to the latest meta-toolchain output change.

It looks like there are some env variables missing in the function, e.g. CC, CONFIGURE_FLAGS, etc. which are defined in the file /opt/poky/environment-setup-XXX-poky-linux. 

The misconfigured environment would cause autogen.sh generated wrong configure while the user is unaware of. (HelloWorld has no problem, but large projects using pkg-config would cause problems).

Besides, it would be nice if YoctoSDKProjectNature.configureAutotoolsoptions() can set autotool options like --host, --target, --build to the value extracted from CONFIGURE_CFLAGS.
Comment 1 Jessica 2010-07-25 15:57:22 UTC
Rework the preference and project setting pages for Yocto projects to adopt the latest meta-toolchain-sdk directory structure changes.  Also, include target, host, build and compiler flags to autobools according the user setup
Comment 2 Yongkang You 2010-07-29 18:34:30 UTC
Changed to SDK Plugin/Eclipse component
Comment 3 Lianhao Lu 2010-09-13 02:36:34 UTC
Verified that the plug-in now read in those environment variables from the file /opt/poky/environment-setup-XXX-poky-linux.