summaryrefslogtreecommitdiffstats
path: root/meta/classes/native.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* native.bbclass: generate libdir from libdir_nativeYu Ke2011-07-121-0/+2
| | | | | | | | | | | | | | | 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. (From OE-Core rev: fe45ef3d77d963136a13687bc14165a30e170d23) Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native.bbclass: Add a simple chown intercept commandMark Hatle2011-06-231-0/+2
| | | | | | | | | | | 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. (From OE-Core rev: 7fd8287d3320231db83c36d09f2b841e520fcfe9) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native/nativesdk: Clean up the depends ordering after bitbake override ↵Richard Purdie2011-06-091-32/+40
| | | | | | | | | | | | | | | 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. (From OE-Core rev: f183c7cfe377fa6ed2777605c3590a9dda2060df) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native.bbclass: allow a native package to be populated into its own dirDexuan Cui2011-06-091-0/+5
| | | | Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
* cmake.bbclass: fix qmake and rpath issuesOtavio Salvador2011-05-111-0/+4
| | | | | | | | | | | Sync with OE at 3b7d83362027fde4f6850533ab83277d95dda961 however without changing the way of generating the toolchain file and making it branding agnostic. (From OE-Core rev: ee98c2b095b991901b6c2125b2428985c873b4bd) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native, nativesdk, crosssdk: reset TARGET_FPUIlya Yanok2011-04-051-0/+1
| | | | | | | | | | | | | | | | | | | 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. (From OE-Core rev: 0d4ea5d7486dc35001582bef3ff6ebfad0606bda) Signed-off-by: Ilya Yanok <yanok@emcraft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* native: empty PACKAGES_DYNAMIC the way we do PACKAGESChris Larson2011-03-231-0/+2
| | | | | | | | | | | | 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. (From OE-Core rev: 41d77ac37f606e54293826ba1e94a4254bddbfa6) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* bitbake: machine specific sysroots implementationDongxiao Xu2011-01-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* staging: Use relative path in sysroot-destdir for target recipesDongxiao Xu2011-01-211-0/+3
| | | | | | | | | | 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>
* native.bbclass: Mark various package functions as noexec since they don't do ↵Richard Purdie2010-11-281-0/+5
| | | | | | any work Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclasS: Add handing to remap RDEPENDS fields and avoid crossed ↵Richard Purdie2010-11-281-1/+13
| | | | | | target and native dependency trees Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclass: Ensure EXTRA_NATIVE_PKGCONFIG_PATH has a default valueRichard Purdie2010-08-181-0/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Finally deprecate all legacy do_stage functions. This changes the existing ↵Richard Purdie2010-07-221-24/+0
| | | | | | | | warning into a fatal error if any legacy do_stage functions are found. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* relocatable.bbclass: remove hard-coded rpaths from native binariesJoshua Lock2010-02-111-0/+3
| | | | | | | | | | | 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>
* gettext.bbclass: Set the gettext dependencies correctly for target, cross ↵Richard Purdie2010-01-051-0/+2
| | | | | | and native packages Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclass: Make sure PACKAGES is empty in case _prepend or _append are usedRichard Purdie2009-11-161-0/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclass: Fix DEPENDS handling for BBCLASSEXTEND useRichard Purdie2009-11-131-29/+21
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* base/autotools.bbclass: Make sure extra dependencies are not lost for native ↵Richard Purdie2009-11-131-2/+0
| | | | | | and nativesdk BBCLASSEXTEND. Ugly but no simpler/neater way seems possible Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclass: Improve DEPENDS mangling code so sub matches don't break ↵Richard Purdie2009-11-131-5/+11
| | | | | | upon substitutions Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclass: If do_stage isn't overridden, allow do_install to run for ↵Richard Purdie2009-11-131-5/+5
| | | | | | | | native packages Also let do_install run for packages that run autotools_stage_all directly Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclass: Use prefix_native variableRichard Purdie2009-09-171-2/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Remove layout_* variablesRichard Purdie2009-09-171-26/+9
| | | | | | | | | | | | 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>
* native.bbclass: Drop INHIBIT_NATIVE_STAGE_INSTALL function and wrap logic in ↵Richard Purdie2009-06-111-10/+16
| | | | | | a do_stage_native() wrapper which packaged-staging can detect Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* native.bbclass: Add virtclass-native to OVERRIDES and use in fakeroot to ↵Richard Purdie2009-01-051-0/+1
| | | | function correctly
* native.bbclass: Handling remapping of PROVIDES similar to sdk.bbclassRichard Purdie2009-01-051-0/+10
|
* Remove unneeded S variablesRichard Purdie2009-01-031-0/+2
|
* zlib: Clean up recipe and use BBCLASSEXTEND for native and sdk versionsRichard Purdie2009-01-031-0/+6
|
* native/sdk.bbclass: Handle DEPENDS and PROVIDES fields magically, remove a ↵Richard Purdie2009-01-031-0/+18
| | | | number of xorg sdk and native packages replacing with BBCLASSEXTEND
* native.bbclass: Also override BASE_PACKAGE_ARCHRichard Purdie2008-07-211-0/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4917 311d38ba-8fff-0310-9ca6-ca027cbcb966
* native.bbclass: Override BASEPKG_HOST_SYS and TARGET_SYS in the native caseRichard Purdie2008-07-211-0/+3
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4916 311d38ba-8fff-0310-9ca6-ca027cbcb966
* native.bbclass: fix do_stage (s/"]/" ]/) - taken from OEMarcin Juszkiewicz2008-03-201-1/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4096 311d38ba-8fff-0310-9ca6-ca027cbcb966
* autotools.bbclass/native.bbclass: Use autotools_stage_all instead of ↵Richard Purdie2008-03-191-3/+6
| | | | | | 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
* pkgconfig: Switch to using sysroot simplifying pkgconfig files. Requires a ↵Richard Purdie2007-11-121-0/+1
| | | | | | full rebuild. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3125 311d38ba-8fff-0310-9ca6-ca027cbcb966
* Rearrange staging to match target system layout. This is a major change and ↵Richard Purdie2007-11-121-27/+21
| | | | | | will require a full rebuild. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3123 311d38ba-8fff-0310-9ca6-ca027cbcb966
* native.bbclass: Don't use site files for native buildsRichard Purdie2007-09-011-0/+3
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2632 311d38ba-8fff-0310-9ca6-ca027cbcb966
* native.bbclass: Remove uneeded variablesRichard Purdie2007-06-101-7/+0
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1902 311d38ba-8fff-0310-9ca6-ca027cbcb966
* native.bbclass: Enhance to allow extra pkgconfig search paths to be injectedRichard Purdie2007-04-031-0/+2
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1429 311d38ba-8fff-0310-9ca6-ca027cbcb966
* native.bbclass: Override STAGING_BINDIR_CROSSRichard Purdie2007-01-081-0/+1
| | | | git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1126 311d38ba-8fff-0310-9ca6-ca027cbcb966
* Fix STAGING_BINDIR for multimachine use by spliting into STAGING_BINDIR and ↵Richard Purdie2006-11-251-0/+1
| | | | | | 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
* Rename /openembedded/ -> /meta/Richard Purdie2006-07-211-0/+95
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966