Commit Graph

318 Commits

Author SHA1 Message Date
Scott Garman c805a6ed28 poky-qemu-internal: implement file locking in bash
There does not appear to be a universal lockfile utility that
meets our needs. For example:

* 'lockfile' is part of the procmail pacakge in Ubuntu, a
  requirement we don't want to impose on our users
* lockfile-[create|remove] from the Ubuntu lockfile-progs
  package does not appear to be available in Fedora/openSUSE

So, the most portable way to do this is just to implement it
in bash. The likelihood of race conditions is minimal for
what we need this for.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-08 14:48:20 -07:00
Scott Garman 7cd824a538 poky-qemu: fix handling of some rootfs types
This allows the user to specify a rootfs type
(e.g, poky-image-sato) without typing out the full filename
and path (assuming we can infer a valid MACHINE and FSTYPE).

This fixes [BUGID #415]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-08 14:47:54 -07:00
Scott Garman 7b079e1d08 Update meta-ide-support dependencies
Using poky-qemu with our new tap networking and/or unfs support
required too many additional build steps. This updates the
meta-ide-support dependencies so all features are built and
available to use.

Specifically, this adds psuedo-native, qemu-helper-native, and
unfs-server-native to the dependency chain for meta-ide-support.

This fixes [BUGID #392]

Also add poky-gen-tapdevs and remove runqemu-nfs from the
qemu-helper-native recipe, and update some qemu control script
error messages to suggest building meta-ide-support.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07 22:07:45 +01:00
Scott Garman 0f973ed665 Merge runqemu features into poky-qemu
This merges the functionality of the runqemu script into poky-qemu.
It also removes the requirement to order command line args to poky-qemu
in any particular order.

This fixes a slew of runqemu-related bugs by making the runqemu script
obsolete (and fixing the issues in the new poky-qemu), including
[BUGID #294] [BUGID #295] [BUGID #371] and [BUGID #324].

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07 19:57:34 +01:00
Scott Garman e70c8981f2 Allow running of multiple QEMU nfs instances
These changes allow multiple instances of the userspace NFS server
to run, when brought up by consecutive instances of the poky-qemu
control script.

This fixes [BUGID #393]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07 19:55:50 +01:00
Scott Garman 8532405c1d poky-gen-tapdevs: script to create a 'bank' of tap interfaces
This script can be used to create and configure a 'bank' of tap
interfaces that can be used by the poky-qemu script.

It is useful in locked-down enterprise environments where developers
do not have sudo access, but need to be able to run QEMU with
networking. A sysadmin would then use this script to bring up a
number of tap interfaces for the user to make use of.

This fixes [BUGID #391]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07 19:53:46 +01:00
Scott Garman 62625d0ca0 poky-qemu-internal: use lockfile-progs for network interface locking
The 'lockfile' utility originally used comes from the procmail
package, which users shouldn't have to install. This uses the
more general lockfile-progs utilities to acheive the same end.

This fixes [BUGID #389]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07 19:52:32 +01:00
Scott Garman fcbd67c047 poky-qemu: integrate userspace nfsroot support
This is the first phase of some refactoring the poky-qemu control
scripts are getting. This integrates userspace nfsroot support into
poky-qemu, making runqemu-nfs obsolete.

This fixes [BUGID #295]

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07 19:51:36 +01:00
Scott Garman c8a181e847 poky-qemu-ifup/ifdown: Require root privileges to run
This fixes [BUGID #232], requiring root privileges to run these scripts
and giving an error prompt when that requirement is not met.

The tunctl uid fallback code has also been removed, as we can rely on
the specific version of tunctl run from the native sysroot.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-10-07 19:48:17 +01:00
Darren Hart 0a20caf090 Export ALL_PROXY for bitbake commands
We already export http,ftp,https proxy environment variables. Some environments,
GNOME for instance, place the socks proxy in ALL_PROXY and all_proxy. Export it
as well.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2010-10-07 10:18:25 +01:00
Richard Griffiths ce7101b1f0 qemumips: override default UI options.
Fixes [BUGID #99]

The mouse, usb and cursor devices don't work for the
qemumips machine. There's no easy way to 'undo' the
defaults, or dynamically remove them, so we simply
don't use the default UI options for this machine type.

Mouse and pointer are provided via ps/2 and not via
the usb and wacom tablet driver.

Signed-off-by: Richard Griffiths <rgriffit@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-10-04 09:40:58 +01:00
Joshua Lock b9369741db poky-qemu-internal: only check mmap_min_addr when running arm images
No need to force users to poke /proc/sys when they don't need to.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-10-01 16:47:38 +01:00
Joshua Lock 7f7c185cf1 Revert "Drop vm_mmap_min_addr checks from scripts and sanity class"
This reverts commit 138df217ef.

We still need the vm_mmap_min_addr set to 0 to run locale generation for
qemu-arm

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-29 17:10:41 +01:00
Dongxiao Xu 5c8fad6544 poky-qemu-internal: Add userspace nfs support for mips and ppc
Add userspace nfs support for mips and ppc architecture.
This fixes [BUGID #343]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
2010-09-27 08:59:15 -07:00
Darren Hart 1cf456611d Wrap output at 80 columns for poky-env-internal
The output of:

$ source poky-init-build-env

would wrap on 80 character terminals, making the output difficult to read.
Replace the somewhat clumsy repeated usage of "echo" with bash here documents,
limiting line length to 80 characters. The use of here documents simplifies this
by removing any leading commands or indentation from the output being generated.
A bash'ism should be acceptable here as poky-init-build-env already aborts if
the shell is not bash.

Signed-off-by: Darren Hart <darren@dvhart.com>
2010-09-21 23:38:00 +01:00
Saul Wold 0be92981b3 poky-qemu-internal: fix locking of tap lockfile
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
2010-09-17 11:30:44 -07:00
Zhai Edwin 566de26cf5 bitbake: Add proxy variables to standard export list
With "no_proxy" exported to bitbake, both internal and externel file mirror can
be used. "https_proxy" enable fetching "https://" file through proxy.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
2010-09-10 11:47:38 +01:00
Richard Purdie f7f044c220 scripts/runqemu: Drop broken toolchain symlink code
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-10 10:45:55 +01:00
Richard Purdie c4ff5f3038 scripts/poky-qemu-ifup: Ensure the host has a route to it
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-10 10:45:55 +01:00
Richard Purdie 8e43883f97 scrtips/poky-qemu: Fix network interface device numbering
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-10 10:45:55 +01:00
Richard Purdie 3dd36ababd poky-qemu-internal: Fix ifdown script to use the correct variable
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-10 10:45:55 +01:00
Joshua Lock 9b800fe261 scripts: use the exported POKY_NATIVE_SYSROOT variable
Rather than trying to determine things through guess-work use the newly
exported variables to determine where the native binaries reside and
whether we are running in a build directory or not.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-07 11:22:54 +01:00
Joshua Lock 13ef707ab1 runqemu-nfs: check for required programs
The unfs server requires either rpcbind or portmap to be installed and
running to start so check for their presence in the script.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-09-07 10:48:21 +01:00
Jeff Polk d2febcce2b siteconfig: generate configuration data caches for autoconf
siteinfo: Use configuration caches when available

Generate cached configuration data for autoconf for the package
based on a list of header, types, and functions to eliminate the
need for all subesequent package builds to do the actual tests
via the cross compiler and sysroot.  The cache files are
stored in the sysroot in ${STAGING_DATADIR}/${TARGET_SYS}_config_site.d.
Siteinfo appends any files it finds in that directory to the normal
CONFIG_SITE.  All of the cache values set the variables only if not
already set so they may be overridden by any of the normal site files.

Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
2010-09-03 10:50:02 +01:00
Jiajun Xu 80993c4e1b qemuimage-testlib: kill qemu process according to its pid, instead of process name
poky-qemu-internal will set up a tap lockfile when creating tap device. The lockfile
will be released when a TERM signal is received. In previous code, function
Test_Kill_Qemu uses pkill to kill all process named "qemu". This may cause lockfile
release function not work in poky-qemu-internal. Then poky-qemu-internal will be
hang when user start QEMU the second time. To prevent the issue, the new function
Test_Kill_Qemu kills all child pid with a given parent process ID.

Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2010-09-02 11:00:08 +01:00
Saul Wold 8cbf96aeaf runqemu: add poky-image-basic and poky-image-lsb to recognized images
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
2010-09-02 09:50:48 +01:00
Richard Purdie caab7fc509 Drop chroot usage as its not well used, tested and is broken
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-09-01 15:08:45 +01:00
Jiajun Xu 7303807ef1 test: Add scenario file for each target and support single case running
Different test cases are needed for different targets. A folder "scenario"
is created under scripts/qemuimage-tests to hold scenario files for different
targets.

Single case running is supported now. User can run single case together with
a whole test suite by setting variable TEST_SCEN in local.conf.

By default test cases in sanity suite will be ran. If you want to run other
test suite or specific test case(e.g. bat or boot test case under sanity suite),
list them like following.
TEST_SCEN = "sanity bat sanity:boot"

Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2010-08-27 13:04:37 +01:00
Joshua Lock 66790ecb4a poky-qemu: check for existence of required libraries
We need some libraries installed to run the built qemu, check for their
existence before trying to run the program. Fixes [BUGID #201]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-08-25 11:15:16 +01:00
Dexuan Cui e8231e0950 poky-qemu-internal: fix the echo of KERNCMDLINE
Without the fix, when the commandline is printed with the "echo" command,
it loses the quotes and this confuses people.

Thanks Richard for pointing this out.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2010-08-20 16:20:13 +01:00
Scott Garman d7d803fa1c poky-qemu-internal: fix broken call to poky-qemu-ifup
The poky-qemu-ifup script now requires a path to the native
sysroot as an argument. This fixes a case where the argument
was missing.

Also, set up NATIVE_SYSROOT_DIR when running runqemu.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-08-20 16:20:12 +01:00
Scott Garman 070096ec70 runqemu-nfs: boot QEMU using nfsroot and local unfs export
This script automates the booting of QEMU using an nfsroot exported
by our userspace NFS tools. The rootfs should be created using
poky-extract-sdk.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-08-20 16:20:11 +01:00
Scott Garman 313bda1d87 poky-export-rootfs: script for exporting userspace nfsroots
This script automates the exporting of a root filesystem (created
with the poky-extract-sdk utility) using pseudo and the native
userspace NFS server. That filesystem can then be booted using
nfsroot with either QEMU or the target hardware using one of our
kernels.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-08-20 16:20:11 +01:00
Scott Garman c23da3d37e poky-extract-sdk: script for extracting sdk images using pseudo
This script automates the creation of a rootfs area using pseudo so
it can be used by a QEMU nfsroot boot.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-08-20 16:20:11 +01:00
Scott Garman f203df83a5 poky-qemu-internal: fixes for userspace NFS booting
Including a number of cases where the script could exit before
releasing a tun/tap lockfile.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-08-20 16:20:11 +01:00
Jeff Dike 81ff1ee237 poky-qemu-internal: Support use of a preconfigured tap device
This patch makes poky-qemu-internal check for the existence of an
available preconfigured tap device before running poky-qemu-ifup to
make a new one.

Locking is handled with a lockfile in /tmp/qemu-tap-locks/.  This uses
the lockfile utility, so that needs to be present on the host.  On
exit, this script removes the lock file so that the tap device may be
reused.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
2010-08-20 16:20:10 +01:00
Jeff Dike 4df9f11171 poky-qemu-internal: Support NFS boots better
The image specification can now be in the form nfs-server:directory.
This makes it possible to nfs-boot from servers other than the host.
poky-qemu-internal will properly construct the kernel command line
given such a specification.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
2010-08-20 16:20:10 +01:00
Jeff Dike 6ea1ed5f7b poky-qemu-[ifup|ifdown]: Use native tunctl
poky-qemu-ifup can run standalone by root in order to configure a bank
of tap devices for later qemu use.

These devices will, if possible, be owned by a specified group to
which qemu users must belong.

If the kernel is too old to support TUNSETGROUP, then it falls back to
setting the tap device to be owned by a particular user, and that user
will be the only one allowed to use it.

Also overall usability improvements to the scripts, usage() help, etc.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-08-20 16:20:10 +01:00
Scott Garman f35a8d4079 poky-find-native-sysroot: helper script for locating the native sysroot path
Various poky scripts make use of binaries from the native sysroot.
This helper script can be used to reduce code duplication, and sets
up some environment variables you can use to identify and obtain
the correct filesystem path to the native sysroot.

It works for both in-tree Poky setups as well as toolchain
installations.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2010-08-20 16:20:10 +01:00
Jeff Dike d9aa25a337 poky-qemu-ifup: allow multiple tap devices
This patch bases the tap IP address on the device number, providing
each device with its own IP address.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
2010-08-20 16:20:09 +01:00
Jeff Dike c791544bb0 qemu: Use a TAP device instead of slirp for networking
With this patch, a persistent TAP device is set up by poky-qemu-ifup,
which is now run before qemu.  The qemu command line now uses the
device that was constructed (rather than the hard-coded tap0) and it
is told not to run any networking scripts.

When qemu shuts down, poky-qemu-ifdown removes the TAP device.

sudo use - sudo is used to run poky-qemu-ifup.  sudo is no longer used
to run qemu, as qemu no longer needs privileges to set up networking.
poky-qemu-ifdown is run without privileges, as you can remove a TAP
device which you own.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
2010-08-20 16:20:09 +01:00
Joshua Lock e624b2700a build/conf: move sample conf files to meta/conf
Currently rm -fr build breaks things badly but will work if we move the sample
configuration files to meta/conf - this patch does so.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-08-17 17:41:20 +01:00
Jiajun Xu 8c498e5338 testlib: Add support for qemumips/qemuppc/qemux86-64, and add support for testing with images from autobuilder
Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2010-08-13 23:42:03 +01:00
Joshua Lock fa8c028fd0 scripts: add qemux86-64 support to the qemu scripts
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-08-02 17:54:20 +01:00
Mark Hatle d668b80e86 meta/classes/rootfs_rpm.bbclass: re implement base on rpm5
Re implement the rootfs generation using rpm5.  This also gets rid of the
need for yum, and handles all dep resolving internal to the script itself.

The new file scripts/rootfs_rpm-extract-postinst.awk comes from the original
yum integration work.  It has been unchanged, but since yum is no longer used
we needed to move the script somewhere else.

Signed-off-by: Mark Hatle <mhatle@windriver.com>
2010-07-24 00:46:57 +01:00
Joshua Lock b98e3e9c3f poky-env-internal: re-add OEROOT to the whitelisted environment variables
We don't want Bitbake to clean OEROOT from the environment as users may have
old layer configurations which require it set.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-07-23 12:50:25 +01:00
Nitin A Kamble 7459068915 scripts/poky-env-internal: preserve the git proxy env var
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-07-22 17:11:54 +01:00
Richard Purdie 83cc54944e poky-env-internal: Print some further information for the user
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-22 13:21:13 +01:00
Richard Purdie 9832fd3e22 poky-env-internal: Cleanup after the recent layer improvements
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-22 13:19:24 +01:00
Richard Purdie c2f71a86f5 poky-env-internal/runqemu: Move BUILD_SYS handling which is runqemu specific into runqemu
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-22 13:14:24 +01:00
Richard Purdie 897a8b5abc stagemanager: Move functionality into the scripts directory
Since scripts is now in PATH thanks to the layer functionality there is
no longer any need to have this recipe full of special cases, the scripts
can just be placed there.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-22 11:44:28 +01:00
Joshua Lock 5c63f8a249 poky-env-internal: unbreak existing build setups
Many users have an existing build confifured using OEROOT, re-enable exporting
of this variable to unbreak their builds.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-07-22 10:42:47 +01:00
Saul Wold 0c3b1aa0a5 scripts/runqemu: Path fixes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-21 21:49:09 +01:00
Joshua Lock 971907567c Enable build dir outside of the poky directory
You need to first set up the build directory by sourcing the poky build script,
after that builds can be run in that directory so long as bitbake is in $PATH
removing the need to source the init script for each build.

i.e:
$ . poky-init-build-env ~/my-build
$ bitbake some-image
<<later, in a different shell>>
$ cd ~/my-build
$ export PATH=/path/to/bitbake/bin:$PATH
$ bitbake an-image

This patch also removes use of OEROOT in recipes, etc.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-07-21 15:39:53 +01:00
Bruce Ashfield d39ae18df2 qemu/mips: arrange for vmlinux to be bootable
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-07-19 11:59:51 -04:00
Jiajun Xu fd1d661b39 test: add automation framework and sanitytest
Automation test is disabled by default. User need set TESTCLASS
to qemu in conf/local.conf and run bitbake command "bitbake
poky-image-xxx" or "bitbake poky-image-xxx -c qemuimagetest" to
trigger it. Currently only the sanity test with two testcases are
added.

To run the test, user need prepare a testing environment:
1) "expect" should be installed on system
2) NOPASSWD should be set for user to run bitbake

Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2010-07-15 12:48:25 +01:00
Richard Purdie bd19169a60 poky-qemu-internal: Use 128MB memory for qemumips/qemuppc
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-07-15 12:29:35 +01:00
Bruce Ashfield 21949128eb qemu-scripts: Add support for mips and powerpc machines, update qemuarm
For mips, the malta platform emulates a cirrus chipset. With the udpated
2.6.34 kernel options, we can now enable framebuffer boot for
the qemumips platform.

We need to pass a valid cpu (603e) and do a -nographic boot to
make it all the way to a prompt so graphics is disabled for now
for ppc.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2010-07-15 11:19:10 +01:00
Nitin A Kamble b43fd541d3 scripts/create_pull_request fix a typo
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-06-10 16:30:32 -07:00
Nitin A Kamble 1d64687d13 update create_pull_request for distro/master
With this change the create_pull_request will be able to generate pull
requests to master as well as distro/master branch.

Some documentation is added in the Usage messange of the script.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-06-10 16:30:32 -07:00
Joshua Lock 453ee8d573 poky-env-internal: fix a typo
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-06-10 15:59:11 +01:00
Richard Purdie d92a12f761 poky-evn-internal: Add some documentation about the config file and commonly used build targets
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-06-10 15:51:36 +01:00
Joshua Lock 2e0e24e849 scripts: Fix setting up links to cc and gcc in runqemu
Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-06-09 17:32:01 +01:00
Saul Wold cab1009b08 Fixes for Qemu to use VGA and Touch Screen
Added usb tablet options to poky-qemu-internal script, and adjusted the
xorg.conf script for x86 to use VGA screen and tablet input device

Signed-off-by: Saul Wold <saul.wold@intel.com>
2010-06-07 16:13:00 +01:00
Joshua Lock 138df217ef Drop vm_mmap_min_addr checks from scripts and sanity class
QEMU 0.12.x is relocatable so we no longer need these tests, which is good
because it doesn't work reliably with modern kernels.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-05-28 15:32:41 +01:00
Nitin A Kamble bad2fe6498 add a new scripts create-pull-request
This is the 1st version of create-pull-request script.
Using specified local commit-id or branch-name it
generates a short description of the changes;
and using poky-contrib branch-name it generates the
URL where these changes are already pushed
and are available for review and git-pull.

I prepared this script as per the input from Richard Purdie.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-05-17 13:47:40 -07:00
Nitin A Kamble b2c4aee283 poky-qemu-internal Add -show-cursor to qemux86
Without this option the need to do the blind guesswork about the
position of the pointer.

Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-05-14 11:57:27 -07:00
Richard Purdie a722741e32 Merge branch 'tk/head' of ssh://git.pokylinux.org/poky-contrib 2010-05-14 06:36:56 +08:00
Richard Purdie ad136ddeef Revert "poky-env-internal: Disable automatic adding of meta environments to BBPATH"
This reverts commit ba804d1729 which is a valid
change but isn't working for some reason which needs further investigation.
2010-05-13 17:07:17 +08:00
Kevin Tian 5a3f17ee6b poky-env-internal: unset variables to avoid disturbing new GIT clone
Signed-off-by Kevin Tian <kevin.tian@intel.com>
2010-05-13 16:27:01 +08:00
Richard Purdie ba804d1729 poky-env-internal: Disable automatic adding of meta environments to BBPATH
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-05-12 15:28:54 +08:00
Joshua Lock 6458da896f Fix references to CROSS_DIR now that it has been removed
CROSS_DIR is no longer removed so fix up classes, packages and documentation
which refer to it.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-28 16:47:14 +01:00
Joshua Lock d2c6f3ef36 scripts/pstage-scanner: new script to sanity test the contents of pstage
Currently the script will scan all packages in the pstage directory and log
packages which contain destinations outside of the native sysroot.
The script currently ignores pkgdata, stamps and deploy but does trigger the
work dir for packages with a package-split file, this may well be a false
positive.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-04-27 16:58:43 +01:00
Richard Purdie 90040ce7b5 Switch to bblayers configuration
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-03-22 18:11:41 +00:00
Joshua Lock 7b41d2b3d1 scripts/runqemu: Fix some typos
Fix typo in help message (we default to ext3 not ext2 now)
and a typo whereby moblin-image-sdk wouldn't be autofound.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2010-01-14 13:42:16 +00:00
Joshua Lock ceb91f7b2b scripts: preserve BB_NUMBER_THREADS when sanitising environment
It's pretty useful to be able to define BB_NUMBER_THREADS on the cli when
executing bitbake. Add it to the extra whitelist defined in the
poky-env-internal script.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
2009-12-14 17:46:59 +00:00
Richard Purdie 2c1211bab9 scripts/poky-qemu-internal: Make sure qemuarm cursor is visible
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-26 09:18:08 +00:00
Richard Purdie b6b45ca538 runqemu: staging -> sysroots
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-11-25 14:53:37 +00: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 d5341fb796 Add poky-trim-schemas post install script to remove unneeded schema locale translations from images (credit to Ross Burton for the initial script)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-08-28 17:11:57 +01:00
Richard Purdie de687629d8 scripts: Update qemux86 to use the vmmouse driver, not wacom and find moblin images
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-06-10 12:15:48 +01:00
Richard Purdie 05a296b204 scripts/poky-env-internal: Add BB_SRCREV_POLICY to BB_ENV_WHITELIST
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-05-27 23:18:45 +01:00
Richard Purdie 62d3720668 scripts: Remove autobuilder scripts
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2009-05-09 15:28:17 +01:00
Richard Purdie 072545b111 scripts/poky-qemu-internal: Add support for GL passthrough in qemux86 images 2009-01-21 17:40:51 +00:00
Richard Purdie e121f9eb59 scripts/runqemu: Factor image location code into a shell function 2009-01-21 11:35:01 +00:00
Richard Purdie fa89b73e25 scripts/poky-autobuild-moblin: Add moblin-uricheck target support 2009-01-06 09:30:55 +00:00
Richard Purdie eae7eb5bd5 scripts: Update qemu scripts with changes in recent qemu calling conventions and the switch to ext3 images 2009-01-05 16:00:31 +00:00
Richard Purdie a42718c5b9 scripts/poky-autobuild-postprocess-moblin: Share toolchain/sdk output 2008-12-19 15:47:07 +00:00
Richard Purdie 0f918b445e scripts/poky-autobuild-moblin: Update to share moblin-incremental images 2008-12-18 16:43:03 +00:00
Richard Purdie c3f6d464a1 scripts/poky-autobuild-moblin: Add rm_work 2008-12-18 09:26:52 +00:00
Richard Purdie bc1ce63c1d scripts/autobuild-moblin: Configuration fixups 2008-12-17 17:18:27 +00:00
Richard Purdie da743fb70c scripts/poky-qemu-internal: Add usb commandline to nfs mounted images 2008-12-15 10:58:03 +00:00
Richard Purdie a8b0e8a034 scripts/poky-env-internal: Add SSH_AUTH_SOCK and SSH_AGENT_PID to BB_ENV_WHITELIST 2008-12-03 15:41:54 +00:00
Richard Purdie 1e967ea93e scripts/poky-env-internal: Fix PATH 2008-11-06 15:21:36 +00:00
Richard Purdie 9715260c35 scripts/poky-env-internal: Automatically add in additional meta- repositories if found 2008-11-06 14:40:30 +00:00
Richard Purdie 9586e75e26 scripts/poky-autobuild-moblin: Update the proxy config and add rpm packages to the build list 2008-11-04 19:35:06 +00:00
Richard Purdie 777f269259 scripts/poky-autobuild-moblin: Add GIT PROXY variables 2008-11-04 13:51:23 +00:00
Richard Purdie b249501844 scripts/poky-autobuild-moblin: Set GIT_PROXY_COMMAND 2008-11-03 17:20:21 +00:00
Richard Purdie fa88660ee6 scripts/poky-autobuild-moblin: Add extra variables to the whitelist 2008-10-30 23:04:21 +00:00
Rob Bradford 0dc1dc4fbb poky-env-internal: Add quoting to support zsh.
Patch from Carl Simonson <simonsonc@gmail.com>.
2008-10-30 11:14:24 +00:00
Richard Purdie db140d9ce0 scripts/poky-env-internal: Add POKYMODE to BB_ENV_WHITELIST 2008-10-28 22:10:45 +00:00
Richard Purdie 23f08fdde3 scripts/poky-env-internal: Unset BDIR after use 2008-10-28 10:01:03 +00:00
Richard Purdie e4aa77e88e scripts/build: Update the git proxy setup instructions 2008-10-23 15:12:41 +01:00
Richard Purdie 4329a29db5 scripts/poky-env-internal: Add proxy variables to the enviornment whitelist (and OEROOT) 2008-10-22 21:56:30 +01:00
Richard Purdie 2236c01164 scripts: Fix variable quoting 2008-10-22 20:31:56 +01:00
Richard Purdie ebb74a63e1 scripts: Add moblin autobuilder support scripts 2008-10-22 20:27:16 +01:00
Samuel Ortiz e5c53ce035 netbook: changed platform name from eee901 to netbook
We want to have a more generic platform definition.
The netbook machine one currently supports the eee901 and the aspire one.
We also moved the machine and netbook image definitions to meta-moblin.
2008-10-21 16:01:02 +02:00
Richard Purdie c16dee4ff9 scripts/pokyABConfig.py: Add poky-image-netbook-live
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5437 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-07 16:59:53 +00:00
Richard Purdie ceb7254954 scripts/poky-autobuild-postprocess: Add eee901 minimal image
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5422 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-06 16:18:04 +00:00
Richard Purdie 8d90e33c3a scripts/poky-autobuild-postprocess: Add eee901
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5421 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-10-06 16:16:57 +00:00
Richard Purdie f0e249f5eb scripts/poky-env-internal: Add MACHINE, DISTRO and POKYLIBC to the environment whitelist for starters
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5348 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-09-30 21:00:37 +00:00
Richard Purdie 22699496ae pokyABConfig.py: Add eee901 builds
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5179 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-09-10 22:54:21 +00:00
Marcin Juszkiewicz 29346602b4 poky-nokia800-flashutil: merged offsets from Andrew script and added Diablo notes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5024 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-08-08 07:41:33 +00:00
Richard Purdie dba4931a29 scripts/poky-qemu-internal: Fix networking on qemuarm ext2 images
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4940 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-07-24 13:51:45 +00:00
Marcin Juszkiewicz cf9ecbaa6d poky-qemu-internal: added support for qemuarmv6/7
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4927 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-07-22 11:26:14 +00:00
Richard Purdie dc1789a5ab scripts/pokyABConfig.py: Add 3430ldp and beagleboard
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4884 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-07-18 16:47:05 +00:00
Joshua Lock 932d0b00da Use /sbin/iptables if which iptables fails.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4733 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-06-26 14:27:31 +00:00
Richard Purdie e38122a26d scripts/poky-autobuild: Activate poky-autobuild-notifier
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4680 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-06-17 11:49:36 +00:00
Richard Purdie 83b46ebc65 pokyABConfig.py: Add om-gta02
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4542 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-22 10:25:09 +00:00
Richard Purdie 8b243f4e1c poky-qemu.README: Minor updates
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4535 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-22 08:22:47 +00:00
Richard Purdie e95249b659 Rename fic-gta01 to om-gta01 as per upstream
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4534 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-22 08:22:15 +00:00
Ross Burton 217b864ca3 Use /sbin/fdisk because not all systems has /sbin in PATH
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4470 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-14 12:57:11 +00:00
Marcin Juszkiewicz 909ea433f1 poky-qemu-ifup: added NAT setup
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4457 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-08 10:56:40 +00:00
Richard Purdie f6d5b98a58 scripts/poky-qemu-internal: Check /proc/sys/vm/mmap_min_addr value and error if its potentially problematic
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4437 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-06 09:22:01 +00:00
Richard Purdie 82c04d1283 scripts/pokyABConfig.py: Add meta-toolchain-sdk to darwin builds too
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4434 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-05 23:20:33 +00:00
Richard Purdie 3f92181944 scripts/pokyABConfig.py: Add meta-toolchain to darwin builds
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4430 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-05 22:47:18 +00:00
Marcin Juszkiewicz f715ee6df7 poky-qemu-internal: give 128M for qemux86 - otherwise generating of locales fails
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4412 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-05 08:26:05 +00:00
Richard Purdie 3f3eaca7ee scripts/pokyABConfig.py: Change darwin builds back to full instead of incremental
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4398 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-01 14:02:30 +00:00
Richard Purdie d367e44e3f scripts/poky-autobuild: Correctly update the extra meta-darwin checkout
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4397 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-01 13:14:17 +00:00
Richard Purdie d85e5ffbbd scripts/pokyABConfig.py: Make darwin autobuild incremental temporarily
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4384 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-01 10:52:00 +00:00
Richard Purdie d14f7bd079 scripts/poky-autobuild: Fix quoting
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4382 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-01 10:16:16 +00:00
Richard Purdie 21d5869e1c scripts/poky-autobuild: Fix darwin code to append, not overwrite
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4381 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-01 09:57:16 +00:00
Richard Purdie d9bb8113c5 scripts: Add meta-darwin build to the autobuilder
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4380 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-01 09:49:43 +00:00
Richard Purdie 732e3cab7a scripts/poky-autobuild: Really fix return value
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4379 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-05-01 09:17:19 +00:00
Richard Purdie 04c650ae4f scripts/poky-autobuild: Preserve exit code
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4374 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-30 13:10:28 +00:00
Richard Purdie 7b717d201a pokyABConfig.py: Fix typo
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4373 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-30 12:41:31 +00:00
Richard Purdie a010a4c964 scripts/pokyABConfig.py: Add checkuriall test for qemuarm world
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4372 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-29 21:04:55 +00:00
Richard Purdie da27611bc9 poky-autobuild: Attempt to clean up scripts slightly
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4371 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-29 21:01:34 +00:00
Richard Purdie 5d5fab77cf scripts: Allow passing multiple parameters to the autobuilder
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4370 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-29 17:12:25 +00:00
Richard Purdie 01daae9a5d scripts/poky-autobuild-postprocess: Ignore chmod failures
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4368 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-28 23:23:02 +00:00
Richard Purdie 6a64dc642b scripts/poky-autobuild-postprocess: Don't clean the destination directory
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4367 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-28 22:47:48 +00:00
Richard Purdie aab46e602b scripts/poky-autobuild-postprocess: Remove paths from script
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4366 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-28 21:58:49 +00:00
Richard Purdie ff0595128b scripts/poky-autobuild-postprocess: Fix typo
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4365 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-28 20:32:31 +00:00
Richard Purdie 15218d47fd scripts/poky-autobuild: Further path fixes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4364 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-28 20:19:50 +00:00
Richard Purdie f466228e14 scripts/poky-autobuild: Fix directory expectations of the postprocess scripts
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4363 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-28 20:16:24 +00:00
Richard Purdie 40d86fde50 scripts/poky-autobuild: Fix ordering
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4362 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-28 19:29:37 +00:00
Richard Purdie 46e8a36d8e scripts/poky-autobuild: Source the environmental setup script earlier
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4361 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-28 18:50:49 +00:00
Richard Purdie 6b8df05147 scripts: Update autobuilder scripts to run postprocess after each task completes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4360 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-28 16:40:06 +00:00
Richard Purdie e88c64181a scripts: Add extra autobuilder config
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4359 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-28 15:05:43 +00:00
Richard Purdie 56a4a6f5c8 scripts/poky-qemu-internal: Enable n800 networking
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4333 311d38ba-8fff-0310-9ca6-ca027cbcb966
2008-04-24 22:13:25 +00:00