mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
classes: Remove tab indentations in python code
Use 4 spaces to replace a tab. (From OE-Core rev: 55eaf8779170b9396e94dc4a44667824c4f36363) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
3518cdde5b
commit
00379e9589
@@ -4,8 +4,8 @@ CLASSOVERRIDE = "class-crosssdk"
|
|||||||
MACHINEOVERRIDES = ""
|
MACHINEOVERRIDES = ""
|
||||||
PACKAGE_ARCH = "${SDK_ARCH}"
|
PACKAGE_ARCH = "${SDK_ARCH}"
|
||||||
python () {
|
python () {
|
||||||
# set TUNE_PKGARCH to SDK_ARCH
|
# set TUNE_PKGARCH to SDK_ARCH
|
||||||
d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH'))
|
d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH'))
|
||||||
}
|
}
|
||||||
|
|
||||||
STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
|
STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ def incompatible_license(d, dont_want_licenses, package=None):
|
|||||||
except oe.license.LicenseError as exc:
|
except oe.license.LicenseError as exc:
|
||||||
bb.fatal('%s: %s' % (d.getVar('P'), exc))
|
bb.fatal('%s: %s' % (d.getVar('P'), exc))
|
||||||
return any(not oe.license.license_ok(canonical_license(d, l), \
|
return any(not oe.license.license_ok(canonical_license(d, l), \
|
||||||
dont_want_licenses) for l in licenses)
|
dont_want_licenses) for l in licenses)
|
||||||
|
|
||||||
def check_license_flags(d):
|
def check_license_flags(d):
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ def get_kernelversion_file(p):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def linux_module_packages(s, d):
|
def linux_module_packages(s, d):
|
||||||
suffix = ""
|
suffix = ""
|
||||||
return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split()))
|
return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split()))
|
||||||
|
|
||||||
# that's all
|
# that's all
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
python siteconfig_do_siteconfig () {
|
python siteconfig_do_siteconfig () {
|
||||||
shared_state = sstate_state_fromvars(d)
|
shared_state = sstate_state_fromvars(d)
|
||||||
if shared_state['task'] != 'populate_sysroot':
|
if shared_state['task'] != 'populate_sysroot':
|
||||||
return
|
return
|
||||||
if not os.path.isdir(os.path.join(d.getVar('FILE_DIRNAME'), 'site_config')):
|
if not os.path.isdir(os.path.join(d.getVar('FILE_DIRNAME'), 'site_config')):
|
||||||
bb.debug(1, "No site_config directory, skipping do_siteconfig")
|
bb.debug(1, "No site_config directory, skipping do_siteconfig")
|
||||||
return
|
return
|
||||||
sstate_install(shared_state, d)
|
sstate_install(shared_state, d)
|
||||||
bb.build.exec_func('do_siteconfig_gencache', d)
|
bb.build.exec_func('do_siteconfig_gencache', d)
|
||||||
sstate_clean(shared_state, d)
|
sstate_clean(shared_state, d)
|
||||||
}
|
}
|
||||||
|
|
||||||
EXTRASITECONFIG ?= ""
|
EXTRASITECONFIG ?= ""
|
||||||
|
|||||||
Reference in New Issue
Block a user