how to build last
You will have to make everything in target-os as a dependency of this package.
As an example of custom target-os ebuild, see
Now lets say you want to build your package <foo> in the end.
Then in the foo ebuild:
You need to add the same dependencies as well in <foo>.
Also add <foo> as a dependency of target-os.
In the current build script, target-os is a terminal package i.e. nothing can depend on it.
You could however simplify the dependency chain maybe by putting these in another synthetic package e.g. my-project-os.
i.e. my-project-os will have
And the package foo can RDEPEND on my-project-os.
Read more here: Source link