From patchwork Fri Nov 13 05:43:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 56491 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp836569lbb; Thu, 12 Nov 2015 21:46:22 -0800 (PST) X-Received: by 10.194.205.162 with SMTP id lh2mr19664870wjc.61.1447393581900; Thu, 12 Nov 2015 21:46:21 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id z9si3273547wmz.7.2015.11.12.21.46.20; Thu, 12 Nov 2015 21:46: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 B751B4BA22; Fri, 13 Nov 2015 06:45:36 +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 iTrJU_Uufv_y; Fri, 13 Nov 2015 06:45:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C31844BA0C; Fri, 13 Nov 2015 06:45:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DA3624BA22 for ; Fri, 13 Nov 2015 06:45:30 +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 7A2duCBP2TLx for ; Fri, 13 Nov 2015 06:45:30 +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 comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by theia.denx.de (Postfix) with ESMTPS id 10F594B9F9 for ; Fri, 13 Nov 2015 06:45:26 +0100 (CET) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id tAD5hmh6000848; Thu, 12 Nov 2015 23:43:48 -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 tAD5hmqe022831; Thu, 12 Nov 2015 23:43:48 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.224.2; Thu, 12 Nov 2015 23:43:49 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id tAD5hlCo024601; Thu, 12 Nov 2015 23:43:48 -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:33 -0600 Message-ID: <1447393422-4169-4-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 Subject: [U-Boot] [PATCH V2 03/12] board: compulab: 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/compulab 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: Dmitry Lifshitz Cc: Igor Grinberg Cc: Nikita Kiryanov Signed-off-by: Nishanth Menon --- board/compulab/cm_fx6/cm_fx6.c | 4 ++-- board/compulab/cm_t335/cm_t335.c | 2 +- board/compulab/cm_t35/cm_t35.c | 4 ++-- board/compulab/cm_t3517/cm_t3517.c | 4 ++-- board/compulab/cm_t54/cm_t54.c | 2 +- board/compulab/common/common.c | 4 ++-- board/compulab/common/eeprom.c | 2 +- board/compulab/common/{ => include/board-common}/common.h | 0 board/compulab/common/{ => include/board-common}/eeprom.h | 0 board/compulab/common/omap3_smc911x.c | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) rename board/compulab/common/{ => include/board-common}/common.h (100%) rename board/compulab/common/{ => include/board-common}/eeprom.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/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c index 01871e100af3..ef50ce948f61 100644 --- a/board/compulab/cm_fx6/cm_fx6.c +++ b/board/compulab/cm_fx6/cm_fx6.c @@ -29,8 +29,8 @@ #include #include #include "common.h" -#include "../common/eeprom.h" -#include "../common/common.h" +#include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/compulab/cm_t335/cm_t335.c b/board/compulab/cm_t335/cm_t335.c index 428aee6d242f..b3d62472cdf2 100644 --- a/board/compulab/cm_t335/cm_t335.c +++ b/board/compulab/cm_t335/cm_t335.c @@ -18,7 +18,7 @@ #include #include -#include "../common/eeprom.h" +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/compulab/cm_t35/cm_t35.c b/board/compulab/cm_t35/cm_t35.c index ccefc40eb013..45452acf0323 100644 --- a/board/compulab/cm_t35/cm_t35.c +++ b/board/compulab/cm_t35/cm_t35.c @@ -33,8 +33,8 @@ #include #include -#include "../common/common.h" -#include "../common/eeprom.h" +#include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/compulab/cm_t3517/cm_t3517.c b/board/compulab/cm_t3517/cm_t3517.c index d1c74db0ade4..476cfdbbc1f6 100644 --- a/board/compulab/cm_t3517/cm_t3517.c +++ b/board/compulab/cm_t3517/cm_t3517.c @@ -24,8 +24,8 @@ #include #include -#include "../common/common.h" -#include "../common/eeprom.h" +#include +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/compulab/cm_t54/cm_t54.c b/board/compulab/cm_t54/cm_t54.c index 6d3b18ac1896..eefd813f7bae 100644 --- a/board/compulab/cm_t54/cm_t54.c +++ b/board/compulab/cm_t54/cm_t54.c @@ -22,7 +22,7 @@ #include #include -#include "../common/eeprom.h" +#include #define DIE_ID_REG_BASE (OMAP54XX_L4_CORE_BASE + 0x2000) #define DIE_ID_REG_OFFSET 0x200 diff --git a/board/compulab/common/common.c b/board/compulab/common/common.c index b25d9a20b403..7b64e40304c0 100644 --- a/board/compulab/common/common.c +++ b/board/compulab/common/common.c @@ -10,8 +10,8 @@ #include #include -#include "common.h" -#include "eeprom.h" +#include +#include void cl_print_pcb_info(void) { diff --git a/board/compulab/common/eeprom.c b/board/compulab/common/eeprom.c index 630446820cc5..30aaf74d422f 100644 --- a/board/compulab/common/eeprom.c +++ b/board/compulab/common/eeprom.c @@ -9,7 +9,7 @@ #include #include -#include "eeprom.h" +#include #ifndef CONFIG_SYS_I2C_EEPROM_ADDR # define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 diff --git a/board/compulab/common/common.h b/board/compulab/common/include/board-common/common.h similarity index 100% rename from board/compulab/common/common.h rename to board/compulab/common/include/board-common/common.h diff --git a/board/compulab/common/eeprom.h b/board/compulab/common/include/board-common/eeprom.h similarity index 100% rename from board/compulab/common/eeprom.h rename to board/compulab/common/include/board-common/eeprom.h diff --git a/board/compulab/common/omap3_smc911x.c b/board/compulab/common/omap3_smc911x.c index 45616619877a..46564632db15 100644 --- a/board/compulab/common/omap3_smc911x.c +++ b/board/compulab/common/omap3_smc911x.c @@ -16,7 +16,7 @@ #include #include -#include "common.h" +#include static u32 cl_omap3_smc911x_gpmc_net_config[GPMC_MAX_REG] = { NET_GPMC_CONFIG1,