# Add the license file after unpacking the source
do_unpack:append() {
install -m 644 ${WORKDIR}/MNI.LIC ${S}/MNI.LIC || die "Failed to copy license file"
}
bitbake -p results in:
....
', 'FILESPATH', 'PRSERV_DUMPDIR', 'PARALLEL_MAKE', 'STAGING_DIR_TARGET', 'BB_WORKERCONTEXT', 'SSTATE_DIR', 'LICENSE_PATH', 'PRSERV_LOCKDOWN', 'PRSERV_DUMPFILE', 'PWD'}, d=<bb.data_smart.DataSmart object at 0x7fcbfaefa050>):
parser = bb.codeparser.PythonParser(key, logger)
> parser.parse_python(value, filename=varflags.get("filename"), lineno=varflags.get("lineno"))
deps = deps | parser.references
File "/home/mnidev/work/tisdk/sources/bitbake/lib/bb/codeparser.py", line 319, in PythonParser.parse_python(node='n bb.build.exec_func('base_do_unpack', d)n install -m 644 ${WORKDIR}/MNI.LIC ${S}/MNI.LIC || die "Failed to copy license file"n', lineno=1, filename='autogenerated'):
node = "n" * int(lineno) + node
> code = compile(check_indent(str(node)), filename, "exec",
ast.PyCF_ONLY_AST)
File "autogenerated", line 3
install -m 644 ${WORKDIR}/MNI.LIC ${S}/MNI.LIC || die "Failed to copy license file"
^^^
SyntaxError: invalid syntax
ERROR: Parsing halted due to errors, see error messages above
I've also used 0644. Flumoxed.
Good results would be to copy the file to the working folder.
Obvious next step (which I should not have to do) but saw as recomended is to check this in to the remote repo and have it pull down the file. That’s easy, and what I’ll do now.
Just wondering if others have seen this issue.
Also, it would be great if the yocto had a simple cplusplus reference for all the *.bb and *.bbappend recipe commands. searching for install on their main page just gets you into the whole how to install the apparatus.