From patchwork Sun Sep 7 21:29:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 4859331 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 75920C0338 for ; Sun, 7 Sep 2014 21:31:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 241DF20120 for ; Sun, 7 Sep 2014 21:31:30 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id C016D20127 for ; Sun, 7 Sep 2014 21:31:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A3EBD6E10F; Sun, 7 Sep 2014 14:31:26 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by gabe.freedesktop.org (Postfix) with ESMTP id 4ADA36E0F3 for ; Sun, 7 Sep 2014 14:31:25 -0700 (PDT) Received: by mail-wi0-f178.google.com with SMTP id n3so1555821wiv.17 for ; Sun, 07 Sep 2014 14:31:24 -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=TE4MWS6ehUMGeAyXafpT1VZxF3G7BD00ekFy7GTCbKc=; b=oMNgbIA330yJ1mA1xPWXLlpFgM9qOxzADehsXL0DpSJhY52/Z2cSYSVEI2r1WbroH6 I3lhYLq8uTVEjZf0A8jX24t/hozTboFdtxmRMyb29t+bkO+09KVevtgWjhzrazPwu/Z9 3posSSrU5vMdnBglblBvulI3p4FZoam1jLcOEeefy85t3QvgTzQKtI4eNrxAvQFuxLF1 rKN5lhcAhLDnUcGfk9CiP+OG7ft9o28vM9lv98vdbwze1IjQAiCHGctVtc9GQOg7d2qs aoPIbH8W6/K/Vph8wIl3E7whs10L8yxBN7sTq4L2xoAejCHYEauAWRIPK/v8HmTQYsoh o2ag== X-Received: by 10.180.211.4 with SMTP id my4mr9678105wic.30.1410125483958; Sun, 07 Sep 2014 14:31:23 -0700 (PDT) Received: from localhost.localdomain (cpc20-stap10-2-0-cust563.12-2.cable.virginm.net. [82.20.130.52]) by mx.google.com with ESMTPSA id ub19sm9644662wib.9.2014.09.07.14.31.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 07 Sep 2014 14:31:23 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 01/18] automake: remove obsolete makefiles Date: Sun, 7 Sep 2014 22:29:56 +0100 Message-Id: <1410125413-19465-2-git-send-email-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.0.2 In-Reply-To: <1410125413-19465-1-git-send-email-emil.l.velikov@gmail.com> References: <1410125413-19465-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.15 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=-5.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Rather than having two extra makefiles in order to ship ~10 headers just fold its 5 lines of code into the top one makefile. Signed-off-by: Emil Velikov --- Android.mk | 8 +++----- Makefile.am | 10 +++++++++- Makefile.sources | 19 +++++++++++++++++++ configure.ac | 2 -- include/Makefile.am | 1 - include/drm/Makefile.am | 32 -------------------------------- include/drm/Makefile.sources | 18 ------------------ 7 files changed, 31 insertions(+), 59 deletions(-) delete mode 100644 include/Makefile.am delete mode 100644 include/drm/Makefile.am delete mode 100644 include/drm/Makefile.sources diff --git a/Android.mk b/Android.mk index bb49b0b..97a7d75 100644 --- a/Android.mk +++ b/Android.mk @@ -26,10 +26,8 @@ include $(CLEAR_VARS) LIBDRM_TOP := $(LOCAL_PATH) -# Import variables LIBDRM_FILES, LIBDRM_H_FILES +# Import variables LIBDRM_{,H_,INCLUDE_H_,INCLUDE_VMWGFX_H_}FILES include $(LOCAL_PATH)/Makefile.sources -# Import variables LIBDRM_INCLUDE_H_FILES, LIBDRM_INCLUDE_VMWGFX_H_FILES -include $(LOCAL_PATH)/include/drm/Makefile.sources LOCAL_MODULE := libdrm LOCAL_MODULE_TAGS := optional @@ -47,8 +45,8 @@ LOCAL_CFLAGS := \ LOCAL_COPY_HEADERS := \ $(LIBDRM_H_FILES) \ - $(addprefix include/drm/,$(LIBDRM_INCLUDE_H_FILES)) \ - $(addprefix include/drm/,$(LIBDRM_INCLUDE_VMWGFX_H_FILES)) + $(LIBDRM_INCLUDE_H_FILES) \ + $(LIBDRM_INCLUDE_VMWGFX_H_FILES) LOCAL_COPY_HEADERS_TO := libdrm include $(BUILD_SHARED_LIBRARY) diff --git a/Makefile.am b/Makefile.am index fab2a9a..083861f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -53,7 +53,7 @@ if HAVE_FREEDRENO FREEDRENO_SUBDIR = freedreno endif -SUBDIRS = . $(LIBKMS_SUBDIR) $(INTEL_SUBDIR) $(NOUVEAU_SUBDIR) $(RADEON_SUBDIR) $(OMAP_SUBDIR) $(EXYNOS_SUBDIR) $(FREEDRENO_SUBDIR) tests include man +SUBDIRS = . $(LIBKMS_SUBDIR) $(INTEL_SUBDIR) $(NOUVEAU_SUBDIR) $(RADEON_SUBDIR) $(OMAP_SUBDIR) $(EXYNOS_SUBDIR) $(FREEDRENO_SUBDIR) tests man libdrm_la_LTLIBRARIES = libdrm.la libdrm_ladir = $(libdir) @@ -71,6 +71,14 @@ libdrminclude_HEADERS = $(LIBDRM_H_FILES) EXTRA_DIST = libdrm.pc.in include/drm/* +klibdrmincludedir = ${includedir}/libdrm +klibdrminclude_HEADERS = $(LIBDRM_INCLUDE_H_FILES) + +if HAVE_VMWGFX +klibdrminclude_HEADERS += $(LIBDRM_INCLUDE_VMWGFX_H_FILES) +endif + + copy-headers : cp -r $(kernel_source)/usr/include/drm $(top_srcdir)/include diff --git a/Makefile.sources b/Makefile.sources index d078ca9..d86fb2a 100644 --- a/Makefile.sources +++ b/Makefile.sources @@ -11,3 +11,22 @@ LIBDRM_FILES := \ LIBDRM_H_FILES := \ xf86drm.h \ xf86drmMode.h + +LIBDRM_INCLUDE_H_FILES := \ + include/drm/drm.h \ + include/drm/drm_fourcc.h \ + include/drm/drm_mode.h \ + include/drm/drm_sarea.h \ + include/drm/i915_drm.h \ + include/drm/mach64_drm.h \ + include/drm/mga_drm.h \ + include/drm/nouveau_drm.h \ + include/drm/qxl_drm.h \ + include/drm/r128_drm.h \ + include/drm/radeon_drm.h \ + include/drm/savage_drm.h \ + include/drm/sis_drm.h \ + include/drm/via_drm.h + +LIBDRM_INCLUDE_VMWGFX_H_FILES := \ + include/drm/vmwgfx_drm.h diff --git a/configure.ac b/configure.ac index bb0559a..16625a5 100644 --- a/configure.ac +++ b/configure.ac @@ -410,8 +410,6 @@ AC_CONFIG_FILES([ tests/radeon/Makefile tests/vbltest/Makefile tests/exynos/Makefile - include/Makefile - include/drm/Makefile man/Makefile libdrm.pc]) AC_OUTPUT diff --git a/include/Makefile.am b/include/Makefile.am deleted file mode 100644 index 55ea506..0000000 --- a/include/Makefile.am +++ /dev/null @@ -1 +0,0 @@ -SUBDIRS = drm diff --git a/include/drm/Makefile.am b/include/drm/Makefile.am deleted file mode 100644 index 7a246ae..0000000 --- a/include/drm/Makefile.am +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 2005 Adam Jackson. -# -# Permission is hereby granted, free of charge, to any person obtaining a -# copy of this software and associated documentation files (the "Software"), -# to deal in the Software without restriction, including without limitation -# on the rights to use, copy, modify, merge, publish, distribute, sub -# license, and/or sell copies of the Software, and to permit persons to whom -# the Software is furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice (including the next -# paragraph) shall be included in all copies or substantial portions of the -# Software. -# -# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL -# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -# XXX airlied says, nothing besides *_drm.h and drm*.h should be necessary. -# however, r300 and via need their reg headers installed in order to build. -# better solutions are welcome. - -include Makefile.sources - -klibdrmincludedir = ${includedir}/libdrm -klibdrminclude_HEADERS = $(LIBDRM_INCLUDE_H_FILES) - -if HAVE_VMWGFX -klibdrminclude_HEADERS += $(LIBDRM_INCLUDE_VMWGFX_H_FILES) -endif diff --git a/include/drm/Makefile.sources b/include/drm/Makefile.sources deleted file mode 100644 index 8e1b585..0000000 --- a/include/drm/Makefile.sources +++ /dev/null @@ -1,18 +0,0 @@ -LIBDRM_INCLUDE_H_FILES := \ - drm.h \ - drm_mode.h \ - drm_fourcc.h \ - drm_sarea.h \ - i915_drm.h \ - mga_drm.h \ - nouveau_drm.h \ - r128_drm.h \ - radeon_drm.h \ - savage_drm.h \ - sis_drm.h \ - via_drm.h \ - mach64_drm.h \ - qxl_drm.h - -LIBDRM_INCLUDE_VMWGFX_H_FILES := \ - vmwgfx_drm.h