aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox
AgeCommit message (Collapse)Author
2013-05-09class/lib: Fix up various file access methodsRichard Purdie
There are various bits of cruft that have built up around our file accesses. This patch cleans some of them up, specifically: * Remove pointless "from __builtin__ import file" * Use open(), not file() * Wrap file usage in a with container to ensure files are closed * Add missing .close() calls in some cases Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-18busybox: hard-code the syslog service fileRoss Burton
Previously this was using ${PN}-syslog.service, which changes with multilib. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-17busybox: fix mount issueLaurentiu Palcu
When the mount command is not given the filesystem type to mount, then it will try all the known filesystems. However, when a filesystem is not supported by the kernel, the mount function call will return ENODEV. The following patch, ecd90bc6aa63da2aef2513ac090d4b426b2b719c, introduced a problem because it bailed out on ENODEV too. Instead it should have only bailed out on ENOMEDIUM. [YOCTO #4308] Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-15busybox: Add inetd related filesTing Liu
Add back inetd and inetd.conf files which are needed if CONFIG_INETD is enabled in the defconfig. Grabbed these files from oe-classic This patch is based on the previous patch for denzil: http://patches.openembedded.org/patch/33235/ Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-15busybox: detects customized configs when do_installTing Liu
After using 'bitbake -c menuconfig busybox' to customize defconfig, do_install fail to detect the changes. Grep configs in ${B}/.config instead of ${WORKDIR}/defconfig. Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-10busybox: fail on no mediaSaul Wold
The current behaviour of busybox is to try all fstype when automounting even when no media exists. The util-linux mount command bails when no media exists, so change the behaviour of busybox to do the same. It could also be argued that the KERN_INFO message from btrfs could be removed, but that would be harder to accomplish. Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-03-26busybox: order and group initscript variables logicallyRoss Burton
Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-03-26busybox: add strictatime support to mountRoss Burton
systemd uses strictatime when mounting tmpfs. Luckily this is already supported upstream, so backport the patch from git. Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-03-26busybox: enable systemd integration for syslogdRadu Moisan
Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Ross Burton <ross.burton@intel.com>
2013-03-15busybox: enable swapon -p (91 byte increase)Ross Burton
systemd needs "swapon -p", so as the impact is minimal enable it unversally. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-22hwclock.sh: check for the existence of /etc/default/rcSChen Qi
/etc/default/rcS might be missing if the init manager is not sysvinit. So we have to check for the existence of this file before sourcing it. [YOCTO #3697] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2013-02-13busybox: add config fragmentsChen Qi
Add config fragments to busybox. The implementation makes use of merge_config.sh script in kern-tools-native. The use case is similar to the yocto kernel's configuration fragments. We also add kern-tools-native to busybox's DEPENDS variable to ensure that merge_config.sh is available when required. [YOCTO #3379] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-02-01busybox: update test case du-k-worksKang Kai
busybox test case du-k-work fails on ext3/4 image whose size less than 512M. Add patch testsuite-du-du-k-works-fix-false-positive.patch to fix it and it has been merged by upstream. [Yocto 2896] (From OE-Core rev: ffe4f8a859d5e71e3e33363d61f0470a32c48d66) Signed-off-by: Kang Kai <kai.kang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-11-02hwclock.sh: improve hwclock.sh script to use UTC variableChen Qi
Make UTC variable in /etc/default/rcS has effect on hwclock.sh. This variable declares whether the Hardware Clock is kept in UTC or local time. Default its value to "yes" and change the comment. [YOCTO #3341] Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-10-27busybox: add /usr/bin/stat appletAndy Ross
The busybox defconfig lacks a stat tool, the functionality of which cannot be reproduced in a way accessible to a shell script running in a minimal configuration. Enable, and modify the installation path to /usr/bin/stat to match the coreutils tool for proper alternatives handling. Signed-off-by: Andy Ross <andy.ross@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-03bzip2 and busybox: Incorrect LICENSEElizabeth Flanagan
The license for bzip2 is not quite BSD. I have an email out to the maintainer to see if we can utilize a common BSD license (or something else) however, for now, we should revert bzip2 back to a special license. As busybox also utilizes a lightly modified bzip2, this also effects busybox. Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-10-02busybox: Add missing INITSCRIPT_NAME_${PN}-hwclockRichard Purdie
Fix failures like: Configuring busybox-hwclock. usage: update-rc.d [-n] [-f] [-r <root>] <basename> remove update-rc.d [-n] [-r <root>] [-s] <basename> defaults [NN | sNN kNN] update-rc.d [-n] [-r <root>] [-s] <basename> start|stop NN runlvl [runlvl] [...] . -n: not really -f: force -v: verbose -r: alternate root path (default is /) -s: invoke start methods if appropriate to current runlevel Collected errors: * pkg_run_script: package "busybox-hwclock" postinst script returned status 1. * opkg_configure: busybox-hwclock.postinst returned 1. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-26busybox: Fix misplaced quoteRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-04busybox: Add sign-off-by and upstream-statusRadu Moisan
Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-23busybox: Upgrade to upstream 1.20.2Radu Moisan
Updated defconfig file from generated .config Disabled CONFIG_LSOF,CONFIG_CROSS_COMPILER_PREFIX, and CONFIG_EXTRA_CFLAGS for backwards compatibility. Added busybox-1.20.2-kernel_ver.patch from upstream. Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-08-17busybox: Package hwclock.sh initscript separatelyAndrei Gherzan
We package this separately to be able to pull this in only if this makes sense for the MACHINE. Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-08-06busybox: fix du-k-works test caseRoy.Li
[YOCTO #2896] The du-k-works test seems to assume that du -k on a directory with two files totaling 80 kilobytes should report either 80k or 88k. In ext4 filesystm however, both busybox' du -k and coreutils' du -k reports a size of 84k which causes the test to fail. Intergrate the patch from: http://git.busybox.net/busybox/commit/?id=a5ee090e8651692545514a81a16c6cde3a2dc577 Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-08-02busybox: udhcpc shouldn't be a serviceJesse Zhang
udhcpc is invoked from the networking service, so it shouldn't exist standalone. If /etc/init.d/busybox-udhcpc is present, it will cause udhcpc to be started two times. And since the script doesn't support the stop action, it will cause udhcpc to be started even when system is being shutdown. Remove /etc/init.d/busybox-udhcpc to resolve the issues. [YOCTO #2840] Signed-off-by: Jesse Zhang <sen.zhang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-26busybox:udhcpc: fix the root_is_nfs() functionRoy.Li
[YOCTO #2788] The system will be hung when udhcpc starts, if nfs is mounted at "/" directory and default route is different after starting udhcpc. The cause is that root_is_nfs() does not work after kernel-2.6.37, since the device name has been changed from /dev/root to ${IPADDR}:${NFSDIR} on /proc/mounts. which leads to remove the default routes to nfs server, Now we use a loose match to check if rootfs is nfs. Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-07-26busybox: fix the problem that mkfs.minix.tests fails on big endian platformYao Zhao
patch mkfs.minix.tests to have correct md5sum on big endian platform. Signed-off-by: Yao Zhao <yao.zhao@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-07-19busybox: busybox wget -P option ignoredAmy Fong
busybox wget testing fails In cases where busybox wget is invoked with -P <...> and the url ends in "/", the download directory is ignored (ie the file index.html is implied), this change enables the -P option for those urls. Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-19Convert tab indentation in python functions into four-spaceRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-17busybox: Include sys/resource.h for rusage definitionKhem Raj
Seen with eglibc 2.16 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-06-28busybox: add correct ALTERNATIVE_TARGET for init.d/syslogSaul Wold
[YOCTO #2535] Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-06-18busybox: Fix syslog configuration fileMark Hatle
When update alternatives was modified, the syslog configuration file alternative was incorrectly defined to be "busybox". Fix this by enabling the proper target file. [YOCTO #2557] Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-06-15busybox: Add check for wifi/bluetooth to enable rfkillSaul Wold
rfkill is a usefull tool when you have a device with bluetooth and wifi enabled [YOCTO #2494] Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-05-30busybox: use new update-alternativesMark Hatle
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2012-05-04busybox: port improvements to simple.script from Debian (udhcpc)Andreas Oberritter
* Support resolvconf * Avoid bashism $((metric++)) * Use 'domain' instead of 'search' for domain parameter Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-05-04busybox: remove unused patches for simple.script (udhcpc)Andreas Oberritter
* OE-Core provides its own copy of simple.script. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-05-01busybox: Pass HOST_CC_ARCH through CONFIG_EXTRA_CFLAGSKhem Raj
The -mabi option is part of HOST_CC_ARCH which does not appear in CFLAGS. This is for completeness since compiler already defaults to n64 it wont matter that much Signed-off-by: Khem Raj <raj.khem@gmail.com>
2012-04-11busybox: fix options -b, -a and -PAndreas Oberritter
* busybox-udhcpc-no_deconfig.patch broke the options, preventing udhcpc from forking into the background if no lease can be obtained. Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-26busybox: move watch to /usr/bin for compatibility with procpsAndreas Oberritter
Commit 68dc2a3fa30c03a196d650de34d0c657a7b85454 broke opkg upgrade: | update-alternatives: Error: cannot register alternative watch to | /usr/bin/watch since it is already registered to /bin/watch Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-21busybox: upgrade to 1.19.4Shane Wang
Removing the patch busybox-1.19.3-getty.patch is because it is already in the upstream. Signed-off-by: Shane Wang <shane.wang@intel.com>
2012-03-05meta: Replace bb.data.expand(xxx, d) -> d.expand(xxx)Richard Purdie
sed \ -e 's:bb.data.\(expand([^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -i `grep -ril bb.data.expand *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-01busybox: Restore 'date' compatabilityGary Thomas
Restore CONFIG_FEATURE_DATE_COMPAT so that all versions of 'date', whether from busybox or coreutils, agree on the format when setting the date from the command line. Signed-off-by: Gary Thomas <gary@mlbassoc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-29busybox: Enable 64 bit shell tests, and disable non-standard date format ↵James Limbouris
interpretation. Without 64 bit shell tests, the timestamp comparison in initscripts' bootmisc.sh throws 'out of range' errors. With CONFIG_FEATURE_DATE_COMPAT, date reads the YYYYMMddhhmm string as hhmmYYYYMMdd when setting the time from the timestamp in bootmisc.sh. Signed-off-by: James Limbouris <james@digitalmatter.com.au> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-26More quoting fixesMartin Jansa
* We have various variables which are either not quoted at all or are half quoted. This patch fixes the bad exmaples so everything is consistent. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-23busybox: don't create /etc/defaultAndreas Oberritter
* It's not used by the recipe and its creation currently depends on CONFIG_HWCLOCK=y. Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
2012-02-10package.bbclass: Optimise the per file rpm handlingRichard Purdie
Currently a process was being forked off for each individual file this class wanted to inspect with rpmdeps. This converts it to use rpmdeps-oecore which allows batch processing of these dependencies. For do_package for perl, this reduced the time by about 1 minute (33%). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-07busybox: Add flock utility to default configuration.Peter Tworek
Flock is required by by pm-utils package to function properly (/usr/lib/pm-utils/functions). It's shipped in both busybox and util-linux. Both versions work fine with pm-utils. Enabling it in busybox seems like simpliest solution for the problem. Signed-off-by: Peter Tworek <tworaz666@gmail.com>
2012-01-24Fix Upstream-Status entriesSaul Wold
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-01-19busybox: enable dropping of duplicates in syslog, off by defaultJoshua Lock
Busybox syslog includes functionality to drop duplicated syslog entries, enable this feature in the defconfig yet disable it by default. Expose configuration of the feature through the syslog-startup.conf file and the syslog init script. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2012-01-19busybox: change syslog default to log to a fileJoshua Lock
This changes the default in syslog-startup.conf to log messages to a file (/var/log/messages) because: a) we already mount /var/log as a volatile mount by default b) users are accustomed to looking at /var/log/messages as most distributions don't ship with logread Signed-off-by: Joshua Lock <josh@linux.intel.com>
2012-01-19busybox: enable log level configuration in syslog-startup.conf and scriptJoshua Lock
It's possible to configure busybox syslog to only log messages above a certain level, expose this functionality through the syslog-startup.conf and syslog init script. Valid values are 1-8 inclusive. Signed-off-by: Joshua Lock <josh@linux.intel.com>
2012-01-19busybox: remove incorrect comments from syslog-startup.confJoshua Lock
Setting rotation size and generations is supported with busybox syslogd Signed-off-by: Joshua Lock <josh@linux.intel.com>