summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* scripts/poky-env-internal: We set LC_ALL in the core so no need to set LANG ↵Richard Purdie2011-02-021-2/+0
| | | | | | here now Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/bitbake: remove bashismsJoshua Lock2011-01-311-6/+6
| | | | | | | | | | | | As the BitBake script is the initial entry point for the system we need to ensure it can run in as many places as possible, including systems which aren't yest optimally configured for running Poky. Remove some bashisms from the script so that it can run under Dash. Pointers from: https://wiki.ubuntu.com/DashAsBinSh Errors before this patch: http://pastie.org/1502136 Signed-off-by: Joshua Lock <josh@linux.intel.com>
* creating the rpmrepo metadataQing He2011-01-301-0/+89
| | | | | | | | | | | | | | | | | This includes two method for build rpm repo: 1. create the metadata in rootfs_rpm 2. standalone binary for building the metadata Not both of them are needed, generally #2 fits more for the purpose, but #1 may have its use on rootfs creation using zypper. Both share some problems and are subjected for future improvement: 1. the createrepo now builds metadata for the whole directory, if there are more than one arch, it builds for all, which means rootfs_rpm may run longer if more builds have been run. 2. createrepo builds metadata for stale rpms Signed-off-by: Qing He <qing.he@intel.com>
* scripts/bitbake: If pseudo isn't in staging for some reason, force a build ↵Richard Purdie2011-01-281-7/+17
| | | | | | of it directly Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/bitbake: We only need pseudo-native in the sysroot, we can ignore ↵Richard Purdie2011-01-281-1/+1
| | | | | | any other pieces of the dependency tree Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* send-pull-request: ensure a proper FROM header is includedDarren Hart2011-01-261-3/+26
| | | | | | | | | | | | | | | | | | | Commit 94629f2521711055b412f954af19e48b9bda6e50 removes the FROM header when sending via sendmail to avoid sending mail as the original change committer (as opposed to the local user). This resulted in mail going out without any FROM header, which some mailing lists correct by adding the *bounce address as the FROM. Correct this by reading FROM from the environment, from a new -f argument, or from the git user.name and user.email config settings, in that order of preference. Also display the FROM that will be used prior to the send confirmation. This has no effect if the -g (send via git) argument is specified, other than printing the git sendemail.from config setting. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Reported-by: Saul Wold <saul.wold@intel.com>
* send-pull-request: send all patches as the local userDarren Hart2011-01-241-1/+6
| | | | | | | | | | When using sendmail to send patches, patches would appear to be from the original author as git adds a From: header in the generated patches. This patch changes this behavior to match that of git-send-email, where the email From: header is that of the current sender (according to sendmail) and a "From: Original Author <email>" line is inserted into the body of the message. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
* send-pull-request: unset $TO and $CC from environmentScott Garman2011-01-241-0/+4
| | | | | | | | | Darren Hart and I discovered that when $CC is set (which our meta-toolchain environment script sets up), the value leaks into the use of this script. Unsetting $TO as well just to be thorough. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-extract-sdk: allow relative paths for extract-dirScott Garman2011-01-241-0/+5
| | | | | | | | | | | | | psuedo needs a full path to its pid file, so convert relative extract-dir paths to full ones. The symptom of this bug is receiving the following error: pseudo: Couldn't open relative/path/to/var/pseudo/pseudo.pid: No such file or directory This fixes [BUGID #670] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* qemuimagetest: Use same image during sanity testing instead of copying a new ↵Jiajun Xu2011-01-2025-77/+105
| | | | | | | | | | | | | | | | | image for each case To reduce the time on sanity testing, we remove variable SHARE_IMAGE and use a new variable TEST_SERIALIZE in local.conf. It is by default set to 1. Poky will copy and boot the to-be tested image for only once. It will not remove or kill the image and test cases will be serialized executed against the same image. If it is set to 0, image is always be copied for each cases, which takes much time. I had a experiment that latest qemuppc sato only takes 7 minutes to finish 9 sanity test cases, which takes more than 20 minutes before. I also removed sanity case "boot" from sato/sdk/lsb because the other cases for these targets already cover the check point of "boot". Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* qemuimagetest: Use the same image in sanity testing to fix the timeout issue ↵Jiajun Xu2011-01-1425-24/+36
| | | | | | | | | | | | | | | on autobuilder Fixes [BUGID #595] Because of the QEMU booting slowness issue(see bug #646 and #618), autobuilder may suffer a timeout issue when running sanity test. We introduce variable SHARE_IMAGE here to fix the issue. It is by default set to 1. Poky will copy latest built-out image and keep using it in sanity testing. If it is set to 0, latest built-out image will be copied and tested for each case, which will take much time. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* bbvars.py: add a script to look for undocumented variablesDarren Hart2011-01-121-0/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | bbvars.py will compare recipes in meta directories with documentation files and report on variables that don't appear to be documented. It reports the number of times a variable is used as well as any doctags present in the documentation config file. The output of this is intended to aid in determining where documentation may be lacking, but it is not perfect, and does generate some false positives. An experienced eye and careful attention to count and doctag should be applied to the results. $ ./bbvars.py -d ../../documentation/poky-ref-manual/poky-ref-manual.html -m ../../meta -t ../../meta/conf/documentation.conf -T | head -n 10 Found 1413 undocumented bb variables (out of 1578): VARIABLE COUNT DOCTAG =================================================== BUILD_ARCH 4 The name of the building architecture. E.g. i686. BUILD_CC_ARCH 2 FIXME BUILD_PREFIX 4 FIXME BUILD_SYS 13 FIXME BUILD_VENDOR 2 FIXME CACHE 1 The directory holding the cache of the metadata. COMPATIBLE_HOST 19 A regular expression which matches the HOST_SYS names supported by the package/file. Failure to match will cause the file to be skipped by the parser. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemuimagetest: Remove connman test for lsb image and fix one warning in ↵Jiajun Xu2011-01-066-6/+1
| | | | | | | | | | Test_Create_Qemu There is no connman in LSB image. So we need to remove connman test from it. And when we check if ip address fetched by Test_Fetch_Target_IP is valid, we should use "==" operator for string comparison. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* scripts/bitbake: Skip building pseudo if necessary.Lianhao Lu2011-01-051-3/+21
| | | | | | | Fixed [BUGID# 625]. Skip building pseudo if necessary by parsing the options to bitbake. Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
* qemuimagetest: Add basic function check for connmanJiajun Xu2011-01-0217-0/+122
| | | | | | | | Add one case for connman sanity test. We check if connmand is running in background after booting and if there is always one connmand process running even connmand is executed by several times. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* qemuimagetest: Add basic function check for gcc/g++/make command in targetJiajun Xu2011-01-027-0/+194
| | | | | | Add one case for compile tools sanity test in target, including gcc/g++/make. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* qemuimagetest: Add basic function check for rpm commandJiajun Xu2011-01-0217-0/+112
| | | | | | Add one case for rpm query sanity test. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* qemuimagetest: Add basic function check for zypper commandJiajun Xu2011-01-0218-0/+179
| | | | | | Add two cases for zypper sanity test. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* qemuimage-testlib: Improve quoting causing problems under certain circumstancesRichard Purdie2010-12-241-1/+1
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* qemuimage-testlib: Fix the check for running qemu processesRichard Purdie2010-12-231-5/+3
| | | | | | | | | | | | Previously, any active command containing the word "qemu" including in the command path would trigger a "success" result for detecting the qemu process. This change fixes the check to search for commands starting with "qemu" and ignores pathnames. It also shortens the timeout for the qemu process to appear to 10 seconds. If it doesn't appear in that time there is always a problem. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* qemuimage-testlib: Ensure TOPDIR/BUILDDIR are setRichard Purdie2010-12-231-1/+2
| | | | | | | | | | The recent environment changes mean TOPDIR/BUILDDIR need to be exported specifcially to the enviromnent so the qemu scripts can find the correct build directory. Without this, qemu can fail to run. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* qemuimage-testlib: Add check for existence of image and correctness of ip ↵Jiajun Xu2010-12-231-0/+23
| | | | | | | | | | | | | | address Fixes [BUGID #612, #611] Add check for existence of image to be tested in qemuimage-testlib. This ensures that sanity test returns failure immediatly when there is no image found. And also add check for the correctness of ip address. If the ip address returned by function Test_Fetch_Target_IP is 0, it means qemu starts up failed and no valid ip address found. Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* qemu: Add some checks before enabling KVMZhai Edwin2010-12-231-3/+22
| | | | | | | | Check the missing modules and permission with informative output. [BUGID #599] got fixed. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* send-pull-request: allow users to select git-send-email or sendmailDarren Hart2010-12-231-19/+50
| | | | | | | | | | | | Some users find it easier to use their git sendmail setup over a local MTA to deliver mail with the send-pull-request script. If you would like to do this, please read the git-send-email man page and set the relevant entries in your git config. In particular, be sure to set sendemail.from to avoid being asked each time. Reported-by: Khem Raj <raj.khem@gmail.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
* send-pull-request: Use current date in mail headersDarren Hart2010-12-211-1/+5
| | | | | | | | | | | | | Some users experience problems viewing the pull requests as a sequential mail series due to the script using the git commit date for the patches and today's date for the cover letter. Address this by renaming the email Date: header to Old-Date: and adding a new Date: header with a current timestamp. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Reported-by: Gary Thomas <gary@mlbassoc.com> Cc: Josh Lock <josh@linux.intel.com>
* poky-init-build-env: Enable all POSIX shellsMark Hatle2010-12-201-1/+1
| | | | | | | | | | | | Update the script so that it will work in more then just bash. If bash is not used, it will assume the PWD is the Poky location. (This is because BASH_SOURCE is a bash-ism, and equivalent functionality is not available in other shells). This has been verified with dash (see comment in the code), ksh, zsh and of course bash. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* poky-init-build-env: Breakup the environment scriptMark Hatle2010-12-202-93/+122
| | | | | | | | | | Break up the scripts/poky-env-internal into two parts: 1) Chunk that is sourced and sets up the environment 2) Chunk that is executed and configures the build directory OEROOT configuration was moved into the initial poky-init-build-env script. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* bitbake.conf/poky-env-internal: Adjust PSEUDO variables to match pseudo ↵Richard Purdie2010-12-171-1/+1
| | | | | | enabled/disabled modes Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* scripts/bitbake: Add wrapper script which ensures pseudo is built and availableRichard Purdie2010-12-171-0/+25
| | | | Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* poky-env-internal: Search scripts before the bitbake directory so we can ↵Richard Purdie2010-12-171-1/+1
| | | | | | override bitbake's main script Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Add extra parameters options for poky-qemu scriptsLiping Ke2010-12-162-2/+34
| | | | | | | | In order to support qemu user's flexibility requirement, we add extra parameter options, user can add extra params such as "<-m 256>" in poky-qemu script command. Signed-off-by: Liping ke <liping.ke@intel.com>
* scripts/poky-qemu: Improve tmp layout assumptionRichard Purdie2010-12-151-1/+1
| | | | | | | | | | | If someone has changed TMPDIR in local.conf to a non-standard location, the poky-qemu script currently doesn't handle this and assumes if BUILDDIR is set, $BUILDDIR/tmp will exist. Its simple to check if this exists and if not, to ask bitbake where the directory is so this patch changes the code to do that. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* creat-lsb-image: download lsb test suite and creat a image with lsb test suiteXiaofeng Yan2010-12-101-0/+170
| | | | | | | | | | If we make a test with lsb test suite, then we must creat a large image with lsb test suite. three function in this script: 1 download lsb test suite 2 creat a block file with 3G 3 install file system of poky-image-lsb, modules of driver and lsb test suite Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
* qemu: Enable KVM support on x86/x86-64 hostZhai Edwin2010-12-091-0/+12
| | | | | | | User need build kvm module for native kernel and install them by "modprobe kvm_intel". Then add "kvm" option to poky-qemu to enable it. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* Make poky-qemu and related scripts work with arbitrary SDK locationsScott Garman2010-12-095-48/+26
| | | | | | | | | | * No longer assume SDK toolchains are installed in /opt/poky * [BUGFIX #568] where specifying paths to both the kernel and fs image caused an error due to POKY_NATIVE_SYSROOT never being set, triggering failure of poky-qemu-ifup/ifdown * Cosmetic improvements to usage() functions by using basename Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-env-internal: Allow the environment variable POKYCONF to provide the ↵Gary Thomas2010-12-091-0/+18
| | | | | | | | | | | basis for the working "conf" directory. By using the POKYCONF variable, a meta layer can provide the basic setup for files to be used during a build. This is similar to the default values stored in the main meta tree, .../meta/conf/local.conf.sample, etc Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
* Remove unused tunctl-src/Makefile from scripts/Scott Garman2010-12-071-17/+0
| | | | | | Removing leftover cruft Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* Add sanity test scenarios for -lsb imagesScott Garman2010-12-075-0/+25
| | | | Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* 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>