summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuha Tukkinen <jtukkinen@nvidia.com>2011-11-08 15:48:34 +0200
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 01:35:17 -0700
commitc36df0096881fc0bb8f39e4c798e4506f3804bc4 (patch)
treea3dfc84fc2187270e8e1065412fdb47c8578681e
parent05d3a26b3d9638a15e9c21d037fd75e66a8a812e (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/Makefile2
-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/Makefile2
-rw-r--r--drivers/usb/host/Makefile1
-rw-r--r--drivers/usb/phy/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 2ef99479730f..b64aa98245b0 100644
--- a/arch/arm/mach-tegra/Makefile
+++ b/arch/arm/mach-tegra/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := y
+
asflags-y += -march=armv7-a
obj-y += board-pinmux.o
diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile
index 6312c4f61779..fa88fd0ec62c 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 af878e006082..572cab8fc2ae 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 90d1049a4f4e..04fb39ed83b4 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 50bd1ad6cdb0..b45599dd39d8 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 874dc0a60a5c..75ba99f8eacf 100644
--- a/drivers/media/video/tegra/Makefile
+++ b/drivers/media/video/tegra/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := y
+
subdir-ccflags-y := -Werror
#
# 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 9d12d03e4fce..af2659e84664 100644
--- a/drivers/media/video/tegra/nvavp/Makefile
+++ b/drivers/media/video/tegra/nvavp/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := y
EXTRA_CFLAGS += -Idrivers/video/tegra/host
obj-$(CONFIG_TEGRA_NVAVP) += nvavp_dev.o
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index 42f269caad53..fc3bf3e7cdd0 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 9cf6e7ea6982..2b100e9f158b 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 c3cb60956d60..55cbcbb695d5 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_DOCG3) += docg3.o
obj-$(CONFIG_MTD_SLRAM) += slram.o
diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile
index 94ecf69c4141..e4fd7ad56e5b 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 63d1ec27ae86..9d5d81b220dc 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_ISL29018) += isl29018.o
obj-$(CONFIG_SENSORS_ISL29028) += isl29028.o
diff --git a/drivers/tty/serial/Makefile b/drivers/tty/serial/Makefile
index eedfec40e3dd..d67169e95da8 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 9d2c3d2a3d8d..6555ec7f4559 100644
--- a/drivers/usb/gadget/Makefile
+++ b/drivers/usb/gadget/Makefile
@@ -1,6 +1,8 @@
#
# USB peripheral controller drivers
#
+GCOV_PROFILE_tegra_udc.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 4fb73c156d72..0a844cca4d01 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/phy/Makefile b/drivers/usb/phy/Makefile
index a66063f8fd23..9bcf48c41207 100644
--- a/drivers/usb/phy/Makefile
+++ b/drivers/usb/phy/Makefile
@@ -1,6 +1,7 @@
#
# Makefile for physical layer USB drivers
#
+GCOV_PROFILE_tegra-otg.o := y
ccflags-$(CONFIG_USB_DEBUG) := -DDEBUG
diff --git a/drivers/video/tegra/Makefile b/drivers/video/tegra/Makefile
index fb39ecf15327..ce581d2c81a3 100644
--- a/drivers/video/tegra/Makefile
+++ b/drivers/video/tegra/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := y
subdir-ccflags-y := -Werror
EXTRA_CFLAGS += -Idrivers/video/tegra/host
obj-$(CONFIG_TEGRA_GRHOST) += host/
diff --git a/drivers/video/tegra/dc/Makefile b/drivers/video/tegra/dc/Makefile
index 8a537d44c456..d1a75ef661ec 100644
--- a/drivers/video/tegra/dc/Makefile
+++ b/drivers/video/tegra/dc/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := y
EXTRA_CFLAGS += -Idrivers/video/tegra/host
obj-y += dc.o bandwidth.o mode.o clock.o lut.o csc.o window.o
obj-y += rgb.o
diff --git a/drivers/video/tegra/host/Makefile b/drivers/video/tegra/host/Makefile
index b069a82b5806..2a8b4145b6b7 100644
--- a/drivers/video/tegra/host/Makefile
+++ b/drivers/video/tegra/host/Makefile
@@ -1,3 +1,4 @@
+GCOV_PROFILE := y
EXTRA_CFLAGS += -Idrivers/video/tegra/host
nvhost-objs = \
diff --git a/drivers/video/tegra/host/t20/Makefile b/drivers/video/tegra/host/t20/Makefile
index bcb3a6e9ad66..c2ade9bf925b 100644
--- a/drivers/video/tegra/host/t20/Makefile
+++ b/drivers/video/tegra/host/t20/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := y
+
EXTRA_CFLAGS += -Idrivers/video/tegra/host
nvhost-t20-objs = \
diff --git a/drivers/video/tegra/host/t30/Makefile b/drivers/video/tegra/host/t30/Makefile
index 8169a9d77888..b343eb4fc7cc 100644
--- a/drivers/video/tegra/host/t30/Makefile
+++ b/drivers/video/tegra/host/t30/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := y
+
EXTRA_CFLAGS += -Idrivers/video/tegra/host
nvhost-t30-objs = \
diff --git a/drivers/video/tegra/nvmap/Makefile b/drivers/video/tegra/nvmap/Makefile
index 2c2f0b1f09f8..6047f166c751 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 45d33ac6caef..d51c9ce904d8 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 e97fd5e0ac4e..b794a0e56e95 100644
--- a/sound/soc/tegra/Makefile
+++ b/sound/soc/tegra/Makefile
@@ -1,3 +1,5 @@
+GCOV_PROFILE := y
+
subdir-ccflags-y := -Werror
# Tegra platform Support