From patchwork Tue Mar 17 00:19:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 6026691 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A2C7E9F399 for ; Tue, 17 Mar 2015 00:16:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E4D3C20461 for ; Tue, 17 Mar 2015 00:16:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 7B79A20458 for ; Tue, 17 Mar 2015 00:16:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2067F6E61E; Mon, 16 Mar 2015 17:16:23 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by gabe.freedesktop.org (Postfix) with ESMTP id E292E6E61D for ; Mon, 16 Mar 2015 17:16:21 -0700 (PDT) Received: by wggv3 with SMTP id v3so52766866wgg.1 for ; Mon, 16 Mar 2015 17:16:21 -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:in-reply-to:references; bh=h9J/Hhn/q1ihUNJo93tPjPrBnXZ5Dj29YOVMw+ByTMU=; b=nnPVxgD5IFCZkm3wEvSu+O+tsSqXp1pDQTrS9PIo9KEOewS7RCIjgxOqXtB6VZKU5K u7T2Dr6GSmJrbBMagEBDhbpPcKluDy3BClGdEcIyyzxuSBBvroRwX65vgfEqKllw+I9c ldEH4XTE1PMWgOMy69HXKbatEZInEolf1Yew7uLg9pQPNUXQg9BpnQazciX+nDhootkF klPdRuLMtHXqQNpTJpKG3XTTKgdHHiuPPc/S/LAXOXH1NOKcilVcnZYuBQvp6HVkrOgg TA96VkfugFijDP+eTBOJm+b827PvrZm2O2ClCP/GHMPZp425wvhontJ3V0S03o8kGXn8 bAcg== X-Received: by 10.194.201.2 with SMTP id jw2mr91888077wjc.158.1426551381280; Mon, 16 Mar 2015 17:16:21 -0700 (PDT) Received: from arch-x220.localdomain (cpc12-croy20-2-0-cust52.croy.cable.virginm.net. [82.44.54.53]) by mx.google.com with ESMTPSA id u16sm17581816wjr.5.2015.03.16.17.16.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Mar 2015 17:16:20 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 3/3] configure.ac: error out if building freedreno_kgsl without freedreno Date: Tue, 17 Mar 2015 00:19:27 +0000 Message-Id: <1426551567-30354-3-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1426551567-30354-1-git-send-email-emil.l.velikov@gmail.com> References: <1426551567-30354-1-git-send-email-emil.l.velikov@gmail.com> Cc: emil.l.velikov@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The former is a subset of the latter. Error out early so the user is aware that they are doing something very wrong. Cc: Rob Clark Signed-off-by: Emil Velikov Reviewed-by: Rob Clark --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index fb5e6aa..fcb21df 100644 --- a/configure.ac +++ b/configure.ac @@ -322,6 +322,11 @@ if test "x$FREEDRENO" = xyes; then AC_DEFINE(HAVE_FREEDRENO, 1, [Have freedreno support]) fi +if test "x$FREEDRENO_KGSL" = xyes; then + if test "x$FREEDRENO" != xyes; then + AC_MSG_ERROR([Cannot enable freedreno KGSL interface if freedreno is disabled]) + fi +fi AM_CONDITIONAL(HAVE_FREEDRENO_KGSL, [test "x$FREEDRENO_KGSL" = xyes]) if test "x$FREEDRENO_KGSL" = xyes; then AC_DEFINE(HAVE_FREEDRENO_KGSL, 1, [Have freedreno support for KGSL kernel interface])