summaryrefslogtreecommitdiff
path: root/meta/classes/native.bbclass
AgeCommit message (Collapse)AuthorFiles
2012-01-05native.bbclass: Fix variable remapping coverageRichard Purdie1
When looking for RDEPENDS to process, bitbake iterates through PACKAGES *and* PN. Since native.bbclass sets PACKAGES to be empty, its pointless remapping the list of PACKAGES since this does nothing. There is a problem since *_${PN} are used by bitbake but not remapped by the native.bbclass class extension code. This changes the code to remap _${PN} in both expanded and unexpanded forms. As a result of this, various surprising dependencies are uncovered and the patch rectifies those. These are real bugs since they're injecting unneeded (unremapped) dependencies into the dependency chain. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-12-01classes, conf: Exclude native and nativesdk recipes from libc specific overrideKhem Raj1
Based on suggestions from RP libc-uclibc and libc-glibc overrides are for denoting system C library in use on the target and not for the host therefore we make sure that the override only takes effect for target recipes only. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-26getVar/setVar cleanupsRichard Purdie1
Complete the bb.data.getVar/setVar replacements with accesses directly to the data store object. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-10Convert to use direct access to the data store (instead of bb.data.*Var*())Richard Purdie1
This is the result of running the following over the metadata: sed \ -e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \ -e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -i `grep -ril bb.data *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-06native.bbclass: Ensure native recipes have a deterministic baselib valueRichard Purdie1
Changes to baselib by specific machine configuration were resulting in sstate cache invalidation, particularly in multilib configurations. This patch ensures this doesn't happen and native sstate cache files are reusable. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-26autotools.bbclass: Set the dynamic linker search path for libtool correctlyRichard Purdie1
libtool obtains the search path from /etc/ld.so.conf and hardcodes /usr/lib and /lib. This results in host contamination and variable sets of RPATH values ending up in binaries. By exporting the correct values for all autotools recipes we avoid this. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-05toolchain-scripts & other classes: add TARGET_LD_ARCH & TARGET_AS_ARCH varsNitin A Kamble1
This is comming from x32 need to pass special parameters to ld & as. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-07-25bitbake.conf/classes: Variable cleanupRichard Purdie1
This patch removes the variables BASE_PACKAGE_ARCH, BASEPKG_HOST_SYS, BASEPKG_TARGET_SYS and also removes the immediate assignments in several core classes as these are no longer required. This should make it clearer what some of the core variables do and simplfy some overly complex and confusing class code. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-12native.bbclass: generate libdir from libdir_nativeYu Ke1
currently, the libdir in native.bbclass is inherited from target libdir defined in bitbake.conf. This is not correct in concept, instead, it should be inherited from libdir_native. Current code works because both the target libdir and libdir_native are the same value "/usr/lib". But if libdir changes (e.g. to /usr/lib64), then build will break. This patch make libdir generated from libdir_native to fix this issue. Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-23native.bbclass: Add a simple chown intercept commandMark Hatle1
During native recipe processing we want to intercept any calls to chown and do nothing. This prevents errors and allows the same recipes to be used for both native and target recipes. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-06-14native.bbclass: allow a native package to be populated into its own dirDexuan Cui1
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2011-06-09native/nativesdk: Clean up the depends ordering after bitbake override ↵Richard Purdie1
handling updates This massively cleans up the dependency handling in the two classes when interacting with BBCLASSEXTEND. This change has a dependency on the bitbake override handling change and also the existence of the RecipePreFinalise event. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-11cmake.bbclass: fix qmake and rpath issuesOtavio Salvador1
Sync with OE at 3b7d83362027fde4f6850533ab83277d95dda961 however without changing the way of generating the toolchain file and making it branding agnostic. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-04-05native, nativesdk, crosssdk: reset TARGET_FPUIlya Yanok1
When building one of the native, nativesdk or crosssdk packages TARGET_* variables' values are no longer related to the target we set via MACHINE variable, they are now related to the BUILD (native) or SDK (nativesdk, crosssdk) targets instead. We need to change TARGET_FPU variable accordingly or some of the recipes (the ones that check for TARGET_FPU value, most notably gcc and eglibc) might be confused. It's probably cleaner not to reset TARGET_FPU but to change it to something like ${BUILD_FPU} (for native) or ${SDK_FPU} (for crosssdk and nativesdk) but as long as BUILD and SDK are x86 it's safe to just reset TARGET_FPU. Signed-off-by: Ilya Yanok <yanok@emcraft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-03-21native: empty PACKAGES_DYNAMIC the way we do PACKAGESChris Larson1
Without this, as a specific example, one has both gtk+-native and gtk+ runtime providing gdk-pixbuf-loader-*, and you can get bitbake preference conflicts as a result if you have preferences specified for both gtk+ and gtk+-native for other things. Signed-off-by: Chris Larson <chris_larson@mentor.com>
2011-01-25bitbake: machine specific sysroots implementationDongxiao Xu1
This commit changes the sysroots path to be machine specific. Changes includes: 1) STAGING_DIR_TARGET and STRAGING_DIR_HOST points to machine specific paths. 2) task stamp files. Adding ${MACHINE} info into stamp files for do_populate_sysroots and do_package tasks. Add a BB_STAMPTASK_BLACKLIST to keep native, nativesdk, crosssdk, and cross-canadian stamp unchanged. 3) siteconfig path. Separate the site config path for different machines to avoid one machine adopting the cache file of another machine. 4) sstate. Add machine name to sstate manifest file. Change relocation code for sstate paths since sysroot is machine. Keep native, nativesdk, crosssdk, and cross-canadian unchanged. 5) toolchain scripts. Change the environment path to point to machine specific sysroots in toolchain scripts bbclass. 6) Relocate la files when populating to a different machine of the same architecture. 7) Exclude STAGING_DIR_TARGET and STAGING_DIR_HOST parameter from sstate siginfo since they contain ${MACHINE} information. Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2011-01-21staging: Use relative path in sysroot-destdir for target recipesDongxiao Xu1
Original we used absolute path in sysroot-destdir for both native and target recipes. This commit changes target recipes to use relative path which is same as the image directory. [sgw: merged with libtool sysroot work] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2010-11-28native.bbclass: Mark various package functions as noexec since they don't do ↵Richard Purdie1
any work Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-28native.bbclasS: Add handing to remap RDEPENDS fields and avoid crossed ↵Richard Purdie1
target and native dependency trees Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-08-18native.bbclass: Ensure EXTRA_NATIVE_PKGCONFIG_PATH has a default valueRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-22Finally deprecate all legacy do_stage functions. This changes the existing ↵Richard Purdie1
warning into a fatal error if any legacy do_stage functions are found. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-02-11relocatable.bbclass: remove hard-coded rpaths from native binariesJoshua Lock1
The relocatable path will pre-process built binaries in SYSROOT_DESTDIR and replace any harcoded dynamic link rpaths with relative paths. Add an inherit of class in native.bbclass to make our native packages relocatable and tweak the chrpath recipe so that the native package can make itself relocatable with the just built chrpath binary. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-05gettext.bbclass: Set the gettext dependencies correctly for target, cross ↵Richard Purdie1
and native packages Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-16native.bbclass: Make sure PACKAGES is empty in case _prepend or _append are usedRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13native.bbclass: Fix DEPENDS handling for BBCLASSEXTEND useRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13base/autotools.bbclass: Make sure extra dependencies are not lost for native ↵Richard Purdie1
and nativesdk BBCLASSEXTEND. Ugly but no simpler/neater way seems possible Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13native.bbclass: Improve DEPENDS mangling code so sub matches don't break ↵Richard Purdie1
upon substitutions Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13native.bbclass: If do_stage isn't overridden, allow do_install to run for ↵Richard Purdie1
native packages Also let do_install run for packages that run autotools_stage_all directly Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-17native.bbclass: Use prefix_native variableRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-17Remove layout_* variablesRichard Purdie1
Remove layout_* variables and replace them with variables specific to the different classes. The layout variables were only useful for the native/cross classes and caused more confusion than they solved. They didn't scale to the sdk class. It now clear a small set of native/cross variables fulfil the needs. This patch also changes native.bbclass to use "/" as the STAGING_DIR which makes sense since we're installing binaries into the locations we're compiling them for. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-06-11native.bbclass: Drop INHIBIT_NATIVE_STAGE_INSTALL function and wrap logic in ↵Richard Purdie1
a do_stage_native() wrapper which packaged-staging can detect Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-01-05native.bbclass: Add virtclass-native to OVERRIDES and use in fakeroot to ↵Richard Purdie1
function correctly
2009-01-05native.bbclass: Handling remapping of PROVIDES similar to sdk.bbclassRichard Purdie1
2009-01-03Remove unneeded S variablesRichard Purdie1
2009-01-03zlib: Clean up recipe and use BBCLASSEXTEND for native and sdk versionsRichard Purdie1
2009-01-03native/sdk.bbclass: Handle DEPENDS and PROVIDES fields magically, remove a ↵Richard Purdie1
number of xorg sdk and native packages replacing with BBCLASSEXTEND
2008-07-21native.bbclass: Also override BASE_PACKAGE_ARCHRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4917 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-07-21native.bbclass: Override BASEPKG_HOST_SYS and TARGET_SYS in the native caseRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4916 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-20native.bbclass: fix do_stage (s/"]/" ]/) - taken from OEMarcin Juszkiewicz1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4096 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19autotools.bbclass/native.bbclass: Use autotools_stage_all instead of ↵Richard Purdie1
oe_runmake install for staging autotooled native packages (from OE.dev) git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4056 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-11-12pkgconfig: Switch to using sysroot simplifying pkgconfig files. Requires a ↵Richard Purdie1
full rebuild. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3125 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-11-12Rearrange staging to match target system layout. This is a major change and ↵Richard Purdie1
will require a full rebuild. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3123 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-09-01native.bbclass: Don't use site files for native buildsRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2632 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-06-10native.bbclass: Remove uneeded variablesRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1902 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-04-03native.bbclass: Enhance to allow extra pkgconfig search paths to be injectedRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1429 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-01-08native.bbclass: Override STAGING_BINDIR_CROSSRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1126 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-11-25Fix STAGING_BINDIR for multimachine use by spliting into STAGING_BINDIR and ↵Richard Purdie1
STAGING_BINDIR_NATIVE and adding both to PATH git-svn-id: https://svn.o-hand.com/repos/poky/trunk@958 311d38ba-8fff-0310-9ca6-ca027cbcb966
2006-07-21Rename /openembedded/ -> /meta/Richard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966