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

Import part of libfdt library #24

Merged
merged 1 commit into from
Jun 19, 2023
Merged

Conversation

yanjiew1
Copy link
Collaborator

The arm64 Linux boot protocol requires bootloaders to pass a device tree to the kernel. We import part of the libfdt library that can be used to generate flatten device trees required by the kernel.

The license of libfdt is GPLv2 or BSD 2 clause, which is compatible with this project. It should be ok to impoprt it directly.

The version of libfdt being imported is 1.7.0.

I do not know whether it is better to import this library directly, or we could just ask the user to install the package, libfdt-dev, before compiling this project.

@jserv
Copy link
Contributor

jserv commented Jun 19, 2023

I do not know whether it is better to import this library directly, or we could just ask the user to install the package, libfdt-dev, before compiling this project.

Use git submodule instead.

The arm64 Linux boot protocol requires bootloaders to pass a device
tree to the kernel.

We import dtc as a submodule. It contains a library, libfdt, which
can be used to generate flatten device trees required by the kernel.
@yanjiew1
Copy link
Collaborator Author

I pushed a new revision.
I imported dtc as a submodule. libfdt is part of dtc.

@jserv jserv merged commit ed38d1a into sysprog21:master Jun 19, 2023
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

Successfully merging this pull request may close these issues.

2 participants