aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/native.bbclass
AgeCommit message (Collapse)Author
2011-07-25bitbake.conf/classes: Variable cleanupRichard Purdie
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 Ke
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 Hatle
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 Cui
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2011-06-09native/nativesdk: Clean up the depends ordering after bitbake override ↵Richard Purdie
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 Salvador
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 Yanok
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 Larson
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 Xu
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 Xu
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 Purdie
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 Purdie
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 Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-22Finally deprecate all legacy do_stage functions. This changes the existing ↵Richard Purdie
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 Lock
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 Purdie
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 Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13native.bbclass: Fix DEPENDS handling for BBCLASSEXTEND useRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13base/autotools.bbclass: Make sure extra dependencies are not lost for native ↵Richard Purdie
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 Purdie
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 Purdie
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 Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-17Remove layout_* variablesRichard Purdie
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 Purdie
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 Purdie
function correctly
2009-01-05native.bbclass: Handling remapping of PROVIDES similar to sdk.bbclassRichard Purdie
2009-01-03Remove unneeded S variablesRichard Purdie
2009-01-03zlib: Clean up recipe and use BBCLASSEXTEND for native and sdk versionsRichard Purdie
2009-01-03native/sdk.bbclass: Handle DEPENDS and PROVIDES fields magically, remove a ↵Richard Purdie
number of xorg sdk and native packages replacing with BBCLASSEXTEND
2008-07-21native.bbclass: Also override BASE_PACKAGE_ARCHRichard Purdie
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 Purdie
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 Juszkiewicz
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 Purdie
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 Purdie
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 Purdie
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 Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2632 311d38ba-8fff-0310-9ca6-ca027cbcb966
2007-06-10native.bbclass: Remove uneeded variablesRichard Purdie
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 Purdie
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 Purdie
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 Purdie
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 Purdie
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966