Fix LIBDRM_PATH for top android build
PATCH 1/1 Fix LIBDRM_PATH for top android build
From: Joao Santos <[email protected]>
Changed TOP to ANDROID_BUILD_TOP to allow package to be compiled as part of a top build; LIBDRM_PATH changed to PATH_LIBDRM because otherwise it cannot be written to when in a top build (must be getting used in some other makefile).
Issue: VIZ-3495
tests/Android.mk +9 -9
@@ -2,17 +2,17 @@ include $(LOCAL_PATH)/tests/Makefile.sources include $(LOCAL_PATH)/lib/Makefile.sources LIBPCIACCESS_PATH := $(firstword $(wildcard \ - $(TOP)/external/PRIVATE/libpciaccess \ - $(TOP)/hardware/intel/libpciaccess \ - $(TOP)/external/libpciaccess)) + $(ANDROID_BUILD_TOP)/external/PRIVATE/libpciaccess \ + $(ANDROID_BUILD_TOP)/hardware/intel/libpciaccess \ + $(ANDROID_BUILD_TOP)/external/libpciaccess)) ifeq ($(LIBPCIACCESS_PATH),) $(error "Unable to find libpciaccess!") endif -LIBDRM_PATH := $(firstword $(wildcard \ - $(TOP)/external/PRIVATE/drm \ - $(TOP)/external/drm)) -ifeq ($(LIBDRM_PATH),) +PATH_LIBDRM = $(firstword $(wildcard \ + $(ANDROID_BUILD_TOP)/external/PRIVATE/drm \ + $(ANDROID_BUILD_TOP)/external/drm)) +ifeq ($(PATH_LIBDRM),) $(error "Unable to find libdrm!") endif
@@ -66,8 +66,8 @@ define add_test LOCAL_C_INCLUDES += \ $(LOCAL_PATH)/lib \ - $(LIBDRM_PATH)/include/drm \ - $(LIBDRM_PATH)/intel \ + $(PATH_LIBDRM)/include/drm \ + $(PATH_LIBDRM)/intel \ $(LIBPCIACCESS_PATH)/include LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM
Signature · 1 line
1.7.9.5
Hi,
Can one of you guys review that patch from Joao? You're in a quite better place than me to do it.
(Note: you don't have to wait until one garbage collects the patches on the ml, people should find good review candidates if nothing happens for too long).
Thanks,
Signature · 1 line
Damien
Quoted 57 lines · On Thu, Jan 23, 2014 at 06:29:30PM +0000, [email protected] wrote:
From: Joao Santos <[email protected]>
Changed TOP to
ANDROID_BUILD_TOPto allow package to be compiled as part of a top build;LIBDRM_PATHchanged toPATH_LIBDRMbecause otherwise it cannot be written to when in a top build (must be getting used in some other makefile).Issue: VIZ-3495
Signed-off-by Joao Santos <[email protected]>tests/Android.mk +9
-9@@ -2,17 +2,17 @@ include $(LOCAL_PATH)/tests/Makefile.sources include $(LOCAL_PATH)/lib/Makefile.sources LIBPCIACCESS_PATH := $(firstword $(wildcard \ - $(TOP)/external/PRIVATE/libpciaccess \ - $(TOP)/hardware/intel/libpciaccess \ - $(TOP)/external/libpciaccess)) + $(ANDROID_BUILD_TOP)/external/PRIVATE/libpciaccess \ + $(ANDROID_BUILD_TOP)/hardware/intel/libpciaccess \ + $(ANDROID_BUILD_TOP)/external/libpciaccess)) ifeq ($(LIBPCIACCESS_PATH),) $(error "Unable to find libpciaccess!") endif -LIBDRM_PATH := $(firstword $(wildcard \ - $(TOP)/external/PRIVATE/drm \ - $(TOP)/external/drm)) -ifeq ($(LIBDRM_PATH),) +PATH_LIBDRM = $(firstword $(wildcard \ + $(ANDROID_BUILD_TOP)/external/PRIVATE/drm \ + $(ANDROID_BUILD_TOP)/external/drm)) +ifeq ($(PATH_LIBDRM),) $(error "Unable to find libdrm!") endif@@ -66,8 +66,8 @@ define add_test LOCAL_C_INCLUDES += \ $(LOCAL_PATH)/lib \ - $(LIBDRM_PATH)/include/drm \ - $(LIBDRM_PATH)/intel \ + $(PATH_LIBDRM)/include/drm \ + $(PATH_LIBDRM)/intel \ $(LIBPCIACCESS_PATH)/include LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAMSignature · 6 lines
1.7.9.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
(sorry, I forgot about this one)
Quoted 63 lines
-----Original Message-----
From: [email protected] [mailto:intel-gfx- [email protected]] On Behalf Of [email protected]
Sent: Thursday, January 23, 2014 6:30 PM
To: [email protected]
Subject: [Intel-gfx] [PATCH] FixLIBDRM_PATHfor top android buildFrom: Joao Santos <[email protected]>
Changed TOP to
ANDROID_BUILD_TOPto allow package to be compiled as part of a top build;LIBDRM_PATHchanged toPATH_LIBDRMbecause otherwise it cannot be written to when in a top build (must be getting used in some other makefile).Issue: VIZ-3495
Signed-off-by Joao Santos <[email protected]>tests/Android.mk index abccb7f..82b28cd renamed from tests/Android.mk +0
-0100644
tests/Android.mk +9
-10@@ -2,17 +2,17 @@ include $(LOCAL_PATH)/tests/Makefile.sources include $(LOCAL_PATH)/lib/Makefile.sources LIBPCIACCESS_PATH := $(firstword $(wildcard \ - $(TOP)/external/PRIVATE/libpciaccess \ - $(TOP)/hardware/intel/libpciaccess \ - $(TOP)/external/libpciaccess)) + $(ANDROID_BUILD_TOP)/external/PRIVATE/libpciaccess \ + $(ANDROID_BUILD_TOP)/hardware/intel/libpciaccess \ + $(ANDROID_BUILD_TOP)/external/libpciaccess)) ifeq ($(LIBPCIACCESS_PATH),) $(error "Unable to find libpciaccess!") endif -LIBDRM_PATH := $(firstword $(wildcard \ - $(TOP)/external/PRIVATE/drm \ - $(TOP)/external/drm)) -ifeq ($(LIBDRM_PATH),) +PATH_LIBDRM = $(firstword $(wildcard \ + $(ANDROID_BUILD_TOP)/external/PRIVATE/drm \ + $(ANDROID_BUILD_TOP)/external/drm)) +ifeq ($(PATH_LIBDRM),) $(error "Unable to find libdrm!") endif@@ -66,8 +66,8 @@ define add_test LOCAL_C_INCLUDES += \ $(LOCAL_PATH)/lib \ - $(LIBDRM_PATH)/include/drm \ - $(LIBDRM_PATH)/intel \ + $(PATH_LIBDRM)/include/drm \ + $(PATH_LIBDRM)/intel \ $(LIBPCIACCESS_PATH)/include LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM --1.7.9.5
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 36 lines
-----Original Message-----
From: [email protected] [mailto:intel-gfx- [email protected]] On Behalf Of Mateo Lozano, Oscar
Sent: Friday, January 31, 2014 9:03 AM
To: Santos, Joao; [email protected]
Subject: Re: [Intel-gfx] [PATCH] FixLIBDRM_PATHfor top android buildReviewed-by Oscar Mateo <[email protected]>(sorry, I forgot about this one)
Quoted 25 lines
-----Original Message-----
From: [email protected] [mailto:intel-gfx- [email protected]] On Behalf Of [email protected]
Sent: Thursday, January 23, 2014 6:30 PM
To: [email protected]
Subject: [Intel-gfx] [PATCH] FixLIBDRM_PATHfor top android buildFrom: Joao Santos <[email protected]>
Changed TOP to
ANDROID_BUILD_TOPto allow package to be compiled as part of a top build;LIBDRM_PATHchanged toPATH_LIBDRMbecause otherwise it cannot be written to when in a top build (must be getting used in some other makefile).Issue: VIZ-3495
Signed-off-by Joao Santos <[email protected]>tests/Android.mk index renamed from tests/Android.mk +0
-0abccb7f..82b28cd
100644tests/Android.mk +0
-0@@ -2,17 +2,17 @@ include $(LOCAL_PATH)/tests/Makefile.sources include $(LOCAL_PATH)/lib/Makefile.sources
Quoted 9 lines
tests/Android.mk include $(LOCAL_PATH)/tests/Makefile.sources
Quoted 9 lines
tests/Android.mk +3
-3LIBPCIACCESS_PATH := $(firstword $(wildcard \ - $(TOP)/external/PRIVATE/libpciaccess \ - $(TOP)/hardware/intel/libpciaccess \ - $(TOP)/external/libpciaccess)) + $(ANDROID_BUILD_TOP)/external/PRIVATE/libpciaccess \ + $(ANDROID_BUILD_TOP)/hardware/intel/libpciaccess \ + $(ANDROID_BUILD_TOP)/external/libpciaccess)) ifeq ($(LIBPCIACCESS_PATH),) $(error "Unable to find libpciaccess!") endif
The patch is incomplete. If you change these macros in the tests directory then why does it not need to be changed in the tools directory also?
I have a patch that refactors these macros into a third file, I'll send it up for review later once I fix another issue I have in the patch series.
Thanks,
Raf
Quoted 34 lines
Quoted 26 lines
tests/Android.mk +6
-7-LIBDRM_PATH := $(firstword $(wildcard \ - $(TOP)/external/PRIVATE/drm \ - $(TOP)/external/drm)) -ifeq ($(LIBDRM_PATH),) +PATH_LIBDRM = $(firstword $(wildcard \ + $(ANDROID_BUILD_TOP)/external/PRIVATE/drm \ + $(ANDROID_BUILD_TOP)/external/drm)) +ifeq ($(PATH_LIBDRM),) $(error "Unable to find libdrm!") endif@@ -66,8 +66,8 @@ define add_test LOCAL_C_INCLUDES += \ $(LOCAL_PATH)/lib \ - $(LIBDRM_PATH)/include/drm \ - $(LIBDRM_PATH)/intel \ + $(PATH_LIBDRM)/include/drm \ + $(PATH_LIBDRM)/intel \ $(LIBPCIACCESS_PATH)/include LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM --1.7.9.5
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · Rafael
The patch is incomplete. If you change these macros in the tests directory then why does it not need to be changed in the tools directory also?
I have a patch that refactors these macros into a third file, I'll send it up for review later once I fix another issue I have in the patch series.
Holding the horses then!
Signature · 1 line
Damien
Sorry for late reply, I still have trouble keeping track my patches with this email-patching-way-of-doing-things.
Yes, that is correct, the tools should also benefit from the same fix.
Joao
-----Original Message-----
From: Lespiau, Damien
Sent: Friday, January 31, 2014 10:20 AM
To: Barbalho, Rafael
Cc: Mateo Lozano, Oscar; Santos, Joao; [email protected]
Subject: Re: [Intel-gfx] [PATCH] Fix LIBDRM_PATH for top android build
Quoted 7 lines · Rafael
The patch is incomplete. If you change these macros in the tests directory then why does it not need to be changed in the tools directory also?
I have a patch that refactors these macros into a third file, I'll send it up for review later once I fix another issue I have in the patch series.
Holding the horses then!
--
Damien