diff options
| author | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-05-28 03:50:58 -0500 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-05-28 03:50:58 -0500 |
| commit | 96663d0bb338efc1c174755eb0a565d22cd64e67 (patch) | |
| tree | a0036566f9c28fbfb4bcc9480c645e2f0ad53e7c /Rules.make | |
| parent | 36a805edc4b8094dfe67cb3de355035f5e7edbbd (diff) | |
kbuild: built-in and modules in one pass
Use "make BUILD_MODULES=1 {,bzImage,zImage,vmlinux,...}" to build
your kernel - and it'll also build the modules as you go.
Diffstat (limited to 'Rules.make')
| -rw-r--r-- | Rules.make | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Rules.make b/Rules.make index 95f2b210fb58..7c6b52ddb90f 100644 --- a/Rules.make +++ b/Rules.make @@ -52,7 +52,7 @@ obj-m := $(filter-out %/, $(obj-m)) # add it to $(subdir-m) both-m := $(filter $(mod-subdirs), $(subdir-y)) -SUB_DIRS := $(subdir-y) +SUB_DIRS := $(subdir-y) $(if $(BUILD_MODULES),$(subdir-m)) MOD_SUB_DIRS := $(sort $(subdir-m) $(both-m)) ALL_SUB_DIRS := $(sort $(subdir-y) $(subdir-m) $(subdir-n) $(subdir-)) @@ -90,7 +90,7 @@ real-objs-m := $(foreach m, $(obj-m), $(if $($(m:.o=-objs)),$($(m:.o=-objs)),$(m # # Get things started. # -first_rule: vmlinux +first_rule: vmlinux $(if $(BUILD_MODULES),$(obj-m)) # # Common rules |
