From: Daniel Vetter Subject: Re: [PATCH] Android port of intel-gpu-tools Date: Tue, 10 Jan 2012 13:47:52 +0100 Message-ID: <20120110124752.GE3979@phenom.ffwll.local> References: <1326170701-22099-1-git-send-email-sateesh.kavuri@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 205EC9E8B3 for ; Tue, 10 Jan 2012 04:45:48 -0800 (PST) Received: by wibhq15 with SMTP id hq15so4511788wib.36 for ; Tue, 10 Jan 2012 04:45:48 -0800 (PST) Content-Disposition: inline In-Reply-To: <1326170701-22099-1-git-send-email-sateesh.kavuri@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Sateesh Kavuri Cc: intel-gfx@lists.freedesktop.org, xorg-devel@lists.x.org List-Id: intel-gfx@lists.freedesktop.org On Tue, Jan 10, 2012 at 10:15:01AM +0530, Sateesh Kavuri wrote: > Added support for Android. Changes include fixes for compilation issues > related to Android using an older version of GCC compiler (ver 4.3.3) > while the latest version of intel-gpu-tools confirms to GCC ver 4.5.2 > (C99 standard functions), using functions like getline(). Fixed such > functions, header dependencies for android and added an Android.mk file. > > signed-off-by: Sateesh Kavuri A few comments - It looks like you need a completely separate makefile for android. Is there no way to let the automake tools generate that somehow? Because this simply won't scale. - There's too much ANDRIOD #ifdef'ery in the code. Either switch to a construct that works on all platforms or extract things into a little helper functions (like the get_total_ram helper that has recently been ported to Solaris). - You don't seem to touch the testsuite, and I think you want it on Andriod, too. Added xorg-devel to cc, maybe someone else has already tried this with a different package, my buildsystem fu is not up to this. Yours, Daniel -- Daniel Vetter Mail: daniel@ffwll.ch Mobile: +41 (0)79 365 57 48