summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* poky-setup-builddir: Rename to oe-setup-builddir and clean up POKY variable ↵Richard Purdie2011-04-211-18/+18
| | | | | | | | references (From OE-Core rev: ac7411a885f53d687e65fdb6fd02510c09b97dc8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Replace POKY_KVM_WIKI -> YOCTO_KVM_WIKIRichard Purdie2011-04-211-4/+4
| | | | | | (From OE-Core rev: 416e76102fdef606a0459351b85d4f7b30729114) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* POKY_NATIVE_SYSROOT -> OECORE_NATIVE_SYSROOTRichard Purdie2011-04-216-27/+27
| | | | | | (From OE-Core rev: c056aeaa13549b404088e3d465f3b03443e5ab88) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Rename poky-image-* -> core-image-* and task-poky-* -> task-core-*Richard Purdie2011-04-2124-29/+29
| | | | | | (From OE-Core rev: 560b04181d8f51d189b99f01a72f17210dadf7a3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Replace POKYBASE with COREBASERichard Purdie2011-04-2113-13/+13
| | | | | | (From OE-Core rev: 607a7657715f6fcba467a4e55ba64f41f4e13a15) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Remove obsolete scripts/classesRichard Purdie2011-04-212-200/+0
| | | | | | (From OE-Core rev: 25efcd45c83a81d78f73b5da852e575b108b3fb5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Rename poky-qemu to runqemuRichard Purdie2011-04-2119-34/+34
| | | | | | (From OE-Core rev: 7687d91f73f4a116593315b3b1488ac3f0904905) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Rename poky-init-build-env to oe-init-build-envRichard Purdie2011-04-213-2/+2
| | | | | | (From OE-Core rev: fa6176219b741eed346b21a3d923e9abc9b5442a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/poky-qemu-internal: call stty sane before exitKhem Raj2011-03-311-2/+4
| | | | | | | | | | | | | | | | When qemu is booted into console with -nographics then after exiting the terminal line settings are messed up. This patch calls stty sane to restore the terminal settings to default. stty is part of coreutils which is installed on all host distros hence there is no need to warn about it being available or not (From OE-Core rev: 201a43cce6171988999f954a5759f46b330a7812) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/poky-qemu-internal: Add rw to KERNCMDLINE for non nfs boots as wellKhem Raj2011-03-231-5/+5
| | | | | | | | | | Without using rw the ext3 images boot the kernel but do not spawn the console at the end (From OE-Core rev: 44359c953a6205a5028483e22b81e9d1691bfd44) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/poky-qemu-internal: Pass -m <mem_size> always on commandlineKhem Raj2011-03-231-15/+17
| | | | | | | | | | | | | | There is a nasty bug in qemu 0.14.0 where it over writes device memory if the default sizes was not specified on commandline. It can be worked around by this patch. I also simplified the memory size calculation logic a bit so we append 'M' to QEMU_MEMORY at the very end instead of sed'ing it afterwards (From OE-Core rev: 03ef61ed189264a75adbaf32644a80568b410b9b) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Shift a few env bits into scripts/bitbakeChris Larson2011-03-232-3/+5
| | | | | | | | | | | | | | This attempts to separate the bits we *require* to run bitbake with oe-core via the wrapper script, and which are independent of the build environment (PSEUDO_DISABLED, PSEUDO_BUILD, BBFETCH2) from those which are more particular to poky-init-build-env's way of setting things up (e.g. adding MACHINE to BB_ENV_EXTRAWHITE, relying on OEROOT, etc). This should make it easier to use scripts/bitbake with non-standard workflows. (From OE-Core rev: 7f9d6efcaf019eb046c8aa00735f823e3dbc8712) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* scripts/bitbake: add -g/--graphviz to NO_BUILD_OPTSChris Larson2011-03-231-1/+1
| | | | | | | (From OE-Core rev: 568888e38ea5a66371b9fc679df89714807f3cc8) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu: make warning messages consistent in formatDarren Hart2011-03-181-8/+9
| | | | | | | | | | | | | Try to make the output of the qemu script a bit more consistent by using the same format for the various warning messages: WARNING: description of warning. Detailed description of warning, actions taken, and/or instructions to user. (From OE-Core rev: 7895377378c197289b82e3bbc059454770911abd) Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu: warn user if nVidia libGL is detected (leads to qemu segfault)Darren Hart2011-03-181-1/+13
| | | | | | | | | | | | | | | | | | | nVidia's OpenGL libraries are known to have compatibility issues with qemu, resulting in a segfault. As different workarounds are required for the different distributions, just warn the user to explain the qemu segfault to follow, and suggest a workaround using LD_PRELOAD. [YOCTO #649] [YOCTO #698] (Original patch from Edwin, Darren modified warning and git commit wording) (From OE-Core rev: 2247ffe954b5a71f82944d23141c836b38716654) Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Mark Hatle <mark.hatle@windriver.com> CC: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* sanity: detect if bitbake wrapper is not being used or pseudo is brokenPaul Eggleton2011-03-172-1/+4
| | | | | | | | | | | | | | | * Shows a warning during sanity checking if the scripts/bitbake wrapper is not being used * Check to see if pseudo is working during sanity checking, and if it isn't an error occurs (if we are using the wrapper script and pseudo has been built; otherwise it is a warning). Fixes [YOCTO #653] (From OE-Core rev: 0b06b69992dd3df1dfff7bde694d7ad23d8d15a0) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* send-pull-request: Fetch TO email address from git config if specifiedKhem Raj2011-03-161-6/+15
| | | | | | | | | | | | Usually people using git send-email has git config sendmail.to configured to the usual mailing list or person so we harness that here. (From OE-Core rev: dae83a48f86fd5907cc999e912f476c89debd0bb) Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* poky-qemu-internal: force oprofile into using timer interrupt mode for ↵Dexuan Cui2011-03-141-0/+6
| | | | | | | | | | | | qemux86/qemux86-64 for now Currently oprofile's event based interrupt mode doesn't work(Bug #828) in qemux86 and qemux86-64. We can use timer interrupt mode for now. (From OE-Core rev: 39249cfde962b3338c2c55b99a03842ec25ecd44) Signed-off-by: Dexuan Cui <dexuan.cui@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* python: add generate-manifest-2.6.py script and regen python-2.6-manifest.incMartin Jansa2011-03-101-0/+362
| | | | | | | | | | | * imported from OE with sorted entries etc (From OE-Core rev: 94b36524550ff2c94a5f8d82a9bc2073c06d418a) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Acked-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* creat-lsb-image: Add some functions for creating a appropriate image to make ↵Xiaofeng Yan2011-03-041-60/+88
| | | | | | | | | | | | lsb test Add all pakcages from LSB Test Suite from linux foundation web. (From OE-Core rev: fc87e45c24eaee29dc3f803eca4f8e303cc582cb) Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu-script: Remove mmap_min_addr checkZhai Edwin2011-03-041-7/+0
| | | | | | | | | | | qemu 0.13.0 can handle mmap_min_addr well, and patch to remove checks in sanity.bbclass has already in oe-core mailinglist by Raj. This patch does the same thing for qemu-script. (From OE-Core rev: 48181023314ac09743b958b0035399797fe6cff9) Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta-yocto: Move files inappropriate to OE-Core from metaRichard Purdie2011-03-031-2/+2
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* poky-env-internal: Add FETCH2 enablementMark Hatle2011-03-031-0/+2
| | | | | | | | | | We need to enable the new fetch2 implementation out of bitbake. Otherwise we get various errors about SRCPV issues. (From OE-Core rev: c8495be774a5cbf235a023cecf005b2763c98745) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* poky-qemu: handle cases where an nfs directory contains -image-Scott Garman2011-02-251-0/+6
| | | | | | | | | | Previously we mistakenly assumed that any argument which contained *-image-* was the name of a rootfs image file. This allows nfs directory paths to work correctly when they contain this substring. This fixes [BUGID #743] Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* poky-qemu: Update -sdk image name due to recent change to sato-sdkSaul Wold2011-02-241-5/+5
| | | | Signed-off-by: Saul Wold <sgw@linux.intel.com>
* poky-setup-builddir: Update references to the manualRichard Purdie2011-02-241-4/+4
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemu: enable audio supportZhai Edwin2011-02-221-0/+7
| | | | | | | | | | On qemux86, export ac97 & es1370 emulated device to guest, and enable host oss&alsa driver. So end user can get sound from qemux86 guest if the sound card driver installed. [BUGID #488] got fixed. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
* tar-replacement-native: Add a target to replace the default tarRichard Purdie2011-02-211-2/+2
| | | | | | | | | | | | tar < 1.24 has symlink issues where extracting a tar archive containing a symlink to a directory where that symlink already exists will cause the symlink to be dereferenced. If that target doesn't exist tar can fail with a permissions error. Since we need to be able to do this for packages containing symlinks like xorg-minimal-fonts and eglibc, we have to ensure a tar 1.25 is available early in the build process. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* qemuimagetest: Rename test scenario file from poky-image-sdk to ↵Jiajun Xu2011-02-106-2/+4
| | | | | | poky-image-sato-sdk Signed-off-by Jiajun Xu <jiajun.xu@intel.com>
* image-swab: Convert to attach strace to the process to obtain the required ↵Richard Purdie2011-02-101-0/+30
| | | | | | swabber data Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* fetch2: Add SRPM knowledgeMark Hatle2011-02-081-0/+53
| | | | | | | | | | | | | | | | Enable the fetcher to be able to unpack and SRPM. By default the system will unpack the contents of the SRPM into the WORKDIR. A new syntax "unpack=file" was developed for the SRC_URI, to allow for a recipe to extract a specific file within an SRPM. An unpack operation will then be executed on the extracted file. In order to apply extracted patches (or unpack files not specified with unpack), you must specify the path using WORKDIR, i.e.: file://${WORKDIR}/mypatch.patch Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
* 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>