makefiles.rst (d0034a7a4ac7fae708146ac0059b9c47a1543f0d) makefiles.rst (8212f8986d311ccf6a72305e6bdbd814691701d6)
1======================
2Linux Kernel Makefiles
3======================
4
5This document describes the Linux kernel Makefiles.
6
7.. Table of Contents
8

--- 1036 unchanged lines hidden (view full) ---

1045 Example::
1046
1047 #arch/x86/boot/Makefile
1048 subdir- := compressed
1049
1050The above assignment instructs kbuild to descend down in the
1051directory compressed/ when "make clean" is executed.
1052
1======================
2Linux Kernel Makefiles
3======================
4
5This document describes the Linux kernel Makefiles.
6
7.. Table of Contents
8

--- 1036 unchanged lines hidden (view full) ---

1045 Example::
1046
1047 #arch/x86/boot/Makefile
1048 subdir- := compressed
1049
1050The above assignment instructs kbuild to descend down in the
1051directory compressed/ when "make clean" is executed.
1052
1053To support the clean infrastructure in the Makefiles that build the
1054final bootimage there is an optional target named archclean:
1055
1056 Example::
1057
1058 #arch/x86/Makefile
1059 archclean:
1060 $(Q)$(MAKE) $(clean)=arch/x86/boot
1061
1062When "make clean" is executed, make will descend down in arch/x86/boot,
1063and clean as usual. The Makefile located in arch/x86/boot/ may use
1064the subdir- trick to descend further down.
1065
1066Note 1: arch/$(SRCARCH)/Makefile cannot use "subdir-", because that file is
1053Note 1: arch/$(SRCARCH)/Makefile cannot use "subdir-", because that file is
1067included in the top level makefile, and the kbuild infrastructure
1068is not operational at that point.
1054included in the top level makefile. Instead, arch/$(SRCARCH)/Kbuild can use
1055"subdir-".
1069
1070Note 2: All directories listed in core-y, libs-y, drivers-y and net-y will
1071be visited during "make clean".
1072
10737 Architecture Makefiles
1074========================
1075
1076The top level Makefile sets up the environment and does the preparation,

--- 596 unchanged lines hidden ---
1056
1057Note 2: All directories listed in core-y, libs-y, drivers-y and net-y will
1058be visited during "make clean".
1059
10607 Architecture Makefiles
1061========================
1062
1063The top level Makefile sets up the environment and does the preparation,

--- 596 unchanged lines hidden ---