summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/mali/kernel-module-mali/Makefile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/mali/kernel-module-mali/Makefile.patch')
-rw-r--r--recipes-graphics/mali/kernel-module-mali/Makefile.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-graphics/mali/kernel-module-mali/Makefile.patch b/recipes-graphics/mali/kernel-module-mali/Makefile.patch
new file mode 100644
index 00000000..0f056875
--- /dev/null
+++ b/recipes-graphics/mali/kernel-module-mali/Makefile.patch
@@ -0,0 +1,36 @@
1Change Makefile to be compatible with Yocto
2
3Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
4Upstream Status: Pending
5--- driver/src/devicedrv/mali/Makefile 2015-03-29 20:38:45.000000000 -0700
6+++ b/Makefile 2016-01-26 20:13:56.053436042 -0800
7@@ -85,7 +85,11 @@
8 # Define host system directory
9 KDIR-$(shell uname -m):=/lib/modules/$(shell uname -r)/build
10
11-include $(KDIR)/.config
12+ifeq ($(O),)
13+ include $(KDIR)/.config
14+else
15+ include $(O)/.config
16+endif
17
18 ifeq ($(ARCH), arm)
19 # when compiling for ARM we're cross compiling
20@@ -170,10 +174,15 @@
21 EXTRA_DEFINES += -DPROFILING_SKIP_PP_JOBS=1 -DPROFILING_SKIP_GP_JOBS=1
22 endif
23
24+EXTRA_DEFINES += -Wno-error=date-time
25+
26 all: $(UMP_SYMVERS_FILE)
27- $(MAKE) ARCH=$(ARCH) -C $(KDIR) M=$(CURDIR) modules
28+ $(MAKE) ARCH=$(ARCH) -C $(KDIR) M=$(CURDIR) O=$(O) modules
29 @rm $(FILES_PREFIX)__malidrv_build_info.c $(FILES_PREFIX)__malidrv_build_info.o
30
31+modules_install:
32+ $(MAKE) ARCH=$(ARCH) -C $(KDIR) M=$(CURDIR) modules_install
33+
34 clean:
35 $(MAKE) ARCH=$(ARCH) -C $(KDIR) M=$(CURDIR) clean
36