45 Commits

Author SHA1 Message Date
Sanjay Chitroda
050ffcdea2
recipes-core/toybox: Switch SRC_URI to HTTPS for reliable fetch
The upstream site (landley.net) serves inconsistent content when using HTTP,
causing checksum mismatches during do_fetch. Using HTTPS ensures stable
downloads and resolves checksum failures.

Signed-off-by: Sanjay Chitroda <sanjayembeddedse@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-01-02 22:30:11 -08:00
Wang Mingyu
b66ce03e27
toybox: upgrade 0.8.12 -> 0.8.13
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-21 20:02:43 -07:00
Wang Mingyu
119d11dbed
toybox: upgrade 0.8.11 -> 0.8.12
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-01-24 18:20:04 -08:00
Wang Mingyu
af3d9fe291
toybox: upgrade 0.8.10 -> 0.8.11
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-04-17 23:47:29 -07:00
Yoann Congal
e317b01690
toybox-inittab: Fix serial getty reproducibility
The enable_getty test uses a bash-only syntax "[[ ... ]]".
On /bin/sh==bash hosts, it enables the serial getty.
On /bin/sh!=bash hosts, it does not enable it.

Fix this non-reproducibility by using the standard shell "[ ... ]"
syntax which should work in any POSIX shell[0].

[0]: https://www.shellcheck.net/wiki/SC3010

Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-05 11:02:04 -08:00
Khem Raj
2e76660027 toybox: upgrade 0.8.8 -> 0.8.10
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-11-05 22:26:54 -08:00
Khem Raj
e9e9cf7258 toybox: Fix build on 32bit arches with 64bit time_t defaults
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-08 11:58:17 -07:00
Khem Raj
edc39ba949 toybox: Remove mount.h conflict fix
This has been fixed in latest glibc 2.36 release [1]

[1] 3bd3c612e9...4dad97e2a2

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-30 15:27:08 -07:00
Khem Raj
09dd36bedf toybox: Fix build with glibc 2.36+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-14 12:57:09 -07:00
wangmy
c93755d5cb toybox: upgrade 0.8.6 -> 0.8.7
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-05-09 08:59:46 -07:00
wangmy
c4f3039744 toybox: upgrade 0.8.5 -> 0.8.6
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-14 19:42:10 -07:00
Khem Raj
14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Khem Raj
100ecd7a80 toybox-inittab: Use 0BSD for LIC_FILES_CHKSUM
BSD-0-Clause has been deleted from common licenses

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
2021-09-05 08:31:33 -07:00
Martin Jansa
c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
zangrc
6b9f0feb54 toybox: upgrade 0.8.4 -> 0.8.5
Signed-off-by: Zang Ruochen <zangrc.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-11 08:48:26 -07:00
Zang Ruochen
43448e97f1 toybox: upgrade 0.8.3 -> 0.8.4
0001-Tackle-SIGEMT-and-SIGSTKFLT-is-not-glibc-specific.patch
mips-no-STKFLT.patch
Removed since these are included in 0.8.4

Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-02 09:00:52 -08:00
Khem Raj
5482c60353 toybox: Add packageconfigs for iconv and getconf
iconv and getconf are also provided by glibc-utils which is built along
with glibc and update-alternatives don't work with special packages like
glibc since it causes cyclic dependencies e.g

glibc->opkg-utils->glibc

therefore creating u-a for iconv and getconf gets into trouble when
glibc-utils is added to image along with toybox, usually with ptest
enabled images by default.

Therefore we turn these two applets into packageconfigs and delete them
by default from u-a, if one want toybox to provide them then clear
no-iconv and no-getconf from PACKAGECONFIG via a bbappend e.g.

PACKAGECONFIG_remove = "no-getconf no-iconv"

Remove bashism by enquiring for VIRTUAL-RUNTIME_init_manager from
bitbake datastore

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-02 08:50:02 -07:00
Slater, Joseph
d4c6f65de7 toybox-inittab: unpack to S
toybox-inittab does not unpack source files into S, so
the archiver cannot see them.  We copy them to a sub-directory
in order to keep the originals available if running do_configure()
(again) without first running do_unpack().

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-07-21 16:46:37 -07:00
Khem Raj
63ef209402 toybox-inittab: Get rid of bashism
Be explicit about copying the files, makes it simpler for dash to handle
it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Martin Jansa <Martin.Jansa@gmail.com>
Cc: Adam Miartus <adam.miartus@softhows.eu>
2020-06-10 20:55:07 -07:00
Adam Miartus
d9a11e5017 meta-oe toybox: enable toybox init when selected as init manager
compile in toybox init binary and rdepend on toybox inittab files

Signed-off-by: Adam Miartus <adam.miartus@softhows.eu>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-08 13:58:03 -07:00
Adam Miartus
50b650bbef meta-oe toybox-inittab: allow getty as a packageconfig feature
Signed-off-by: Adam Miartus <adam.miartus@softhows.eu>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-08 13:58:03 -07:00
Adam Miartus
03886017a9 meta-oe toybox-inittab: toybox inittab implementation
adds lightweight inittab scripts for use with toybox

Signed-off-by: Adam Miartus <adam.miartus@softhows.eu>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-08 13:58:03 -07:00
Adam Miartus
eaf4a81244 toybox: bump version to 0.8.3
Fix build on glibc/mips

remove OE-path-changes.patch as already applied to upstream

fix CC, CFLAGS and CROSS_COMPILE variables as toybox is strict
on what is expected to be filled in these variables:
CC = should contain compiler name
CROSS_COMPILE = should contain compiler prefix
CFLAGS = should contain only compiler flags

License wording changed due to commits:
 8014d31278411e22655aeae47338e95f209e2907
 b31192fd73b382358b1deb33dc6c4cf4ce9c613f
in toybox repository, type of license remains the same

Signed-off-by: Adam Miartus <adam.miartus@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-21 14:02:40 -07:00
Adam Miartus
b816ac8704 toybox: allow user to provide own defconfig
toybox provides similar scheme with defconfig as linux
and busybox, allow user to override the defconfig in
their own layer

copy paste from kernel.bbclass

Signed-off-by: Adam Miartus <adam.miartus@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-05-11 15:25:03 -07:00
Tom Rini
6c9390689d toybox: Re-order inherit location so we can override do_configure
We need to override the do_configure function to disable some applets.
Move our inherit line to where they should be, stylistically, so that
our function overrides the one from cml1.bbclass

Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-05-20 09:49:01 -07:00
Eduardas Meile
d1ccc474a4 toybox: use cml1.bbclass to add a proper menuconfig task
It is sometimes convenient to use "bitbake toybox -c menuconfig".

Signed-off-by: Eduardas Meile <eduardas.m@fods.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-04 17:51:35 -08:00
Eduardas Meile
e797bcdbe1 toybox: fix to use "usrmerge" distro feature properly
Signed-off-by: Eduardas Meile <eduardas.m@fods.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-04 17:51:35 -08:00
Dan McGregor
cdd3e9ab99 toybox: Fix paths to match OE conventions
Many toybox commands get installed in places that are unexpected
in openembedded-core, causing conflicts. Fix up the paths I identified
that are causing conflicts.

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-18 14:19:37 -07:00
Khem Raj
cdceca0bd1 toybox: Add missing dep on virtual/crypt
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-15 08:20:06 -07:00
Paul Barker
12d4460aff toybox: Switch to v0.7.5 release
The commit we needed to use has now been incorporated into a release.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-11-15 16:34:05 -08:00
Khem Raj
18bb0929e1 toybox: Switch building from git src_uri
We need a patch e.g. 7828920303
to fix build on archlinux

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-10-17 10:32:03 +00:00
Khem Raj
6d231956fb toybox: Upgrade to 0.7.4
enable parallel build

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-10-02 12:34:40 +00:00
Paul Barker
d6ff17de88 toybox: Upgrade to 0.7.3
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-16 23:34:33 +01:00
Paul Barker
82b589603c toybox: Fix configure failure
do_configure is currently failing as HOSTCC defaults to just 'cc' in the
toybox Makefile.

Signed-off-by: Paul Barker <pbarker@toganlabs.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-16 23:34:33 +01:00
Paul Barker
efa72fe956 toybox: Upgrade to 0.7.2
Patches are dropped as they are no longer needed.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-12-13 11:19:33 +01:00
Joshua Lock
efd3696e70 remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.

Search made with the following regex: getVar ?\(( ?[^,()]*), True\)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
2016-12-02 09:16:17 +01:00
Paul Barker
f90b8d367d toybox: Upgrade to 0.7.1
The previous patches are now included in the upstream 0.7.1 release. Two new
patches are needed, both of which have been submitted upstream:

* The version should report as 0.7.1 not 0.7.0.

* grep didn't print any output due to printf choking on a field width
  of INT_MAX/2. When trim is not set we can drop the field width
  instead of using a huge default width.

The unstripped toybox binary has moved from "toybox_unstripped" to
"generated/unstripped/toybox".

Additionally, the swapon command is now disabled as it does not support the '-a'
option used by initscripts.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-06-08 14:55:29 +02:00
Paul Barker
09806901be toybox: Upgrade to 0.7.0
Add additional patches to fix issues seen during testing on qemux86.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-06 12:40:27 +02:00
Paul Barker
3391c2e65c toybox: Remove out-of-date patch
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-06 12:40:27 +02:00
Martin Jansa
a1e135a499 Revert "toybox: upgrade to 0.7.0"
* issues reported by me and Khem weren't addressed
  http://lists.openembedded.org/pipermail/openembedded-devel/2016-February/105824.html
  http://lists.openembedded.org/pipermail/openembedded-devel/2016-March/106344.html

This reverts commit 26ee1849d1d70296aee8694f89502eb813842565.
2016-03-07 13:02:19 +01:00
Alejandro Joya
26ee1849d1 toybox: upgrade to 0.7.0
Change SRC_URI to latest version and update the checksum for package.
remove old patch not longer need it to build it and add depedency found for builiding
on temporary enviroment like yocto.

Signed-off-by: Alejandro Joya <alejandro.joya.cruz@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-25 18:09:40 +01:00
Alejandro Joya
7ad835c9f8 toybox: upgrade to 0.6.0
Change SRC_URI since patch is not longer need it.
Update the checksum for package.

Signed-off-by: Alejandro Joya <alejandro.joya.cruz@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-08 16:21:38 +02:00
Amarnath Valluri
4429a3250f toybox: Upgrade to v0.5.2
The patch applied to toybox is rebased onto the new release and updated.

Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-04-24 15:11:25 +02:00
Paul Barker
ae867dc3ec toybox: Upgrade to v0.5.0
The patch applied to toybox is rebased onto the new release and updated.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-10-27 12:51:50 +01:00
Paul Barker
11a7fb62b8 toybox: New recipe for toybox-0.4.9
Toybox is a BSD-licensed alternative to Busybox which may be of interest to a
few people. It's still a work in progress but it already covers a large number
of the basic commands a system needs.

Removing toybox after it has been installed currently bricks the system though
as the postrm script runs after '/bin/toybox' has been removed (so things like
'/bin/ln' become broken links and the update-alternatives script can't run).

Toybox is patched to change the install paths of several utilities to match the
paths used by Busybox. This is needed as update-alternatives from opkg-utils
cannot handle two providers of a given utility which place their links in
different locations. Link locations have so far only been matched with Busybox,
other packages such as coreutils still cause clashes. Therefore, toybox
currently installs cleanly on core-image-minimal but fails to install cleanly on
core-image-full-cmdline.

Hopefully Toybox is still usable for testing in the current state. With further
development of the recipe it should be possible to install and uninstall toybox
cleanly on all core images. With further upstream development it should become a
viable replacement for Busybox.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-09-26 05:42:53 +02:00