for CVS project, it use CPPFLAGS instead of CXXFLAGS, so it will fails to compile for the toolchain instead of ADT-INSTALLER. (untar toolchain style can compile, I have not validate whether it has contamination issue). Thanks& Regards, criping
The site-config file included in the meta-toolchain differs from the file in the corresponding meta-environment-xxx, because the siteinfo_get_files() function in class/siteinfo.bbclass returns different values. This is because the siteinfo_get_files() tries to get the site config files from SITECONFIG_SYSROOTCACHE. When meta-environmet-XXX is being build, there is nothing in SITECONFIG_SYSROOTCACHE. The meta-environment-XXX should be built after all the the packages included in the target rootfs have populated their site config files into SITECONFIG_SYSROOTCACHE.
It is confirmed that the CVS project problem has nothing to do with site config files, but only because of the CPPFLAGS. I'll open a new bug about the CVS problem.
CCed dongxiao.
The CVS issue is fixed in bug 908
The site config files are produced by the function siteinfo_get_files() from SITECONFIG_SYSROOTCACHE. This would result the mismatch between the target rootfs and the siteconfig files, because we can't guarantee that all the site config files are populated into the SITECONFIG_SYSROOTCACHE when building the meta-toolchain. Instead of generating the site config file in meta-toolchain, it should be generated during the rootfs generation so each rootfs will have its own site config file that matches the content in rootfs.
Patch sent out for review & merge http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=llu/bug892
Fixed by the following commits: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c6b808413d5ff1dbfdc4d615917345503029a282 http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=64c1f93828402ffb5c0fada527724598bc300973