Commit Graph

113 Commits

Author SHA1 Message Date
Richard Purdie aaf9b6aa5f base.bbclass: Add an option of forcing the new staging mechanism
Add an option of forcing the new staging mechanism for native packages
that don't use autotools with the NATIVE_INSTALL_WORKS option

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:23 +00:00
Richard Purdie 08d949ee12 base.bbclass: Fix do_populate_staging to operating on TMPDIR, not STAGING_DIR_TARGET
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:23 +00:00
Richard Purdie 379bc4788f classes: Various staging improvement fixups
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:23 +00:00
Richard Purdie d7399bd56c base.bbclass: Rework staging function to use a DESTDIR style configuration based on the data from the do_install step. This falls back to any standard do_stage function if defined, see the mailing list for more info.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:23 +00:00
Richard Purdie a1d93ee326 packaged-staging.bbclass: Use a variable for the location of the staging lock file
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:22 +00:00
Richard Purdie 7c97538327 binconfig/pkgconfig.bbclass: Convert staging functions into SYSROOT_PREPROCESS_FUNCS operating on SYSROOT_DESTDIR
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:22 +00:00
Richard Purdie 6ea78d6489 autotools.bbclass: Separate out useful staging functions into base.bbclass and call from autotools classes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:22 +00:00
Richard Purdie 764f73a033 base.bbclass: Only run do_stage if its been overwritten as the default is empty and its pointless to run it
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:21 +00:00
Richard Purdie af85ce4b4e Remove layout_* variables
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-09-17 22:24:36 +01:00
Damien Lespiau 0f2df9e639 base.bbclass: Don't retrieve SRC_URI when not necessary
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2009-08-26 00:45:53 +01:00
Damien Lespiau 65bf6c90e6 base.bbclass: packages pulling a mercurial tree should depend on mercurial
As we don't provide a mercurial-native package (yet) let's assume the
build machine has it installed and check (sanity.bbclass) if it's the
case.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2009-08-26 00:44:41 +01:00
Richard Purdie c2b4308119 base.bbclass: Use subprocess rather than os.system for do_unpack
gzip reports broken pipe errors with do_unpack on Fedora with
certain builds of gzip and bash. By avoding python's SIGPIPE handler
we can work correctly on these distributions.

Patch based on a patch from the OE-devel mailing list, thanks to
Khem Raj <raj.khem@gmail.com> and Holger Freyther <zecke@selfish.org>

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-08-25 16:37:50 +01:00
Richard Purdie a811131e69 base.bbclass: Update to work with systems where install won't overwrite files
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-05-19 12:09:21 +01:00
Richard Purdie 3927e38eba Merge ssh://gitserver@git.pokylinux.org/poky 2009-04-28 08:24:11 +01:00
Robert Schuster 58ffd5a0ed base.bbclass: Add subdir feature to SRC_URI entries (from OE) 2009-03-11 12:03:25 +01:00
Richard Purdie be10b46b73 base.bbclass: Use explode_deps from bb.utils and remove the obsolete base.bbclass version 2009-02-05 23:54:11 +00:00
Richard Purdie c2c16bced8 base.bbclass: Move package metadata handling functions into their own class file 2009-02-05 23:54:11 +00:00
Richard Purdie 01793c5bd3 base.bbclass: Remove pointless expand call 2009-01-02 11:18:42 +00:00
Richard Purdie 3ab2ff7668 base.bbclass: Add metadata revision handling for git (from OE) 2009-01-02 11:09:04 +00:00
Richard Purdie 1d89595e2b base.bbclass: Add unpack handling for .jar files (from OE) 2009-01-02 10:35:32 +00:00
Richard Purdie 94c895aad5 bitbake.conf: Create BPN variable containing the pruned version of PN with various suffixes removed and use this for S and FILESPATH. This uses naming from OE but with improved code 2009-01-02 10:15:45 +00:00
Richard Purdie 7fdff0f3cd base.bbclass: Improve the git proxy syntax to match the http/ftp syntax too 2008-11-04 19:13:25 +00:00
Richard Purdie 4c626238e7 base.bbclass: Set GIT_CONFIG correctly 2008-11-04 13:32:35 +00:00
Richard Purdie 66481d67f4 base.bbclass: Fix whitepsace damage 2008-11-04 11:49:06 +00:00
Richard Purdie 2a0c668a9b base.bbclass: Create ~/.gitconfig if it doesn't already exist 2008-11-04 11:48:12 +00:00
Richard Purdie 51be1fad9c linux-simtec: Update simtec1 -> simtec3 and add COMPATIBLE_MACHINE 2008-11-04 11:43:33 +00:00
Richard Purdie efbd5e58d4 base.bbclass: Fix infinite loop 2008-10-31 14:47:22 +00:00
Richard Purdie af861caace base.bbclass: Fix typo 2008-10-31 14:40:49 +00:00
Richard Purdie 921cbb2626 base.bbclass: Fix the git config file writing code 2008-10-31 14:38:11 +00:00
Richard Purdie 57fbc64c59 base.bbclass: Fix getVar call 2008-10-31 13:25:04 +00:00
Richard Purdie 175b45b6ec base.bbclass: Add missing import os 2008-10-31 13:19:10 +00:00
Richard Purdie d487daccd6 base.bbclass: Add missing import bb 2008-10-31 13:07:04 +00:00
Joshua Lock d514eeeaec base.bbclass: Additional git proxy support.
Add to the git proxy support so that the proxy configuration can be propogated to the git config (etc/gitconfig in staging).
Add support for ignored hosts in the git proxy.

Examples in site.conf.sample
2008-10-30 17:52:32 +00:00
Richard Purdie b8ff2b6cc3 base.bbclass/bitbake.conf: Fix some string quoting to handle more unusual URLs 2008-10-23 21:08:42 +01:00
Robert Bradford a8644924ab base.bbclass: Output notes only on BB <= 1.8.x
With BB > 1.9 the UI can output the details of an event as it chooses. They do
not need to be converted into notes. Without this patch spurious messages are
generated on BB 1.9.

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5540 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-20 11:35:37 +00:00
Richard Purdie 559a522dc3 base.bbclass: Add automatic osc-native dependencies for osc:// recipes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5425 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-07 09:25:11 +00:00
Richard Purdie 6e62524f37 base.bbclass: Add read_subpkgdata_dict function
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5389 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-02 19:56:43 +00:00
Richard Purdie a566074ef3 bitbake.conf: Split STAGING and CROSS to become target specific so armv5 binaries don't mix with armv6 or v7, likewise with the cross compilers themselves. Also move pkgdata our of staging since it follows a totally different directory structure to staging. These changes break ABI so change the ABI number
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4893 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-07-19 11:59:42 +00:00
Richard Purdie 767d9ca544 Merge multimachine class into bitbake.conf and create singlemachine.bbclass as a backwards compatibility option
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4858 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-07-17 20:49:48 +00:00
Richard Purdie 9e6cfe2225 base.bbclass: Disable do_mrproper - it doesn't do anything sane/useful
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4563 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-29 09:28:36 +00:00
Richard Purdie 7564d63ba5 base.bbclass: Add sanity check for multiple file matches to oe_libinstall from OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4460 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-12 14:10:06 +00:00
Ross Burton 8076a7b88a base.bbclass: don't add shasum-native dependency if we are building shasum-native
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4444 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-06 15:43:12 +00:00
Ross Burton 06fd2b6aaf base.bbclass: only depend on shasum-native if we don't have hashlib
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4389 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-01 11:42:24 +00:00
Ross Burton 9fb8bc41bf When checksuming tarballs use bb.utils.*_sum instead of calling commands directly
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4387 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-01 11:00:27 +00:00
Richard Purdie e1fcc01376 base.bbclass: Remove unneeded imports
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4356 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-27 20:41:01 +00:00
Richard Purdie d10b26644b base.bbclass: Add checkuri/checkuriall tasks to check validity of upstream source URLs
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4353 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-27 11:28:34 +00:00
Richard Purdie 192e4fb821 base.bbclass: Add setscene task to handle preparing the work area at the start of a given task, fixing the handling of the rebuild task. This task removes the need for do_prepackaged_stage in packaged-staging.bbclass.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4351 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-27 10:48:16 +00:00
Richard Purdie 54b240ec36 base.bbclass: Prefer gcc 3.4.6/7 over 3.4
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4341 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-25 15:32:45 +00:00
Richard Purdie a06b6cb530 base.bbclass: Fix dependency_libs libtool mangling regexp
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4306 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-22 12:48:30 +00:00
Richard Purdie 51fc436f35 base.bbclass: Sync with OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4064 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-03-19 16:07:25 +00:00