diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -330,6 +330,7 @@ AFLAGS_MODULE = $(MODFLAGS) | |||
330 | LDFLAGS_MODULE = | 330 | LDFLAGS_MODULE = |
331 | CFLAGS_KERNEL = | 331 | CFLAGS_KERNEL = |
332 | AFLAGS_KERNEL = | 332 | AFLAGS_KERNEL = |
333 | CFLAGS_GCOV = -fprofile-arcs -ftest-coverage | ||
333 | 334 | ||
334 | 335 | ||
335 | # Use LINUXINCLUDE when you must reference the include/ directory. | 336 | # Use LINUXINCLUDE when you must reference the include/ directory. |
@@ -356,7 +357,7 @@ export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE | |||
356 | export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS | 357 | export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS |
357 | 358 | ||
358 | export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS | 359 | export KBUILD_CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS |
359 | export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE | 360 | export KBUILD_CFLAGS CFLAGS_KERNEL CFLAGS_MODULE CFLAGS_GCOV |
360 | export KBUILD_AFLAGS AFLAGS_KERNEL AFLAGS_MODULE | 361 | export KBUILD_AFLAGS AFLAGS_KERNEL AFLAGS_MODULE |
361 | 362 | ||
362 | # When compiling out-of-tree modules, put MODVERDIR in the module | 363 | # When compiling out-of-tree modules, put MODVERDIR in the module |
@@ -1216,8 +1217,8 @@ clean: archclean $(clean-dirs) | |||
1216 | \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ | 1217 | \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ |
1217 | -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ | 1218 | -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ |
1218 | -o -name '*.symtypes' -o -name 'modules.order' \ | 1219 | -o -name '*.symtypes' -o -name 'modules.order' \ |
1219 | -o -name 'Module.markers' -o -name '.tmp_*.o.*' \) \ | 1220 | -o -name 'Module.markers' -o -name '.tmp_*.o.*' \ |
1220 | -type f -print | xargs rm -f | 1221 | -o -name '*.gcno' \) -type f -print | xargs rm -f |
1221 | 1222 | ||
1222 | # mrproper - Delete all generated files, including .config | 1223 | # mrproper - Delete all generated files, including .config |
1223 | # | 1224 | # |
@@ -1421,8 +1422,8 @@ clean: $(clean-dirs) | |||
1421 | $(call cmd,rmfiles) | 1422 | $(call cmd,rmfiles) |
1422 | @find $(KBUILD_EXTMOD) $(RCS_FIND_IGNORE) \ | 1423 | @find $(KBUILD_EXTMOD) $(RCS_FIND_IGNORE) \ |
1423 | \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ | 1424 | \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ |
1424 | -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \ | 1425 | -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \ |
1425 | -type f -print | xargs rm -f | 1426 | -o -name '*.gcno' \) -type f -print | xargs rm -f |
1426 | 1427 | ||
1427 | help: | 1428 | help: |
1428 | @echo ' Building external modules.' | 1429 | @echo ' Building external modules.' |