diff options
-rw-r--r-- | meta/classes/package.bbclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 7c79c69287..e5d444b161 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -1803,6 +1803,20 @@ python do_package () { | |||
1803 | return | 1803 | return |
1804 | 1804 | ||
1805 | ########################################################################### | 1805 | ########################################################################### |
1806 | # Optimisations | ||
1807 | ########################################################################### | ||
1808 | |||
1809 | # Contunually rexpanding complex expressions is inefficient, particularly when | ||
1810 | # we write to the datastore and invalidate the expansion cache. This code | ||
1811 | # pre-expands some frequently used variables | ||
1812 | |||
1813 | def expandVar(x, d): | ||
1814 | d.setVar(x, d.getVar(x, True)) | ||
1815 | |||
1816 | for x in 'PN', 'PV', 'BPN', 'TARGET_SYS', 'EXTENDPRAUTO': | ||
1817 | expandVar(x, d) | ||
1818 | |||
1819 | ########################################################################### | ||
1806 | # Setup PKGD (from D) | 1820 | # Setup PKGD (from D) |
1807 | ########################################################################### | 1821 | ########################################################################### |
1808 | 1822 | ||