summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox
Commit message (Collapse)AuthorAgeFilesLines
* busybox: fix a sh link wrongWenlin Kang2014-04-091-2/+6
| | | | | | | | | | | | When both bash and busybox be installed, without ash support in busybox,if bash is installed before busybox in the final stage, even if ALTERNATIVE_PRIORITY of bash > ALTERNATIVE_PRIORITY of busybox, the symlink from /bin/sh to bash can be yet overwritten by busybox. (From OE-Core rev: 6ef650359cc2a49376eb5ca92bc97b34cdd82862) Signed-off-by: Wenlin Kang <wenlin.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Specify '-nostdlib' when linking to a .o file.Drew Moseley2014-04-052-0/+41
| | | | | | | | | | | | | | | Ensure that linking to the built-in.a file uses the 'nostlib' option. Submitted to busybox mailing list here: http://lists.busybox.net/pipermail/busybox/2014-March/080730.html This has been accepted into upstream busybox so it will not be needed for future versions. (From OE-Core rev: fdfff57304e6641ef5a8db0fb456bfd46bf1e2dd) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Use CCLDDrew Moseley2014-04-051-0/+1
| | | | | | | | | | | | | | | | Use the CCLD variable to ensure proper tuning parameters. Notably when building on a x86-64 host with an i686 toolchain there is an error building built-in.o because it is trying to link 32-bit and 64-bit object files: i686-pc-linux-gnu-ld --sysroot=/work/dmoseley/Mentor/amd-2014.05/build.genericx86-64-external/tmp/sysroots/genericx86-64 -r -o applets/built-in.o applets/ap i686-pc-linux-gnu-ld: Relocatable linking with relocations from format elf64-x86-64 (applets/applets.o) to format elf32-i386 (applets/built-in.o) is not support make[1]: *** [applets/built-in.o] Error 1 (From OE-Core rev: 088d2f0185da6648305b4719ee9cb0d2f2b37c6f) Signed-off-by: Drew Moseley <drew_moseley@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: disable fsck.minix and mkfs.minixJonathan Liu2014-03-231-3/+3
| | | | | | | | | The MINIX and MINIX 2 filesystems are not really used anymore. (From OE-Core rev: 4a47c943a76e79af82d47d8fa83c6687e0d915a0) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues (part 2)Matthieu Crapet2014-02-201-1/+1
| | | | | | | | | | | | | | | | | | Completes previous commit b5292d4115a4555a66b5e35acdc67dd71fb8577f. Updates SUMMARY[doc] (meta/conf/documentation.conf). Changes: - rename DESCRIPTION with length < 80 to (non present tag) SUMMARY - drop final point character at the end of SUMMARY string - remove trailing whitespace of SUMMARY line Note: don't bump PR (From OE-Core rev: ad17dfd31a2b97b3e610a0ea0889f5ecb2a63b97) Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox-syslog: add more comments to systemd configuration fileChen Qi2014-02-131-0/+24
| | | | | | | | | | | | | | | Add more comments to the systemd configuration file for busybox's syslogd utility. The purpose is to easy the life of system administrators. These comments are mostly derived from the comments in syslogd.c in busybox. [YOCTO #5722] (From OE-Core rev: eba4f2bd2a0becc086f107dbd0d3ec5222c5eed2) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: upgrade to stable 1.22.1Chen Qi2014-02-0211-773/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Upgrade busybox to the stable release 1.22.1. During this upgrade, 9 patches are removed. Reasons are detailed below. The following 6 patches are removed as they have been merged. meta/recipes-core/busybox/busybox/busybox-lineedit-initialize-delptr.patch meta/recipes-core/busybox/busybox/busybox-list-suid-and-non-suid-app-configs.patch meta/recipes-core/busybox/busybox/busybox-sed-fix-sed-clusternewline-testcase.patch meta/recipes-core/busybox/busybox/busybox-sulogin-empty-root-password.patch meta/recipes-core/busybox/busybox/find-get-rid-of-nested-functions.patch meta/recipes-core/busybox/busybox/testsuite-du-du-k-works-fix-false-positive.patch The following three patches are removed because they are mainly about moving binaries from /bin to /usr/bin to make the update-alternative work correctly at rootfs time. We can easily solve this problem by changing recipes. There's no compelling reason why such patches are needed. meta/recipes-core/busybox/busybox/run-parts.in.usr-bin.patch meta/recipes-core/busybox/busybox/stat-usr-bin.patch meta/recipes-core/busybox/busybox/watch.in.usr-bin.patch (From OE-Core rev: fa282186d82e8fe3c590d4ea79e464116e5ceea2) 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>
* busybox: lineedit: initialize delptrMing Liu2014-01-102-0/+24
| | | | | | | | | | In vi mode, the 'p' and 'P' commands caused a segfault when nothing had been put in the buffer yet because the delptr was not initialized. (From OE-Core rev: 21ba0297409bfc6e0fb89f45c9bfed8981c7df5b) Signed-off-by: Ming Liu <ming.liu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: enable SEAMLESS_XZ by defaultChen Qi2014-01-101-1/+1
| | | | | | | | | | | | | We have enabled SEAMLESS_GZ and SEAMLESS_BZ2 in defconfig, it's reasonable for us to enable SEAMLESS_XZ as well. Otherwise, we couldn't extract tar.xz file while we could extract tar.gz file. Such situation would be somewhat confusing. (From OE-Core rev: 6482a43211a3a4858030ae3c59f5726c0ccba261) 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>
* busybox: get rid of nested functions in findMuhammad Tauqir Ahmad2013-12-162-0/+118
| | | | | | | | | This allows us to compile busybox using clang. Nested functions is a gcc extension not supported by clang. (From OE-Core rev: d2bf599f36ed1a04c661fc0a71e664e219532cbc) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/recipes: More optimal DISTRO_FEATURES referencesRichard Purdie2013-12-051-12/+11
| | | | | | | | | Using the contains function results in more optimal sstate checksums resulting in better cache reuse as we as more consistent code. (From OE-Core rev: 9c93526756e7cbbff027c88eb972f877bcb1f057) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: add busybox_git.bb recipeChen Qi2013-11-3014-0/+53
| | | | | | | | | | | Add busybox_git.bb recipe so that it would be easier to hack with busybox. Set DEFAULT_PREFERENCE to "-1" in the git recipe so that we still use the busybox_1.21.1.bb recipe by default. (From OE-Core rev: d290bbe6d9826fbcfa2e0a7624886284697ed7eb) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: fix sed auto insert newline testcaseJackie Huang2013-11-012-1/+265
| | | | | | | | | | | | | | backport the patch from busybox upstream to fix the auto insert newline issue. busybox defect: https://bugs.busybox.net/show_bug.cgi?id=6584 (From OE-Core rev: db00fa405c025c61844df2e9589fe635fc5df0e2) Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: Remove PR = r0 from all recipesRichard Purdie2013-10-301-1/+0
| | | | | | | | | | | | | Remove all PR = "r0" from all .bb files in oe-core. This was done with the command sed -e '/^PR.*=.*r0\"/d' recipes*/*/*.bb -i We've switching to the PR server, PR bumps are no longer needed and this saves people either accidentally bumping them or forgetting to remove the lines (r0 is the default anyway). (From OE-Core rev: 58ae94f1b06d0e6234413dbf9869bde85f154c85) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Add depmod (adds 2240 bytes)Saul Wold2013-10-161-1/+1
| | | | | | | | | This will allow packages that update kernel modules to run correctly (From OE-Core rev: 72c23255cc88b5e2cd6f783231e6f42bf5190df7) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: update mdev.confEric Bénard2013-09-261-6/+8
| | | | | | | | | | | | | | | | | | busybox 1.21.1 's mdev has changed the way the device's name is reported so now we get input/event0 instead of event0. I think this commit is responsible of this new behaviour : http://git.busybox.net/busybox/commit/util-linux/mdev.c?id=c3cf1e30a3022453311a7e9fe11d94c7a381640e Update mdev.conf according to this behaviour so that sound and input devices are correctly populated (and now /etc/mdev/find-touchscreen.sh is executed). Tested on an arm board. (From OE-Core rev: 61b2950ebbc01f5e4fd7aece05bf371100c0c390) Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: move su to /bin for lsb command check testHongxu Jia2013-09-172-27/+0
| | | | | | | | | | | | | | | In busybox, util-linux and shadow, su has been moved to /usr/bin/, but lsb cmdchk needs su in /bin. Move su to /bin could fix this issue. [YOCTO#5175] (From OE-Core rev: daff19fe6f0490dc7036602e8b0ca40a23b55556) 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>
* busybox-syslog: add configuration file /etc/syslog.confChen Qi2013-09-063-1/+7
| | | | | | | | | | | | | | | | | | | | | | | By default, busybox has CONFIG_FEATURE_SYSLOGD_CFG enabled, but it doesn't ship a configuration file. This patch adds a configuration file (/etc/syslog.conf) to the busybox-syslog package. This configuration file mainly serves as a placeholder now. The advantages of this change are: 1. Make the users aware of the fact that the /etc/syslog.conf file will actually be parsed by busybox's syslogd utility. And configuring that file will change the logging behaviour. 2. In a systemd based system, this file will prevent the same configuration file provided by the sysklogd package from messing things up. [YOCTO #5066] (From OE-Core rev: b7f6688f0700a1575037362af7a8ca94dccce471) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: configure system user id to range from 100 to 999Chen Qi2013-08-301-2/+2
| | | | | | | | | | | | | | | Previously, the range was 0 to 0. This made it impossible to use busybox's adduser utility to add a system user. The following error would appear. adduser: no uids left This patch fixes this problem by giving it a reasonable range. (From OE-Core rev: c4555007d04ccacbc192827b70a97f9a48500a22) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: set default log buffer size to 64 at compile timePaul Eggleton2013-08-301-1/+1
| | | | | | | | | | | | | | This provides a more reasonable log buffer size to avoid losing earlier events, and 64K is not a problem for modern systems. When the buffer is used on sysvinit-based systems, which it isn't by default, 64K is already the runtime default size unless /etc/syslog-startup.conf is modified or deleted, so this only really affects systems using systemd. This completely removes the need for the busybox bbappend in meta-oe. (From OE-Core rev: 6d6a3f805b0fad6f904afb52dc12bfb543e3eec5) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: enable shared memory logging for systemdPaul Eggleton2013-08-263-1/+8
| | | | | | | | | | | | | | | | | The default command-line options for launching busybox's syslogd are "-C" if using sysvinit; but because we use /etc/default/busybox-syslog when using systemd which the sysvinit initscript doesn't use, and no /etc/default/busybox-syslog is installed by default in OE-Core, the default arguments with systemd were no arguments at all with OE-Core alone. Effectively merge in the bbappend from meta-oe that adds a default file in order to set the default options to "-C" for systemd as well. (From OE-Core rev: a23aa8e7467cf2b7f4e8ff85a3aa841ff6b508e5) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox.inc: Avoid error when SYSLOG is not enabledFlorin Sarbu2013-08-221-1/+1
| | | | | | | | | | | Add -f to rm of ${D}${sysconfdir}/syslog-startup.conf.${BPN} so as to not error out when the busybox config used does not have SYSLOG enabled and DISTRO_FEATURES does not contain sysvinit. (From OE-Core rev: 4c5756149754d0b18b14595db335f8f5e14cc0a3) Signed-off-by: Florin Sarbu <florin.sarbu@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: remove syslog-startup.conf if sysvinit not in DISTRO_FEATURESChen Qi2013-08-121-5/+8
| | | | | | | | | | | | | | | | | | sysvinit and systemd have different ideas about configuration files (or environment files in systemd), so basically we can't use the same one in both cases. To avoid confusion, this patch removes syslog-startup.conf if 'sysvinit' is not in DISTRO_FEATURES. [YOCTO #4837] [YOCTO #4860] (From OE-Core rev: 89f62147a61108b4be40001e1fbe3be33bacf00b) 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>
* busybox: move /bin/su to /usr/bin/su to match util-linux and shadowHongxu Jia2013-07-312-0/+27
| | | | | | | | | | | | | Both of util-linux and shadow have su binary in /usr/bin, fix busybox to use the same path so they can be properly tracked by alternatives. [YOCTO #4926] (From OE-Core rev: e01735756a76d27b724b9e7829f78e8a335c1f60) 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>
* busybox: Add syslog-init alternative only if SysV in enabledMuhammad Shakeel2013-07-311-3/+8
| | | | | | | | | | | | | | | If systemd is enabled then syslog is handled through a service file and related files in /etc/init.d are removed. This removes following warning: WARNING: busybox: NOT adding alternative provide /etc/init.d/syslog: /etc/init.d/syslog.busybox does not exist (From OE-Core rev: 29c3ecee32d9bfb03099a4f10456fd0270e107fb) Signed-off-by: Muhammad Shakeel <muhammad_shakeel@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: fix ip reference in simple.scriptMark Hatle2013-07-181-1/+1
| | | | | | | | | | The ip is being installed into /sbin as of the latest busybox. (From OE-Core rev: 222ae6001db286d66462c6334f7f054ca727b7be) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: upgrade to stable 1.21.1Chen Qi2013-07-0520-303/+5
| | | | | | | | | | | | | Merged or backported patches are dropped. The wget_dl_dir_fix.patch was submitted more than 1 year ago, it's about the -P option behavior, and it's not accepted, so I dropped this patch too. (From OE-Core rev: a2f31a6a6accb8eee2084cb39edb8e9af4b4189f) 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>
* busybox: fix the on-target upgrade problemChen Qi2013-07-051-0/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | We now can have a 'one-binary' version of busybox, or 'two-binary' version of busybox, controlled by the 'BUSYBOX_SPLIT_SUID' variable. This makes on-target upgrade a problem, as we have to support the following four upgrading paths. For convenience, in the following context, A is used to denote a 'two-binary' version of busybox while B is used to denote a 'one-binary' version of busybox. A --(upgrade)--> B B --(upgrade)--> A A --(upgrade)--> A B --(upgrade)--> B This patch makes effort to support the above four situations. [YOCTO #4802] (From OE-Core rev: 4e571e97750f3ac6a62cd0d2d10c08be98230630) 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>
* busybox: Add ptestBjörn Stenberg2013-06-253-1/+15
| | | | | | | | | | | Install busybox test suite and run it as ptest. (From OE-Core rev: 0d29dc5b5f7742df60fdba90835ef77425963bde) Signed-off-by: Anders Roxell <anders.roxell@enea.com> Signed-off-by: Björn Stenberg <bjst@enea.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: add the ability to split the busybox binaryChen Qi2013-06-251-28/+68
| | | | | | | | | | | | | | | | | | | | | | | | This patch enables us to split the busybox into two binaries, one containing suid applications, and the other containing nosuid apps. Add a variable, BUSYBOX_SPLIT_SUID, to control whether to split the busybox binary into two parts. We default it to "1" to enable the splitting, but users could still override it to disable the splitting. After all, busybox has no internal support for this suid apps splitting, so there might be users out there who want just one busybox binary. The basic idea here is to build the busybox twice, each with the correct configuration items. We extract the non-app part of the original .config file, and merge this part with the suid-app part to form a .config which contains only suid apps. The same strategy applies to the non-suid apps. [YOCTO #4207] (From OE-Core rev: e5a1442819dfb74e86a6f69da008ba6908c8bbc7) 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>
* busybox: enable to list suid and non-suid app configsChen Qi2013-06-252-1/+181
| | | | | | | | | | | | | | | | | | | | | | | This patch, written by Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>, adds the ability to busybox to list configuration items of suid apps and non-suid apps separately. `make busybox.cfg.suid' generates a file containing config items of the suid apps. 'make busybox.cfg.nosuid' generates a file containing config items of the non-suid apps. This patch helps to separate busybox into two binaries, the suid one and the non-suid one. [YOCTO #4207] (From OE-Core rev: 832d1b5575c76f61623f2e0337554287d056422b) 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>
* busybox: add a config fragment to enable login utilitiesChen Qi2013-06-252-1/+15
| | | | | | | | | | | | Create a config fragment to enable the login/passwd utilities of busybox. [YOCTO #4207] (From OE-Core rev: 2a37490d4d55a1a6e4c4d268231a9d8904d38f8b) 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>
* busybox: add support for CONFIG_FEATURE_INDIVIDUALChen Qi2013-06-251-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, if CONFIG_FEATURE_INDIVIDUAL was enabled for busybox, yocto-based systems could start correctly. This is because if busybox is built as individual apps, '/bin/busybox' may not be present, so setting the default ALTERNATIVE_TARGET to '/bin/busybox' is not appropriate and could lead to errors. This patch fixes this problem by checking the existence of '/bin/busybox' before setting the ALTERNATIVE_TARGET to '/bin/busybox'. After this change, if busybox is built as individual apps, we'll have links like '/bin/ls -> /bin/ls.busybox', otherwise, we'll have links like '/bin/ls -> /bin/busybox'. Note there's a grep expression change in this patch. The old expression doesn't work well, it has an unwanted underscore, so I changed it to make it work. [YOCTO #4570] (From OE-Core rev: 87efa83191f0b4f4cec3a821b6dfe425c781c077) 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>
* busybox: remove the postinst part of the recipeChen Qi2013-06-251-8/+0
| | | | | | | | | | | | Remove the pkg_postinst_${PN} from this recipe, as it's redundant. It basically wants to do the same thing as the update-alternatives does. But it doesn't do it well. (From OE-Core rev: 5b961afc784747eb8240540e542a789849118596) 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>
* busybox: backport sulogin empty root password fixJonathan Liu2013-05-242-0/+59
| | | | | | | | | | This allows system maintenance login if the root password is empty. (From OE-Core rev: 28bb8fe5c144e02c28bff54b5b81c8da33b9f58b) Signed-off-by: Jonathan Liu <net147@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox-mdev: Startup at level S03 instead of S06Mike Looijmans2013-05-161-1/+1
| | | | | | | | | | | | | | | The udev hotplug deamon starts at 03, so mdev should start at the same point. This fixes the bug that when modutils (runs at 04) initializes devices that the mdev hotplug will often not pick them up, resulting in missing device nodes and similar problems. (From OE-Core rev: 18d3e5eb9102a984d00837f8fec16fda522c511a) Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* class/lib: Fix up various file access methodsRichard Purdie2013-05-091-0/+1
| | | | | | | | | | | | | | 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 (From OE-Core rev: a43e0a8ecd0441131e929daf998c3cd454d9c8f3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: hard-code the syslog service fileRoss Burton2013-04-181-1/+1
| | | | | | | | | Previously this was using ${PN}-syslog.service, which changes with multilib. (From OE-Core rev: ee36f997e68f5a995baf361191cef7a46ff51203) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: fix mount issueLaurentiu Palcu2013-04-181-1/+1
| | | | | | | | | | | | | | | | | 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] (From OE-Core rev: 82320d2074572477f26887eddc51dc2a1dfea403) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: Add inetd related filesTing Liu2013-04-154-2/+58
| | | | | | | | | | | | | | 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/ (From OE-Core rev: 929c738787b6f513ce235ed5f7753408a570d632) Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: detects customized configs when do_installTing Liu2013-04-152-14/+14
| | | | | | | | | | | 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. (From OE-Core rev: 5c088c2d3b23026752649d077ee44fe3dbe26aa4) Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: fail on no mediaSaul Wold2013-04-102-1/+33
| | | | | | | | | | | | | | 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. (From OE-Core rev: e5403f55a1e9b1747535450fd95f499c85211771) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: order and group initscript variables logicallyRoss Burton2013-03-261-2/+2
| | | | | | | (From OE-Core rev: 94acb39385a14d54503db08351a717449e2d4b50) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: add strictatime support to mountRoss Burton2013-03-262-1/+51
| | | | | | | | | | systemd uses strictatime when mounting tmpfs. Luckily this is already supported upstream, so backport the patch from git. (From OE-Core rev: 7379a5a2035ef670329551783c372d9310ddd983) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: enable systemd integration for syslogdRadu Moisan2013-03-264-2/+39
| | | | | | | | | | | (From OE-Core rev: cf3618f9a57e46fb78d5be35d473e2dd5290e961) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* busybox: enable swapon -p (91 byte increase)Ross Burton2013-03-151-1/+1
| | | | | | | | | | systemd needs "swapon -p", so as the impact is minimal enable it unversally. (From OE-Core rev: acc5e9b4f43a382e56c0af1fae492cd0aaa80230) 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>
* hwclock.sh: check for the existence of /etc/default/rcSChen Qi2013-02-221-1/+1
| | | | | | | | | | | | | /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] (From OE-Core rev: 416519ec595f59ebeafb95bed2546635cad41559) 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>
* busybox: add config fragmentsChen Qi2013-02-131-0/+13
| | | | | | | | | | | | | | | | | | | 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] (From OE-Core rev: bbcd8b344598850ea2c8d3ad375c519713581fde) 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>
* busybox: update test case du-k-worksKang Kai2013-02-012-2/+38
| | | | | | | | | | | | | | | | 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) (From OE-Core rev: 19eb2971c6e8c4a2847897919ec7a2cd9b1697b1) 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>
* hwclock.sh: improve hwclock.sh script to use UTC variableChen Qi2012-11-022-5/+6
| | | | | | | | | | | | | | 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] (From OE-Core rev: 2bda4bbda3f3033cfb324778ef88f2aedad4a83b) 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>