summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* scripts: Remove obsolete stage-manager scriptsRichard Purdie2010-11-283-1588/+0
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scripts/poky-env-internal: Further cleanupsRichard Purdie2010-11-281-8/+9
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scripts/poky-env-internal: Remove unset variablesRichard Purdie2010-11-281-10/+0
| | | | | | | These variables are not on any bitbake environment whitelist so will never make it into the environment. This is legacy code which is not required any more so remove it. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scripts/poky-env-internal/image-swab.bbclass: Remove OEROOT referencesRichard Purdie2010-11-281-3/+3
| | | | | | | OEROOT isn't used outside the init script so stop exporting it into the environment where it can "corrupt" sstate packages. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* poky-qemu: Fix issues when running Yocto 0.9 release imagesScott Garman2010-11-141-28/+36
| | | | | | | | | This fixes two bugs with poky-qemu when it is run from a standalone meta-toolchain setup. [BUGFIX #535] and [BUGFIX #536] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* imagetest-qemu: Add sanity test cases for scp/shutdown in targetJiajun Xu2010-11-1417-4/+174
| | | | | | | scp test is to check if file copying via network work or not in target. shutdown test is to check if target can be poweroff with qemu process off. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* git-pull: add send-pull-request scriptDarren Hart2010-11-101-0/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | send-pull-request facilitates sending pull requests generated by create-pull-request. The primary role of this script is to harvest email addresses from the patches and send them out. A working installation of sendmail (exim, postfix, msmtp, etc.) is required to use this script. You can explicitly specify To addresses with the -t option. As this can be tedious, the -a option will scan all the patches for To, CC, and *-by lines and the collected addresses to the To and CC headers for each patch. This script uses an identical recipients list for every patch, including the cover letter. This is by design. Existing tools will auto-generate the CC header for individual patches, but since they don't apply it to the other patches, the recipients can lack the necessary context to provide a meaningful review. This is especially true of the cover letter. The pull directory generated by the create-pull-request script is specified using the -p option. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Nitin A Kamble <nitin.a.kamble@intel.com> CC: Richard Purdie <rpurdie@linux.intel.com> CC: Saul Wold <saul.wold@intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com>
* git-pull: add the new create-pull-request scriptDarren Hart2010-11-101-0/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous create-pull-request only generated a cover letter. When used to send to the list, it did not include the patches, which made it difficult to perform peer review. A pull request without patches is typically only sent by a maintainer. As we are not all maintainers, we need a means to easily submit patches for review. As we are accustomed to making pull requests, this script retains a git-pull-style cover letter, while sending the relevant patches as responses to the pull. This will provide the necessary context for peer review, and still allow people to collapse threads and see no more mail than they were previously. This version retains the relative_to, commit_id, and contrib_branch arguments from the original, along with their default values. It adds several more, resulting in a highly flexible tool. The script creates a pull directory (pull-$$ by default, configurable via the -o option) and populates it with a git-format-patch generated patch series and cover letter. The cover letter is modified to include the git and http pull URLs and branch name, as well as a basic signature from the author pulled from git's user.name and user.email config. git-format-patch provides the shortlog and diffstat of the series. Breaking a bit from the original, this script maintains the [PATCH] subject prefix in the cover letter (as opposed to [GIT PULL]. This is better suited to the majority of developers (who are not maintainers). This prefix is configurable with the -p option, allowing you to create an [RFC PATCH] prefix, for example. By default, the generated cover letter with contain "*** SUBJECT HERE ***" and "*** BLURB HERE ***" tokens which you should replace with something appropriate prior to sending the messages. When developing multiple versions of a patch series, it can save time to maintain a message.txt file, rather than having to retype the message body of the cover letter every time. The -m option allows you to specify a message file and replace the "*** BLURB HERE ***" token of the cover letter with the contents of the message file. Finally, the -s option will replace the "*** SUBJECT HERE ***" token in the cover letter with the specified subject. The generated patches are suitable for sending via sendmail. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Nitin A Kamble <nitin.a.kamble@intel.com> CC: Richard Purdie <rpurdie@linux.intel.com> CC: Saul Wold <saul.wold@intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com>
* git pull: remove the existing create_pull_request scriptDarren Hart2010-11-101-86/+0
| | | | | | | | | | | | The patches to follow completely rewrite the existing create-pull-request. Rather than have an initial diff of the two files (which are not at all similar) remove the original, and then create the new one. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Nitin A Kamble <nitin.a.kamble@intel.com> CC: Richard Purdie <rpurdie@linux.intel.com> CC: Saul Wold <saul.wold@intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com>
* qemumips: re-enable wacom and standard USB UI optionsBruce Ashfield2010-11-101-1/+1
| | | | | | | | | | Fixes [BUGID #394] Now that the qemu/mti mips kernel branches have been fixed for wacom USB interaction, we can re-nable the standard set of qemu UI options for qemumips. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* imagetest-qemu: Add test case for dmesg check in targetJiajun Xu2010-11-1013-9/+207
| | | | | | | | Add a test case for error log check with command dmesg in target. The case introduces a new folder in target, "/opt/test", which holds test scripts running in target. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* poky-qemu-internal: make the -no-reboot qemu option mandatoryScott Garman2010-10-141-2/+3
| | | | | | This fixes [BUGID #100] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-qemu: miscellaneous bugfixesScott Garman2010-10-142-14/+19
| | | | | | | | | | | In scenarios where the POKY_NATIVE_SYSROOT env variable hasn't been set up, bug #427 can still be triggered. This fixes it by running setup_tmpdir(). This fixes [BUGID #427]. Also, the qemu tap dev lock directory needs to be chmod 777 so that multiple users can create and delete lock files. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-qemu: add nographic option for disabling video consoleScott Garman2010-10-141-4/+6
| | | | | | This fixes [BUGID #408] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-qemu-internal: enforce a 128M memory limit for qemuarmScott Garman2010-10-121-1/+19
| | | | | | | | | This fixes [BUGID #433] Also set a sane default for the ifconfig command, which simplifies our autobuilder sanity test setup. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-qemu: fix for handling full path to rootfsScott Garman2010-10-111-2/+19
| | | | | | This fixes [BUGID #427] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-qemu-internal: implement file locking in bashScott Garman2010-10-081-30/+53
| | | | | | | | | | | | | | | | 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>
* poky-qemu: fix handling of some rootfs typesScott Garman2010-10-081-0/+10
| | | | | | | | | | 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>
* Update meta-ide-support dependenciesScott Garman2010-10-074-4/+4
| | | | | | | | | | | | | | | | | | 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>
* Merge runqemu features into poky-qemuScott Garman2010-10-074-262/+264
| | | | | | | | | | | | 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>
* Allow running of multiple QEMU nfs instancesScott Garman2010-10-072-31/+39
| | | | | | | | | | 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>
* poky-gen-tapdevs: script to create a 'bank' of tap interfacesScott Garman2010-10-072-0/+96
| | | | | | | | | | | | | | 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>
* poky-qemu-internal: use lockfile-progs for network interface lockingScott Garman2010-10-071-5/+20
| | | | | | | | | | 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>
* poky-qemu: integrate userspace nfsroot supportScott Garman2010-10-073-260/+140
| | | | | | | | | | 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>
* poky-qemu-ifup/ifdown: Require root privileges to runScott Garman2010-10-072-36/+35
| | | | | | | | | | 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>
* Export ALL_PROXY for bitbake commandsDarren Hart2010-10-071-1/+1
| | | | | | | | 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>
* qemumips: override default UI options.Richard Griffiths2010-10-041-1/+1
| | | | | | | | | | | | | | | 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>
* 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>