What's the meaning of SUBDIRS ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

    When making a kernel module outside the kernel source tree, I can
use this command to make my kernel module:

                                            make -C /usr/src/linux
SUBDIRS=$PWD modules

According to man, the -C option will chanage the current working
directory to the top level directory of kernel source tree.
Furthermore, the SUBDIRS varialbe contains the path of current working
directory where my module is living. So, why does 'make' need to enter
/usr/src/linux first? And, What's the role of 'SUBDIRS'? Thanks.

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux