summaryrefslogtreecommitdiff
path: root/meta/classes/autotools.bbclass
AgeCommit message (Collapse)AuthorFiles
2012-01-03autotools.bbclass: fix cp error for empty dirNitin A Kamble1
the .../usr/share/aclocal is empty for build from scratch. so avoid cp error if the directory is empty. Fixes this error, which is thrown before pseudo is built: | cp: cannot stat `/builddisk/build/build0/tmp/sysroots/x86_64-linux/usr/share/aclocal/*': No such file or directory NOTE: package libtool-native-2.4.2-r0.0: task do_configure: Failed Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-11-30autotools.bbclass: Report the missing configure pathDarren Hart1
If the configure script isn't found, report the explicit path tried. This can help debug subtle errors where the ${S} sourcedir may not be exactly what is expected. Signed-off-by: Darren Hart <dvhart@linux.intel.com> 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-14autotools: fix multi-word arguments for EXTRA_OECONFChristopher Larson1
This is needed to better support things like the following (with a multi-word BUILD_CC): EXTRA_OECONF += '"ac_cv_prog_CC_FOR_BUILD=${BUILD_CC}"' Signed-off-by: Christopher Larson <kergoth@gmail.com>
2011-10-14autotools: Enhance gettext handling to better work with SCM versions of codeRichard Purdie1
If we pull SCM based code using gettext, Makefile.in.in in the po directory can be missing. We therefore need to add this if its not already present. We could use gettextize if it wasn't so broken (for example requiring user input on stdin and installing way more files that we ever care about such as the m4 files). We also have a problem if a recipe sets a different AUX dir, for now fix this by allowing recipes to specify when this is being done using the AUTOTOOLS_AUXDIR variable. Ultimately we could likely figure this out automatically. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-10-05autotools.bbclass: Allow dependency tracking option to be easily overriddenRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-30autotools: Disable dependency trackingRichard Purdie1
There is no point in us spending time generating a ton of dependency information in source directories when we don't actually use it for our one off builds. We might as well disable the option and take the speed up. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-30Remove help2man dependencyRichard Purdie1
The help2man script is pretty useless to us. It requires to run the target binary to extract help information which is not possible for any of our cross compiled target binaries. We're not interested in man pages for -cross/-native tools. It therefore makes no sense to have this as a core build dependency. This patch removes the dependeny and replaces it with a script returning false. This will trigger autotool's missing utility to use the copy of the man page included with the sources which is what would already happen when we tried to run cross compiled binaries anyway. 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-03autotools.bbclass: Fix m4 file raceRichard Purdie1
If something removes .m4 files from the aclocal directory whilst aclocal is running it gets upset. To avoid this we need to take a copy of the aclocal directory and build against this instead. [YOCTO #861] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-27multilib: Add support for compiling recipes against multiple ABIsRichard Purdie1
This patch adds the core multilib class which can be used along with a parameter specifying the mutlilib to use in BBCLASSEXTEND. The MLPREFIX variable is added and can be used in cases where its too difficult to dynmaically work out where a mutltilib prefix is needed to be added to a variable. This includes: * SHLIBSDIR and PACKAGE_ARCH fixes from Lianhao Lu. * PACKAGE_DYNAMIC mapping from Yu Ke * PACKAGE_INSTALL mapping from Yu Ke * RPROVIDES mapping from Yu Ke * TARGET_VENDOR fix from Mark Hatle * Ignorning *-native-runtime dependnecies as well as *-native from Yu Ke * Map PKG and ALLOW_EMPTY from Dongxiao Xu * Ensure RCONFLICTS and PKG field dependencies are remapped (from Dongxiao Xu) * Ensure PN and MLPREFIX are set at the same time to ensure consistent BPN values (Yu Ke) Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Xu Dongxiao <dongxiao.xu@intel.com> Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-20autotools.bbclass: Add help2man-native to the main DEPENDS treeTom Rini1
With help2man no longer being required by sanity.bbclass we need to make sure that if we are going to build autotools stuff that help2man will be there as it's a frequent implicit dependency. Signed-off-by: Tom Rini <tom_rini@mentor.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-04logging: update existing oe* logging users to the bb* interfaceDarren Hart1
The new bash logging class provides bbnote, bbwarn, bbfatal, and bbdebug replacements (as well as bbplain and bberror) for the oe* equivalents. Use the new bb* API in preparation to delete the oe* logging API. This patch was automatically generated by a sed script. The result has been visually inspected and used to build core-image-sato for qemux86. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2011-04-28autotools.bbclass: Copy gettext files only if --disable-nls is not setKhem Raj1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-04-12autotools: Pass --disable-silent-rules to configureColin Walters1
Non-verbose logs are really annoying when trying to debug a build failure. A lot of projects are copying in the flag to use AM_SILENT_RULES which automake gained recently. We need to undo this. We'll get a warning from configure if it's not recognized, but that's fine. Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-03-10autotools.bbclass: Fix automake file race issuesRichard Purdie1
If one package is configuring when automake is built, the aclocal-VERSION directory can be created or removed and this can confuse the configure process. Since we always run automake-native, it should always be using the autoake-native aclocal directory for automake files which is the result of this patch. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-02-02autotools.bbclass: Drop info directory listings as they're going to be ↵Richard Purdie1
broken if generated at this point and cause file conflicts Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-27autotools.bbclass: Drop unused autotools_stage_dir dummy functionRichard Purdie1
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-27autotools.bbclass: Only include aclocal directories if the exist, no point ↵Richard Purdie1
in creating them Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-01-21autotools.bbclass: libtool sysroot support changesScott Garman1
We do not do it for native recipes, as the native compiler should fall back to a prefix of /usr and not solely depend on the sysroot. Otherwise we end up staging everything in the native sysroot before we start to build target recipes. Also remove la mangling code, which is no longer necessary. Commit derived from Khem Raj's OE commits. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-09-10autotools: enable siteconfig by defaultJeff Polk1
eglibc glibc ncurses uclibc zlib: remove explicit siteconfig Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
2010-08-19autotools.bbclass: Drop a number of legacy functions that shouldn't be (and ↵Richard Purdie1
aren't) used in poky now 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-04-27autotools: deprecate autotools_stage classJoshua Lock1
Move the functionality into autotools and ensure all our Poky recipes are no longer using it. Keep the autools_stage class around for OE compatability but just have it inherit autools. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-03-29autotools.bbclass: Allow extraction of the configure arguments for use in ↵Richard Purdie1
strange testcases Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-19base.bbclass: Don't inherit siteinfo in base.bbclass [based on an OE patch ↵Richard Purdie1
from Chris Larson]
2009-11-30autotools.bbclass: Make sure config.rpath is present if neededRichard 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-13classes: Remove and sanitise import statementsRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13classes: Various staging improvement fixupsRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13autotools.bbclass: Separate out useful staging functions into base.bbclass ↵Richard Purdie1
and call from autotools classes Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13autotools.bbclass: No need to fork sed each timeRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13autotools.bbclass: Convert .la file mangling to package preprocessing hookRichard 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-08-12autotools.bbclass: Remove pointless inheritRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-07-16autotools.bbclass: Fix to work with configure files with leading whitespaceRichard Purdie1
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-06-11packaged-staging.bbclass: Detect when we're using autotools_stage_all and ↵Richard Purdie1
don't hold the lock for as long when that is the case giving a significant performance boost with less lock contention and staging area file timestamp checking required Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2008-11-04autotools.bbclass: Handle /lib as well as /usr/lib in autotools_stage_allRichard Purdie1
2008-05-12autotools.bbclass: Switch stage_autotools_all to change la files itself and ↵Richard Purdie1
to stop using oe_libinstall git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4459 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-06autotools.bbclass: There is no need to use the strange -t option to cp anymoreRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4442 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-21autotools.bbclass: Drop enable-maintainer-mode until such times as its been ↵Richard Purdie1
tested properly git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4109 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-20autotools.bbclass: fix typo in --enable-maintainer-modeRoss Burton1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4107 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-20autotools.bbclass: Add autotools_stage_dir to help staging directories and ↵Richard Purdie1
increase list of directories to stage (include base_sbin, base_bin and libexec) git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4098 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19autotools.bbclass: Some further tweaks to autotools_stage_allRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4080 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19autotools.bbclass: Fix typosRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4079 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19autotools.bbclass: Handle case where is an empty directoryRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4078 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19autotools.bbclass: autotools_stage_all - improve handling of datadirRichard Purdie1
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4077 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19autotools.bbclass: Add handling binary staging capability to ↵Richard Purdie1
autotools_stage_all for compatible binaries fixing various -native package issues git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4075 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