diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2017-03-14 09:37:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-17 16:53:06 +0000 |
commit | 37785b9fdb8ecf7f39088e14c6e31f65282e15c0 (patch) | |
tree | a807c9a8248100f9996d688b6bf2c7b9ae0db939 /meta | |
parent | 1accf1f22101ff244e2d48221969d6e28ceba0f5 (diff) | |
download | poky-37785b9fdb8ecf7f39088e14c6e31f65282e15c0.tar.gz |
uninative.bbclass: split long command
Single long commands are difficult to read and maintain. Split it to make
it more human-friendly.
(From OE-Core rev: c93b3b18f8daa8b419cc65b52cb5ceccfb1c142d)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/uninative.bbclass | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/classes/uninative.bbclass b/meta/classes/uninative.bbclass index ee4ab20c17..b5780316ec 100644 --- a/meta/classes/uninative.bbclass +++ b/meta/classes/uninative.bbclass | |||
@@ -59,7 +59,16 @@ python uninative_event_fetchloader() { | |||
59 | if localpath != tarballpath and os.path.exists(localpath) and not os.path.exists(tarballpath): | 59 | if localpath != tarballpath and os.path.exists(localpath) and not os.path.exists(tarballpath): |
60 | os.symlink(localpath, tarballpath) | 60 | os.symlink(localpath, tarballpath) |
61 | 61 | ||
62 | cmd = d.expand("mkdir -p ${UNINATIVE_STAGING_DIR}-uninative; cd ${UNINATIVE_STAGING_DIR}-uninative; tar -xjf ${UNINATIVE_DLDIR}/%s/${UNINATIVE_TARBALL}; ${UNINATIVE_STAGING_DIR}-uninative/relocate_sdk.py ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux ${UNINATIVE_LOADER} ${UNINATIVE_LOADER} ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux/${bindir_native}/patchelf-uninative ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux${base_libdir_native}/libc*.so" % chksum) | 62 | cmd = d.expand("\ |
63 | mkdir -p ${UNINATIVE_STAGING_DIR}-uninative; \ | ||
64 | cd ${UNINATIVE_STAGING_DIR}-uninative; \ | ||
65 | tar -xjf ${UNINATIVE_DLDIR}/%s/${UNINATIVE_TARBALL}; \ | ||
66 | ${UNINATIVE_STAGING_DIR}-uninative/relocate_sdk.py \ | ||
67 | ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux \ | ||
68 | ${UNINATIVE_LOADER} \ | ||
69 | ${UNINATIVE_LOADER} \ | ||
70 | ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux/${bindir_native}/patchelf-uninative \ | ||
71 | ${UNINATIVE_STAGING_DIR}-uninative/${BUILD_ARCH}-linux${base_libdir_native}/libc*.so" % chksum) | ||
63 | subprocess.check_output(cmd, shell=True) | 72 | subprocess.check_output(cmd, shell=True) |
64 | 73 | ||
65 | with open(loaderchksum, "w") as f: | 74 | with open(loaderchksum, "w") as f: |