On Fri, Nov 15, 2019 at 09:14:15AM -0800, Khem Raj wrote: > On Fri, 2019-11-15 at 10:14 -0500, Jacob Stiffler wrote: > > Recently individual components and LLD sources have been combined > > into a single PDK repo. Use this class to specify the common source. > > Also use this class to keep the sources separate from each other when > > building. This keeps the build identical to previous recipes while > > keeping control on interdependencies. > > > > Signed-off-by: Jacob Stiffler <[email protected]> > > --- ... > > +# Extract only required sources from PDK > > +python do_unpack_append() { > > + if len(d.getVar('TI_PDK_COMP') or '') > 0: > > + import subprocess > > + > > + src = > > os.path.join(d.getVar('TI_PDK_SRC'),'packages',d.getVar('TI_PDK_COMP_ > > PATH')) > > + > > + # Package up only the required sources > > + cmd = 'tar -cf - -C %s -p -S . | tar -xf - -C %s' % (src, > > d.getVar('S')) > > + subprocess.check_output(cmd, shell=True, > > stderr=subprocess.STDOUT) > > + > > + bb.utils.remove(d.getVar('TI_PDK_SRC'), recurse=True) > > +} > > perhaps looking in work-shared idea from kernel or gcc or clang > packages could make it better where, you only untar sources once
Jake, Any updates on this - will you be looking into the above suggestion? -- Denys
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12526): https://lists.yoctoproject.org/g/meta-ti/message/12526 Mute This Topic: https://lists.yoctoproject.org/mt/61321552/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
