All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jacob Stiffler" <j-stiffler@ti.com>
To: Denys Dmytriyenko <denys@ti.com>
Cc: Khem Raj <raj.khem@gmail.com>, <meta-ti@yoctoproject.org>
Subject: Re: [meta-ti] [master/thud][PATCH 01/42] ti-pdk-fetch: add class for common pdk sources
Date: Mon, 25 Nov 2019 13:12:38 -0500	[thread overview]
Message-ID: <0606aa72-212f-94c8-82d4-1cfc0ab1930f@ti.com> (raw)
In-Reply-To: <20191125174203.GC4706@beryl>


On 11/25/2019 12:42 PM, Denys Dmytriyenko wrote:
> 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 <j-stiffler@ti.com>
>>> ---
> ...
>>> +# 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?


I had originally considered this approach, but decided against it so 
that there would be no way a recipe could access other sources in the 
pdk.git.

It may be a bit paranoid, but the work-shared approach would make the 
entire pdk sources available through a ti-pdk-fetch variable. I wanted 
it so that the entire pdk.git will never be unpacked in its entirety.


  reply	other threads:[~2019-11-25 18:12 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-15 15:14 [master/thud][PATCH 00/42] Unify PDK sources Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 01/42] ti-pdk-fetch: add class for common pdk sources Jacob Stiffler
2019-11-15 17:14   ` Khem Raj
2019-11-25 17:42     ` [meta-ti] " Denys Dmytriyenko
2019-11-25 18:12       ` Jacob Stiffler [this message]
2019-11-25 18:16         ` Khem Raj
2019-11-25 18:50           ` [EXTERNAL] " Jacob Stiffler
2019-11-25 19:24             ` Khem Raj
2019-11-25 19:32               ` Denys Dmytriyenko
2019-11-25 19:39                 ` Khem Raj
2019-11-15 15:14 ` [master/thud][PATCH 02/42] aif2-lld: migrate to ti-pdk-fetch.bbclass Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 03/42] bcp-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 04/42] board-rtos: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 05/42] cppi-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 06/42] dfe-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 07/42] emac-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 08/42] fatfs-rtos: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 09/42] fftc-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 10/42] gpio-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 11/42] gpmc-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 12/42] hyplnk-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 13/42] i2c-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 14/42] icss-emac-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 15/42] ipc-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 16/42] iqn2-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 17/42] mcasp-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 18/42] mcbsp-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 19/42] mmcsd-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 20/42] nwal-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 21/42] osal: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 22/42] pa-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 23/42] pcie-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 24/42] pru: " Jacob Stiffler
2019-12-06 16:29   ` [meta-ti] " Denys Dmytriyenko
2019-12-06 17:22     ` Jacob Stiffler
2019-12-06 18:06       ` Denys Dmytriyenko
2019-11-15 15:14 ` [master/thud][PATCH 25/42] prueth-fw: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 26/42] pruss-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 27/42] qmss-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 28/42] rm-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 29/42] sciclient: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 30/42] spi-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 31/42] srio-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 32/42] tcp3d-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 33/42] transport-rtos: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 34/42] tsip-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 35/42] uart-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 36/42] udma-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 37/42] usb-lld: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 38/42] utils-rtos: " Jacob Stiffler
2019-11-15 15:14 ` [master/thud][PATCH 39/42] ti-pdk-build: " Jacob Stiffler
2019-11-15 15:15 ` [master/thud][PATCH 40/42] cal-lld: TI RTOS low level driver for CAL Jacob Stiffler
2019-11-15 15:15 ` [master/thud][PATCH 41/42] fvid2: TI RTOS Video Driver Interface Jacob Stiffler
2019-11-15 15:15 ` [master/thud][PATCH 42/42] iolink-lld: TI RTOS low level driver for IO-Link Master Jacob Stiffler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0606aa72-212f-94c8-82d4-1cfc0ab1930f@ti.com \
    --to=j-stiffler@ti.com \
    --cc=denys@ti.com \
    --cc=meta-ti@yoctoproject.org \
    --cc=raj.khem@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.