diff options
author | John Fredriksson <john.xj.fredriksson@stericsson.com> | 2011-06-30 13:27:52 +0200 |
---|---|---|
committer | Philippe LANGLAIS <philippe.langlais@stericsson.com> | 2011-10-13 10:32:12 +0200 |
commit | a09619acbaf96c36ef3b7bdae9837548ee904439 (patch) | |
tree | 55af104d7814bac920faefb898bcca25acf15492 /drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/Makefile.platform | |
parent | 13481e243b8f1933ec84430b6c7ab80517c376f6 (diff) |
mali: Add mali400 kernel module
Add mali400ko from tag SNOWBALL_BSP_111012_2.1.
Signed-off-by: John Fredriksson <john.xj.fredriksson@stericsson.com>
Change-Id: I82d24760247f8a5a5b786fc10187f32d9048f9a9
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33811
Reviewed-by: Philippe LANGLAIS <philippe.langlais@stericsson.com>
Diffstat (limited to 'drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/Makefile.platform')
-rw-r--r-- | drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/Makefile.platform | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/Makefile.platform b/drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/Makefile.platform new file mode 100644 index 00000000000..1f8068e25de --- /dev/null +++ b/drivers/gpu/mali/mali400ko/driver/src/devicedrv/mali/Makefile.platform @@ -0,0 +1,45 @@ +#these are the build options for the ST-Ericsson Ux500 platforms. + +ifeq ($(CONFIG_UX500_SOC_DB5500),y) +TARGET_PLATFORM = default +USING_GPU_UTILIZATION = 0 +DEFINES += -DSOC_DB5500=1 +endif + +CONFIG = ux500 +CPU = $(CONFIG) +TARGET_PLATFORM ?= $(CONFIG) +ARCH ?= arm +USING_MMU ?= 1 +USING_PMM ?= 1 +USING_UMP ?= 1 +USING_HWMEM ?= 1 +USING_OS_MEMORY ?= 1 +USING_GPU_UTILIZATION ?= 1 + +ifeq ($(CONFIG_GPU_MALI_DEBUG),y) +BUILD ?= debug +else +BUILD ?= release +endif + +KDIR-$(CPU)=$(srctree) + +#these are paths relative to the mali400ko/driver/src/devicedrv/mali folder +#not to be confused with the drivers/gpu/mali symlink in the kernel tree +EXTRA_CFLAGS += -I$(realpath $(DRIVER_DIR)/../../../include/ump) +EXTRA_CFLAGS += -I$(realpath $(DRIVER_DIR)/../ump/common) + +#The following is duplicated from the main Makefile to ensure that the 'arch' +#link is created even during an in-kernel build. + +# Validate selected config +ifneq ($(shell [ -d $(DRIVER_DIR)/arch-$(CONFIG) ] && [ -f $(DRIVER_DIR)/arch-$(CONFIG)/config.h ] && echo "OK"), OK) +$(warning Current directory is $(shell pwd)) +$(error No configuration found for config $(CONFIG). Check that $(DRIVER_DIR)/arch-$(CONFIG)/config.h exists) +else +# Link arch to the selected arch-config directory +$(shell [ -L $(DRIVER_DIR)/arch ] && rm $(DRIVER_DIR)/arch) +$(shell ln -sf $(DRIVER_DIR)/arch-$(CONFIG) $(DRIVER_DIR)/arch) +$(shell touch $(DRIVER_DIR)/arch/config.h) +endif |