From patchwork Mon May 21 12:37:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gianluca Gennari X-Patchwork-Id: 11360 Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from ) id 1SWRrY-0004Bf-GR for patchwork@linuxtv.org; Mon, 21 May 2012 14:37:24 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-3) with esmtp for id 1SWRrY-00061b-Cu; Mon, 21 May 2012 14:37:24 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755084Ab2EUMhT (ORCPT ); Mon, 21 May 2012 08:37:19 -0400 Received: from mail-we0-f174.google.com ([74.125.82.174]:48529 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754943Ab2EUMhS (ORCPT ); Mon, 21 May 2012 08:37:18 -0400 Received: by weyu7 with SMTP id u7so3153001wey.19 for ; Mon, 21 May 2012 05:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=9gVHmvahqWBIVOoa/OOqRfm8qyZ7xjx92JQ3B2vemI0=; b=EJYGskXNPmgX0SFArkGqmfecxh9hGJZNR+dsHEv7FOgjlk7DOwrVUVuYZduzvf5/2W 1vzNfVTTi8x7T393FFI2QaWUqsQtwq4o/FpQjaA6jy2RWio9Wzor0bkYDiACBo3tx9ZB F0suM06LpxxE6ZA9a2c27HKhCPxbsjgQh9xG/HvRVku9fPKAReO+SAkv60IoqyiLEiY2 ktA4E99wFuiBb0S8f6sKj8UUf3OgVy80AZb3+y+5T5fCTeYpuV0dSbh3k7Ptu0nbwhTv Ag4D/EyjDiBgTpOxD2aTJlJk2ipOWeygPnY3c7B8rJ8hwcI+KWZK9lVX9bljaACz9p78 WJ2Q== Received: by 10.180.93.196 with SMTP id cw4mr7236630wib.11.1337603837422; Mon, 21 May 2012 05:37:17 -0700 (PDT) Received: from localhost.localdomain (93-50-34-119.ip150.fastwebnet.it. [93.50.34.119]) by mx.google.com with ESMTPS id ez4sm25458544wid.3.2012.05.21.05.37.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 May 2012 05:37:16 -0700 (PDT) From: Gianluca Gennari To: linux-media@vger.kernel.org, mchehab@redhat.com, hans.verkuil@cisco.com Cc: Gianluca Gennari Subject: [PATCH] media_build: disable VIDEO_SMIAPP_PLL, VIDEO_MT9M032 and VIDEO_MT9P031 on old kernels Date: Mon, 21 May 2012 14:37:07 +0200 Message-Id: <1337603827-22392-1-git-send-email-gennarone@gmail.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.5.21.122416 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' FORGED_FROM_GMAIL 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1600_1699 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __PHISH_SPEAR_STRUCTURE_1 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS ' VIDEO_SMIAPP_PLL can't build on vanilla kernels older than 2.6.34 as it requires linux/lcm.h; this is not a problem with the Ubuntu 10.04 2.6.32 kernel as it includes the new lcm.* lib/header files, so the issue was not detected before. This fixes the error: media_build/v4l/smiapp-pll.c:26:23: fatal error: linux/lcm.h: No such file or directory Also, this patch explicitly disables the MT9M032 and MT9P031 drivers that depends on APTINA_PLL; this drivers try to autoselect the APTINA_PLL dependency and so they are not enabled by default on old kernels (where this driver is already blacklisted) but are still manually selectable by the user through 'make menuconfig' or 'make xconfig', breaking compilation. So it's better to explicitly blacklist this drivers too. Signed-off-by: Gianluca Gennari