From 295666da273031217d5661bddd3928a1c1f7f4a1 Mon Sep 17 00:00:00 2001 From: John Ye Date: Fri, 9 Dec 2011 18:00:52 +0800 Subject: [PATCH] apply pvrdbg flag to kernel space IMG DDK BZ: 16943 The userspace DDK can be compiled to debug mode with flag pvrdbg=1, however this did not affect the kernel DDK code. This commit fixes this issue. Change-Id: I73877360183badd3958cbd264130b3d776070135 Signed-off-by: John Ye Reviewed-on: http://android.intel.com:8080/26916 Reviewed-by: Xu, Randy Tested-by: Xu, Randy Reviewed-by: Hu, Austin Reviewed-by: buildbot Tested-by: buildbot --- drivers/staging/mrst/medfield/Makefile | 3 +++ drivers/staging/mrst/pvr/include4/sgx_options.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/staging/mrst/medfield/Makefile b/drivers/staging/mrst/medfield/Makefile index f926a72..5dfd9fe 100644 --- a/drivers/staging/mrst/medfield/Makefile +++ b/drivers/staging/mrst/medfield/Makefile @@ -27,6 +27,9 @@ include_dirs := \ ccflags-y += $(include_dirs) ccflags-y += $(ANDROID_TOOLCHAIN_FLAGS) -I$(INCDIR)/pvr/services4/system/intel_drm -DANDROID -D_linux_ -D__KERNEL__ +ifeq ($(pvrdbg),1) +ccflags-y += -DPVRDEBUG +endif ifeq ($(CONFIG_DRM_MDFLD),y) ccflags-y += -DMEDFIELD IS_SGX540=y diff --git a/drivers/staging/mrst/pvr/include4/sgx_options.h b/drivers/staging/mrst/pvr/include4/sgx_options.h index c70d1eb..77ff8b7 100755 --- a/drivers/staging/mrst/pvr/include4/sgx_options.h +++ b/drivers/staging/mrst/pvr/include4/sgx_options.h @@ -40,6 +40,9 @@ * compatible. */ +#if defined(PVRDEBUG) +#define DEBUG +#endif #if defined(DEBUG) || defined (INTERNAL_TEST) #define DEBUG_SET_OFFSET OPTIONS_BIT0 -- 2.7.4