diff options
Diffstat (limited to 'meta/lib/oe/sdk.py')
-rw-r--r-- | meta/lib/oe/sdk.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py index f1bbef6f58..c74525f929 100644 --- a/meta/lib/oe/sdk.py +++ b/meta/lib/oe/sdk.py | |||
@@ -8,9 +8,7 @@ import glob | |||
8 | import traceback | 8 | import traceback |
9 | 9 | ||
10 | 10 | ||
11 | class Sdk(object): | 11 | class Sdk(object, metaclass=ABCMeta): |
12 | __metaclass__ = ABCMeta | ||
13 | |||
14 | def __init__(self, d, manifest_dir): | 12 | def __init__(self, d, manifest_dir): |
15 | self.d = d | 13 | self.d = d |
16 | self.sdk_output = self.d.getVar('SDK_OUTPUT', True) | 14 | self.sdk_output = self.d.getVar('SDK_OUTPUT', True) |
@@ -251,12 +249,12 @@ class OpkgSdk(Sdk): | |||
251 | self.mkdirhier(target_sysconfdir) | 249 | self.mkdirhier(target_sysconfdir) |
252 | shutil.copy(self.target_conf, target_sysconfdir) | 250 | shutil.copy(self.target_conf, target_sysconfdir) |
253 | os.chmod(os.path.join(target_sysconfdir, | 251 | os.chmod(os.path.join(target_sysconfdir, |
254 | os.path.basename(self.target_conf)), 0644) | 252 | os.path.basename(self.target_conf)), 0o644) |
255 | 253 | ||
256 | self.mkdirhier(host_sysconfdir) | 254 | self.mkdirhier(host_sysconfdir) |
257 | shutil.copy(self.host_conf, host_sysconfdir) | 255 | shutil.copy(self.host_conf, host_sysconfdir) |
258 | os.chmod(os.path.join(host_sysconfdir, | 256 | os.chmod(os.path.join(host_sysconfdir, |
259 | os.path.basename(self.host_conf)), 0644) | 257 | os.path.basename(self.host_conf)), 0o644) |
260 | 258 | ||
261 | native_opkg_state_dir = os.path.join(self.sdk_output, self.sdk_native_path, | 259 | native_opkg_state_dir = os.path.join(self.sdk_output, self.sdk_native_path, |
262 | self.d.getVar('localstatedir_nativesdk', True).strip('/'), | 260 | self.d.getVar('localstatedir_nativesdk', True).strip('/'), |