summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* poky-qemu-internal: only check mmap_min_addr when running arm imagesJoshua Lock2010-10-011-6/+6
| | | | | | No need to force users to poke /proc/sys when they don't need to. Signed-off-by: Joshua Lock <josh@linux.intel.com>
* Revert "Drop vm_mmap_min_addr checks from scripts and sanity class"Joshua Lock2010-09-291-0/+7
| | | | | | | | | This reverts commit 138df217efe850528f88d340acf864c38780c2b0. 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>
* poky-qemu-internal: Add userspace nfs support for mips and ppcDongxiao Xu2010-09-271-0/+18
| | | | | | | Add userspace nfs support for mips and ppc architecture. This fixes [BUGID #343] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
* Wrap output at 80 columns for poky-env-internalDarren Hart2010-09-211-21/+35
| | | | | | | | | | | | | | | 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>
* poky-qemu-internal: fix locking of tap lockfileSaul Wold2010-09-171-5/+9
| | | | Signed-off-by: Saul Wold <Saul.Wold@intel.com>
* bitbake: Add proxy variables to standard export listZhai Edwin2010-09-101-1/+1
| | | | | | | 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>
* scripts/runqemu: Drop broken toolchain symlink codeRichard Purdie2010-09-101-8/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scripts/poky-qemu-ifup: Ensure the host has a route to itRichard Purdie2010-09-101-0/+9
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scrtips/poky-qemu: Fix network interface device numberingRichard Purdie2010-09-102-2/+5
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* poky-qemu-internal: Fix ifdown script to use the correct variableRichard Purdie2010-09-101-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scripts: use the exported POKY_NATIVE_SYSROOT variableJoshua Lock2010-09-075-44/+39
| | | | | | | | 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>
* runqemu-nfs: check for required programsJoshua Lock2010-09-071-0/+17
| | | | | | | 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>
* siteconfig: generate configuration data caches for autoconfJeff Polk2010-09-031-0/+53
| | | | | | | | | | | | | | | 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>
* qemuimage-testlib: kill qemu process according to its pid, instead of ↵Jiajun Xu2010-09-021-4/+49
| | | | | | | | | | | | | 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>
* runqemu: add poky-image-basic and poky-image-lsb to recognized imagesSaul Wold2010-09-021-5/+5
| | | | Signed-off-by: Saul Wold <Saul.Wold@intel.com>
* Drop chroot usage as its not well used, tested and is brokenRichard Purdie2010-09-012-117/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* test: Add scenario file for each target and support single case runningJiajun Xu2010-08-2712-0/+20
| | | | | | | | | | | | | | | | 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>
* poky-qemu: check for existence of required librariesJoshua Lock2010-08-251-0/+12
| | | | | | | 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>
* poky-qemu-internal: fix the echo of KERNCMDLINEDexuan Cui2010-08-201-1/+1
| | | | | | | | | 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>
* poky-qemu-internal: fix broken call to poky-qemu-ifupScott Garman2010-08-202-2/+15
| | | | | | | | | | 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>
* runqemu-nfs: boot QEMU using nfsroot and local unfs exportScott Garman2010-08-201-0/+86
| | | | | | | | 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>
* poky-export-rootfs: script for exporting userspace nfsrootsScott Garman2010-08-201-0/+183
| | | | | | | | | | 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>
* poky-extract-sdk: script for extracting sdk images using pseudoScott Garman2010-08-201-0/+95
| | | | | | | 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>
* poky-qemu-internal: fixes for userspace NFS bootingScott Garman2010-08-201-14/+27
| | | | | | | 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>
* poky-qemu-internal: Support use of a preconfigured tap deviceJeff Dike2010-08-201-4/+28
| | | | | | | | | | | | | 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>
* poky-qemu-internal: Support NFS boots betterJeff Dike2010-08-202-10/+31
| | | | | | | | | 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>
* poky-qemu-[ifup|ifdown]: Use native tunctlJeff Dike2010-08-202-19/+101
| | | | | | | | | | | | | | | | | 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>
* poky-find-native-sysroot: helper script for locating the native sysroot pathScott Garman2010-08-201-0/+77
| | | | | | | | | | | | 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>
* poky-qemu-ifup: allow multiple tap devicesJeff Dike2010-08-201-1/+2
| | | | | | | 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>
* qemu: Use a TAP device instead of slirp for networkingJeff Dike2010-08-203-10/+25
| | | | | | | | | | | | | | | | 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>
* build/conf: move sample conf files to meta/confJoshua Lock2010-08-171-2/+2
| | | | | | | 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>
* testlib: Add support for qemumips/qemuppc/qemux86-64, and add support for ↵Jiajun Xu2010-08-131-7/+72
| | | | | | testing with images from autobuilder Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* scripts: add qemux86-64 support to the qemu scriptsJoshua Lock2010-08-022-9/+53
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>
* meta/classes/rootfs_rpm.bbclass: re implement base on rpm5Mark Hatle2010-07-241-0/+11
| | | | | | | | | | | 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>
* poky-env-internal: re-add OEROOT to the whitelisted environment variablesJoshua Lock2010-07-231-1/+1
| | | | | | | 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>
* scripts/poky-env-internal: preserve the git proxy env varNitin A Kamble2010-07-221-1/+1
| | | | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* poky-env-internal: Print some further information for the userRichard Purdie2010-07-221-1/+7
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* poky-env-internal: Cleanup after the recent layer improvementsRichard Purdie2010-07-221-40/+2
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* poky-env-internal/runqemu: Move BUILD_SYS handling which is runqemu specific ↵Richard Purdie2010-07-222-6/+6
| | | | | | into runqemu Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* stagemanager: Move functionality into the scripts directoryRichard Purdie2010-07-223-0/+1588
| | | | | | | | 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>
* poky-env-internal: unbreak existing build setupsJoshua Lock2010-07-221-1/+1
| | | | | | | 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>
* scripts/runqemu: Path fixesSaul Wold2010-07-211-14/+14
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Enable build dir outside of the poky directoryJoshua Lock2010-07-215-45/+78
| | | | | | | | | | | | | | | | | | 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>
* qemu/mips: arrange for vmlinux to be bootableBruce Ashfield2010-07-191-1/+1
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* test: add automation framework and sanitytestJiajun Xu2010-07-153-0/+273
| | | | | | | | | | | | | | 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>
* poky-qemu-internal: Use 128MB memory for qemumips/qemuppcRichard Purdie2010-07-151-1/+7
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* qemu-scripts: Add support for mips and powerpc machines, update qemuarmBruce Ashfield2010-07-152-1/+56
| | | | | | | | | | | | 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>
* scripts/create_pull_request fix a typoNitin A Kamble2010-06-101-1/+1
| | | | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
* update create_pull_request for distro/masterNitin A Kamble2010-06-101-16/+61
| | | | | | | | | 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>
* poky-env-internal: fix a typoJoshua Lock2010-06-101-1/+1
| | | | Signed-off-by: Joshua Lock <josh@linux.intel.com>