Skip to content

Commit

Permalink
gpu: mali: remove $(PWD) usage to fix -C support
Browse files Browse the repository at this point in the history
closes #90
  • Loading branch information
amery committed Nov 8, 2012
1 parent 52f2a84 commit 9e1f1ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions drivers/gpu/mali/mali/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ DRIVER_DIR=$(src)
# The ARM proprietary product will only include the license/proprietary directory
# The GPL product will only include the license/gpl directory

ifeq ($(wildcard $(PWD)/$(DRIVER_DIR)/linux/license/gpl/*),)
ccflags-y += -I$(PWD)/$(DRIVER_DIR)/linux/license/proprietary
ifeq ($(wildcard $(DRIVER_DIR)/linux/license/gpl/*),)
ccflags-y += -I$(DRIVER_DIR)/linux/license/proprietary
# Disable profiling for proprietary
override USING_PROFILING := 0
$(warning "USING_PROFILING not supported, disabling.")
else
ccflags-y += -I$(PWD)/$(DRIVER_DIR)/linux/license/gpl
ccflags-y += -I$(DRIVER_DIR)/linux/license/gpl
endif


Expand All @@ -69,7 +69,7 @@ endif
MALI_RELEASE_NAME=$(shell cat $(DRIVER_DIR)/.version 2> /dev/null)

# Check if a Mali Core sub module should be enabled, true or false returned
submodule_enabled = $(shell gcc $(DEFINES) -E $(PWD)/$(DRIVER_DIR)/arch/config.h | grep type | grep -c $(2))
submodule_enabled = $(shell gcc $(DEFINES) -E $(DRIVER_DIR)/arch/config.h | grep type | grep -c $(2))

OSKFILES = \
$(OSKOS)/mali_osk_atomics.c \
Expand Down Expand Up @@ -245,7 +245,7 @@ obj-$(CONFIG_MALI400) := mali.o
VERSION_STRINGS :=
VERSION_STRINGS += CONFIG=$(CONFIG)
VERSION_STRINGS += USING_OS_MEMORY=$(USING_OS_MEMORY)
VERSION_STRINGS += API_VERSION=$(shell cd $(DRIVER_DIR); grep "\#define _MALI_API_VERSION" $(PWD)/$(DRIVER_DIR)/include/linux/mali/mali_utgard_uk_types.h | cut -d' ' -f 3 )
VERSION_STRINGS += API_VERSION=$(shell cd $(DRIVER_DIR); grep "\#define _MALI_API_VERSION" include/linux/mali/mali_utgard_uk_types.h | cut -d' ' -f 3 )
VERSION_STRINGS += REPO_URL=$(shell cd $(DRIVER_DIR); (svn info || git svn info || echo 'URL: $(MALI_RELEASE_NAME)') 2>/dev/null | grep '^URL: ' | cut -d: -f2- | cut -b2-)
VERSION_STRINGS += REVISION=$(SVN_REV)
VERSION_STRINGS += CHANGED_REVISION=$(shell cd $(DRIVER_DIR); (svn info || git svn info || echo 'Last Changed Rev: $(MALI_RELEASE_NAME)') 2>/dev/null | grep '^Last Changed Rev: ' | cut -d: -f2- | cut -b2-)
Expand Down
6 changes: 3 additions & 3 deletions drivers/gpu/mali/ump/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ ccflags-$(CONFIG_UMP_DEBUG) += -DDEBUG
# The ARM proprietary product will only include the license/proprietary directory
# The GPL product will only include the license/gpl directory

ifeq ($(wildcard $(PWD)/$(src)/linux/license/gpl/*),)
ccflags-y += -I$(PWD)/$(src)/linux/license/proprietary
ifeq ($(wildcard $(src)/linux/license/gpl/*),)
ccflags-y += -I$(src)/linux/license/proprietary
else
ccflags-y += -I$(PWD)/$(src)/linux/license/gpl
ccflags-y += -I$(src)/linux/license/gpl
endif

ump-y = common/ump_kernel_common.o \
Expand Down

0 comments on commit 9e1f1ed

Please sign in to comment.