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

Support for buildroot .mk files #543

Open
prabhu opened this issue Sep 11, 2023 · 2 comments
Open

Support for buildroot .mk files #543

prabhu opened this issue Sep 11, 2023 · 2 comments
Labels
good first issue Good for newcomers

Comments

@prabhu
Copy link
Collaborator

prabhu commented Sep 11, 2023

buildroot/package directory has one directory per package.

Each package directory has a .mk file.

https://github.com/teslamotors/buildroot/blob/buildroot-2019.02/package/bison/bison.mk

The directory name is the package's name, and the *_VERSION in the .mk file is the version.

Map _SOURCE to pkg.distribution = {url: url}. index.js to be enhanced to set the externalReference based on pkg.distribution.url

https://github.com/CycloneDX/cdxgen/blob/master/index.js#L600

Map _LICENSE to pkg.license

@prabhu prabhu added the good first issue Good for newcomers label Sep 11, 2023
@ptdropper
Copy link

Note that Buildroot has a "make" target that provides the license information and a CSV listing of all packages used in the build in one folder. Executing "make legal-info" produces the folder containing loads of details that can be used for both SBOM and OSS License data. It is a feature of Buildroot.

@prabhu
Copy link
Collaborator Author

prabhu commented Mar 12, 2024

@ptdropper, could you share the output file from make legal-info?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants