Commit Graph

142 Commits

Author SHA1 Message Date
Kevin Tian 637ad7ef8c bitbake.conf: change inode calculation for genext2fs [BUGFIX#138]
genext2fs 1.4.1 creates minimal inode number based on specified rootfs
directory. This is desired in some embedded devices as storage/memory
are precious. However it's not suitable in development phase where target
rootfs may be changed heavily on the fly (remote debug, test, ...).
Sometimes this may even cause "No space on device" error due to limited
free inodes exhaulted at the 1st boot.

Here a new option is added to allow falling back to original 1.3 behavior,
i.e caculating inode number based on specified bytes-per-inode parameter.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2010-07-27 22:51:34 -07:00
Mark Hatle 62540b2a15 meta/conf/bitbake.conf: Configure pseudo to not expand symlinks
When using the fake chroot ability of pseudo, it will expand absolute
symlinks to their full non-fake path by default.  The simple change disables
that behavior, as it is undesired when generating a rootfs.

Signed-off-by: Mark Hatle <mhatle@windriver.com>
2010-07-24 00:50:10 +01:00
Joshua Lock a4fb2c9666 pseudo: Enhancements
Enable changing the data directory on the fly from the environment and then use
this feature within poky to confine pseudo usage to each WORKDIR.

This fixes issues that could be seen under heavy inode reusage e.g.
with rm_work.

Work based mainly off a patch from Joshua Lock but finished by Richard
Purdie.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-24 00:39:58 +01:00
Richard Purdie 66d7b58f22 bitbake.conf/cross.bbclass: Inject MULTIMACH_TARGET_SYS into the toolchain paths to prevent multimachine cross contamination
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-23 18:04:59 +01:00
Richard Purdie f887d02527 bitbake.conf: Increase the image generation free space
The current free space doesn't leave much room for using the image,
increase it. Patch from Saul Wold with tweaks.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-22 23:22:33 +01:00
Joshua Lock 50629b3746 bitbake.conf: move PSTAGE_DIR and DL_DIR with build output
Having PSTAGE_DIR be a top level directory by default doesn't make sense, move
it to be a child of the build directory so that it lives with all other built
output. Also move DL_DIR to a child of the build directory for the use case of
an unwriteable $OEROOT.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-07-21 15:39:52 +01:00
Joshua Lock 29d5edffb0 Use pseudo rather than fakeroot for fake root privileges
Make use of the ability to configure the fake root provider and use Wind
River's pseudo utility.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-07-16 15:40:32 +01:00
Richard Purdie cc86905780 bitbake.conf: Add base_libdir_nativesdk
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-15 10:14:49 +01:00
Richard Purdie f9262fabad bitbake.conf: Update sdk build flags after layout changes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-14 17:39:49 +01:00
Richard Purdie 061df5abaf meta-toolchain: Improve layout
* Switch from /usr/local/poky to /opt/poky
* Use a sysroots directory for both the "native" sdk binaries and the target
* Drop the meta-toolchain extras packages. These are replaced with packaged-staging.
* Change the nativesdk layout to match our usual filesystem layout
* Clean up various hardcoded prefix references

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-02 14:35:08 +01:00
Richard Purdie beef002bb4 lib/oe/patch.py: Fix patch application failure interaction handling
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-06-10 20:22:41 +01:00
Joshua Lock 9d9b64aaf0 bitbake.conf: Remove util-linux from ASSUME_PROVIDED
We need to build our own util-linux now

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-06-02 16:15:15 +01:00
Nitin A Kamble 2ddc6c4b03 bitbake.conf: add the LOG_DIR variable
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-06-02 14:06:02 +01:00
Joshua Lock c22ab5fc9f Install cross-packages into the native sysroot
Cross is no longer required so can go away, we now install cross packages into
the native sysroot and use them from there.

This patch includes updates to classes and some recipes which reference
CROSS_DIR. Others still need fixing an image can be built and run with this
patch applied.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-27 18:29:57 +01:00
Joshua Lock 7f019514d8 Move STAGING_BINDIR_CROSS into target sysroot, instead of native
Cross scripts now live in sysroot/$arch-distro-os/crossscripts, this conveys
that they are no longer native system dependant and emphasises their purpose.

Bump the staging ABI and implement a simple migration from ABI 3 to ABI 4.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-27 16:58:42 +01:00
Richard Purdie 9c5386c1fd base.bbclass: Split up as per the patch in OE.dev by Chris Larson making code more readable and modularised
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-19 23:12:06 +00:00
Joshua Lock 0e4111c7d9 bitbake.conf: quieten wget fetches
Add the q switch to wget fetches and resumes to reduce stdout noise.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-29 12:33:46 +00:00
Joshua Lock b2c8430898 packaged-staging: Move packaged staging directory outside of DEPLOY_DIR
Rename DEPLOY_DIR_PSTAGE to PSTAGE_DIR and move it outside of deploy.
Do soft assignment of a default variable inside bitbake.conf as
${OEROOT}/tmp/pstage.
Use a separate directory, PSTAGE_WORKDIR, to store transient packaged
staging files such as the stamp files and opkg.conf

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-29 12:33:45 +00:00
Richard Purdie 19805550bd bitbake.conf: Add virtual/xserver to MUTLI_PROVIDER_WHITELIST
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-27 11:52:32 +00:00
Richard Purdie b623ced116 bitbake.conf: Add virtual/libintl-nativesdk to MULTI_PROVIDER_WHITELIST
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-25 17:26:44 +00:00
Richard Purdie 3139368254 bitbake.conf: Add virtual/libintl-native to MUTLI_PROVIDER_WHITELIST
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-01-20 15:24:22 +00:00
Richard Purdie b772c8cde5 bitbake.conf/base.bbclass: Rename the staging directory to sysroots and the populate_staging task to populate_sysroot
This change makes the purpose of the staging directory more obvious and
the taskname more true to what it now actually does.

The layout version number is increased due to the change in layout
but code to convert existing directories and insert a symlink for
backwards compatibility is included.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:42 +00:00
Richard Purdie abe3902c2c bitbake.conf: Add virtual/libintl-native to ASSUME_PROVIDED
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-13 12:15:27 +00:00
Richard Purdie b5b6b222bc bitbake.conf: Drop SHELLCMDS quoting fixing menuconfig task
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-12 21:22:56 +00:00
Richard Purdie 67a79c7443 bitbake.conf: Fix STAGING_BINDIR_CROSS to point to the location before the layout_* changes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-10-05 16:29:06 +01:00
Richard Purdie 1d4f93e8f6 Add SDKMACHINE to simplify SDK control and add to CACHE paths to allow environmental variable control
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-18 10:01:33 +01:00
Richard Purdie 9fba0f42bc bitbake.conf: Update SPECIAL_PKGSUFFIX to include crosssdk/cross-canadian and drop -cross-sdk
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-17 22:25:24 +01:00
Richard Purdie abfe8598c3 bitbake.conf: Add SDK variable definitions
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-17 22:25:23 +01:00
Richard Purdie 0d7207ca39 sdk.bbclass: Rename to nativesdk.bbclass
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-17 22:25:22 +01: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
Richard Purdie 6024456d59 bitbake.conf: Use BASE_PACKAGE_ARCH as the default, not HOST_ARCH
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-17 22:22:15 +01:00
Richard Purdie 3b8b3f7a0b bitbake.conf: Add SDK variable definitions
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-17 22:21:52 +01:00
Richard Purdie 846794c17e bitbake.conf: Rename SDK_PREFIX SDKPATH
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-09-10 17:58:36 +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 3a680d226b bitbake.conf: Create the rootfs in WORKDIR, not directly in TMPDIR allowing creation of more than one rootfs at once
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-08-12 10:01:25 +01:00
Richard Purdie ea4be0e5b0 bitbake.conf: Sync with changes in OE.dev 2009-07-02 14:30:04 +01:00
Richard Purdie 8643766837 bitbake.conf: Add definition of SRCPV so git revisions can be incrementaly numbered. Influence for this comes from Openmoko.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-06-09 23:36:44 +01:00
Richard Purdie 6a11cf7dfe bitbake.conf: Set PERSISTENT_DIR for the cache location so its common to all builds of different machines
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-05-31 22:23:30 +01:00
Richard Purdie 2096c315df bitbake.conf: Always add full debug information and increase the default image slack space
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-04-22 17:37:47 +01:00
Marcin Juszkiewicz e1d6280a61 bitbake.conf: add IMAGE_ROOTFS_SIZE (from OE) 2009-01-23 17:48:28 +00:00
Richard Purdie 78f5f8df30 Various fixes after recent commit breakage 2009-01-04 00:00:59 +00:00
Richard Purdie 61d8ea7a14 bitbake.conf: In SPECIAL_PKGSUFFIX -cross-sdk must come before -cross and -sdk or it doesn't work as expected 2009-01-02 14:01:27 +00:00
Richard Purdie 6552990921 bitbake.conf: Default to an IMAGE_FSTYPES of tar.gz instead of the less useful jffs2 2009-01-02 10:31:44 +00:00
Richard Purdie 01ceeedc79 bitbake.conf: Rename DEBPV to EXTENDPV to sync up with OE 2009-01-02 10:30:37 +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 2c70bf49c1 bitbake.conf: Drop stale unused MANIFEST variable 2008-12-31 22:58:07 +00:00
Rob Bradford 49e8c06b77 bitbake.conf: Allow TMPDIR and DEPLOY_DIR_IMAGE to be overridden 2008-12-01 20:50:05 +00:00
Richard Purdie dd36b620fe bitbake.conf: Fix CHECK_COMMAND_wget quoting 2008-11-05 19:34:12 +00:00
Robert Bragg d5b1c1dd85 [bitbake.conf] Removes the MACHINE_DRI_MODULES var since it's no longer used by mesa 2008-10-30 18:25:06 +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