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)
committerEric Bénard <eric@eukrea.com>
Mon, 22 Nov 2010 19:27:43 +0000 (20:27 +0100)
commit8d1542c4bfd0fe41c2c942938018a2729f0d9bd5
treef38e1da176a4deeb07910892174d825630abcc9c
parent3ec3c40e42ec7a9a2869e363d79b67cbc5ed71ad
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