GithubHelp home page GithubHelp logo

Comments (2)

rupran avatar rupran commented on July 17, 2024 1

Hi, and thanks for using my tool!

I think I can explain most of them.

  • All the .mod.c files do not actually exist, their corresponding .o counterparts are generated during the build for loadable kernel modules.
  • Some .o files (like llc.o) do not have a corresponding .c file, but the rules in Kbuild produce a file of that name, see for example https://elixir.bootlin.com/linux/v5.4.35/source/net/llc/Makefile#L15 and the llc-y rule below the highlighted line.
  • Our tool does not descend into scripts/ as the binary files in that directory are not part of the kernel image.
  • The files inside arch/arm64/lib/ are mostly written in Assembly, so instead of memset.c there is a file memset.S.
  • For most of the remaining files in arch/arm64, my tool does generate an output line but does not list any precondition - because the file is always part of the build as a result of being added to obj-y in a top level directory - so something like
[...]
arch/arm64/kernel/sleep.S <- CONFIG_CPU_PM
arch/arm64/kernel/smccc-call.S
arch/arm64/kernel/smp.c
[...]

is perfectly valid and simply means that the last two files do not have any precondition.

  • Lastly, the files in drivers/firmware/efi/libstub also seem to not be part of the kernel image itself as they get built through lib-... lists which our work didn't need to cover.

If there are any more cases that are unclear, let me know!

from kbuildparser.

riskyblooky avatar riskyblooky commented on July 17, 2024

Wow, Thanks for your quick and thorough reply.
I think that covers most the cases and explains the behavior.

Thanks for the great tool!

from kbuildparser.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.