From patchwork Fri Nov 13 05:43:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 56489 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp836438lbb; Thu, 12 Nov 2015 21:45:56 -0800 (PST) X-Received: by 10.194.84.42 with SMTP id v10mr20781528wjy.116.1447393556317; Thu, 12 Nov 2015 21:45:56 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id b8si22975470wjx.62.2015.11.12.21.45.56; Thu, 12 Nov 2015 21:45:56 -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 31BAA4BA72; Fri, 13 Nov 2015 06:45:07 +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 T1nXt7U49Md3; Fri, 13 Nov 2015 06:45:07 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 584E94BA7A; Fri, 13 Nov 2015 06:44:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 52D264BA1C for ; 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 eKM3dHk5udG6 for ; Fri, 13 Nov 2015 06:44:17 +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 devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by theia.denx.de (Postfix) with ESMTPS id 92C9B4BA12 for ; Fri, 13 Nov 2015 06:44:08 +0100 (CET) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id tAD5hpuD014421; Thu, 12 Nov 2015 23:43:51 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id tAD5hpBc030644; Thu, 12 Nov 2015 23:43:51 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.224.2; Thu, 12 Nov 2015 23:43:52 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id tAD5hoUI029076; Thu, 12 Nov 2015 23:43:51 -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:35 -0600 Message-ID: <1447393422-4169-6-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, Dirk Eibach Subject: [U-Boot] [PATCH V2 05/12] board: gdsys: 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/gdsys 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: Stefan Roese Cc: Dirk Eibach Signed-off-by: Nishanth Menon --- board/gdsys/405ep/dlvision-10g.c | 2 +- board/gdsys/405ep/iocon.c | 6 +++--- board/gdsys/common/{ => include/board-common}/dp501.h | 0 board/gdsys/common/{ => include/board-common}/mclink.h | 0 board/gdsys/common/{ => include/board-common}/osd.h | 0 board/gdsys/common/{ => include/board-common}/phy.h | 0 board/gdsys/common/osd.c | 2 +- board/gdsys/mpc8308/hrcon.c | 6 +++--- board/gdsys/p1022/controlcenterd.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) rename board/gdsys/common/{ => include/board-common}/dp501.h (100%) rename board/gdsys/common/{ => include/board-common}/mclink.h (100%) rename board/gdsys/common/{ => include/board-common}/osd.h (100%) rename board/gdsys/common/{ => include/board-common}/phy.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/gdsys/405ep/dlvision-10g.c b/board/gdsys/405ep/dlvision-10g.c index 35dfbbc577aa..c8eed0aacd90 100644 --- a/board/gdsys/405ep/dlvision-10g.c +++ b/board/gdsys/405ep/dlvision-10g.c @@ -15,7 +15,7 @@ #include "405ep.h" #include -#include "../common/osd.h" +#include #define LATCH0_BASE (CONFIG_SYS_LATCH_BASE) #define LATCH1_BASE (CONFIG_SYS_LATCH_BASE + 0x100) diff --git a/board/gdsys/405ep/iocon.c b/board/gdsys/405ep/iocon.c index 3a51d864cdb1..04799769b353 100644 --- a/board/gdsys/405ep/iocon.c +++ b/board/gdsys/405ep/iocon.c @@ -15,9 +15,9 @@ #include "405ep.h" #include -#include "../common/osd.h" -#include "../common/mclink.h" -#include "../common/phy.h" +#include +#include +#include #include #include diff --git a/board/gdsys/common/dp501.h b/board/gdsys/common/include/board-common/dp501.h similarity index 100% rename from board/gdsys/common/dp501.h rename to board/gdsys/common/include/board-common/dp501.h diff --git a/board/gdsys/common/mclink.h b/board/gdsys/common/include/board-common/mclink.h similarity index 100% rename from board/gdsys/common/mclink.h rename to board/gdsys/common/include/board-common/mclink.h diff --git a/board/gdsys/common/osd.h b/board/gdsys/common/include/board-common/osd.h similarity index 100% rename from board/gdsys/common/osd.h rename to board/gdsys/common/include/board-common/osd.h diff --git a/board/gdsys/common/phy.h b/board/gdsys/common/include/board-common/phy.h similarity index 100% rename from board/gdsys/common/phy.h rename to board/gdsys/common/include/board-common/phy.h diff --git a/board/gdsys/common/osd.c b/board/gdsys/common/osd.c index 55ecdf10127e..f528a40e0c41 100644 --- a/board/gdsys/common/osd.c +++ b/board/gdsys/common/osd.c @@ -9,7 +9,7 @@ #include #include -#include "dp501.h" +#include #include #define CH7301_I2C_ADDR 0x75 diff --git a/board/gdsys/mpc8308/hrcon.c b/board/gdsys/mpc8308/hrcon.c index e4434b3b6b71..3cbef71d5503 100644 --- a/board/gdsys/mpc8308/hrcon.c +++ b/board/gdsys/mpc8308/hrcon.c @@ -22,9 +22,9 @@ #include -#include "../common/osd.h" -#include "../common/mclink.h" -#include "../common/phy.h" +#include +#include +#include #include #include diff --git a/board/gdsys/p1022/controlcenterd.c b/board/gdsys/p1022/controlcenterd.c index 64d90dd3fde0..2b1d8bafc51f 100644 --- a/board/gdsys/p1022/controlcenterd.c +++ b/board/gdsys/p1022/controlcenterd.c @@ -41,7 +41,7 @@ #include #include #include -#include "../common/dp501.h" +#include #include "controlcenterd-id.h" DECLARE_GLOBAL_DATA_PTR;