From patchwork Fri Apr 21 12:31:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 97894 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp302788qgf; Fri, 21 Apr 2017 05:32:30 -0700 (PDT) X-Received: by 10.99.115.6 with SMTP id o6mr12176165pgc.216.1492777950326; Fri, 21 Apr 2017 05:32:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i190si10279857pfc.133.2017.04.21.05.32.30; Fri, 21 Apr 2017 05:32:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1039315AbdDUMcS (ORCPT + 12 others); Fri, 21 Apr 2017 08:32:18 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:65072 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1036820AbdDUMcO (ORCPT ); Fri, 21 Apr 2017 08:32:14 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v3LCVTXc018369; Fri, 21 Apr 2017 07:31:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1492777889; bh=ePKSWvLCGuiwFBTC8MWMX/WVjZOK7An4slMvY/Ye1+M=; h=From:To:CC:Subject:Date; b=HqKmVVscUV0FJ4RUOULHR/crVmFe3EybP030qYnih07LLvZR8VgOn4qjABHR1frpK KTddQQcDcrh6NghN4MgqfJs8pE9Eo33eWB7PkNf+Av0g5NgkqmRbrcQgicmfpOiG3N o2gojY3b5Ye77TUc+X36U5tHMiDS5LZs/cxIDKZQ= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v3LCVT68027987; Fri, 21 Apr 2017 07:31:29 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Fri, 21 Apr 2017 07:31:29 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v3LCVPfG023032; Fri, 21 Apr 2017 07:31:26 -0500 From: Sekhar Nori To: Jonathan Cameron CC: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , , , Sekhar Nori , Randy Dunlap Subject: [PATCH v2] tools/iio: Use include/uapi with __EXPORTED_HEADERS__ Date: Fri, 21 Apr 2017 18:01:25 +0530 Message-ID: <5cfc29b0d8fa6c5bd97e59f7ab0ff718132efdec.1492777014.git.nsekhar@ti.com> X-Mailer: git-send-email 2.9.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the local uapi headers to keep in sync with "recently" added enum values like IIO_UVINDEX. Build tested using: $ make -C tools/iio $ make -C /tools iio $ make -C /tools/iio This follows a strategy similar to that used by tools/hv, tools/net and tools/leds among others. Cc: Randy Dunlap Cc: Jonathan Cameron Signed-off-by: Sekhar Nori --- Change since v1: Shift to a strategy similar to that used by other makefiles in tools/ folder. v1 posting here: https://patchwork.kernel.org/patch/9674937/ tools/iio/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/tools/iio/Makefile b/tools/iio/Makefile index 5446d625e17d..8f08e03a9a5e 100644 --- a/tools/iio/Makefile +++ b/tools/iio/Makefile @@ -1,5 +1,5 @@ CC = $(CROSS_COMPILE)gcc -CFLAGS += -Wall -g -D_GNU_SOURCE +CFLAGS += -Wall -g -D_GNU_SOURCE -D__EXPORTED_HEADERS__ -I../../include/uapi -I../../include BINDIR=usr/bin INSTALL_PROGRAM=install -m 755 -p