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:34:21 +0000 (15:34 +0100)
commit85ba7ba500c0489f4b5cafa5a562663ff205fa08
tree3634655af37d44e6f2a25bc06585d503136b9406
parenta997936236f48c059c49b7336bb2bb8858a798b4
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]

(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>
meta/recipes-core/busybox/busybox.inc