where is the build rule for kernel's subdirs?
hi:
How does kbuild build objects for subdirs of kernel source ?
thanks!
Quoted 3 lines · horseriver
hi:
How does kbuild build objects for subdirs of kernel source ?
It goes into subdirs recursively.
From top-level Makefile:
# Objects we will link into vmlinux / subdirs we need to visit
init-y := init/
drivers-y := drivers/ sound/ firmware/
net-y := net/
libs-y := lib/
core-y := usr/
Then each subdir's Makefile has its own rules.
Signature · 1 line
~Randy
Quoted 18 lines · Randy Dunlap
Quoted 3 lines · horseriver
hi:
How does kbuild build objects for subdirs of kernel source ?
It goes into subdirs recursively.
From top-level
Makefile:# Objects we will link into vmlinux / subdirs we need to visit
init-y :=init/
drivers-y :=drivers/sound/firmware/
net-y :=net/
libs-y :=lib/
core-y :=usr/
Quoted 1 line
Then each subdir's
Makefilehas its own rules.
I do not think so !
every makefile in these subdirs only have defined obj files ,but not contained build rules .
Thanks!
Quoted 3 lines
Signature · 2 lines
-- ~Randy