diff options
author | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-06-04 19:46:22 +0800 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-06-04 19:46:22 +0800 |
commit | 1c4a401e4961ffda3c432504e69d12316cfdbdf3 (patch) | |
tree | 1fa2157f1d2712a7f838eadd236e35681957c323 /drivers/gpu/mali/mali400ko/x11/mali_drm/mali/Makefile | |
parent | c65e9ef43160d318d715d5a1c8752864aace85f0 (diff) | |
parent | fcddfa7f1d6cbdd5b841665b2337422627394cff (diff) |
Merge topic branch 'mali-android' into integration-android-ux500
Diffstat (limited to 'drivers/gpu/mali/mali400ko/x11/mali_drm/mali/Makefile')
-rw-r--r-- | drivers/gpu/mali/mali400ko/x11/mali_drm/mali/Makefile | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/drivers/gpu/mali/mali400ko/x11/mali_drm/mali/Makefile b/drivers/gpu/mali/mali400ko/x11/mali_drm/mali/Makefile index 0f3ace966df..bed5d51cc58 100644 --- a/drivers/gpu/mali/mali400ko/x11/mali_drm/mali/Makefile +++ b/drivers/gpu/mali/mali400ko/x11/mali_drm/mali/Makefile @@ -12,6 +12,21 @@ # Makefile for the Mali drm device driver. This driver provides support for the # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. -obj-y += mali_drm.o -mali_drm-objs := mali_drv.o -EXTRA_CFLAGS += -I$(KBUILD_EXTMOD) -I$(KBUILD_EXTMOD)/include -I$(KBUILD_EXTMOD)/../drm/include/ +# If KERNELRELEASE is defined, we've been invoked from the # kernel build system and can use its language. +ifneq ($(KERNELRELEASE),) + obj-m := mali_drm.o + mali_drm-objs := mali_drv.o + EXTRA_CFLAGS += -I$(KBUILD_EXTMOD) -I$(KBUILD_EXTMOD)/include -I$(KBUILD_EXTMOD)/../drm/include/ + +# Otherwise we were called directly from the command # line; invoke the kernel build system. +else + + KERNELDIR ?= /lib/modules/$(shell uname -r)/build + PWD := $(shell pwd) + +default: + $(MAKE) -C $(KERNELDIR) M=$(PWD) modules +all: + $(MAKE) -C $(KERNELDIR) M=$(PWD) modules + +endif |