diff options
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r-- | meta/conf/bitbake.conf | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 1472e8f847..aee9919bad 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -123,7 +123,7 @@ SDKUSE_NLS ??= "yes" | |||
123 | TARGET_ARCH = "${TUNE_ARCH}" | 123 | TARGET_ARCH = "${TUNE_ARCH}" |
124 | TARGET_OS = "linux${LIBCEXTENSION}${ABIEXTENSION}" | 124 | TARGET_OS = "linux${LIBCEXTENSION}${ABIEXTENSION}" |
125 | TARGET_VENDOR = "-oe" | 125 | TARGET_VENDOR = "-oe" |
126 | TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + d.getVar('TARGET_OS', True), ''][d.getVar('TARGET_OS', True) == ('' or 'custom')]}" | 126 | TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + d.getVar('TARGET_OS'), ''][d.getVar('TARGET_OS') == ('' or 'custom')]}" |
127 | TARGET_PREFIX = "${TARGET_SYS}-" | 127 | TARGET_PREFIX = "${TARGET_SYS}-" |
128 | TARGET_CC_ARCH = "${TUNE_CCARGS}" | 128 | TARGET_CC_ARCH = "${TUNE_CCARGS}" |
129 | TARGET_LD_ARCH = "${TUNE_LDARGS}" | 129 | TARGET_LD_ARCH = "${TUNE_LDARGS}" |
@@ -132,7 +132,7 @@ TARGET_AS_ARCH = "${TUNE_ASARGS}" | |||
132 | SDKMACHINE ??= "x86_64" | 132 | SDKMACHINE ??= "x86_64" |
133 | SDK_OS = "${BUILD_OS}" | 133 | SDK_OS = "${BUILD_OS}" |
134 | SDK_VENDOR = "-oesdk" | 134 | SDK_VENDOR = "-oesdk" |
135 | SDK_SYS = "${SDK_ARCH}${SDK_VENDOR}${@['-' + d.getVar('SDK_OS', True), ''][d.getVar('SDK_OS', True) == ('' or 'custom')]}" | 135 | SDK_SYS = "${SDK_ARCH}${SDK_VENDOR}${@['-' + d.getVar('SDK_OS'), ''][d.getVar('SDK_OS') == ('' or 'custom')]}" |
136 | SDK_PREFIX = "${SDK_SYS}-" | 136 | SDK_PREFIX = "${SDK_SYS}-" |
137 | SDK_CC_ARCH = "${BUILD_CC_ARCH}" | 137 | SDK_CC_ARCH = "${BUILD_CC_ARCH}" |
138 | SDKPKGSUFFIX = "nativesdk" | 138 | SDKPKGSUFFIX = "nativesdk" |
@@ -142,7 +142,7 @@ SDK_AS_ARCH = "${BUILD_AS_ARCH}" | |||
142 | 142 | ||
143 | TUNE_PKGARCH ??= "" | 143 | TUNE_PKGARCH ??= "" |
144 | PACKAGE_ARCH ??= "${TUNE_PKGARCH}" | 144 | PACKAGE_ARCH ??= "${TUNE_PKGARCH}" |
145 | MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH', True), d.getVar('MACHINE', True)][bool(d.getVar('MACHINE', True))].replace('-', '_')}" | 145 | MACHINE_ARCH = "${@[d.getVar('TUNE_PKGARCH'), d.getVar('MACHINE')][bool(d.getVar('MACHINE'))].replace('-', '_')}" |
146 | PACKAGE_EXTRA_ARCHS ??= "${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}" | 146 | PACKAGE_EXTRA_ARCHS ??= "${PACKAGE_EXTRA_ARCHS_tune-${DEFAULTTUNE}}" |
147 | PACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}" | 147 | PACKAGE_ARCHS = "all any noarch ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}" |
148 | # MACHINE_ARCH shouldn't be included here as a variable dependency | 148 | # MACHINE_ARCH shouldn't be included here as a variable dependency |
@@ -197,24 +197,24 @@ PV = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0 | |||
197 | PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}" | 197 | PR = "${@bb.parse.BBHandler.vars_from_file(d.getVar('FILE', False),d)[2] or 'r0'}" |
198 | PE = "" | 198 | PE = "" |
199 | PF = "${PN}-${EXTENDPE}${PV}-${PR}" | 199 | PF = "${PN}-${EXTENDPE}${PV}-${PR}" |
200 | EXTENDPE = "${@['','${PE}_'][int(d.getVar('PE', True) or 0) > 0]}" | 200 | EXTENDPE = "${@['','${PE}_'][int(d.getVar('PE') or 0) > 0]}" |
201 | P = "${PN}-${PV}" | 201 | P = "${PN}-${PV}" |
202 | 202 | ||
203 | PRAUTO = "" | 203 | PRAUTO = "" |
204 | EXTENDPRAUTO = "${@['.${PRAUTO}', ''][not d.getVar('PRAUTO', True)]}" | 204 | EXTENDPRAUTO = "${@['.${PRAUTO}', ''][not d.getVar('PRAUTO')]}" |
205 | PRAUTOINX = "${PF}" | 205 | PRAUTOINX = "${PF}" |
206 | 206 | ||
207 | PKGV ?= "${PV}" | 207 | PKGV ?= "${PV}" |
208 | PKGR ?= "${PR}${EXTENDPRAUTO}" | 208 | PKGR ?= "${PR}${EXTENDPRAUTO}" |
209 | PKGE ?= "${@['','${PE}'][int(d.getVar('PE', True) or 0) > 0]}" | 209 | PKGE ?= "${@['','${PE}'][int(d.getVar('PE') or 0) > 0]}" |
210 | EXTENDPKGEVER = "${@['','${PKGE}:'][d.getVar('PKGE', True).strip() != '']}" | 210 | EXTENDPKGEVER = "${@['','${PKGE}:'][d.getVar('PKGE').strip() != '']}" |
211 | EXTENDPKGV ?= "${EXTENDPKGEVER}${PKGV}-${PKGR}" | 211 | EXTENDPKGV ?= "${EXTENDPKGEVER}${PKGV}-${PKGR}" |
212 | 212 | ||
213 | # Base package name | 213 | # Base package name |
214 | # Automatically derives "foo" from "foo-native", "foo-cross" or "foo-initial" | 214 | # Automatically derives "foo" from "foo-native", "foo-cross" or "foo-initial" |
215 | # otherwise it is the same as PN and P | 215 | # otherwise it is the same as PN and P |
216 | SPECIAL_PKGSUFFIX = "-native -cross -initial -intermediate -crosssdk -cross-canadian" | 216 | SPECIAL_PKGSUFFIX = "-native -cross -initial -intermediate -crosssdk -cross-canadian" |
217 | BPN = "${@base_prune_suffix(d.getVar('PN', True), d.getVar('SPECIAL_PKGSUFFIX', True).split(), d)}" | 217 | BPN = "${@base_prune_suffix(d.getVar('PN'), d.getVar('SPECIAL_PKGSUFFIX').split(), d)}" |
218 | BP = "${BPN}-${PV}" | 218 | BP = "${BPN}-${PV}" |
219 | 219 | ||
220 | # Package info. | 220 | # Package info. |
@@ -330,7 +330,7 @@ FILESEXTRAPATHS ?= "__default:" | |||
330 | ################################################################## | 330 | ################################################################## |
331 | 331 | ||
332 | TMPDIR ?= "${TOPDIR}/tmp" | 332 | TMPDIR ?= "${TOPDIR}/tmp" |
333 | CACHE = "${TMPDIR}/cache${@['', '/' + str(d.getVar('MACHINE', True))][bool(d.getVar('MACHINE', True))]}${@['', '/' + str(d.getVar('SDKMACHINE', True))][bool(d.getVar('SDKMACHINE', True))]}" | 333 | CACHE = "${TMPDIR}/cache${@['', '/' + str(d.getVar('MACHINE'))][bool(d.getVar('MACHINE'))]}${@['', '/' + str(d.getVar('SDKMACHINE'))][bool(d.getVar('SDKMACHINE'))]}" |
334 | # The persistent cache should be shared by all builds | 334 | # The persistent cache should be shared by all builds |
335 | PERSISTENT_DIR = "${TOPDIR}/cache" | 335 | PERSISTENT_DIR = "${TOPDIR}/cache" |
336 | LOG_DIR = "${TMPDIR}/log" | 336 | LOG_DIR = "${TMPDIR}/log" |
@@ -455,7 +455,7 @@ export PATH | |||
455 | CCACHE ??= "" | 455 | CCACHE ??= "" |
456 | # Disable ccache explicitly if CCACHE is null since gcc may be a symlink | 456 | # Disable ccache explicitly if CCACHE is null since gcc may be a symlink |
457 | # of ccache some distributions (e.g., Fedora 17). | 457 | # of ccache some distributions (e.g., Fedora 17). |
458 | export CCACHE_DISABLE ??= "${@[0,1][d.getVar('CCACHE', True) == '']}" | 458 | export CCACHE_DISABLE ??= "${@[0,1][d.getVar('CCACHE') == '']}" |
459 | # ccache < 3.1.10 will create CCACHE_DIR on startup even if disabled, and | 459 | # ccache < 3.1.10 will create CCACHE_DIR on startup even if disabled, and |
460 | # autogen sets HOME=/dev/null so in certain situations builds can fail. | 460 | # autogen sets HOME=/dev/null so in certain situations builds can fail. |
461 | # Explicitly export CCACHE_DIR until we can assume ccache >3.1.10 on the host. | 461 | # Explicitly export CCACHE_DIR until we can assume ccache >3.1.10 on the host. |
@@ -535,7 +535,7 @@ LINKER_HASH_STYLE ??= "gnu" | |||
535 | # mips does not support GNU hash style therefore we override | 535 | # mips does not support GNU hash style therefore we override |
536 | LINKER_HASH_STYLE_mipsarch = "sysv" | 536 | LINKER_HASH_STYLE_mipsarch = "sysv" |
537 | 537 | ||
538 | TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE', True) != 'gnu']}" | 538 | TARGET_LINK_HASH_STYLE ?= "${@['-Wl,--hash-style=gnu',''][d.getVar('LINKER_HASH_STYLE') != 'gnu']}" |
539 | 539 | ||
540 | export LDFLAGS = "${TARGET_LDFLAGS}" | 540 | export LDFLAGS = "${TARGET_LDFLAGS}" |
541 | export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}" | 541 | export TARGET_LDFLAGS = "-Wl,-O1 ${TARGET_LINK_HASH_STYLE}" |
@@ -561,7 +561,7 @@ DEBUG_FLAGS ?= "-g -feliminate-unused-debug-types ${DEBUG_PREFIX_MAP}" | |||
561 | # Disabled until the option works properly -feliminate-dwarf2-dups | 561 | # Disabled until the option works properly -feliminate-dwarf2-dups |
562 | FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" | 562 | FULL_OPTIMIZATION = "-O2 -pipe ${DEBUG_FLAGS}" |
563 | DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" | 563 | DEBUG_OPTIMIZATION = "-O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe" |
564 | SELECTED_OPTIMIZATION = "${@d.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][d.getVar('DEBUG_BUILD', True) == '1'], True)}" | 564 | SELECTED_OPTIMIZATION = "${@d.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][d.getVar('DEBUG_BUILD') == '1'], True)}" |
565 | SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION" | 565 | SELECTED_OPTIMIZATION[vardeps] += "FULL_OPTIMIZATION DEBUG_OPTIMIZATION" |
566 | BUILD_OPTIMIZATION = "-O2 -pipe" | 566 | BUILD_OPTIMIZATION = "-O2 -pipe" |
567 | 567 | ||
@@ -687,7 +687,7 @@ DISTRO_NAME ??= "OpenEmbedded" | |||
687 | OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable" | 687 | OVERRIDES = "${TARGET_OS}:${TRANSLATED_TARGET_ARCH}:build-${BUILD_OS}:pn-${PN}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${CLASSOVERRIDE}:forcevariable" |
688 | OVERRIDES[vardepsexclude] = "MACHINEOVERRIDES" | 688 | OVERRIDES[vardepsexclude] = "MACHINEOVERRIDES" |
689 | CLASSOVERRIDE ?= "class-target" | 689 | CLASSOVERRIDE ?= "class-target" |
690 | DISTROOVERRIDES ?= "${@d.getVar('DISTRO', True) or ''}" | 690 | DISTROOVERRIDES ?= "${@d.getVar('DISTRO') or ''}" |
691 | MACHINEOVERRIDES ?= "${MACHINE}" | 691 | MACHINEOVERRIDES ?= "${MACHINE}" |
692 | MACHINEOVERRIDES[vardepsexclude] = "MACHINE" | 692 | MACHINEOVERRIDES[vardepsexclude] = "MACHINE" |
693 | 693 | ||
@@ -773,7 +773,7 @@ COMBINED_FEATURES = "${@oe.utils.set_intersect('DISTRO_FEATURES', 'MACHINE_FEATU | |||
773 | COMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES" | 773 | COMBINED_FEATURES[vardeps] += "DISTRO_FEATURES MACHINE_FEATURES" |
774 | 774 | ||
775 | SERIAL_CONSOLE ??= "" | 775 | SERIAL_CONSOLE ??= "" |
776 | SERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE', True).replace(' ', ';')}" | 776 | SERIAL_CONSOLES ??= "${@d.getVar('SERIAL_CONSOLE').replace(' ', ';')}" |
777 | 777 | ||
778 | NO_RECOMMENDATIONS ?= "" | 778 | NO_RECOMMENDATIONS ?= "" |
779 | BAD_RECOMMENDATIONS ?= "" | 779 | BAD_RECOMMENDATIONS ?= "" |
@@ -797,7 +797,7 @@ DISTRO[unexport] = "1" | |||
797 | SHELL[unexport] = "1" | 797 | SHELL[unexport] = "1" |
798 | 798 | ||
799 | # Used by canadian-cross to handle string conversions on TARGET_ARCH where needed | 799 | # Used by canadian-cross to handle string conversions on TARGET_ARCH where needed |
800 | TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}" | 800 | TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH').replace("_", "-")}" |
801 | 801 | ||
802 | # Complete output from bitbake | 802 | # Complete output from bitbake |
803 | BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log" | 803 | BB_CONSOLELOG ?= "${LOG_DIR}/cooker/${MACHINE}/${DATETIME}.log" |