handle PACKAGE_ARCH change in an amend.inc
authorEric Bénard <eric@eukrea.com>
Fri, 19 Nov 2010 20:29:37 +0000 (21:29 +0100)
committerKhem Raj <raj.khem@gmail.com>
Mon, 22 Nov 2010 21:13:03 +0000 (13:13 -0800)
commitc81179790c8b74d5d88368733f72ee2077c344ef
treea4e11be86fa1269a0e2f08733dadd18578e32dbc
parentc14a2b3dade7a53f1f55e03ec84ae1d409a9c994
handle PACKAGE_ARCH change in an amend.inc

* setting PACKAGE_ARCH = "${MACHINE_ARCH}" in an amend.inc actually
leads to a package with the correct machine arch but the
work/stage/stamp dirs are not correct because MULTIMACH_ARCH is not
updated after amend.inc is parsed.

* this patch :
- factorizes the code which compute MULTIMACH_ARCH in base.bbclass
- updates MULTIMACH_ARCH if required by an amend.inc

Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Chris Larson <chris_larson@mentor.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Denys Dmytriyenko <denis@denix.org>
classes/amend.bbclass
classes/base.bbclass