From patchwork Fri Nov 13 05:43:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 56488 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp836367lbb; Thu, 12 Nov 2015 21:45:45 -0800 (PST) X-Received: by 10.194.249.97 with SMTP id yt1mr19268381wjc.89.1447393545036; Thu, 12 Nov 2015 21:45:45 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id mc1si23479330wjb.112.2015.11.12.21.45.44; Thu, 12 Nov 2015 21:45:45 -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 05EEA4BA52; Fri, 13 Nov 2015 06:44:59 +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 Ebi0bz8Jvzk0; Fri, 13 Nov 2015 06:44:58 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3F74C4B9E6; Fri, 13 Nov 2015 06:44:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CE6004BA0B for ; Fri, 13 Nov 2015 06:44:16 +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 ExrkJGNsGZy7 for ; Fri, 13 Nov 2015 06:44:16 +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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 35EC74BA0C for ; Fri, 13 Nov 2015 06:44:06 +0100 (CET) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id tAD5hrSO004636; Thu, 12 Nov 2015 23:43:53 -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 tAD5hrPG030690; Thu, 12 Nov 2015 23:43:53 -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:53 -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 tAD5hpIE029131; Thu, 12 Nov 2015 23:43:52 -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:36 -0600 Message-ID: <1447393422-4169-7-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, Holger Brunck , Valentin Longchamp Subject: [U-Boot] [PATCH V2 06/12] board: keymile: 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/keymile 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: Valentin Longchamp Cc: Holger Brunck Signed-off-by: Nishanth Menon --- board/keymile/common/common.c | 2 +- board/keymile/common/{ => include/board-common}/common.h | 0 board/keymile/common/ivm.c | 2 +- board/keymile/km82xx/km82xx.c | 2 +- board/keymile/km83xx/km83xx.c | 2 +- board/keymile/km83xx/km83xx_i2c.c | 2 +- board/keymile/km_arm/km_arm.c | 2 +- board/keymile/kmp204x/kmp204x.c | 2 +- board/keymile/kmp204x/qrio.c | 2 +- 9 files changed, 8 insertions(+), 8 deletions(-) rename board/keymile/common/{ => include/board-common}/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/keymile/common/common.c b/board/keymile/common/common.c index b9aff1a84dcb..4f8b68ee5ccd 100644 --- a/board/keymile/common/common.c +++ b/board/keymile/common/common.c @@ -21,7 +21,7 @@ #if defined(CONFIG_POST) #include "post.h" #endif -#include "common.h" +#include #include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/keymile/common/common.h b/board/keymile/common/include/board-common/common.h similarity index 100% rename from board/keymile/common/common.h rename to board/keymile/common/include/board-common/common.h diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c index 42db54221bb3..4d2963ad5f84 100644 --- a/board/keymile/common/ivm.c +++ b/board/keymile/common/ivm.c @@ -8,7 +8,7 @@ #include #include #include -#include "common.h" +#include #define MAC_STR_SZ 20 diff --git a/board/keymile/km82xx/km82xx.c b/board/keymile/km82xx/km82xx.c index c599b4093626..73d22dc6ac19 100644 --- a/board/keymile/km82xx/km82xx.c +++ b/board/keymile/km82xx/km82xx.c @@ -16,7 +16,7 @@ #endif #include -#include "../common/common.h" +#include static uchar ivm_content[CONFIG_SYS_IVM_EEPROM_MAX_LEN]; diff --git a/board/keymile/km83xx/km83xx.c b/board/keymile/km83xx/km83xx.c index 89e9e1e57c38..83deca56aebc 100644 --- a/board/keymile/km83xx/km83xx.c +++ b/board/keymile/km83xx/km83xx.c @@ -26,7 +26,7 @@ #include #include -#include "../common/common.h" +#include static uchar ivm_content[CONFIG_SYS_IVM_EEPROM_MAX_LEN]; diff --git a/board/keymile/km83xx/km83xx_i2c.c b/board/keymile/km83xx/km83xx_i2c.c index c961937530ac..e702a5cf86e2 100644 --- a/board/keymile/km83xx/km83xx_i2c.c +++ b/board/keymile/km83xx/km83xx_i2c.c @@ -9,7 +9,7 @@ #include #include #include -#include "../common/common.h" +#include static void i2c_write_start_seq(void) { diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c index 2938861f368f..82fa31c2208d 100644 --- a/board/keymile/km_arm/km_arm.c +++ b/board/keymile/km_arm/km_arm.c @@ -23,7 +23,7 @@ #include #include -#include "../common/common.h" +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/keymile/kmp204x/kmp204x.c b/board/keymile/kmp204x/kmp204x.c index eebb47fc21f1..fbe6d98af6ce 100644 --- a/board/keymile/kmp204x/kmp204x.c +++ b/board/keymile/kmp204x/kmp204x.c @@ -21,7 +21,7 @@ #include #include -#include "../common/common.h" +#include #include "kmp204x.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/board/keymile/kmp204x/qrio.c b/board/keymile/kmp204x/qrio.c index edf3bf11a894..a4c25e084846 100644 --- a/board/keymile/kmp204x/qrio.c +++ b/board/keymile/kmp204x/qrio.c @@ -7,7 +7,7 @@ #include -#include "../common/common.h" +#include #include "kmp204x.h" /* QRIO GPIO register offsets */