]> code.ossystems Code Review - openembedded-core.git/commit
busybox: fix the on-target upgrade problem
authorChen Qi <Qi.Chen@windriver.com>
Wed, 3 Jul 2013 04:48:12 +0000 (12:48 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Jul 2013 14:26:19 +0000 (15:26 +0100)
commit4e571e97750f3ac6a62cd0d2d10c08be98230630
tree3b8315461c4f9666705ae50a6a3eab5149ba7bb6
parentcabe22b9470e870e63b5ef1ec8349c67b0823abf
busybox: fix the on-target upgrade problem

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]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/busybox/busybox.inc