Skip to contentSkip to conversation

build rules for subdirs in kernel source

DISCUSSION horseriver 1 participant 2 messages Jan 14, 2013 1 message not in the archive

lore
Share & tools
lore

horseriver

author
#0 lore raw

hi:

How to build targets for every subdirs of kernel ?

for example : drivers/*

I do not find the rules for build subdir's target

thanks!

author
#2 lore raw
In reply to a message not in the archive
Quoted 23 lines · Vivek Gautam

Hi,

Quoted 4 lines · horseriver

hi:

How to build targets for every subdirs of kernel ?

Is it the Makefile you want to look for.
Make is the same linux utility to build a project consisting of multiple files.

Quoted 2 lines

for example : drivers/*

So we club the directories / subdirectories or files in the Makefile in order to compile (build them)
Something like this:

http://lxr.free-electrons.com/source/drivers/Makefile

Quoted 2 lines

I do not find the rules for build subdir's target

Quoted 7 lines

Individual sub directories or files may be built based on some kernel config defined in Kconfig

Quoted 2 lines

thanks!

Hope this explains some of your doubts.

Yeah!:)

What is the use of scripts/makefile.build ?

Thanks!

Quoted 4 lines

--
Thanks & Regards
Vivek