From patchwork Fri Nov 13 05:43:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 56482 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp835891lbb; Thu, 12 Nov 2015 21:44:21 -0800 (PST) X-Received: by 10.28.212.70 with SMTP id l67mr1562640wmg.66.1447393461260; Thu, 12 Nov 2015 21:44:21 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id i26si3184837wmc.111.2015.11.12.21.44.21; Thu, 12 Nov 2015 21:44:21 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2068F4BA0D; Fri, 13 Nov 2015 06:44:17 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l0MUtLAWknZE; Fri, 13 Nov 2015 06:44:16 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8E9D34BA11; Fri, 13 Nov 2015 06:44:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 990CD4B9CE for ; Fri, 13 Nov 2015 06:44:00 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m1J43FnQR-lP for ; Fri, 13 Nov 2015 06:44:00 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by theia.denx.de (Postfix) with ESMTPS id 15B0B4B9C7 for ; Fri, 13 Nov 2015 06:43:58 +0100 (CET) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id tAD5hlrO023458; Thu, 12 Nov 2015 23:43:47 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id tAD5hlLG022747; Thu, 12 Nov 2015 23:43:47 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.224.2; Thu, 12 Nov 2015 23:43:48 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id tAD5hkCE016546; Thu, 12 Nov 2015 23:43:47 -0600 From: Nishanth Menon To: Simon Glass , Tom Rini , Masahiro Yamada , Daniel Schwierzeck , Michal Marek , Stefan Roese , Bin Meng Date: Thu, 12 Nov 2015 23:43:32 -0600 Message-ID: <1447393422-4169-3-git-send-email-nm@ti.com> X-Mailer: git-send-email 2.6.2.402.g2635c2b In-Reply-To: <1447393422-4169-1-git-send-email-nm@ti.com> References: <1447393422-4169-1-git-send-email-nm@ti.com> MIME-Version: 1.0 Cc: u-boot@lists.denx.de, Hannes Petermaier , Joe Hershberger Subject: [U-Boot] [PATCH V2 02/12] board: BuR: Move common headers to board-common directory X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Header files can be located in a generic location without needing to reference them with ../common/ Generated with the following script #!/bin/bash vendor=board/BuR common=$vendor/common cfiles=`git grep "../common" $vendor|grep "#include"|cut -d '"' -f2|sort -u|grep c$` headers=`git grep "../common" $vendor|grep "#include"|cut -d '"' -f2|sort -u|grep h$` mkdir -p $common/include/board-common set -x for header in $headers do echo "processing $header in $common" hbase=`basename $header` git mv $common/$hbase $common/include/board-common sed -i -e "s/\"..\/common\/$hbase\"//g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"//g" $vendor/common/*.[chS] done Cc: Joe Hershberger Cc: Simon Glass Cc: Hannes Petermaier Cc: Hannes Schmelzer Signed-off-by: Nishanth Menon --- board/BuR/common/common.c | 2 +- board/BuR/common/{ => include/board-common}/bur_common.h | 0 board/BuR/kwb/board.c | 2 +- board/BuR/tseries/board.c | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename board/BuR/common/{ => include/board-common}/bur_common.h (100%) -- 2.6.2.402.g2635c2b _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c index 441465c005ec..9ef7f3444758 100644 --- a/board/BuR/common/common.c +++ b/board/BuR/common/common.c @@ -31,7 +31,7 @@ #ifdef CONFIG_USE_FDT #include #endif -#include "bur_common.h" +#include #include "../../../drivers/video/am335x-fb.h" #include #include diff --git a/board/BuR/common/bur_common.h b/board/BuR/common/include/board-common/bur_common.h similarity index 100% rename from board/BuR/common/bur_common.h rename to board/BuR/common/include/board-common/bur_common.h diff --git a/board/BuR/kwb/board.c b/board/BuR/kwb/board.c index 039ec207c26d..45b71a1ba811 100644 --- a/board/BuR/kwb/board.c +++ b/board/BuR/kwb/board.c @@ -25,7 +25,7 @@ #include #include #include -#include "../common/bur_common.h" +#include #include /* -------------------------------------------------------------------------*/ diff --git a/board/BuR/tseries/board.c b/board/BuR/tseries/board.c index bc119e69736e..8cd23aed52aa 100644 --- a/board/BuR/tseries/board.c +++ b/board/BuR/tseries/board.c @@ -26,7 +26,7 @@ #include #include #include -#include "../common/bur_common.h" +#include #include #include