summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuha Tukkinen <jtukkinen@nvidia.com>2011-11-08 15:48:34 +0200
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:58 -0800
commit9fac242eb449b68905fd1c4b74fd94dd8ddcbc79 (patch)
tree7314a8ba90f2b627dcd7f1e6a44a67818ac500ab
parent428e04c9612d8206ab9e778d7eb3465bc39cc044 (diff)
gcov-kernel: Add GCOV_KERNEL := y to Makefiles
These changes have no effect if CONFIG_GCOV_KERNEL is not set in defconfig. It is easier to trigger GCOV for kernel if this patch is in by only setting the before mentioned flag. Change-Id: I8aade309da2da62c4b3889bd84e4123ba8f182da Signed-off-by: Juha Tukkinen <jtukkinen@nvidia.com> Reviewed-on: http://git-master/r/62999 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Rebase-Id: R4c238f707f1db600f188ae83426336753992b7be
-rw-r--r--arch/arm/mach-tegra/Makefile2
-rw-r--r--drivers/crypto/Makefile2
-rw-r--r--drivers/i2c/Makefile1
-rw-r--r--drivers/i2c/busses/Makefile1
-rw-r--r--drivers/input/keyboard/Makefile1
-rw-r--r--drivers/media/video/tegra/Makefile1
-rw-r--r--drivers/media/video/tegra/avp/Makefile1
-rw-r--r--drivers/media/video/tegra/mediaserver/Makefile1
-rw-r--r--drivers/media/video/tegra/nvavp/Makefile1
-rw-r--r--drivers/misc/Makefile1
-rw-r--r--drivers/mmc/host/Makefile1
-rw-r--r--drivers/mtd/devices/Makefile1
-rw-r--r--drivers/spi/Makefile1
-rw-r--r--drivers/staging/iio/light/Makefile1
-rw-r--r--drivers/tty/serial/Makefile1
-rw-r--r--drivers/usb/gadget/Makefile3
-rw-r--r--drivers/usb/host/Makefile1
-rw-r--r--drivers/usb/otg/Makefile1
-rw-r--r--drivers/video/tegra/Makefile1
-rw-r--r--drivers/video/tegra/dc/Makefile1
-rw-r--r--drivers/video/tegra/host/Makefile1
-rw-r--r--drivers/video/tegra/host/t20/Makefile2
-rw-r--r--drivers/video/tegra/host/t30/Makefile2
-rw-r--r--drivers/video/tegra/nvmap/Makefile1
-rw-r--r--drivers/w1/Makefile1
-rw-r--r--drivers/w1/masters/Makefile1
-rw-r--r--drivers/watchdog/Makefile1
-rw-r--r--sound/soc/tegra/Makefile2
28 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/Makefile b/arch/arm/mach-tegra/Makefile
index 13b8c6b58449..701369ea1604 100644
--- a/arch/arm/mach-tegra/Makefile
+++ b/arch/arm/mach-tegra/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := y
+
obj-$(CONFIG_ARCH_TEGRA_2x_SOC) += ahb.o
obj-y += apbio.o
obj-y += common.o
diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile
index bed38f7b85af..e244cfcdd505 100644
--- a/drivers/crypto/Makefile
+++ b/drivers/crypto/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := y
+
obj-$(CONFIG_CRYPTO_DEV_PADLOCK_AES) += padlock-aes.o
obj-$(CONFIG_CRYPTO_DEV_PADLOCK_SHA) += padlock-sha.o
obj-$(CONFIG_CRYPTO_DEV_GEODE) += geode-aes.o
diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index da6e2b084e4c..b4fc25188117 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for the i2c core.
#
+GCOV_PROFILE := y
obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o
obj-$(CONFIG_I2C) += i2c-core.o
diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile
index f323506a0f2b..ce35a87a7012 100644
--- a/drivers/i2c/busses/Makefile
+++ b/drivers/i2c/busses/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for the i2c bus drivers.
#
+GCOV_PROFILE := y
# ACPI drivers
obj-$(CONFIG_I2C_SCMI) += i2c-scmi.o
diff --git a/drivers/input/keyboard/Makefile b/drivers/input/keyboard/Makefile
index 252fee12bf95..eaa5eda68a43 100644
--- a/drivers/input/keyboard/Makefile
+++ b/drivers/input/keyboard/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for the input core drivers.
#
+GCOV_PROFILE_tegra-kbc.o := y
# Each configuration option enables a list of files.
diff --git a/drivers/media/video/tegra/Makefile b/drivers/media/video/tegra/Makefile
index 124aee2b0f76..a3990435570d 100644
--- a/drivers/media/video/tegra/Makefile
+++ b/drivers/media/video/tegra/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := y
#
# Makefile for the video capture/playback device drivers.
#
diff --git a/drivers/media/video/tegra/avp/Makefile b/drivers/media/video/tegra/avp/Makefile
index 6d8be11c3f81..148265648a40 100644
--- a/drivers/media/video/tegra/avp/Makefile
+++ b/drivers/media/video/tegra/avp/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := y
obj-$(CONFIG_TEGRA_RPC) += tegra_rpc.o
obj-$(CONFIG_TEGRA_RPC) += trpc_local.o
obj-$(CONFIG_TEGRA_RPC) += trpc_sema.o
diff --git a/drivers/media/video/tegra/mediaserver/Makefile b/drivers/media/video/tegra/mediaserver/Makefile
index 82e056f5faf5..ed24e91932bc 100644
--- a/drivers/media/video/tegra/mediaserver/Makefile
+++ b/drivers/media/video/tegra/mediaserver/Makefile
@@ -1,2 +1,3 @@
+GCOV_PROFILE := y
obj-$(CONFIG_TEGRA_MEDIASERVER) += tegra_mediaserver.o
diff --git a/drivers/media/video/tegra/nvavp/Makefile b/drivers/media/video/tegra/nvavp/Makefile
index 8b16cb4b2c93..82b4238fd085 100644
--- a/drivers/media/video/tegra/nvavp/Makefile
+++ b/drivers/media/video/tegra/nvavp/Makefile
@@ -1,2 +1,3 @@
+GCOV_PROFILE := y
obj-$(CONFIG_TEGRA_NVAVP) += nvavp_dev.o
obj-$(CONFIG_TEGRA_AVP_KERNEL_ON_MMU) += ../avp/headavp.o
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index 3adcc663829c..4fb433f392e5 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for misc devices that really don't fit anywhere else.
#
+GCOV_PROFILE_tegra-cryptodev.o := y
obj-$(CONFIG_IBM_ASM) += ibmasm/
obj-$(CONFIG_AD525X_DPOT) += ad525x_dpot.o
diff --git a/drivers/mmc/host/Makefile b/drivers/mmc/host/Makefile
index b4b83f302e32..f5ea51bd0ed3 100644
--- a/drivers/mmc/host/Makefile
+++ b/drivers/mmc/host/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for MMC/SD host controller drivers
#
+GCOV_PROFILE_sdhci-tegra.o := y
obj-$(CONFIG_MMC_ARMMMCI) += mmci.o
obj-$(CONFIG_MMC_PXA) += pxamci.o
diff --git a/drivers/mtd/devices/Makefile b/drivers/mtd/devices/Makefile
index 4793bcfe6211..67345a00a5ab 100644
--- a/drivers/mtd/devices/Makefile
+++ b/drivers/mtd/devices/Makefile
@@ -1,6 +1,7 @@
#
# linux/drivers/mtd/devices/Makefile
#
+GCOV_PROFILE := y
obj-$(CONFIG_MTD_DOC2000) += doc2000.o
obj-$(CONFIG_MTD_DOC2001) += doc2001.o
diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile
index c79238866413..430f8200108a 100644
--- a/drivers/spi/Makefile
+++ b/drivers/spi/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for kernel SPI drivers.
#
+GCOV_PROFILE := y
ccflags-$(CONFIG_SPI_DEBUG) := -DDEBUG
diff --git a/drivers/staging/iio/light/Makefile b/drivers/staging/iio/light/Makefile
index 6f4e5b0a665b..6f02c4c3f722 100644
--- a/drivers/staging/iio/light/Makefile
+++ b/drivers/staging/iio/light/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for industrial I/O Light sensors
#
+GCOV_PROFILE := y
obj-$(CONFIG_SENSORS_TSL2563) += tsl2563.o
obj-$(CONFIG_SENSORS_ISL29018) += isl29018.o
diff --git a/drivers/tty/serial/Makefile b/drivers/tty/serial/Makefile
index 400c3bf492ab..438af89db55e 100644
--- a/drivers/tty/serial/Makefile
+++ b/drivers/tty/serial/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for the kernel serial device drivers.
#
+GCOV_PROFILE_tegra_hsuart.o := y
obj-$(CONFIG_SERIAL_CORE) += serial_core.o
obj-$(CONFIG_SERIAL_21285) += 21285.o
diff --git a/drivers/usb/gadget/Makefile b/drivers/usb/gadget/Makefile
index 51f7c0f14c6d..48741d84073c 100644
--- a/drivers/usb/gadget/Makefile
+++ b/drivers/usb/gadget/Makefile
@@ -1,6 +1,9 @@
#
# USB peripheral controller drivers
#
+GCOV_PROFILE_fsl_tegra_udc.o := y
+GCOV_PROFILE_fsl_udc_core.o := y
+
ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG
obj-$(CONFIG_USB_GADGET) += udc-core.o
diff --git a/drivers/usb/host/Makefile b/drivers/usb/host/Makefile
index 624a362f2fee..ea6d2e8f6596 100644
--- a/drivers/usb/host/Makefile
+++ b/drivers/usb/host/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for USB Host Controller Drivers
#
+GCOV_PROFILE := y
ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG
diff --git a/drivers/usb/otg/Makefile b/drivers/usb/otg/Makefile
index 63b39bd06e84..c0cd5a53858f 100644
--- a/drivers/usb/otg/Makefile
+++ b/drivers/usb/otg/Makefile
@@ -1,6 +1,7 @@
#
# OTG infrastructure and transceiver drivers
#
+GCOV_PROFILE_tegra-otg.o := y
ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG
ccflags-$(CONFIG_USB_GADGET_DEBUG) += -DDEBUG
diff --git a/drivers/video/tegra/Makefile b/drivers/video/tegra/Makefile
index ef9e709303df..2299a3c5eaa3 100644
--- a/drivers/video/tegra/Makefile
+++ b/drivers/video/tegra/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := y
obj-$(CONFIG_TEGRA_GRHOST) += host/
obj-$(CONFIG_TEGRA_DC) += dc/
obj-$(CONFIG_FB_TEGRA) += fb.o
diff --git a/drivers/video/tegra/dc/Makefile b/drivers/video/tegra/dc/Makefile
index 90b03892673c..23e30ccd7ad6 100644
--- a/drivers/video/tegra/dc/Makefile
+++ b/drivers/video/tegra/dc/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := y
obj-y += dc.o
obj-y += rgb.o
obj-y += hdmi.o
diff --git a/drivers/video/tegra/host/Makefile b/drivers/video/tegra/host/Makefile
index 79dcb06ff8fc..d0b1aec247eb 100644
--- a/drivers/video/tegra/host/Makefile
+++ b/drivers/video/tegra/host/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := y
nvhost-objs = \
nvhost_acm.o \
nvhost_syncpt.o \
diff --git a/drivers/video/tegra/host/t20/Makefile b/drivers/video/tegra/host/t20/Makefile
index a4d404074d0c..a17adf71f7d2 100644
--- a/drivers/video/tegra/host/t20/Makefile
+++ b/drivers/video/tegra/host/t20/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := y
+
nvhost-t20-objs = \
t20.o \
syncpt_t20.o \
diff --git a/drivers/video/tegra/host/t30/Makefile b/drivers/video/tegra/host/t30/Makefile
index 5229b2e21456..b4ca2afaacab 100644
--- a/drivers/video/tegra/host/t30/Makefile
+++ b/drivers/video/tegra/host/t30/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := y
+
nvhost-t30-objs = \
t30.o \
channel_t30.o \
diff --git a/drivers/video/tegra/nvmap/Makefile b/drivers/video/tegra/nvmap/Makefile
index 59449abc3edc..95d7f68836af 100644
--- a/drivers/video/tegra/nvmap/Makefile
+++ b/drivers/video/tegra/nvmap/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := y
obj-y += nvmap.o
obj-y += nvmap_dev.o
obj-y += nvmap_handle.o
diff --git a/drivers/w1/Makefile b/drivers/w1/Makefile
index 6bb0b54965f2..ae25ae5fdaf3 100644
--- a/drivers/w1/Makefile
+++ b/drivers/w1/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for the Dallas's 1-wire bus.
#
+GCOV_PROFILE := y
obj-$(CONFIG_W1) += wire.o
wire-objs := w1.o w1_int.o w1_family.o w1_netlink.o w1_io.o
diff --git a/drivers/w1/masters/Makefile b/drivers/w1/masters/Makefile
index 41c5d28e60e7..96499dce0b94 100644
--- a/drivers/w1/masters/Makefile
+++ b/drivers/w1/masters/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for 1-wire bus master drivers.
#
+GCOV_PROFILE_tegra_w1.o := y
obj-$(CONFIG_W1_MASTER_MATROX) += matrox_w1.o
obj-$(CONFIG_W1_MASTER_DS2490) += ds2490.o
diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile
index 75ce074fc8a1..dd35599a2612 100644
--- a/drivers/watchdog/Makefile
+++ b/drivers/watchdog/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for the WatchDog device drivers.
#
+GCOV_PROFILE_tegra_wdt.o := y
# The WatchDog Timer Driver Core.
watchdog-objs += watchdog_core.o watchdog_dev.o
diff --git a/sound/soc/tegra/Makefile b/sound/soc/tegra/Makefile
index f5e1b36cae1d..92e6df0b7ea4 100644
--- a/sound/soc/tegra/Makefile
+++ b/sound/soc/tegra/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := y
+
# Tegra platform Support
snd-soc-tegra-pcm-objs := tegra_pcm.o
snd-soc-tegra20-spdif-objs := tegra20_spdif.o