From patchwork Fri Nov 13 05:43:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 56486 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp836213lbb; Thu, 12 Nov 2015 21:45:18 -0800 (PST) X-Received: by 10.28.6.142 with SMTP id 136mr1556774wmg.9.1447393517959; Thu, 12 Nov 2015 21:45:17 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id g145si3262646wmg.29.2015.11.12.21.45.17; Thu, 12 Nov 2015 21:45:17 -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 67F964BA8B; Fri, 13 Nov 2015 06:44:44 +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 B8qg1nkEHPLG; Fri, 13 Nov 2015 06:44:44 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9B8414BA55; Fri, 13 Nov 2015 06:44:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AD9C34B9CE for ; Fri, 13 Nov 2015 06:44:10 +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 M--Jr9a8XMqS for ; Fri, 13 Nov 2015 06:44:10 +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 266274BA09 for ; Fri, 13 Nov 2015 06:44:02 +0100 (CET) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id tAD5hvm9014430; Thu, 12 Nov 2015 23:43:57 -0600 Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id tAD5hvc9023216; Thu, 12 Nov 2015 23:43:57 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.224.2; Thu, 12 Nov 2015 23:43:57 -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 tAD5hu1W016877; Thu, 12 Nov 2015 23:43:56 -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:40 -0600 Message-ID: <1447393422-4169-11-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: Joe Hershberger , Samuel Egli , Roger Meier , u-boot@lists.denx.de Subject: [U-Boot] [PATCH V2 10/12] board: siemens: 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/siemens 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: Paul Kocialkowski Cc: Joe Hershberger Cc: Simon Glass Cc: Samuel Egli Cc: Heiko Schocher Cc: Roger Meier Signed-off-by: Nishanth Menon --- board/siemens/common/board.c | 2 +- board/siemens/common/factoryset.c | 2 +- board/siemens/common/{ => include/board-common}/factoryset.h | 0 board/siemens/draco/board.c | 2 +- board/siemens/pxm2/board.c | 2 +- board/siemens/rut/board.c | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename board/siemens/common/{ => include/board-common}/factoryset.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/siemens/common/board.c b/board/siemens/common/board.c index c127f6ca271d..00f4e355720a 100644 --- a/board/siemens/common/board.c +++ b/board/siemens/common/board.c @@ -28,7 +28,7 @@ #include #include #include -#include "../common/factoryset.h" +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/siemens/common/factoryset.c b/board/siemens/common/factoryset.c index 6c869ed2b035..827e2a17eb8f 100644 --- a/board/siemens/common/factoryset.c +++ b/board/siemens/common/factoryset.c @@ -17,7 +17,7 @@ #include #include #include -#include "factoryset.h" +#include #define EEPR_PG_SZ 0x80 #define EEPROM_FATORYSET_OFFSET 0x400 diff --git a/board/siemens/common/factoryset.h b/board/siemens/common/include/board-common/factoryset.h similarity index 100% rename from board/siemens/common/factoryset.h rename to board/siemens/common/include/board-common/factoryset.h diff --git a/board/siemens/draco/board.c b/board/siemens/draco/board.c index 48823141daa3..05b10a93a342 100644 --- a/board/siemens/draco/board.c +++ b/board/siemens/draco/board.c @@ -32,7 +32,7 @@ #include #include #include "board.h" -#include "../common/factoryset.h" +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/siemens/pxm2/board.c b/board/siemens/pxm2/board.c index 750f33889742..9998a3f52bf4 100644 --- a/board/siemens/pxm2/board.c +++ b/board/siemens/pxm2/board.c @@ -33,7 +33,7 @@ #include #include #include "board.h" -#include "../common/factoryset.h" +#include #include "pmic.h" #include #include diff --git a/board/siemens/rut/board.c b/board/siemens/rut/board.c index f94e3e5736f3..cafcfbd3358f 100644 --- a/board/siemens/rut/board.c +++ b/board/siemens/rut/board.c @@ -32,7 +32,7 @@ #include #include #include "board.h" -#include "../common/factoryset.h" +#include #include "../../../drivers/video/da8xx-fb.h" DECLARE_GLOBAL_DATA_PTR;