From 665cd48e0a2e4b2f40d63841bc22c46237f47dff Mon Sep 17 00:00:00 2001 From: Riku Voipio Date: Mon, 8 Sep 2014 13:09:03 +0300 Subject: replace patch with script too many drivers that arndale needs --- configs/gcov-workarounds.patch | 221 ----------------------------------------- gcov-arndale | 9 ++ 2 files changed, 9 insertions(+), 221 deletions(-) delete mode 100644 configs/gcov-workarounds.patch diff --git a/configs/gcov-workarounds.patch b/configs/gcov-workarounds.patch deleted file mode 100644 index 72cbabc..0000000 --- a/configs/gcov-workarounds.patch +++ /dev/null @@ -1,221 +0,0 @@ -From d26d8a880ee8819b1ac38a828d9e15d405455ba6 Mon Sep 17 00:00:00 2001 -From: Riku Voipio -Date: Tue, 2 Sep 2014 11:49:36 +0300 -Subject: [PATCH 2/2] Litter drivers with gcov disabling - -Some of the core drivers need to be available before gcov -can be enabled. - -Signed-off-by: Riku Voipio ---- - drivers/clk/samsung/Makefile | 1 + - drivers/clocksource/Makefile | 2 ++ - drivers/cpufreq/Makefile | 2 ++ - drivers/cpuidle/Makefile | 2 ++ - drivers/cpuidle/governors/Makefile | 2 ++ - drivers/devfreq/Makefile | 1 + - drivers/devfreq/exynos/Makefile | 1 + - drivers/extcon/Makefile | 1 + - drivers/i2c/Makefile | 1 + - drivers/i2c/algos/Makefile | 1 + - drivers/i2c/busses/Makefile | 1 + - drivers/iommu/Makefile | 2 ++ - drivers/irqchip/Makefile | 2 ++ - drivers/mfd/Makefile | 3 ++- - drivers/of/Makefile | 1 + - drivers/regulator/Makefile | 2 +- - 16 files changed, 23 insertions(+), 2 deletions(-) - -diff --git a/drivers/clk/samsung/Makefile b/drivers/clk/samsung/Makefile -index 6fb4bc6..38504c8 100644 ---- a/drivers/clk/samsung/Makefile -+++ b/drivers/clk/samsung/Makefile -@@ -1,6 +1,7 @@ - # - # Samsung Clock specific Makefile - # -+GCOV_PROFILE := n - - obj-$(CONFIG_COMMON_CLK) += clk.o clk-pll.o - obj-$(CONFIG_SOC_EXYNOS3250) += clk-exynos3250.o -diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile -index 7fd9fd1..0f982e6 100644 ---- a/drivers/clocksource/Makefile -+++ b/drivers/clocksource/Makefile -@@ -1,3 +1,5 @@ -+GCOV_PROFILE := n -+ - obj-$(CONFIG_CLKSRC_OF) += clksrc-of.o - obj-$(CONFIG_ATMEL_TCB_CLKSRC) += tcb_clksrc.o - obj-$(CONFIG_X86_PM_TIMER) += acpi_pm.o -diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile -index a1f7537..2b83e02 100644 ---- a/drivers/cpufreq/Makefile -+++ b/drivers/cpufreq/Makefile -@@ -1,4 +1,6 @@ - # CPUfreq core -+GCOV_PROFILE := n -+ - obj-$(CONFIG_CPU_FREQ) += cpufreq.o freq_table.o - obj-$(CONFIG_PM_OPP) += cpufreq_opp.o - -diff --git a/drivers/cpuidle/Makefile b/drivers/cpuidle/Makefile -index 11edb31..4b7c180 100644 ---- a/drivers/cpuidle/Makefile -+++ b/drivers/cpuidle/Makefile -@@ -2,6 +2,8 @@ - # Makefile for cpuidle. - # - -+GCOV_PROFILE := n -+ - obj-y += cpuidle.o driver.o governor.o sysfs.o governors/ - obj-$(CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED) += coupled.o - -diff --git a/drivers/cpuidle/governors/Makefile b/drivers/cpuidle/governors/Makefile -index 1b51272..8ed53c7 100644 ---- a/drivers/cpuidle/governors/Makefile -+++ b/drivers/cpuidle/governors/Makefile -@@ -2,5 +2,7 @@ - # Makefile for cpuidle governors. - # - -+GCOV_PROFILE := n -+ - obj-$(CONFIG_CPU_IDLE_GOV_LADDER) += ladder.o - obj-$(CONFIG_CPU_IDLE_GOV_MENU) += menu.o -diff --git a/drivers/devfreq/Makefile b/drivers/devfreq/Makefile -index 16138c9..f8c51f4 100644 ---- a/drivers/devfreq/Makefile -+++ b/drivers/devfreq/Makefile -@@ -1,3 +1,4 @@ -+GCOV_PROFILE := n - obj-$(CONFIG_PM_DEVFREQ) += devfreq.o - obj-$(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND) += governor_simpleondemand.o - obj-$(CONFIG_DEVFREQ_GOV_PERFORMANCE) += governor_performance.o -diff --git a/drivers/devfreq/exynos/Makefile b/drivers/devfreq/exynos/Makefile -index 49bc917..a83c500 100644 ---- a/drivers/devfreq/exynos/Makefile -+++ b/drivers/devfreq/exynos/Makefile -@@ -1,3 +1,4 @@ -+GCOV_PROFILE := n - # Exynos DEVFREQ Drivers - obj-$(CONFIG_ARM_EXYNOS4_BUS_DEVFREQ) += exynos_ppmu.o exynos4_bus.o - obj-$(CONFIG_ARM_EXYNOS5_BUS_DEVFREQ) += exynos_ppmu.o exynos5_bus.o -diff --git a/drivers/extcon/Makefile b/drivers/extcon/Makefile -index b38546e..44b5f47 100644 ---- a/drivers/extcon/Makefile -+++ b/drivers/extcon/Makefile -@@ -1,6 +1,7 @@ - - # Makefile for external connector class (extcon) devices - # -+GCOV_PROFILE := n - - obj-$(CONFIG_EXTCON) += extcon-class.o - obj-$(CONFIG_EXTCON_ADC_JACK) += extcon-adc-jack.o -diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile -index e0228b2..e0423c1 100644 ---- a/drivers/i2c/Makefile -+++ b/drivers/i2c/Makefile -@@ -1,6 +1,7 @@ - # - # Makefile for the i2c core. - # -+GCOV_PROFILE := n - - i2ccore-y := i2c-core.o - i2ccore-$(CONFIG_ACPI) += i2c-acpi.o -diff --git a/drivers/i2c/algos/Makefile b/drivers/i2c/algos/Makefile -index 215303f..f81adda 100644 ---- a/drivers/i2c/algos/Makefile -+++ b/drivers/i2c/algos/Makefile -@@ -1,6 +1,7 @@ - # - # Makefile for the i2c algorithms - # -+GCOV_PROFILE := n - - obj-$(CONFIG_I2C_ALGOBIT) += i2c-algo-bit.o - obj-$(CONFIG_I2C_ALGOPCF) += i2c-algo-pcf.o -diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile -index 49bf07e..608091b 100644 ---- a/drivers/i2c/busses/Makefile -+++ b/drivers/i2c/busses/Makefile -@@ -1,6 +1,7 @@ - # - # Makefile for the i2c bus drivers. - # -+GCOV_PROFILE := n - - # ACPI drivers - obj-$(CONFIG_I2C_SCMI) += i2c-scmi.o -diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile -index 16edef7..406d63c 100644 ---- a/drivers/iommu/Makefile -+++ b/drivers/iommu/Makefile -@@ -1,3 +1,5 @@ -+GCOV_PROFILE := n -+ - obj-$(CONFIG_IOMMU_API) += iommu.o - obj-$(CONFIG_IOMMU_API) += iommu-traces.o - obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o -diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile -index 73052ba..c9073f4 100644 ---- a/drivers/irqchip/Makefile -+++ b/drivers/irqchip/Makefile -@@ -1,3 +1,5 @@ -+GCOV_PROFILE := n -+ - obj-$(CONFIG_IRQCHIP) += irqchip.o - - obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2835.o -diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile -index 3f2fc89..d2ce0b8 100644 ---- a/drivers/mfd/Makefile -+++ b/drivers/mfd/Makefile -@@ -1,6 +1,7 @@ - # - # Makefile for multifunction miscellaneous devices - # -+GCOV_PROFILE := n - - 88pm860x-objs := 88pm860x-core.o 88pm860x-i2c.o - obj-$(CONFIG_MFD_88PM860X) += 88pm860x.o -@@ -83,10 +84,10 @@ obj-$(CONFIG_MFD_MC13XXX_SPI) += mc13xxx-spi.o - obj-$(CONFIG_MFD_MC13XXX_I2C) += mc13xxx-i2c.o - - obj-$(CONFIG_MFD_CORE) += mfd-core.o -- - obj-$(CONFIG_EZX_PCAP) += ezx-pcap.o - - obj-$(CONFIG_MCP) += mcp-core.o -+ - obj-$(CONFIG_MCP_SA11X0) += mcp-sa11x0.o - obj-$(CONFIG_MCP_UCB1200) += ucb1x00-core.o - obj-$(CONFIG_MFD_SMSC) += smsc-ece1099.o -diff --git a/drivers/of/Makefile b/drivers/of/Makefile -index 2b6a7b1..0ae195d 100644 ---- a/drivers/of/Makefile -+++ b/drivers/of/Makefile -@@ -1,3 +1,4 @@ -+GCOV_PROFILE := n - obj-y = base.o device.o platform.o - obj-$(CONFIG_OF_DYNAMIC) += dynamic.o - obj-$(CONFIG_OF_FLATTREE) += fdt.o -diff --git a/drivers/regulator/Makefile b/drivers/regulator/Makefile -index 9c50dc6..309fb0e 100644 ---- a/drivers/regulator/Makefile -+++ b/drivers/regulator/Makefile -@@ -1,7 +1,7 @@ - # - # Makefile for regulator drivers. - # -- -+GCOV_PROFILE := n - - obj-$(CONFIG_REGULATOR) += core.o dummy.o fixed-helper.o helpers.o devres.o - obj-$(CONFIG_OF) += of_regulator.o --- -2.0.1 - diff --git a/gcov-arndale b/gcov-arndale index b4e5630..d4c4b6e 100755 --- a/gcov-arndale +++ b/gcov-arndale @@ -9,6 +9,15 @@ do patch -p1 < $patch done +# workaround driver issues with gcov +( +cd drivers/ +for file in `find -type f -name Makefile` +do + echo 'GCOV_PROFILE := n' >> $file; +done +) + # jenkins needs a different directory for build due to git juggling if [ ! -z ${WORKSPACE} ] then -- cgit v1.2.3