summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* bitbake: compile tar-replacement firstlyRoy.Li2012-12-071-1/+6
| | | | | | | | | | | | | | | | | | | | | | | Compiling tar-replacement or not is decided by version of host tar, if the host tar version is lower than 1.23, Compiling tar-replacement is needed. When doing popoluate tar-replacement sysroot to write the tar to sysroot, but writing is not finished. other packages probably use the being written tar to unzip file, which will lead to failure and report the below error: "bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/tar: Text file busy" Now we compile tar-replacement firstly to ensure that a being written tar command will not be used. (From OE-Core rev: 3c1c4719fc96f6f1fbb257413d6baf3d91fdf4e8) (From OE-Core rev: 1a6f61d9493bdbade256dc6c19bbffe75a2684a4) Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* yocto-bsp: use base branches for qemu 'newbranch' caseTom Zanussi2012-08-214-8/+8
| | | | | | | The branch updating for the [YOCTO #2587] fix inadvertently changed some of the qemu branch names incorrectly, fix it. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: generate default properties even if json specifiedTom Zanussi2012-08-211-2/+2
| | | | | | | | | Users seem to want to specify incomplete property sets when using json input. Allow this by generating default properties before the user-specified properties are applied; the user will then get the defaults for any unspecified values, and avoid cryptic backtraces. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: use emgd 1.10 for i386 templateTom Zanussi2012-08-213-4/+9
| | | | | | | Make i386 template use emgd 1.10 for denzil, along with associated changes. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add i586 option for i386Tom Zanussi2012-08-211-2/+5
| | | | Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add some standard policyTom Zanussi2012-08-214-0/+28
| | | | | | Add some useful default options to to the i386 and x86_64 templates. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: remove 'branch' statements in .scc if reusing branchTom Zanussi2012-08-217-8/+7
| | | | | | | If reusing a branch (need_new_branch == 'n') we don't need to branch in the .scc, so make it conditional on need_new_branch. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: use rstrip() for assignment linesTom Zanussi2012-08-211-1/+1
| | | | | | | | strip() isn't necessary and causes unintended formatting changes in the output; rstrip() remove the trailing newlines as intended while leaving indenting whitespace intact. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: use standard branch mapping in bsp templatesTom Zanussi2012-08-213-4/+4
| | | | Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add standard branch mappingTom Zanussi2012-08-211-0/+21
| | | | | | | Add a mechanism to distinguish common-pc variants of standard branches. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: use branches_baseTom Zanussi2012-08-2124-80/+80
| | | | Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: allow branch display filteringTom Zanussi2012-08-212-0/+25
| | | | | | | Add a "branches_base" property that can be used to allow only matching branches to be returned from all_branches(). Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: update default branch namesTom Zanussi2012-08-2124-46/+46
| | | | | | | | | Make sure the default branch names match branch names found in the kernel branch listing. Fixes [YOCTO #2587]. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: strip '/base' from kernel branches in templatesTom Zanussi2012-08-2124-48/+48
| | | | | | | | | For new branches, users can specify /base branches, but we don't want the '/base' in the resultant branch name, so remove it. Fixes [YOCTO #2693]. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add new strip_base() functionTom Zanussi2012-08-211-0/+10
| | | | | | | Add a strip_base() function to remove '/base' from the branch names presented to the user. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* scripts/buildhistory-diff: add GitPython version checkPaul Eggleton2012-08-211-2/+6
| | | | | | | | | | Display an error if the user does not have at least version 0.3.1 of GitPython installed. (From OE-Core rev: 07b9c3bc67439d47627fe256796465520b533753) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* runqemu-ifup: enable arp proxyingScott Garman2012-06-141-0/+1
| | | | | | | | | | | | | | This allows core-image-sato to access the WAN. Thanks to Dexuan Cui for proposing this fix. Fixes [YOCTO #2329] (From OE-Core rev: 680a94c378f20c00e8bee0575b8922bccc008fec) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* yocto-bsp: clarify help with reference to meta-intelTom Zanussi2012-06-051-4/+44
| | | | | | | | | | | | | | The current yocto-bsp help assumes knowledge that the meta-intel layer needs to be cloned before it's put into the BBLAYERS. Avoid the guesswork and state the details explicitly in the help. Also, the shorter 'usage' string doesn't mention it at all; it would help to at minimum mention it and refer the user to the detailed help. Fixes [YOCTO #2330]. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* yocto-kernel: use BUILDDIR to find bblayers.confTom Zanussi2012-06-051-1/+6
| | | | | | | | | | | The current code assumes that builddir == srcdir/build, which it obviously isn't sometimes. Use BUILDDIR to get the actual builddir being used. Fixes [YOCTO #2219]. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* runqemu-ifup: enable ip masquerading for QEMU NAT addressesScott Garman2012-05-311-1/+2
| | | | | | | | | | | | Fix the IP masquerading settings so that networked QEMU sessions can reach external networks. This is a partial fix for [YOCTO #2329]. (From OE-Core rev: 78c7a82a2e3214eaec3c559269e3cc6c219759c0) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/hob: disable sanity checks when launchingJoshua Lock2012-04-231-1/+2
| | | | | | | | | | This enables us to use the GUI to change any settings which might cause sanity checks to fail, such as the proxy configuration. (From OE-Core rev: fe98d1c7159636f123b27292bbd4cc224b532bf0) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* yocto-bsp: remove kernel26 machine feature from templatesTom Zanussi2012-04-173-4/+3
| | | | | | kernel26 is now obsolete so remove it from the templates that use it. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: fix x86_64 tuning for qemu archTom Zanussi2012-04-141-1/+1
| | | | | | | | While testing the fix for [YOCTO #2222] I noticed that the tuning for the qemu x86_64 target was using the wrong tuning file - it should be x86_64 instead of i586. Change the template to match. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: fix multi-provider error in qemu arch templateTom Zanussi2012-04-141-0/+1
| | | | | | | | | | | | While testing the fix for [YOCTO #2222] I noticed a new build error that wasn't there in previous testing: ERROR: Multiple .bb files are due to be built which each provide virtual/libgl The build still completed and produced a good image, but an error message was displayed, which this patch removes. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: fix qemuarch test for xserver-xf86-config.bbappendTom Zanussi2012-04-141-0/+0
| | | | | | | | While testing the fix for [YOCTO #2222] I noticed that the qemuarch test was wrong - there is no 'x86' qemuarch, just 'i386'. Change the test to match. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: enable property value display of nested propertiesTom Zanussi2012-04-142-3/+55
| | | | | | | | | | | Previous versions of yocto-bsp mapped every input element to a unique variable name, which is what the current property value display code expects. When that was changed to a nested form, the display code wasn't updated to match - this updated does that. Fixes [YOCTO #2222] Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* python: multilib header support.Lianhao Lu2012-04-111-1/+1
| | | | | | | | | | Add intercept multilib header for pyconfig.h in python. This is part of the bug fixing [YOCTO #2216]. (From OE-Core rev: 99591085186c465f2ddfaef08f419ec7584d4522) Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* create-pull-request: Assume remote branch from local branchDarren Hart2012-04-101-3/+8
| | | | | | | | | | | | | | | | | | | | | | | It is common to use the same remote branch name as the local branch name. In this case, it would be nice not to have to specify the remote branch name. Make the -b argument optional and assume the remote branch is the same name as the local branch. Print a NOTE to this effect so as not to catch the user by surprise: NOTE: Assuming remote branch 'notthere', use -b to override. If the remote branch doesn't exist, a WARNING is displayed just as if the user had used -b to specify a non-existent branch: WARNING: Branch 'notthere' was not found on the contrib git tree. Please check your remote and branch parameter before sending. (From OE-Core rev: 62570b7e3db44fbc3461f650abe6c4613940e068) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* runqemu-internal: Add console=tty for qemuppc and NFSSaul Wold2012-04-061-1/+1
| | | | | | | | | | | | | | Adding this to the nfs to match the ext3 kernelcmdline, this re-enables keyboard input on the qemuppc. [YOCTO #2058] Thanks to Yi Zhao <yi.zhao@windriver.com> for the initial patch suggestion (From OE-Core rev: 1a82989345fb98becb487d270fd93a5e6dffeb47) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts: Clarify "help" info for yocto-bsp and yocto-kernelRobert P. J. Day2012-04-061-2/+2
| | | | | | | | Tweak the help info for both "yocto-bsp" and "yocto-kernel" to emphasize that those are the *complete* lists of commands, not just the most commonly used ones. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
* qemugl: Fix GL apps failure on Ubuntu 11 host with nVidia GLX driverZhai Edwin2012-04-021-3/+8
| | | | | | | | | | | | | | | Previous version of nVidia GLX driver in Ubuntu 10 cause qemu segfault, so we fall back to Mesa GLX driver if detecting nVidia driver installed. From Ubuntu 11, nVidia GLX driver works well, while previous work around cause GL apps failure. So this work around is limited in Ubuntu 10 only, and will be removed in future. [YOCTO #1886] got fixed. (From OE-Core rev: b3ccc630e6c12a75111b1f7ca877e17d8d4e1dc7) Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/bitbake: add/fix some commentsPaul Eggleton2012-03-311-3/+13
| | | | | | | | | | | Add some comments explaining what this script does, fix one grammatical error in a comment and make the tar-replacement-native comment give the full reason why it is needed. (From OE-Core rev: aa946e1d054d3a0b7097339e0fb74ee60bd94a78) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/bitbake: allow switching between build directoriesPaul Eggleton2012-03-311-5/+10
| | | | | | | | | | | | | | | | | The recent addition of the check to ensure the user was in their build directory disabled the ability to switch between build directories without re-running the build environment setup script. We can rely upon checking for conf/bblayers.conf instead, so use this check. This does allow BUILDDIR (which is normally set by the environment script) to be unset; however if it is set then it is assumed to be the correct build directory and will be used in the error message that is shown when we can't find conf/bblayers.conf. (From OE-Core rev: 769384decb095fb3c49eb13b8f7f69c978d0bcba) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/bitbake: try harder to check if pseudo existsPaul Eggleton2012-03-311-3/+9
| | | | | | | | | | | | | | If pseudodone doesn't exist, we can get STAGING_BINDIR_NATIVE by calling bitbake -e and use that as the path to check for pseudo before we give up and try to build it explicitly first. This is useful for people who share TMPDIR between multiple build directories. (From OE-Core rev: 07b0dddab901510208fab44bbc2566d3c3baae93) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sstate-cache-management.sh: fixes and enhancementRobert Yang2012-03-301-49/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a few problems and enhance its functions, it shoud be more useful than before. * Search in meta and meta-* for archs, and grep AVAILTUNES for archs, (only search meta, and grep DEFAULTTUNE before), add the host arch. and also can search in extra layers with --extra-layer. * Reduce the analyzing time when remove duplicated files. It would cost more than 10 minutes to analyze 11,000 files before, now only needs about 50 seconds. * Check the access time rather than create time. * Need the user's confirm before really remove the file, or use --yes to assume yes. * Add --stamps-dir to keep sstate files which are used by the build directory, and remove others this can make the sstate cache dir clean, it is faster and should be useful than the --remove-duplicated. * Add --verbose to explain what is being done. * Add "-d" which is short for --remove-duplicated [YOCTO #2198] (From OE-Core rev: 769a000428e4b2462a4e6d8f179b5816b8ec2417) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* runqemu: set console=ttyS0 when running with nographic optionScott Garman2012-03-291-0/+1
| | | | | | | | | | | | | When passing the nograhic option to the runqemu script, set console=ttyS0 in the kernel options so the user can view the kernel boot messages. This fixes [YOCTO #1475] (From OE-Core rev: 28f05bf6e5da9cd8f01cff50c317233e3064e3cb) Signed-off-by: Scott Garman <scott.a.garman@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/bitbake: Update to help rebuild pseudo-nativeMark Hatle2012-03-281-5/+31
| | | | | | | | | | | | | | Attempt to detect when pseudo-native has been updated. If it has been updated, or if the user is attempting an operation with pseudo-native in the name, force a build of pseudo-native, prior to running the main build. Note: This causes a build, then clean in the case of bitbake -c cleansstate pseudo-native (From OE-Core rev: f79184d4000708020f76d82330428b5e7a803642) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: fix packaging dependencies on minimal systemsGary Thomas2012-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If you install the top-level python package only on a minimal system which has no other python packages installed then python is not functional at all. Without any extra packages installed this error is seen: # python Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 64, in <module> import traceback ImportError: No module named traceback Installing python-lang only partly fixes the problem as this error still exists: # python Traceback (most recent call last): File "/usr/lib/python2.7/site.py", line 569, in <module> main() File "/usr/lib/python2.7/site.py", line 551, in main known_paths = addusersitepackages(known_paths) File "/usr/lib/python2.7/site.py", line 278, in addusersitepackages user_site = getusersitepackages() File "/usr/lib/python2.7/site.py", line 253, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File "/usr/lib/python2.7/site.py", line 243, in getuserbase USER_BASE = get_config_var('userbase') File "/usr/lib/python2.7/sysconfig.py", line 520, in get_config_var return get_config_vars().get(name) File "/usr/lib/python2.7/sysconfig.py", line 400, in get_config_vars import re ImportError: No module named re (From OE-Core rev: c239564c768d0f305d8707103f4c59cf60431670) Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Various typoes fixed, all comments or output strings.Robert P. J. Day2012-03-262-2/+2
| | | | | | | | | Typoes fixed: "enviroment", "editted", "spliting", "scheulder". (From OE-Core rev: 17e981a857a51b0bec08c929e8539d36d83874b6) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu: add fedora pkg names when build failedRobert Yang2012-03-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | When qemu build failed, we can see such messages: You need libGL.so and libGLU.so to exist in your library path and the development headers for SDL installed to build qemu-native. Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev These pkgs have different names on Fedora distributions, and Fedora is one the main linux distributions, so add Fedora package names. The following Fedora versions have these pkgs: Fedora 9 64bit Fedora 13 32bit Fedora 13 64bit Fedora 16 64bit [YOCTO #2174] (From OE-Core rev: 246438582f8a23ce1847bae230bce07fbb3c6d15) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/combo-layer: handle diffs in commit messagesPaul Eggleton2012-03-231-0/+38
| | | | | | | | | | | | | A few recent commits in the OE-Core repository contain diffs in their commit messages, which totally confuses git-am when applying them to the combo repository during update. Add some code to detect and indent any diff text in the commit message so that this does not happen (and show a warning). (From OE-Core rev: 6e70c95dc69be6708c3bc231cc2a99eac1360815) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/combo-layer: limit component repo dirty checkPaul Eggleton2012-03-231-9/+9
| | | | | | | | | | | If one or more components are specified for update, only check if their repository/repositories are dirty rather than checking all of the configured repositories. (From OE-Core rev: b03e710c88ad0c66cf731647f26e8441d0074cae) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* yocto-kernel: new scriptTom Zanussi2012-03-221-0/+232
| | | | | | | Implementation of the 'yocto-kernel' command-line tool, for modifying the kernel portion of a Yocto BSP. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: new scriptTom Zanussi2012-03-221-0/+143
| | | | | | | Implementation of the 'yocto-bsp' command-line tool, for creating BSPs and listing BSP properties. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add some useful constantsTom Zanussi2012-03-221-0/+47
| | | | | | Some constants used by the templating engine. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp-tools: add help/usageTom Zanussi2012-03-221-0/+570
| | | | | | | This is essentially 'the documentation' for the Yocto BSP tools, along with a few related functions. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add kernel interfaceTom Zanussi2012-03-221-0/+723
| | | | | | | | Yocto BSP kernel-related functions, for interacting with the kernel tools and implementing the machinery behind the 'yocto-kernel' command. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add templating engineTom Zanussi2012-03-221-0/+1436
| | | | | | | | The main implementation of the Yocto BSP templating engine, essentially containing the internal implementation of the 'yocto-bsp create' and yocto-bsp list' commands. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp-tools: add bsp libraryTom Zanussi2012-03-221-0/+22
| | | | | | Create a home for the yocto bsp tools. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
* yocto-bsp: add BSP template filesTom Zanussi2012-03-2296-0/+2665
| | | | | | | BSP template files for all supported Yocto architectures, plus qemu versions of the same. Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>