Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parts dictionary for specifying recipe parts #13

Open
esben opened this issue Aug 25, 2016 · 0 comments
Open

parts dictionary for specifying recipe parts #13

esben opened this issue Aug 25, 2016 · 0 comments

Comments

@esben
Copy link
Member

esben commented Aug 25, 2016

Combine the PACKAGES and FILES_{PN}, DEPENDS${PN}_ and so on variables of OE-lite into a common parts dictionary.

Each keys in parts corresponds to the entries in PACKAGES in OE-lite. The values are an object with attributes like files, `depends', and so on.

Something like:

parts = {}
parts[''].files = ['/bin', '/sbin', '/usr/bin', '/usr/sbin']
parts[''].depends = ['util-linux:uuid']
parts['doc'].files = ['/usr/share/doc']
parts['man'].files = ['/usr/share/man']
parts['libfoo'].files = ['/usr/lib/libfoo.so.*']
parts['libfoo'].depends = ['libc']
parts['libfoo-dev'].files = ['/usr/lib/libfoo.so', '/usr/lib/pkgconfig/libfoo.pc']
parts['libfoo-dev'].depends = [':libfoo']

Syntax for referencing other parts are then:

  • foo - reference to default ('') part of foo recipe.
  • foo:bar - reference to bar part of foo recipe.
  • :bar - reference to bar part of current recipe.
@esben esben changed the title PARTS dictionary for specifying recipe parts parts dictionary for specifying recipe parts Aug 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant