summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)AuthorFiles
2011-09-09runqemu: improve auto-detection of rootfs filenamesScott Garman1
This refactors the way rootfs filenames are auto-detected when you run the runqemu script without an explicit rootfs filename argument. It allows the script to use rootfs files generated by hob, and when there are mutliple rootfs files to choose from, it will pick the most recently created one. Fixes [YOCTO #1437]. Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-09runqemu-internal: Hide some harmless warning messagesRichard Purdie1
If sudo is used in the pseudo environment, as done in image tests when the user hasn't pre-setup the tap device, ensure the LD_PRELOAD error message isn't seen by the user. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-09imagetest-qemu/runqueue: Since we no longer support BUILDDIR, use TMPDIRRichard Purdie2
Commit 993672fa2739794a6dd0dbd7bb232fa60522b897 removed the BUILDDIR support from runqueue which broke the imagetest-qemu integration. We now therefore need to set TMPDIR and pass this through the environment to ensure the runqueue script finds the right locations without running bitbake directly. This patch also adds a sleep to the qemu command in the error case so that this remains on the screen for a period of time so the user can see errors more easily. This change unbreaks automated testing failures on the autobuilder. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-05scripts/hob: notify the user when the GUI won't launch immediatelyJoshua Lock1
If the wrapper script needs to build pseudo before we can launch hob we need to notify the user so they aren't shocked by the action of launching a GUI and seeing a bunch of text whiz by on the console. Fixes [YOCTO #1435] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-09-05scripts/hob: update to match recent hob changesJoshua Lock1
hob now uses both a pre and post file, update the wrapper script to generate and use both of these. Addresses [YOCTO #1281] Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-09-05runqemu: standardize ability to specify custom qemu/kenel boot optionsScott Garman1
The old manner of specifying custom options to QEMU in this script using angle brackets was a frequent source of confusion. Meanwhile, Otavio Salvador added a decent method of specifying custom kernel boot options to this script. This patch documents the bootparams option and adds a similar way of specifying custom QEMU options using qemuparams="". This fixes [YOCTO #1019] Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-02scripts: Show sensible warning messages if expected binaries don't existRichard Purdie6
[YOCTO #1438] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-01scripts: Don't show errors from which ifconfig failingRichard Purdie3
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-26scripts/runqemu: disable unfs boot mode for qemuppcLiming Wang1
Because unfs boot mode is unstable for qemuppc, disable it temporarily. Signed-off-by: Liming Wang <liming.wang@windriver.com>
2011-08-26script/runqemu: change boot command line for qemuppcLiming Wang1
Because qemuppc has no graphic emulation, remove console=tty0 and make it run into 3 run level. This can reduce boot time for qemuppc booting. Signed-off-by: Liming Wang <liming.wang@windriver.com>
2011-08-23scripts/combo-layer: fix overzealous regex in default hook scriptPaul Eggleton1
combo-layer's hook scripts are intended to modify patches as they pass through; the default one adds a prefix with the component name and a line with the component repo revision before the Signed-off-by; however the script was also unintentionally modifying the contents of patches *within* the patches passing through it, which resulted in unexpected failures when the combo-layer script attempted to use "git am" to apply them. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-08-23scripts/combo-layer: fix configuration file handlingOtavio Salvador1
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-08-23scripts/runqemu: add support to pass bootparams to kernelOtavio Salvador1
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-08-23Use OECORE_DISTRO_VERSION instead of POKY_DISTRO_VERSIONOtavio Salvador2
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2011-08-19scripts/runqemu: modify search paths for libglAnders Darander1
On e.g. Debian libql is found under /usr/lib/x86_64-linux-gnu/libGL.so. Use a wildcard to match different locations, as uname -i only return unknown on Debian. Signed-off-by: Anders Darander <anders@chargestorm.se>
2011-08-17create-pull-request: increase likelihood of detecting a renameAnders Darander1
Decrease the similarity percentage needed to recognize a delete/add-pair followed by an edit, as a rename. This make reviewing patches easier. Signed-off-by: Anders Darander <anders@chargestorm.se>
2011-08-11scripts/runqemu: Make it run on ubuntu 11.10Khem Raj1
location of libGL has moved in ubuntu 11.10 so we look for it in the new locations Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-08-11scripts/combo-layer: a simple way to script the combo-layer confLeandro Dorileo1
This small patch introduces a a very simple and basic way to script the combo-layer conf file. With that a combo can be shared with no need to change its config - associated to the use of environment variables for example. *Similar* to bitbake it considers every value starting with @ to be a python script. So local_repo could be easily configured as: [bitbake] local_repo = @os.getenv("LOCAL_REPO_DIR") + "/bitbake" or any more sophisticated python syntax. This version updates the config file description so users can be aware of. Signed-off-by: Leandro Dorileo <ldorileo@gmail.com>
2011-08-10scripts/oe-buildenv-internal: improve the error detecting for $BDIRDexuan Cui1
The previous fix for a bug in Ubuntu 10.04 readlink, be2a2764d8ceb398d81714661e6f199c8b11946c, notified the user when a trailing slash was used. As there is no semantic difference, simply remove any trailing slashes and proceed without nagging the user. See [YOCTO #671] for more details. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Acked-by: Darren Hart <dvhart@linux.intel.com> Cc: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-08-04connman_test.sh: Rework for busybox 'ps'Tom Rini1
This script has two problems today. First, it does 'ps -ef cmd' in failure which real ps doesn't grok and busybox ps just ignores the argument on. Switch that to 'ps -ef'. Second, busybox ps -o doesn't understand cmd but does understand comm. Using comm lets us simplify the test logic as well, so switch to that. Signed-off-by: Tom Rini <tom_rini@mentor.com>
2011-08-02oe-init-build-env, scripts/oe-buildenv-internal: add error detecting for $BDIRDexuan Cui1
[YOCTO #671] "readlink -f" in Ubuntu 10.04 is buggy: it doesn't ignore a trailing / (e.g., "readlink -f /tmp/non-existent-dir/" returns nothing, but according to http://www.gnu.org/s/coreutils/manual/coreutils.pdf it should do that -- hence we get bug 671. It seems Ubuntu 10.10 or even later Ubuntu 11.04, and other Linux distributions(e.g., Open Suse 11.4) haven't such an issue. So I think we should detect this and ask Ubuntu 10.04 users to avoid supply a path with trailing slash here. Moreever, I also add the detection of non-existent path, e.g., source oe-init-build-env /non-existent-dir/build can be detected and we'll print an error msg. And, if we get errors in oe-buildenv-internal, we should stop the script and shouldn't further run. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-02scripts/runqemu: grep for line beginning with TMPDIRKhem Raj1
Currently the grep regexp matches any occurance of 'TMPDIR=' but if you have another variable defined e.g. OE_BUILD_TMPDIR=xxx then that gets picked up too. $ bitbake -e | grep TMPDIR=\" TMPDIR="/home/kraj/work/angstrom/build/tmp-angstrom_2010_x-eglibc" OE_BUILD_TMPDIR="/home/kraj/work/angstrom/build/tmp-angstrom_2010_x" So we become a bit more stringent and look for line starting with TMPDIR $ bitbake -e | grep ^TMPDIR=\" TMPDIR="/home/kraj/work/angstrom/build/tmp-angstrom_2010_x-eglibc" make sure that it greps only TMPDIR=xxx occurance and not values of other variables whose names happens to end with TMPDIR Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-27multilib_header.bbclass: Add oe_multilib_header wrapperMark Hatle1
This helper function and associated header will allow us to resolve two/three header files that conflict due to contents that change based on wordsize and ABI. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-07-27scripts/combo-layer: keep carriage returns at the end of linesPaul Eggleton1
Use --keep-cr option to "git am" or otherwise we lose carriage returns which can be important for patches against files that use CRs. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-07-25runqemu: report error if TMPDIR cannot be determinedScott Garman1
Invoking runqemu outside of the build directory for an in-tree setup results in an empty TMPDIR because bitbake -e cannot be run to find it. A symptom of this problem is running runqemu and getting the following error: Error: Unable to find tunctl binary in <directory> Catch this case and report the error to the user. This fixes [YOCTO #1278] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2011-07-20scripts/contrib: add build time regression test scriptPaul Eggleton2
test_build_time.sh is a bash script intended to be used in conjunction with "git bisect run" in order to find regressions in build time, however it can also be used independently. It cleans out the build output directories, runs a specified worker script (an example is test_build_time_worker.sh) under TIME(1), logs the results, and returns a value telling "git bisect run" whether the build time is good (under the specified threshold) or bad (over it). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-07-19oe-buildenv-internal: Replace POKYMODE POKYLIBC with TCMODE and TCLIBCKhem Raj1
These are new variable names in oe-core Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-07-19send-pull-request: default to --supress-cc=allDarren Hart1
Unless the user specifies -c, don't pull in any email addresses from the patches in the series. This avoids having to remove the email addresses from patches being pulled in from upstream. If you want the email addresses on the patch to be added, continue to use the -c option as before. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2011-07-19scripts/hob: wrapper script to run hob gui with a UI specific config fileJoshua Lock1
This ensures any configuration changes made in the GUI are only set when using hob. The default hob.local.conf is generated with a line which adds image_types to INHERITS so that the GUI can introspect the available FSTYPES. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2011-07-14bb-matrix: correct BB and PM number canonicalizationDarren Hart1
The bash string operation ${BB##*0} was greedy and in addition to converting "02" to "2", also converted "20" to "", causing all builds for a BB value ending in 0 to run with BB_NUMBER_THREADS=1. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-14scripts: Rename "adt-install" to "adt-installer" in user help.Robert P. J. Day1
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-12bb-matrix: initial scripts to record TIME(1) metrics for BB and PM combinationsDarren Hart2
The bb-matrix.sh script will run a bitbake command, building core-image-minimal by default, for various combinations of BB_NUMBER_THREADS and PARALLEL_MAKE. It records all relevant metrics of the TIME(1) command for each combination in a data file. The bb-matrix-plot.sh script can be used to visualize each of these metrics via a 3d surface plot, either solid surface or wireframe with a value-map projection on the XY plane. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-08combo-layer-tool: add tool to manipulate combo layersYu Ke3
This patch adds the script "combo-layer" to manipulate combo layer repos. A combo layer repo is a repo containing multiple component repos, e.g. oe-core, bitbake, BSP repos. The combo layer repo needs to be updated by syncing with the component repo upstream. This script is written to assist the combo layer handling. The combo layer tool provides three functionalities: - init: when the combo layer repo and component repo does not exist, init will "git init" the combo layer repo, and also "git clone" the component repos - update: combo layer tool will pull the latest commit from component repo upstream, and apply the commits since last update commit to the combo repo. If the user specifies interactive mode(--interactive), they can edit the patch list to select which commits to apply. - splitpatch: split the combo repo commit into separate patches per component repo, to facilitate upstream submission. Combo layer tool uses a config file to define the component repo info. Please check the combo-layer.conf.example for a detailed explanation of the config file fields. Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2011-06-30scripts/runqemu: enable btrfsNitin A Kamble2
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-06-29scripts/oe-setup-builddir: Fix Yocto documentation links and add a couple of ↵Richard Purdie1
other example targets This takes into account some feedback from Yocto's tech writer as mentioned in the bugzilla. [YOCTO #1182] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-28Add PARALLEL_MAKE to BB_ENV_EXTRAWHITEDarren Hart1
As BB_NUMBER_THREADS is already whitelisted, it is consistent to also allow PARALLEL_MAKE to be overridden via the environment. This also simplifies performance testing where multiple combinations of those two variables are a natural thing to do. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-28bitbake wrapper: exit if python v3 is detectedScott Garman1
Make sure we're not using python v3.x. This check can't go into sanity.bbclass because bitbake's source code doesn't even pass parsing stage when used with python v3, so we catch it here so we can offer a meaningful error message. This fixes bug [YOCTO #1128] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
2011-06-24qemuimagetest: update cvs and iptables to newer version for toolchain testJiajun Xu2
The old versions of cvs and iptables may meet compile error under some architecture - cvs 1.11.23 fails on x86-64 host and iptables 1.4.9 fails on arm host. Update them to latest version could solve these build error. Meanwhile, 240s timeout is set for sudoku becasue 120s is not enough to finish compile. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
2011-06-23native.bbclass: Add a simple chown intercept commandMark Hatle1
During native recipe processing we want to intercept any calls to chown and do nothing. This prevents errors and allows the same recipes to be used for both native and target recipes. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-06-23python: Switch to using the default -dbg packageMark Hatle1
Python was missing a lot of debug information. Switch to use the default -dbg package. Also add some additional debug information to the -dbg package. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-06-14runqemu: take TMPDIR from bitbakeAnders Darander1
The old standard of using /home/anders/openembedded-core/build/tmp as TMPDIR do not work any longer, as - is appended to the real TMPDIR. Thus, always take TMPDIR from bitbake, unless TMPDIR is set in the environment. Signed-off-by: Anders Darander <anders@chargestorm.se>
2011-06-09scripts/bitbake: Only build tar-replacement-native when the build system tar ↵Richard Purdie1
version < 1.24 Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-09create-pull-request: Add URL documentationMark Hatle1
If we can't find the URL, tell the user how to correct the issue. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-06-02send-pull-request: fix a small typo that fails the scriptDexuan Cui1
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2011-06-01create-pull-request: allow '+' in git PROTO_RE, ie for 'git+ssh://'Martin Jansa1
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-05-23create-pull-request: generalize the repository URL parsingDarren Hart1
The existing REMOTE_URL and REMOTE_REPO parsing made assumptions regarding the git URL format used for the known repository types. In fact, both of these ssh URL formats are valid for all the known repositories. Specifically: ssh://git@server/repository/path git@server:repository/path Generalize the parsing to work with each of these for all push URLs matching *@*. Tested with the following URLs: ssh://git@git.pokylinux.org/poky-contrib ssh://git@git.pokylinux.org/poky-contrib.git git@git.pokylinux.org:poky-contrib git@git.pokylinux.org:poky-contrib.git Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2011-05-23send-pull-request: drop sendemail checksOtavio Salvador1
git send-email has the correct check on it. Basically the From is taken from the git 'user' and 'email' config values and in case 'sendemail.smtpserver' is not provided it defaults to use local sendmail command. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Acked-by: Darren Hart <dvhart@linux.intel.com>
2011-05-19*pull-request: add copyright, license, and descriptionsDarren Hart2
Signed-off-by: Darren Hart <dvhart@linux.intel.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Cc: Otavio Salvador <otavio@ossystems.com.br>
2011-05-19send-pull-request: streamline git-send-email usageDarren Hart1
The script was sending one patch at a time, which defeats the internal confirmation mechanism of git-send-email (which would otherwise allow the user to send all patches or abort immediately). Rework the sending logic to use no more than two commands. Use two commands when the cover letter is to be sent to all recipients with the -a argument. Otherwise, send all patches via the same command. The script duplicates git's send confirmation, eliminate that. Reported-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com> Acked-by: Joshua Lock <josh@linux.intel.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Cc: Khem Raj <raj.khem@gmail.com> Cc: Joshua Lock <josh@linux.intel.com> Cc: Otavio Salvador <otavio@ossystems.com.br>
2011-05-19create-pull-request: add untested oe repository supportDarren Hart1
Signed-off-by: Darren Hart <dvhart@linux.intel.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Cc: Otavio Salvador <otavio@ossystems.com.br>