Dear Poky world
I wonder if it is possible to achieve the following ?
We have some home cooked , git controlled modules, that expose a
public API.
By company convention, public interfaces must be located in a lib/
directory within the module.
It would be nice to checkout only the interface stuff in lib/,
without polluting the HDD with the entire module, when we only need
the interface files.
By hand it is easy:
If a developer want to use this public interface, he/she will use
the git sparse-checkout feature, to avoid checking out the entire
module - executing these commands will checkout only the lib
directory
mkdir <repo>
cd <repo>
git init
git remote add -f origin <url>
git config core.sparseCheckout true
echo "lib/" >> .git/info/sparse-checkout
git pull origin <branch> / checkout will the only affect the lib/ directory
How to do from a recipe ?
I want to make a poky-recipe for the public interface, so API users can specify DEPENDS it their recipes
So do I make my own class that inserts a buildstep before do_unpack ?
Ideas and concrete examples will be highly appreciated.
Of course I can choose to let the API Recipe checkout the parent project in it's entirety, and the do it's personal build magic in on the lib/ only. No real disasters will happen, other that waisting some MB's on my colleagues HDD.
BR Lars Larsen
--
Best Regards
Lars Larsen
F.Poulsen Engineering Aps
Tjørnager 16
4330 Hvalsø
Denmark
+45 29802784
www.visionweeding.com