aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
AgeCommit message (Collapse)Author
2014-08-29sdktool.py: Remove hardcoded bitbake path.rewitt/newsdkRandy Witt
The layer that contains bitbake and the environment setup files is now injected during sdk creation using sed.
2014-08-19beginnings of new sdkPaul Eggleton
2014-08-11Remove remnants of deleted "do_package_write" task.Robert P. J. Day
As the do_package_write() task is listed as deleted, remove the few remaining references. (From OE-Core rev: 201d572ab5c57cda1b332356a3b7711bc346696e) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-11busybox: Add Upstream-Status to patchSaul Wold
(From OE-Core rev: a81d4fd4ac3b2cfb144650a9bdde918d9f7d73a2) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-11sysvinit: allow stack size configuration from rcSScot Salmon
For certain swap/overcommit settings (e.g. when overcommit is disabled on a real-time system), we need to limit the stack size used by initscripts. When the STACK_SIZE environment variable is set (usually in /etc/default/rcS), ulimit the stack size to the value specified. Make the stack size ulimit a soft limit, which allows the user to increase the stack size where required without having to run the respective application as root. (From OE-Core rev: 0b5db16929de7668174e74e428f3e4e90e76e1d8) Signed-off-by: Scot Salmon <scot.salmon@ni.com> Signed-off-by: Gratian Crisan <gratian.crisan@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Acked-by: Rich Tollerton <rich.tollerton@ni.com> Acked-by: Brad Mouring <brad.mouring@ni.com> Acked-by: Bill Pittman <bill.pittman@ni.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-06base-files: set dynamic COLUMNS via resize commandTing Liu
By default, COLUMNS is set to 80. If possible, run 'resize' to determine what the current dimensions are. This avoids the final part of long lines overlap the start of the same line. (From OE-Core rev: cc6360f4c4d97e0000f9d3545f381224ee99ce7d) Signed-off-by: Ting Liu <ting.liu@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-06busybox: Make busybox connman awareSaul Wold
This change makes busybox aware of both connman and the standard dhcp client, while there is a caveat about using busybox's ifup/ifdown, this change will make the 3 possibly dhcp clients behave better when busybox is used. Enable the CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP feature to busybox will search for various external clients and then add connman as an external client. [YOCTO #6521] (From OE-Core rev: 06bdccb5c4df44745863a2290cbb83fd190f66df) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-02init-install: Skip CDROM devices during probeDrew Moseley
(From OE-Core rev: e8ee8b765183fb3ebe5e94df6375c2fad111dcc7) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-02init-install: Strip partition number from live_dev_nameDrew Moseley
This is needed in case the boot disk was created with mkdiskimage. In that case the parameter passed is a variant of /dev/sda4 which includes the partition number. Without this change this install script will offer to install onto the live media. (From OE-Core rev: 9f6d7d42eaad225698de730d5c76bfe9523f4a78) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-02init-install-efi.sh: Verify /sys based files exist before displaying themDrew Moseley
Some mmc cards do not have all the data files in /sys/block populated. Check for existence before displaying the files to avoid erroring out of the install process. (From OE-Core rev: 4abe5563f61a228963e1e442ebc2df9f2d01be80) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-02systemd: add volatile-binds to RDEPENDSChen Qi
This services generated from volatile-binds.bb recipe file only have effect in a read-only filesystem. So if the rootfs is read-write, the related service are not started. (From OE-Core rev: b03be56cbfc3fed8f39b60fc80b3c65ef291f222) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-08-02volatile-binds: add recipeChen Qi
This recipe is designed to play a key role in a read-only rootfs of systemd based systems. It generates service files from a template, volatile-binds.service.in and the VOLATILE_BINDS variable. By default, VOLATILE_BINDS takes the value of "/var/volatile/lib /var/lib\n", which leads to the generation of volatile-var-lib.service file. This file doesn't have any effect in a read-write system, as it has "ConditionPathIsReadWrite = !/var/lib" in the [Unit] section. In other words, this file only has effect in a read-only rootfs. (From OE-Core rev: ed7d30dc0cdb6d6c56c50ac7a3440c4ed0ee70d3) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-29base-files: fix up misleading dir grouping names for lsb dirsPaul Gortmaker
In commit b0df35f47fb79dc149504bd66d1186b3276f9510 ("base-files: Add to make some directories needed by LSB.") there were new groupings of dirs made. But rather than keep the grouping names permissions based as they clearly were, it seems that it was unfortunately misinterpreted as a counter, simply incrementing as a new group was added. This leads to dir3755 getting chmod'd to 0755 and dir4775 being chmod'd to 2775 which to any new reader of the code is terribly confusing. Choose names that clearly reflect the permissions, and add a lsb suffix to indicate the role. Also note that the settings for /var/mail seem incorrect, and so they have been aligned with what is seen in most common distros. (From OE-Core rev: 5cba414e3fd7dbe761a6f628c6a368a412c0cba3) Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-29base-files: remove strange 2775 perms from dirs like /homePaul Gortmaker
Mark Hatle did the historical research into why this was so, and found that it originally was via debian import, and then it morphed over time: <fray> +# chown -R root:root ${D} <fray> +# cd ${D} && chown root:src usr/src <fray> +# cd ${D} && chown root:staff var/local <fray> +# cd ${D} && chown root:staff home <fray> + cd ${D} && chmod 755 `find . -type d` <fray> + cd ${D} && chmod 1777 `cat ${S}/debian/1777-dirs` <fray> + cd ${D} && chmod 2775 `cat ${S}/debian/2775-dirs` <fray> that was the original code <fray> so THAT is why they're 2775.. <fray> they were original 'src' and 'staff'.. which has gotten lost sometime in the last 10 years <fray> AND the origin: <fray> commit b45c9ed40bb4f893f99127a21776aef3ae888ad7 <fray> Author: Chris Larson <clarson@kergoth.com> <fray> Date: Tue Sep 30 16:30:41 2003 +0000 <fray> Add base-files 3.0.10 (from debian). <fray> thats where the brain damage started ... Debian in 2003.. Here we simply convert them to being normal 755 dirs. [YOCTO #6579] (From OE-Core rev: 77e4defa57f02b7f7ad23b07f169ec280228585b) Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-29base-files: actually install 2775 dirs as 2775, not 2755Paul Gortmaker
Nothing interesting to see in the git history ; appears to have been this way since its creation. (From OE-Core rev: f178f56f389e9640a7e80f82250129586edff20c) Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-26util-linux: break out new package util-linux-findfsRichard Tollerton
We'd like to include the util-linux version of findfs in images without having to include all of util-linux. To make this possible, break out findfs into its own package. (From OE-Core rev: 859bdcc1691ec3fd9e88cf60b5d96f0239d72bce) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-26util-linux: break out new package util-linux-hwclockAlejandro del Castillo
We'd like to include the util-linux version of hwclock in images without having to include all of util-linux. To make this possible, break out hwclock into its own package. (From OE-Core rev: 7c0429827d1232c8f1b439a73af6064602ec43e7) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-25base-files: Don't export TZ if /etc/TZ existsRichard Tollerton
While glibc/eglibc looks for the time zone in /etc/localtime, other libc alternatives (e.g. uclibc) may look for it in /etc/TZ. If /etc/TZ exists, don't fall back to setting TZ to "UTC" in /etc/profile. (From OE-Core rev: a69c3ba99be1502c50d3d1eb9ff66f135884ed76) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-25glib-2.0: use ptest-gnomeRoss Burton
(From OE-Core rev: fb32cd7abac268747347ee5cff98a4d07dc4b780) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-23initscripts: fix bashism in bootmisc.shBen Shelton
In the commit 'initscripts: save /etc/timestamp with seconds accuracy', a bashism was introduced in the bootmisc.sh script in the code to set the current date from the stored value in /etc/timestamp. This causes that operation to fail with the following message when /bin/sh is not bash: /etc/init.d/rc: /etc/rcS.d/S55bootmisc.sh: line 73: syntax error: bad substitution Fixed by using pattern matching removal rather than bash-specific substring expansion. [YOCTO #6566] (From OE-Core rev: c8a451adc71e4ce9ab963f61d7830c2d75aaffca) Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-23sysvinit: bootlogd: ensure /var/log/boot is created in volatilesRichard Tollerton
bootlogd does not write to /var/log/boot if it does not exist, so if using the volatiles facility (presumed to mount /var/log under a tmpfs), ensure that /var/log/boot gets created. (From OE-Core rev: 283d109098358c06ff10daaf612e5a244691d7ac) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-23sysvinit: bootlogd: Don't run savelog if it's not installedRichard Tollerton
bootlogd's default log rotation code on stop requires `savelog`, which is in debianutils, which may not be installed. If it's not installed, don't try to perform the log rotation. That is: in the affected code block, `savelog` is what is responsible for creating "boot.0". When `savelog` doesn't exist, an error message gets printed on bootup to the effect of "mv: can't find boot.0". (From OE-Core rev: 5c22973e1bf76615bcf57984ac7a30cf7d0766df) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-23sysvinit: bootlogd: Honor VERBOSERichard Tollerton
The messages echoed when starting and stopping bootlogd are currently printed regardless of the setting of VERBOSE. Adjust the initscript so they're only printed when VERBOSE is enabled. (From OE-Core rev: 42f107513148aa6e9fd69d51e63a183c613114c0) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-23systemd: change dependency relationshipsChen Qi
When building out a systemd based image, the udev-hwdb postinstall script always fails at rootfs time. This is because that the 'udevadm' command used in udev-hwdb postinstall script is now in the udev package and udev recommends udev-hwdb. Instead of letting udev recommends udev-hwdb, we let systemd do it and make udev-hwdb rdepend on udev. (From OE-Core rev: f14ee284da19665f157453021e3fa0e3a0dbf75d) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-23busybox: mdev: Ensure /dev/initctl exists after tmpfs mountBen Shelton
During boot, there is a brief window during which /dev/initctl is missing, which breaks initscripts that would need to access it. This occurs because /etc/init.d/mountall.sh (rcS.d/S02...) attempts to ensure /dev/initctl is present, but /etc/init.d/mdev (rcS.d/S06...) mounts over /dev and clobbers the work done by mountall, and then does not wait synchronously until initctl is ready before continuing. To close this window, in /etc/init.d/mdev, we check whether /dev/initctl is present, and if not, we remove it and recreate it. This is the same thing that is done by /etc/init.d/mountall.sh, and we have verified that any writers of /dev/initctl will wait synchronously until sysvinit notices the change in fd and does the read, so no race exists. (From OE-Core rev: 53543363a8ab4424c17ed7aec0e8aefc4df86b3d) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-23busybox: mdev: Use mdev.seqBill Pittman
/dev/mdev.seq exists to synchronize concurrently running instances of mdev and to ensure that they execute in the proper order. Without this synchronization, it is possible to have inconsistent mount points, to leak device nodes, or to have a node erroneously removed in rapid hotplug scenarios. Enable the use of mdev.seq by creating an empty /dev/mdev.seq at boot. (From OE-Core rev: 3b256653ae9ab2cf56b21cb82a8bd2a562397b27) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-23busybox: mdev: Make /dev/shm world-writableGratian Crisan
Otherwise, users cannot use named semaphores or shared memory. (From OE-Core rev: a8f35be467836d8fa0bc8f8e85eba6f89a13f087) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-21buildtools-tarball: Add wget to buildtools-tarballTudor Florea
GNU Wget cannot be upgrated to a newer that 1.12 version on supported Centos distro. GNU Wget 1.12 and earlier uses a server-provided filename instead of the original URL to determine the destination filename of a download. This means the files downloaded when fetching cannot be properly used: $ wget http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.4.2/source/eventlog_0.2.13.tar.gz $ ls eventlog_0.2.13.tar.gz?AWSAccessKeyId=AKIAICTJ5MANGPMOH7JA&Expires=1400838672&Signature=TjakOBpOvHtEKKDgF14iVinWpY0= This in turn lead to build errors like: WARNING: Failed to fetch URL http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.4.2/source/eventlog_0.2.13.tar.gz, attempting MIRRORS if available ERROR: Fetcher failure for URL: 'http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.4.2/source/eventlog_0.2.13.tar.gz&#39;. The fetch command returned success for url http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.4.2/source/eventlog_0.2.13.tar.gz but /path/to/downloads/eventlog_0.2.13.tar.gz doesn't exist?! ERROR: Function failed: Fetcher failure for URL: 'http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/3.4.2/source/eventlog_0.2.13.tar.gz&#39;. Unable to fetch URL from any source. ERROR: Logfile of failure stored in: /path/to/tmp/work/ppce500v2-enea-linux-gnuspe/eventlog/0.2.13-r0/temp/log.do_fetch.28302 ERROR: Task 4 (/path/to/poky/meta-openembedded/meta-oe/recipes-support/eventlog/eventlog_0.2.13.bb, do_fetch) failed with exit code '1' [YOCTO #6549] (From OE-Core rev: 16dcc820af60f1a875c9b3b13b545a78124ddd7f) Signed-off-by: Tudor Florea <tudor.florea@enea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-19eglibc: rewritten tzselect as posix sh and move it to tzcode packageHongxu Jia
The problem is that this would cause bash installed to meta-toolchain, the dependencies chain is: meta-toolchain -> eglibc-utils -> bash We should eliminate bash dependencies in anything core to a tiny system. The eglibc-utils also provides eglibc-utils/usr/bin/zdump, eglibc-utils/usr/bin/zic which all of them belonged to tzcode, so we should split these three utils as tzcode package. [YOCTO #6544] (From OE-Core rev: f7f3a1fb3855799bb48708f32533e93e336e6995) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-19busybox: enable CONFIG_FEATURE_AWK_LIBM by defaultHongxu Jia
It was required by tzselect which is provided by eglibc utils. The eglibc is a fundamental package, so enable math functions of awk is reasonable. Here is the error if we not enable that: ... root@qemuarm:~# tzselect -c +4852+00220 awk: cmd. line:39: Math support is not compiled in ... [YOCTO #6544] (From OE-Core rev: 52a3df6a57c22df9da5ce05134395cf0756c63c6) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-19initscripts: Add support for /etc/default/urandomRichard Tollerton
Source /etc/default/urandom if present. This allows the rootfs to remain read-only while enabling the user to override the location of the random seed file. (From OE-Core rev: 415e1a4ac8120b28118671698459b098c965a4f6) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-19initscripts: make hostname.sh coreutils-compatibleRichard Tollerton
inetutils and busybox hostname utils support `hostname -F`; coreutils hostname doesn't. So just use `cat` instead. (From OE-Core rev: acb8674e498468088d867ffae9a458caa08d95d5) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-19initscripts: Use current date as an additional source of entropyKen Sharp
If the seed file is empty or does not exist, the date is an extremely poor backup source of entropy, but it is better than nothing. (From OE-Core rev: 0a41a7c20316c7d3330233a624d8cf20ea5a81ae) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-19initscripts: parametrize random seed file locationRichard Tollerton
Currently, the random seed file location is hardcoded to /var/lib/urandom/random-seed. Refactor it to a parameter (RANDOM_SEED_FILE) so the file location is defined in only one place. (From OE-Core rev: 558ba23cfdd60bf64b9214460a2772be70079796) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-19initscripts: save /etc/timestamp with seconds accuracyBlair Elliott
Currently, /etc/timestamp is saved with minutes accuracy. To increase the accuracy, modify the save-rtc.sh and bootmisc.sh scripts to save and read /etc/timestamp respectively with seconds accuracy. (From OE-Core rev: 8fed53e4e72230c61f23cb36eda36c228aede1e0) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-19initscripts: bootmisc.sh: Make sysctl -p honor VERBOSERichard Tollerton
busybox sysctl may lack the "-q" setting, so simulate it with redirects. (From OE-Core rev: 5672b5188557b940340bdc3e6a3ac30835b829fb) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-17kbd: Upgrade to 2.0.2Saul Wold
Tarball compression type changed to zx (From OE-Core rev: 12b3b7191c14a0151977a9e9b66ba446228074bf) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-17eglibc: check for required distro featuresChen Qi
If users accidently override the DISTRO_FEATURES in local.conf, then build failures occur for lack of libc functions. All features in DISTRO_FEATURES_LIBC should be in DISTRO_FEATURES. That's why this patch let the recipe inherit distro_features_check class and set REQUIRED_DISTRO_FEATURES to "${DISTRO_FEATURES_LIBC}". [YOCTO #6381] (From OE-Core rev: 82d9d12a3364914a5c1f354671adac1f0a71eea3) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-16libxml2: enable catalog supportHongxu Jia
It let the environment variable XML_CATALOG_FILES could work which was required by xmlto. [YOCTO #2416] (From OE-Core rev: 1ea74a265b3c8f36e07c3cf2c26d8e60518da5a7) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-16Remove long-deprecated "task-core" backward compat for packagegroups.Robert P. J. Day
(From OE-Core rev: 7472037569b42386592c060d54196f0c8b9e2d5d) Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-10Move boot media to /media/realroot for easy access after boot.Brian Lloyd
There are cases where software after boot may need to know the current boot disk. Under the current system, it is not guaranteed which disk is the boot. While /media/sda is a good guess, it isn't always right, nor is it a good assumption that only one boot disk is in the system. This gives a standard path to the original boot disk mount which can be used to, for instance, update the syslinux file on the boot media with a newer kernel, or updating the boot parameters to add user options for future boots. Knowing which disk is the boot media keeps from updating the non-boot disk when for instance multiple syslinux boot medias are plugged in (ie ensure correct syslinux is updated when the booted system is updated). (From OE-Core rev: 2be3b2607fd164d18498299dbfc020ff17dd2ca9) Signed-off-by: Brian Lloyd <blloyd@familyhonor.net> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-10init-install-efi.sh: improve hard drive searching processDrew Moseley
(This patch was originally done against init-install.sh in OE-Core rev 358f0584d779825307eec08c023b5ff14e72cf9e) Previously, only unremovable hard drives are searched and are treated as candidates of target disks to intall into. However, it's possible that we're going to install the live image into a removable media such as an USB. This patch enables this possibility. In addition, this patch presents more information about the hard drives so that user may have more knowledge about which hard drive they are going to install their image into. (From OE-Core rev: 7386acf4ab63a5959e4907b29459b767f2bf2fdb) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-10init-install-efi.sh: fix to handle the boot partition correctlyDrew Moseley
(This patch was originally done against init-install.sh in OE-Core rev aa67b1333b4774e1845f562085f7048df65a644f) Previously, the boot partition was created for the target hard drive but there was no corresponding entry for it in /etc/fstab. Besides, even if the boot partition was mounted, it would just result in odd directory hierarchy like /boot/boot/grub. However, what we really need is /boot/grub. This patch fixes this problem. Besides, for future maintance work, this patch also renames some of the intermediate directories. It uses more descriptive names like /tgt_root and /src_root. The name of /ssd is dropped. (From OE-Core rev: 3b1bae7ad8d36930aae840175c6a3433c1469772) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-10init-install.sh: Verify /sys based files exist before displaying themDrew Moseley
Some mmc cards do not have all the data files in /sys/block populated. Check for existence before displaying the files to avoid erroring out of the install process. (From OE-Core rev: 1d73e3f9d9977382efdb0c111c556c6048bd60b4) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-10base-passwd: install passwd and group atomicallyRobert Yang
Fixed the race issue: util-macros.do_package failed: 'getpwnam(): name not found: root' The error happens when there is a half etc/passwd, fixed by: $ install usr/share/base-passwd/passwd.master etc/passwd.master $ mv etc/passwd.master etc/passwd The "mv" is atomic which will fix this problem. [YOCTO #6124] (From OE-Core rev: cdbe55215e3dd1b82a6c147a31c7c40186a8bf80) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-03build-appliance-image: Update to master head revisionRichard Purdie
(From OE-Core rev: ee70d0cd42a280fd230abf35036ad237c96b3065) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-03glib-2.0: silence QA warnings about libraries outside ${libdir}Ross Burton
The test suite is installed into ${libexecdir} and as that may be outside of ${libdir} the QA test needs to be silenced. (From OE-Core rev: d354d339a38d22f1a5bca14341229d2282647fbb) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-03meta: fix no newline at end of fileRobert Yang
Add a '\n' to the last line of the file to fix: No newline at end of file (From OE-Core rev: b3090263ba31702631270643c7a7d7af8f4d9234) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-07-03init-install-testfs.sh: add '--hotkey x' to 'test' menuentryCorneliu Stoicescu
Add a hotkey for the GRUB 'test' menuentry. This can be used by expect scripts to boot into 'test' when doing runtime hardware tests. (From OE-Core rev: 17b97fd6c724ba6e506cbadb18facdfd9c472e79) Signed-off-by: Corneliu Stoicescu <corneliux.stoicescu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-06-29initrdscripts: Try to boot if boot label is unknownDrew Moseley
The init-live.sh scripts assumes that the boot label set by the LABELS variable is either "boot", "install", or "install-efi". If that variable is overridden to something else we fall off the end of the case statement and the system locks up. If the boot label is unknown, at least attempt to boot. (From OE-Core rev: 98353862c08be2f1724aaad7aa4ed0521e3621f2) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>