Series to move headers to a consistent include location
v2 cover Series to move headers to a consistent include location
Hi,
This series is hopefully to setup the stage for consolidation of board/vendor/common include header organization in u-boot.
Discussion thread:
https://patchwork.ozlabs.org/patch/540280/ https://patchwork.ozlabs.org/patch/541068/ https://patchwork.ozlabs.org/patch/542424/
In short, we:
a) Dont want to have symlinks for include headers
b) Want to be able to reference headers in reuse by doing #include <board-common/xyz.h>
So, we follow the "option #6" discussed in the last of the threads above. Only the first patch in this series was pasted and discussed previously. The remaining 11 in the series is natural cleanups as a result.
The series is Based on:
master ade766acfb27 Merge branch 'next' of git://git.denx.de/u-boot-blackfin
Script 1: identifying the board/vendors impacted:
#!/bin/bash
for common in git grep "../common" board|grep "#include"|cut -d ':' -f1|cut -d '/' -f1,2|sort -u do
cfiles=`git grep "../common" $common|grep "#include"|cut -d '"' -f2|sort -u|grep c$` headers=`git grep "../common" $common|grep "#include"|cut -d '"' -f2|sort -u|grep h$` if [ -z "$headers" ]; then continue; fi echo $common : $headers : $cfiles
done
Output:
board/BuR : ../common/bur_common.h :
board/compulab : ../common/common.h ../common/eeprom.h :
board/freescale : ../common/cadmus.h ../common/dcu_sii9022a.h ../common/diu_ch7301.h ../common/eeprom.h ../common/fman.h ../common/idt8t49n222a_serdes_clk.h ../common/ngpixis.h ../common/pfuze.h ../common/pixis.h ../common/pq-mds-pib.h ../common/qixis.h ../common/sgmii_riser.h ../common/sleep.h ../common/via.h ../common/vid.h ../common/vsc3316_3308.h ../common/zm7300.h :
board/gdsys : ../common/dp501.h ../common/mclink.h ../common/osd.h ../common/phy.h :
board/keymile : ../common/common.h :
board/LaCie : ../common/common.h ../common/cpld-gpio-bus.h :
board/mpl : ../common/common_util.h ../common/isa.h :
board/seco : ../common/mx6.h :
board/siemens : ../common/factoryset.h : ../common/board.c
board/varisys : ../common/eeprom.h :
board/xes : ../common/fsl_8xxx_misc.h :
Script2: this is used to move the headers to relevant locations:
#!/bin/bash
vendor=$1
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
Build tested with the following with at least the ARM platforms:
MAKEALL -v compulab -v BuR -v LaCie -v seco -v siemens
NOTE: I know this series impacts a lot of platforms..
other than patch #1, they are probably nice to have.. but upto you guys if you'd like it or not.. it will be good to standardize things a bit here. I am *NOT* trying to fix the following code:
$ git grep "\.\./common" board/*/*/*.[chS]|sort -u board/amcc/bamboo/flash.c:#include "../common/flash.c" board/amcc/bubinga/flash.c:#include "../common/flash.c" board/amcc/luan/flash.c:#include "../common/flash.c" board/amcc/walnut/flash.c:#include "../common/flash.c" board/esd/cpci2dp/flash.c:#include "../common/flash.c" board/esd/cpci405/cpci405.c:#include "../common/fpga.c" board/esd/cpci405/flash.c:#include "../common/flash.c" board/esd/plu405/flash.c:#include "../common/flash.c" board/esd/plu405/plu405.c:#include "../common/fpga.c" board/esd/vom405/flash.c:#include "../common/flash.c" board/siemens/draco/board.c:#include "../common/board.c" board/siemens/pxm2/board.c:#include "../common/board.c" board/siemens/rut/board.c:#include "../common/board.c"
Nishanth Menon (12):
Makefile: Include vendor common library in include search path
board: BuR: Move common headers to board-common directory
board: compulab: Move common headers to board-common directory
board: freescale: Move common headers to board-common directory
board: gdsys: Move common headers to board-common directory
board: keymile: Move common headers to board-common directory
board: LaCie: Move common headers to board-common directory
board: mpl: Move common headers to board-common directory
board: seco: Move common headers to board-common directory
board: siemens: Move common headers to board-common directory
board: varisys: Move common headers to board-common directory
board: xes: Move common headers to board-common directory
Makefile | 3 +++
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 +-
board/LaCie/common/cpld-gpio-bus.c | 2 +-
board/LaCie/common/{ => include/board-common}/common.h | 0
board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h | 0
board/LaCie/edminiv2/edminiv2.c | 2 +-
board/LaCie/net2big_v2/net2big_v2.c | 4 ++--
board/LaCie/netspace_v2/netspace_v2.c | 2 +-
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 +-
board/freescale/b4860qds/b4860qds.c | 8 ++++----
board/freescale/b4860qds/eth_b4860qds.c | 6 +++---
board/freescale/b4860qds/spl.c | 2 +-
board/freescale/bsc9132qds/bsc9132qds.c | 2 +-
board/freescale/common/arm_sleep.c | 2 +-
board/freescale/common/cds_pci_ft.c | 2 +-
board/freescale/common/ics307_clk.c | 6 +++---
board/freescale/common/idt8t49n222a_serdes_clk.c | 2 +-
board/freescale/common/{ => include/board-common}/cadmus.h | 0
board/freescale/common/{ => include/board-common}/dcu_sii9022a.h | 0
board/freescale/common/{ => include/board-common}/diu_ch7301.h | 0
board/freescale/common/{ => include/board-common}/eeprom.h | 0
board/freescale/common/{ => include/board-common}/fman.h | 0
.../common/{ => include/board-common}/idt8t49n222a_serdes_clk.h | 0
board/freescale/common/{ => include/board-common}/ngpixis.h | 0
board/freescale/common/{ => include/board-common}/pfuze.h | 0
board/freescale/common/{ => include/board-common}/pixis.h | 0
board/freescale/common/{ => include/board-common}/pq-mds-pib.h | 0
board/freescale/common/{ => include/board-common}/qixis.h | 0
board/freescale/common/{ => include/board-common}/sgmii_riser.h | 0
board/freescale/common/{ => include/board-common}/sleep.h | 0
board/freescale/common/{ => include/board-common}/via.h | 0
board/freescale/common/{ => include/board-common}/vid.h | 0
board/freescale/common/{ => include/board-common}/vsc3316_3308.h | 0
board/freescale/common/{ => include/board-common}/zm7300.h | 0
board/freescale/common/mpc85xx_sleep.c | 2 +-
board/freescale/common/ngpixis.c | 2 +-
board/freescale/common/pq-mds-pib.c | 2 +-
board/freescale/common/qixis.c | 2 +-
board/freescale/common/sys_eeprom.c | 2 +-
board/freescale/common/vid.c | 2 +-
board/freescale/common/vsc3316_3308.c | 2 +-
board/freescale/common/zm7300.c | 2 +-
board/freescale/corenet_ds/corenet_ds.c | 2 +-
board/freescale/corenet_ds/eth_hydra.c | 4 ++--
board/freescale/corenet_ds/eth_p4080.c | 4 ++--
board/freescale/corenet_ds/eth_superhydra.c | 4 ++--
board/freescale/ls1021aqds/dcu.c | 2 +-
board/freescale/ls1021aqds/eth.c | 4 ++--
board/freescale/ls1021aqds/ls1021aqds.c | 4 ++--
board/freescale/ls1021atwr/dcu.c | 2 +-
board/freescale/ls1021atwr/ls1021atwr.c | 2 +-
board/freescale/ls1043ardb/eth.c | 2 +-
board/freescale/ls2085aqds/eth.c | 2 +-
board/freescale/ls2085aqds/ls2085aqds.c | 2 +-
board/freescale/ls2085ardb/ls2085ardb.c | 2 +-
board/freescale/mpc832xemds/mpc832xemds.c | 2 +-
board/freescale/mpc832xemds/pci.c | 2 +-
board/freescale/mpc837xemds/mpc837xemds.c | 2 +-
board/freescale/mpc8536ds/mpc8536ds.c | 2 +-
board/freescale/mpc8541cds/mpc8541cds.c | 6 +++---
board/freescale/mpc8544ds/mpc8544ds.c | 2 +-
board/freescale/mpc8548cds/mpc8548cds.c | 6 +++---
board/freescale/mpc8555cds/mpc8555cds.c | 6 +++---
board/freescale/mpc8569mds/mpc8569mds.c | 2 +-
board/freescale/mpc8572ds/mpc8572ds.c | 2 +-
board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c | 2 +-
board/freescale/mx6qsabreauto/mx6qsabreauto.c | 2 +-
board/freescale/mx6sabresd/mx6sabresd.c | 2 +-
board/freescale/mx6slevk/mx6slevk.c | 2 +-
board/freescale/mx6sxsabresd/mx6sxsabresd.c | 2 +-
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +-
board/freescale/mx7dsabresd/mx7dsabresd.c | 2 +-
board/freescale/p1022ds/diu.c | 2 +-
board/freescale/p1022ds/p1022ds.c | 2 +-
board/freescale/p1022ds/spl.c | 2 +-
board/freescale/p2041rdb/eth.c | 2 +-
board/freescale/t102xqds/eth_t102xqds.c | 4 ++--
board/freescale/t102xqds/spl.c | 2 +-
board/freescale/t102xqds/t102xqds.c | 4 ++--
board/freescale/t102xrdb/eth_t102xrdb.c | 2 +-
board/freescale/t102xrdb/spl.c | 2 +-
board/freescale/t102xrdb/t102xrdb.c | 2 +-
board/freescale/t1040qds/diu.c | 4 ++--
board/freescale/t1040qds/eth.c | 4 ++--
board/freescale/t1040qds/t1040qds.c | 4 ++--
board/freescale/t104xrdb/diu.c | 2 +-
board/freescale/t104xrdb/eth.c | 2 +-
board/freescale/t104xrdb/spl.c | 2 +-
board/freescale/t104xrdb/t104xrdb.c | 2 +-
board/freescale/t208xqds/eth_t208xqds.c | 4 ++--
board/freescale/t208xqds/spl.c | 2 +-
board/freescale/t208xqds/t208xqds.c | 6 +++---
board/freescale/t208xrdb/t208xrdb.c | 2 +-
board/freescale/t4qds/eth.c | 4 ++--
board/freescale/t4qds/spl.c | 2 +-
board/freescale/t4qds/t4240qds.c | 4 ++--
board/freescale/t4rdb/eth.c | 2 +-
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 +-
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 +-
board/mpl/common/common_util.c | 2 +-
board/mpl/common/{ => include/board-common}/common_util.h | 0
board/mpl/common/{ => include/board-common}/isa.h | 0
board/mpl/common/isa.c | 2 +-
board/mpl/common/kbd.c | 2 +-
board/mpl/common/pci.c | 2 +-
board/mpl/mip405/cmd_mip405.c | 2 +-
board/mpl/mip405/mip405.c | 2 +-
board/mpl/pip405/cmd_pip405.c | 2 +-
board/mpl/pip405/pip405.c | 4 ++--
board/mpl/vcma9/cmd_vcma9.c | 2 +-
board/mpl/vcma9/vcma9.c | 2 +-
board/seco/common/{ => include/board-common}/mx6.h | 0
board/seco/mx6quq7/mx6quq7.c | 2 +-
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 +-
board/varisys/common/{ => include/board-common}/eeprom.h | 0
board/varisys/common/sys_eeprom.c | 2 +-
board/varisys/cyrus/cyrus.c | 2 +-
board/xes/common/board.c | 2 +-
board/xes/common/{ => include/board-common}/fsl_8xxx_misc.h | 0
board/xes/xpedite517x/xpedite517x.c | 2 +-
153 files changed, 160 insertions(+), 157 deletions(-)
rename board/BuR/common/{ => include/board-common}/bur_common.h (100%)
rename board/LaCie/common/{ => include/board-common}/common.h (100%)
rename board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h (100%)
rename board/compulab/common/{ => include/board-common}/common.h (100%)
rename board/compulab/common/{ => include/board-common}/eeprom.h (100%)
rename board/freescale/common/{ => include/board-common}/cadmus.h (100%)
rename board/freescale/common/{ => include/board-common}/dcu_sii9022a.h (100%)
rename board/freescale/common/{ => include/board-common}/diu_ch7301.h (100%)
rename board/freescale/common/{ => include/board-common}/eeprom.h (100%)
rename board/freescale/common/{ => include/board-common}/fman.h (100%)
rename board/freescale/common/{ => include/board-common}/idt8t49n222a_serdes_clk.h (100%)
rename board/freescale/common/{ => include/board-common}/ngpixis.h (100%)
rename board/freescale/common/{ => include/board-common}/pfuze.h (100%)
rename board/freescale/common/{ => include/board-common}/pixis.h (100%)
rename board/freescale/common/{ => include/board-common}/pq-mds-pib.h (100%)
rename board/freescale/common/{ => include/board-common}/qixis.h (100%)
rename board/freescale/common/{ => include/board-common}/sgmii_riser.h (100%)
rename board/freescale/common/{ => include/board-common}/sleep.h (100%)
rename board/freescale/common/{ => include/board-common}/via.h (100%)
rename board/freescale/common/{ => include/board-common}/vid.h (100%)
rename board/freescale/common/{ => include/board-common}/vsc3316_3308.h (100%)
rename board/freescale/common/{ => include/board-common}/zm7300.h (100%)
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%)
rename board/keymile/common/{ => include/board-common}/common.h (100%)
rename board/mpl/common/{ => include/board-common}/common_util.h (100%)
rename board/mpl/common/{ => include/board-common}/isa.h (100%)
rename board/seco/common/{ => include/board-common}/mx6.h (100%)
rename board/siemens/common/{ => include/board-common}/factoryset.h (100%)
rename board/varisys/common/{ => include/board-common}/eeprom.h (100%)
rename board/xes/common/{ => include/board-common}/fsl_8xxx_misc.h (100%)Signature · 1 line
2.6.2.402.g2635c2b
PATCH v2 1/12 Makefile: Include vendor common library in include search path
When the vendor common libraries exists, then board should be able to reference headers located from a generic base, rather than having to do weird logic such as '#include "../common/xyz.h"'.
There are multiple options of implementation, the current strategy expects that:
a) Vendor boards that need generic files will define build in:
board/$(VENDOR)/common b) Vendor boards that expose generic functions from (a) for usage from other board specific files will provide these headers in: board/$(VENDOR)/common/include/board-common c) Vendor board files that need these function services will refer #include <board-common/xyz.h> Where, xyz.h is an example header exposing generic vendor common functions.
--- Makefile | 3 +++ 1 file changed, 3 insertions(+)
Makefile +3 -0
@@ -626,6 +626,9 @@ c_flags := $(KBUILD_CFLAGS) $(cpp_flags) # U-Boot objects....order is important (i.e. start must be first) HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(srctree)/board/$(VENDOR)/common/Makefile),y,n) +# Include vendor headers - they should be in the following location. +# board/$(VENDOR)/common/include/board-common +UBOOTINCLUDE += $(if $(HAVE_VENDOR_COMMON_LIB:y=1), -I$(srctree)/board/$(VENDOR)/common/include) libs-y += lib/ libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/
Signature · 1 line
2.6.2.402.g2635c2b
PATCH v2 1/12 Makefile: Include vendor common library in include search path
Hi Nishanth,
Quoted 11 lines · Nishanth Menon
When the vendor common libraries exists, then board should be able to reference headers located from a generic base, rather than having to do weird logic such as '#include "
../common/xyz.h"'.There are multiple options of implementation, the current strategy expects that:
a) Vendor boards that need generic files will define build in:board/$(VENDOR)/common b) Vendor boards that expose generic functions from (a) for usage from other board specific files will provide these headers in: board/$(VENDOR)/common/include/board-common
I would agree with Simon - no need for additional /common/ in the path.
Quoted 33 lines
c) Vendor board files that need these function services will refer
#include <board-common/xyz.h> Where, xyz.h is an example header exposing generic vendor common functions.Cc Simon Glass <[email protected]>Cc Tom Rini <[email protected]>Cc Masahiro Yamada <[email protected]>Cc Daniel Schwierzeck <[email protected]>Cc Michal Marek <[email protected]>Cc Stefan Roese <[email protected]>Cc Bin Meng <[email protected]>Signed-off-by Nishanth Menon <[email protected]>--- Makefile | 3 +++ 1 file changed, 3 insertions(+)Makefile +3
-0@@ -626,6 +626,9 @@ c_flags := $(KBUILD_CFLAGS) $(cpp_flags) # U-Boot objects....order is important (i.e. start must be first) HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(srctree)/board/$(VENDOR)/common/Makefile),y,n) +# Include vendor headers - they should be in the following location. +# board/$(VENDOR)/common/include/board-common +UBOOTINCLUDE += $(if $(HAVE_VENDOR_COMMON_LIB:y=1), -I$(srctree)/board/$(VENDOR)/common/include) libs-y += lib/ libs-$(HAVE_VENDOR_COMMON_LIB) += board/$(VENDOR)/common/
Signature · 2 lines
Regards, Igor.
PATCH v2 2/12 board: BuR: Move common headers to board-common directory
In reply to Nishanth MenonHeader 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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
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%)board/BuR/common/common.c +1 -1
@@ -31,7 +31,7 @@#ifdef CONFIG_USE_FDT #include <fdt_support.h> #endif -#include "bur_common.h" +#include <board-common/bur_common.h> #include "../../../drivers/video/am335x-fb.h" #include <nand.h> #include <fdt_simplefb.h>
board/BuR/common/include/board-common/bur_common.h renamed from board/BuR/common/bur_common.h +0 -0
board/BuR/kwb/board.c +1 -1
@@ -25,7 +25,7 @@#include <asm/gpio.h> #include <i2c.h> #include <power/tps65217.h> -#include "../common/bur_common.h" +#include <board-common/bur_common.h> #include <lcd.h> /* -------------------------------------------------------------------------*/
board/BuR/tseries/board.c +1 -1
@@ -26,7 +26,7 @@#include <asm/gpio.h> #include <i2c.h> #include <power/tps65217.h> -#include "../common/bur_common.h" +#include <board-common/bur_common.h> #include <lcd.h> #include <watchdog.h>
Signature · 1 line
2.6.2.402.g2635c2b
PATCH v2 3/12 board: compulab: Move common headers to board-common directory
In reply to Nishanth MenonHeader 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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
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%)board/compulab/cm_fx6/cm_fx6.c +2 -2
@@ -29,8 +29,8 @@#include <asm/gpio.h> #include <dm/platform_data/serial_mxc.h> #include "common.h" -#include "../common/eeprom.h" -#include "../common/common.h" +#include <board-common/eeprom.h> +#include <board-common/common.h> DECLARE_GLOBAL_DATA_PTR ;
board/compulab/cm_t335/cm_t335.c +1 -1
@@ -18,7 +18,7 @@#include <asm/io.h> #include <asm/gpio.h> -#include "../common/eeprom.h" +#include <board-common/eeprom.h> DECLARE_GLOBAL_DATA_PTR ;
board/compulab/cm_t35/cm_t35.c +2 -2
@@ -33,8 +33,8 @@#include <asm/ehci-omap.h> #include <asm/gpio.h> -#include "../common/common.h" -#include "../common/eeprom.h" +#include <board-common/common.h> +#include <board-common/eeprom.h> DECLARE_GLOBAL_DATA_PTR ;
board/compulab/cm_t3517/cm_t3517.c +2 -2
@@ -24,8 +24,8 @@#include <asm/omap_musb.h> #include <asm/ehci-omap.h> -#include "../common/common.h" -#include "../common/eeprom.h" +#include <board-common/common.h> +#include <board-common/eeprom.h> DECLARE_GLOBAL_DATA_PTR ;
board/compulab/cm_t54/cm_t54.c +1 -1
@@ -22,7 +22,7 @@#include <asm/arch/ehci.h> #include <asm/ehci-omap.h> -#include "../common/eeprom.h" +#include <board-common/eeprom.h> #define DIE_ID_REG_BASE (OMAP54XX_L4_CORE_BASE + 0x2000)#define DIE_ID_REG_OFFSET 0x200
board/compulab/common/common.c +2 -2
@@ -10,8 +10,8 @@#include <asm/bootm.h> #include <asm/gpio.h> -#include "common.h" -#include "eeprom.h" +#include <board-common/common.h> +#include <board-common/eeprom.h> void cl_print_pcb_info (void ) {
board/compulab/common/eeprom.c +1 -1
@@ -9,7 +9,7 @@#include <common.h> #include <i2c.h> -#include "eeprom.h" +#include <board-common/eeprom.h> #ifndef CONFIG_SYS_I2C_EEPROM_ADDR # define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
board/compulab/common/include/board-common/common.h renamed from board/compulab/common/common.h +0 -0
board/compulab/common/include/board-common/eeprom.h renamed from board/compulab/common/eeprom.h +0 -0
board/compulab/common/omap3_smc911x.c +1 -1
@@ -16,7 +16,7 @@#include <asm/arch/sys_proto.h> #include <asm/gpio.h> -#include "common.h" +#include <board-common/common.h> static u32 cl_omap3_smc911x_gpmc_net_config[GPMC_MAX_REG ] = {NET_GPMC_CONFIG1 ,
Signature · 1 line
2.6.2.402.g2635c2b
PATCH RESEND v2 4/12 board: freescale: Move common headers to board-common directory
In reply to Nishanth MenonHeader files can be located in a generic location without needing to reference them with ../common/
Generated with the following script
#!/bin/bash
vendor=board/freescale
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
Too Many folks in Cc, so I am reposting with with --suppress-cc=all. Apologies on the spam
board/freescale/b4860qds/b4860qds.c | 8 ++++----
board/freescale/b4860qds/eth_b4860qds.c | 6 +++---
board/freescale/b4860qds/spl.c | 2 +-
board/freescale/bsc9132qds/bsc9132qds.c | 2 +-
board/freescale/common/arm_sleep.c | 2 +-
board/freescale/common/cds_pci_ft.c | 2 +-
board/freescale/common/ics307_clk.c | 6 +++---
board/freescale/common/idt8t49n222a_serdes_clk.c | 2 +-
board/freescale/common/{ => include/board-common}/cadmus.h | 0
board/freescale/common/{ => include/board-common}/dcu_sii9022a.h | 0
board/freescale/common/{ => include/board-common}/diu_ch7301.h | 0
board/freescale/common/{ => include/board-common}/eeprom.h | 0
board/freescale/common/{ => include/board-common}/fman.h | 0
.../common/{ => include/board-common}/idt8t49n222a_serdes_clk.h | 0
board/freescale/common/{ => include/board-common}/ngpixis.h | 0
board/freescale/common/{ => include/board-common}/pfuze.h | 0
board/freescale/common/{ => include/board-common}/pixis.h | 0
board/freescale/common/{ => include/board-common}/pq-mds-pib.h | 0
board/freescale/common/{ => include/board-common}/qixis.h | 0
board/freescale/common/{ => include/board-common}/sgmii_riser.h | 0
board/freescale/common/{ => include/board-common}/sleep.h | 0
board/freescale/common/{ => include/board-common}/via.h | 0
board/freescale/common/{ => include/board-common}/vid.h | 0
board/freescale/common/{ => include/board-common}/vsc3316_3308.h | 0
board/freescale/common/{ => include/board-common}/zm7300.h | 0
board/freescale/common/mpc85xx_sleep.c | 2 +-
board/freescale/common/ngpixis.c | 2 +-
board/freescale/common/pq-mds-pib.c | 2 +-
board/freescale/common/qixis.c | 2 +-
board/freescale/common/sys_eeprom.c | 2 +-
board/freescale/common/vid.c | 2 +-
board/freescale/common/vsc3316_3308.c | 2 +-
board/freescale/common/zm7300.c | 2 +-
board/freescale/corenet_ds/corenet_ds.c | 2 +-
board/freescale/corenet_ds/eth_hydra.c | 4 ++--
board/freescale/corenet_ds/eth_p4080.c | 4 ++--
board/freescale/corenet_ds/eth_superhydra.c | 4 ++--
board/freescale/ls1021aqds/dcu.c | 2 +-
board/freescale/ls1021aqds/eth.c | 4 ++--
board/freescale/ls1021aqds/ls1021aqds.c | 4 ++--
board/freescale/ls1021atwr/dcu.c | 2 +-
board/freescale/ls1021atwr/ls1021atwr.c | 2 +-
board/freescale/ls1043ardb/eth.c | 2 +-
board/freescale/ls2085aqds/eth.c | 2 +-
board/freescale/ls2085aqds/ls2085aqds.c | 2 +-
board/freescale/ls2085ardb/ls2085ardb.c | 2 +-
board/freescale/mpc832xemds/mpc832xemds.c | 2 +-
board/freescale/mpc832xemds/pci.c | 2 +-
board/freescale/mpc837xemds/mpc837xemds.c | 2 +-
board/freescale/mpc8536ds/mpc8536ds.c | 2 +-
board/freescale/mpc8541cds/mpc8541cds.c | 6 +++---
board/freescale/mpc8544ds/mpc8544ds.c | 2 +-
board/freescale/mpc8548cds/mpc8548cds.c | 6 +++---
board/freescale/mpc8555cds/mpc8555cds.c | 6 +++---
board/freescale/mpc8569mds/mpc8569mds.c | 2 +-
board/freescale/mpc8572ds/mpc8572ds.c | 2 +-
board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c | 2 +-
board/freescale/mx6qsabreauto/mx6qsabreauto.c | 2 +-
board/freescale/mx6sabresd/mx6sabresd.c | 2 +-
board/freescale/mx6slevk/mx6slevk.c | 2 +-
board/freescale/mx6sxsabresd/mx6sxsabresd.c | 2 +-
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +-
board/freescale/mx7dsabresd/mx7dsabresd.c | 2 +-
board/freescale/p1022ds/diu.c | 2 +-
board/freescale/p1022ds/p1022ds.c | 2 +-
board/freescale/p1022ds/spl.c | 2 +-
board/freescale/p2041rdb/eth.c | 2 +-
board/freescale/t102xqds/eth_t102xqds.c | 4 ++--
board/freescale/t102xqds/spl.c | 2 +-
board/freescale/t102xqds/t102xqds.c | 4 ++--
board/freescale/t102xrdb/eth_t102xrdb.c | 2 +-
board/freescale/t102xrdb/spl.c | 2 +-
board/freescale/t102xrdb/t102xrdb.c | 2 +-
board/freescale/t1040qds/diu.c | 4 ++--
board/freescale/t1040qds/eth.c | 4 ++--
board/freescale/t1040qds/t1040qds.c | 4 ++--
board/freescale/t104xrdb/diu.c | 2 +-
board/freescale/t104xrdb/eth.c | 2 +-
board/freescale/t104xrdb/spl.c | 2 +-
board/freescale/t104xrdb/t104xrdb.c | 2 +-
board/freescale/t208xqds/eth_t208xqds.c | 4 ++--
board/freescale/t208xqds/spl.c | 2 +-
board/freescale/t208xqds/t208xqds.c | 6 +++---
board/freescale/t208xrdb/t208xrdb.c | 2 +-
board/freescale/t4qds/eth.c | 4 ++--
board/freescale/t4qds/spl.c | 2 +-
board/freescale/t4qds/t4240qds.c | 4 ++--
board/freescale/t4rdb/eth.c | 2 +-
88 files changed, 99 insertions(+), 99 deletions(-)
rename board/freescale/common/{ => include/board-common}/cadmus.h (100%)
rename board/freescale/common/{ => include/board-common}/dcu_sii9022a.h (100%)
rename board/freescale/common/{ => include/board-common}/diu_ch7301.h (100%)
rename board/freescale/common/{ => include/board-common}/eeprom.h (100%)
rename board/freescale/common/{ => include/board-common}/fman.h (100%)
rename board/freescale/common/{ => include/board-common}/idt8t49n222a_serdes_clk.h (100%)
rename board/freescale/common/{ => include/board-common}/ngpixis.h (100%)
rename board/freescale/common/{ => include/board-common}/pfuze.h (100%)
rename board/freescale/common/{ => include/board-common}/pixis.h (100%)
rename board/freescale/common/{ => include/board-common}/pq-mds-pib.h (100%)
rename board/freescale/common/{ => include/board-common}/qixis.h (100%)
rename board/freescale/common/{ => include/board-common}/sgmii_riser.h (100%)
rename board/freescale/common/{ => include/board-common}/sleep.h (100%)
rename board/freescale/common/{ => include/board-common}/via.h (100%)
rename board/freescale/common/{ => include/board-common}/vid.h (100%)
rename board/freescale/common/{ => include/board-common}/vsc3316_3308.h (100%)
rename board/freescale/common/{ => include/board-common}/zm7300.h (100%)board/freescale/b4860qds/b4860qds.c +4 -4
@@ -21,10 +21,10 @@#include <fm_eth.h> #include <hwconfig.h> -#include "../common/qixis.h" -#include "../common/vsc3316_3308.h" -#include "../common/idt8t49n222a_serdes_clk.h" -#include "../common/zm7300.h" +#include <board-common/qixis.h> +#include <board-common/vsc3316_3308.h> +#include <board-common/idt8t49n222a_serdes_clk.h> +#include <board-common/zm7300.h> #include "b4860qds.h" #include "b4860qds_qixis.h" #include "b4860qds_crossbar_con.h"
board/freescale/b4860qds/eth_b4860qds.c +3 -3
@@ -28,9 +28,9 @@#include <fdt_support.h> #include <fsl_dtsec.h> -#include "../common/ngpixis.h" -#include "../common/fman.h" -#include "../common/qixis.h" +#include <board-common/ngpixis.h> +#include <board-common/fman.h> +#include <board-common/qixis.h> #include "b4860qds_qixis.h" #define EMI_NONE 0xFFFFFFFF
board/freescale/b4860qds/spl.c +1 -1
@@ -9,7 +9,7 @@#include <ns16550.h> #include <nand.h> #include <i2c.h> -#include "../common/qixis.h" +#include <board-common/qixis.h> #include "b4860qds_qixis.h" DECLARE_GLOBAL_DATA_PTR ;
board/freescale/bsc9132qds/bsc9132qds.c +1 -1
@@ -30,7 +30,7 @@#include <asm/fsl_pci.h> #endif -#include "../common/qixis.h" +#include <board-common/qixis.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/common/arm_sleep.c +1 -1
@@ -17,7 +17,7 @@#include <asm/arch/immap_ls102xa.h> #endif -#include "sleep.h" +#include <board-common/sleep.h> #ifdef CONFIG_U_QE #include "../../../drivers/qe/qe.h" #endif
board/freescale/common/cds_pci_ft.c +1 -1
@@ -7,7 +7,7 @@#include <common.h> #include <libfdt.h> #include <fdt_support.h> -#include "cadmus.h" +#include <board-common/cadmus.h> #if defined(CONFIG_OF_BOARD_SETUP )static void cds_pci_fixup (void *blob)
board/freescale/common/ics307_clk.c +3 -3
@@ -10,13 +10,13 @@#include "ics307_clk.h" #if defined(CONFIG_FSL_NGPIXIS ) -#include "ngpixis.h" +#include <board-common/ngpixis.h> #define fpga_reg pixis#elif defined(CONFIG_FSL_QIXIS ) -#include "qixis.h" +#include <board-common/qixis.h> #define fpga_reg ((struct qixis *)QIXIS_BASE)#else -#include "pixis.h" +#include <board-common/pixis.h> #define fpga_reg pixis#endif
board/freescale/common/idt8t49n222a_serdes_clk.c +1 -1
@@ -5,7 +5,7 @@* SPDX-License-Identifier: GPL-2.0+ */ -#include "idt8t49n222a_serdes_clk.h" +#include <board-common/idt8t49n222a_serdes_clk.h> #define DEVICE_ID_REG 0x00
board/freescale/common/include/board-common/cadmus.h renamed from board/freescale/common/cadmus.h +0 -0
board/freescale/common/include/board-common/dcu_sii9022a.h renamed from board/freescale/common/dcu_sii9022a.h +0 -0
board/freescale/common/include/board-common/diu_ch7301.h renamed from board/freescale/common/diu_ch7301.h +0 -0
board/freescale/common/include/board-common/eeprom.h renamed from board/freescale/common/eeprom.h +0 -0
board/freescale/common/include/board-common/fman.h renamed from board/freescale/common/fman.h +0 -0
board/freescale/common/include/board-common/idt8t49n222a_serdes_clk.h renamed from board/freescale/common/idt8t49n222a_serdes_clk.h +0 -0
board/freescale/common/include/board-common/ngpixis.h renamed from board/freescale/common/ngpixis.h +0 -0
board/freescale/common/include/board-common/pfuze.h renamed from board/freescale/common/pfuze.h +0 -0
board/freescale/common/include/board-common/pixis.h renamed from board/freescale/common/pixis.h +0 -0
board/freescale/common/include/board-common/pq-mds-pib.h renamed from board/freescale/common/pq-mds-pib.h +0 -0
board/freescale/common/include/board-common/qixis.h renamed from board/freescale/common/qixis.h +0 -0
board/freescale/common/include/board-common/sgmii_riser.h renamed from board/freescale/common/sgmii_riser.h +0 -0
board/freescale/common/include/board-common/sleep.h renamed from board/freescale/common/sleep.h +0 -0
board/freescale/common/include/board-common/via.h renamed from board/freescale/common/via.h +0 -0
board/freescale/common/include/board-common/vid.h renamed from board/freescale/common/vid.h +0 -0
board/freescale/common/include/board-common/vsc3316_3308.h renamed from board/freescale/common/vsc3316_3308.h +0 -0
board/freescale/common/include/board-common/zm7300.h renamed from board/freescale/common/zm7300.h +0 -0
board/freescale/common/mpc85xx_sleep.c +1 -1
@@ -6,7 +6,7 @@#include <common.h> #include <asm/immap_85xx.h> -#include "sleep.h" +#include <board-common/sleep.h> #ifdef CONFIG_U_QE #include "../../../drivers/qe/qe.h" #endif
board/freescale/common/ngpixis.c +1 -1
@@ -34,7 +34,7 @@#include <command.h> #include <asm/io.h> -#include "ngpixis.h" +#include <board-common/ngpixis.h> static u8 __pixis_read (unsigned int reg) {
board/freescale/common/pq-mds-pib.c +1 -1
@@ -12,7 +12,7 @@#include <i2c.h> #include <asm/io.h> -#include "pq-mds-pib.h" +#include <board-common/pq-mds-pib.h> int pib_init (void ) {
board/freescale/common/qixis.c +1 -1
@@ -12,7 +12,7 @@#include <asm/io.h> #include <linux/time.h> #include <i2c.h> -#include "qixis.h" +#include <board-common/qixis.h> #ifdef CONFIG_SYS_I2C_FPGA_ADDR u8 qixis_read_i2c (unsigned int reg)
board/freescale/common/sys_eeprom.c +1 -1
@@ -13,7 +13,7 @@#include <linux/ctype.h> #ifdef CONFIG_SYS_I2C_EEPROM_CCID -#include "../common/eeprom.h" +#include <board-common/eeprom.h> #define MAX_NUM_PORTS 8#endif
board/freescale/common/vid.c +1 -1
@@ -8,7 +8,7 @@#include <command.h> #include <i2c.h> #include <asm/immap_85xx.h> -#include "vid.h" +#include <board-common/vid.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/common/vsc3316_3308.c +1 -1
@@ -4,7 +4,7 @@* SPDX-License-Identifier: GPL-2.0+ */ -#include "vsc3316_3308.h" +#include <board-common/vsc3316_3308.h> #define REVISION_ID_REG 0x7E#define INTERFACE_MODE_REG 0x79
board/freescale/common/zm7300.c +1 -1
@@ -5,7 +5,7 @@*/ /* Power-One ZM7300 DPM */ -#include "zm7300.h" +#include <board-common/zm7300.h> #define DPM_WP 0x96#define WRP_OPCODE 0x01
board/freescale/corenet_ds/corenet_ds.c +1 -1
@@ -18,7 +18,7 @@#include <asm/fsl_liodn.h> #include <fm_eth.h> -#include "../common/ngpixis.h" +#include <board-common/ngpixis.h> #include "corenet_ds.h" DECLARE_GLOBAL_DATA_PTR ;
board/freescale/corenet_ds/eth_hydra.c +2 -2
@@ -57,8 +57,8 @@#include <fdt_support.h> #include <fsl_dtsec.h> -#include "../common/ngpixis.h" -#include "../common/fman.h" +#include <board-common/ngpixis.h> +#include <board-common/fman.h> #ifdef CONFIG_FMAN_ENET
board/freescale/corenet_ds/eth_p4080.c +2 -2
@@ -22,8 +22,8 @@#include <miiphy.h> #include <phy.h> -#include "../common/ngpixis.h" -#include "../common/fman.h" +#include <board-common/ngpixis.h> +#include <board-common/fman.h> #include <fsl_dtsec.h> #define EMI_NONE 0xffffffff
board/freescale/corenet_ds/eth_superhydra.c +2 -2
@@ -57,8 +57,8 @@#include <fdt_support.h> #include <fsl_dtsec.h> -#include "../common/ngpixis.h" -#include "../common/fman.h" +#include <board-common/ngpixis.h> +#include <board-common/fman.h> #ifdef CONFIG_FMAN_ENET
board/freescale/ls1021aqds/dcu.c +1 -1
@@ -11,7 +11,7 @@#include <fsl_dcu_fb.h> #include <i2c.h> #include "div64.h" -#include "../common/diu_ch7301.h" +#include <board-common/diu_ch7301.h> #include "ls1021aqds_qixis.h" DECLARE_GLOBAL_DATA_PTR ;
board/freescale/ls1021aqds/eth.c +2 -2
@@ -21,8 +21,8 @@#include <tsec.h> #include <malloc.h> -#include "../common/sgmii_riser.h" -#include "../common/qixis.h" +#include <board-common/sgmii_riser.h> +#include <board-common/qixis.h> #define EMI1_MASK 0x1f#define EMI1_RGMII0 1
board/freescale/ls1021aqds/ls1021aqds.c +2 -2
@@ -22,8 +22,8 @@#include <spl.h> #include <fsl_devdis.h> -#include "../common/sleep.h" -#include "../common/qixis.h" +#include <board-common/sleep.h> +#include <board-common/qixis.h> #include "ls1021aqds_qixis.h" #ifdef CONFIG_U_QE #include "../../../drivers/qe/qe.h"
board/freescale/ls1021atwr/dcu.c +1 -1
@@ -9,7 +9,7 @@#include <common.h> #include <fsl_dcu_fb.h> #include "div64.h" -#include "../common/dcu_sii9022a.h" +#include <board-common/dcu_sii9022a.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/ls1021atwr/ls1021atwr.c +1 -1
@@ -25,7 +25,7 @@#include <fsl_sec.h> #include <fsl_devdis.h> #include <spl.h> -#include "../common/sleep.h" +#include <board-common/sleep.h> #ifdef CONFIG_U_QE #include "../../../drivers/qe/qe.h" #endif
board/freescale/ls1043ardb/eth.c +1 -1
@@ -11,7 +11,7 @@#include <fsl_mdio.h> #include <malloc.h> -#include "../common/fman.h" +#include <board-common/fman.h> int board_eth_init (bd_t *bis) {
board/freescale/ls2085aqds/eth.c +1 -1
@@ -16,7 +16,7 @@#include <miiphy.h> #include <fsl-mc/ldpaa_wriop.h> -#include "../common/qixis.h" +#include <board-common/qixis.h> #include "ls2085aqds_qixis.h"
board/freescale/ls2085aqds/ls2085aqds.c +1 -1
@@ -20,7 +20,7 @@#include <asm/arch/soc.h> #include <hwconfig.h> -#include "../common/qixis.h" +#include <board-common/qixis.h> #include "ls2085aqds_qixis.h" #define PIN_MUX_SEL_SDHC 0x00
board/freescale/ls2085ardb/ls2085ardb.c +1 -1
@@ -19,7 +19,7 @@#include <i2c.h> #include <asm/arch/soc.h> -#include "../common/qixis.h" +#include <board-common/qixis.h> #include "ls2085ardb_qixis.h" #define PIN_MUX_SEL_SDHC 0x00
board/freescale/mpc832xemds/mpc832xemds.c +1 -1
@@ -20,7 +20,7 @@#include <libfdt.h> #endif #if defined(CONFIG_PQ_MDS_PIB ) -#include "../common/pq-mds-pib.h" +#include <board-common/pq-mds-pib.h> #endif const qe_iop_conf_t qe_iop_conf_tab[] = {
board/freescale/mpc832xemds/pci.c +1 -1
@@ -14,7 +14,7 @@#include <pci.h> #include <i2c.h> #include <asm/fsl_i2c.h> -#include "../common/pq-mds-pib.h" +#include <board-common/pq-mds-pib.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/mpc837xemds/mpc837xemds.c +1 -1
@@ -18,7 +18,7 @@#include <fsl_mdio.h> #include <phy.h> #include "pci.h" -#include "../common/pq-mds-pib.h" +#include <board-common/pq-mds-pib.h> int board_early_init_f (void ) {
board/freescale/mpc8536ds/mpc8536ds.c +1 -1
@@ -25,7 +25,7 @@#include <netdev.h> #include <sata.h> -#include "../common/sgmii_riser.h" +#include <board-common/sgmii_riser.h> int board_early_init_f (void ) {
board/freescale/mpc8541cds/mpc8541cds.c +3 -3
@@ -17,9 +17,9 @@#include <libfdt.h> #include <fdt_support.h> -#include "../common/cadmus.h" -#include "../common/eeprom.h" -#include "../common/via.h" +#include <board-common/cadmus.h> +#include <board-common/eeprom.h> +#include <board-common/via.h> #if defined(CONFIG_DDR_ECC ) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER )extern void ddr_enable_ecc (unsigned int dram_size);
board/freescale/mpc8544ds/mpc8544ds.c +1 -1
@@ -21,7 +21,7 @@#include <tsec.h> #include <netdev.h> -#include "../common/sgmii_riser.h" +#include <board-common/sgmii_riser.h> int checkboard (void ) {
board/freescale/mpc8548cds/mpc8548cds.c +3 -3
@@ -21,9 +21,9 @@#include <fsl_mdio.h> #include <netdev.h> -#include "../common/cadmus.h" -#include "../common/eeprom.h" -#include "../common/via.h" +#include <board-common/cadmus.h> +#include <board-common/eeprom.h> +#include <board-common/via.h> void local_bus_init (void );
board/freescale/mpc8555cds/mpc8555cds.c +3 -3
@@ -15,9 +15,9 @@#include <libfdt.h> #include <fdt_support.h> -#include "../common/cadmus.h" -#include "../common/eeprom.h" -#include "../common/via.h" +#include <board-common/cadmus.h> +#include <board-common/eeprom.h> +#include <board-common/via.h> #if defined(CONFIG_DDR_ECC ) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER )extern void ddr_enable_ecc (unsigned int dram_size);
board/freescale/mpc8569mds/mpc8569mds.c +1 -1
@@ -27,7 +27,7 @@#include "bcsr.h" #if defined(CONFIG_PQ_MDS_PIB ) -#include "../common/pq-mds-pib.h" +#include <board-common/pq-mds-pib.h> #endif const qe_iop_conf_t qe_iop_conf_tab[] = {
board/freescale/mpc8572ds/mpc8572ds.c +1 -1
@@ -22,7 +22,7 @@#include <fsl_mdio.h> #include <netdev.h> -#include "../common/sgmii_riser.h" +#include <board-common/sgmii_riser.h> int checkboard (void ) {
board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c +1 -1
@@ -12,7 +12,7 @@#include <command.h> #include <asm/io.h> #include <fsl_diu_fb.h> -#include "../common/pixis.h" +#include <board-common/pixis.h> #define PX_BRDCFG0_DLINK 0x10#define PX_BRDCFG0_DVISEL 0x08
board/freescale/mx6qsabreauto/mx6qsabreauto.c +1 -1
@@ -30,7 +30,7 @@#include <pca953x.h> #include <power/pmic.h> #include <power/pfuze100_pmic.h> -#include "../common/pfuze.h" +#include <board-common/pfuze.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/mx6sabresd/mx6sabresd.c +1 -1
@@ -27,7 +27,7 @@#include <i2c.h> #include <power/pmic.h> #include <power/pfuze100_pmic.h> -#include "../common/pfuze.h" +#include <board-common/pfuze.h> #include <asm/arch/mx6-ddr.h> #include <usb.h>
board/freescale/mx6slevk/mx6slevk.c +1 -1
@@ -26,7 +26,7 @@#include <netdev.h> #include <power/pmic.h> #include <power/pfuze100_pmic.h> -#include "../common/pfuze.h" +#include <board-common/pfuze.h> #include <usb.h> #include <usb/ehci-fsl.h>
board/freescale/mx6sxsabresd/mx6sxsabresd.c +1 -1
@@ -25,7 +25,7 @@#include <netdev.h> #include <power/pmic.h> #include <power/pfuze100_pmic.h> -#include "../common/pfuze.h" +#include <board-common/pfuze.h> #include <usb.h> #include <usb/ehci-fsl.h>
board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c +1 -1
@@ -25,7 +25,7 @@#include <netdev.h> #include <power/pmic.h> #include <power/pfuze3000_pmic.h> -#include "../common/pfuze.h" +#include <board-common/pfuze.h> #include <usb.h> #include <usb/ehci-fsl.h>
board/freescale/mx7dsabresd/mx7dsabresd.c +1 -1
@@ -19,7 +19,7 @@#include <netdev.h> #include <power/pmic.h> #include <power/pfuze3000_pmic.h> -#include "../common/pfuze.h" +#include <board-common/pfuze.h> #include <i2c.h> #include <asm/imx-common/mxc_i2c.h> #include <asm/arch/crm_regs.h>
board/freescale/p1022ds/diu.c +1 -1
@@ -13,7 +13,7 @@#include <asm/io.h> #include <stdio_dev.h> #include <video_fb.h> -#include "../common/ngpixis.h" +#include <board-common/ngpixis.h> #include <fsl_diu_fb.h> /* The CTL register is called 'csr' in the ngpixis_t structure */
board/freescale/p1022ds/p1022ds.c +1 -1
@@ -26,7 +26,7 @@#include <i2c.h> #include <hwconfig.h> -#include "../common/ngpixis.h" +#include <board-common/ngpixis.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/p1022ds/spl.c +1 -1
@@ -10,7 +10,7 @@#include <mmc.h> #include <nand.h> #include <i2c.h> -#include "../common/ngpixis.h" +#include <board-common/ngpixis.h> #include <fsl_esdhc.h> #include <spi_flash.h>
board/freescale/p2041rdb/eth.c +1 -1
@@ -22,7 +22,7 @@#include <fsl_dtsec.h> #include "cpld.h" -#include "../common/fman.h" +#include <board-common/fman.h> #ifdef CONFIG_FMAN_ENET /*
board/freescale/t102xqds/eth_t102xqds.c +2 -2
@@ -23,8 +23,8 @@#include <phy.h> #include <fsl_dtsec.h> #include <asm/fsl_serdes.h> -#include "../common/qixis.h" -#include "../common/fman.h" +#include <board-common/qixis.h> +#include <board-common/fman.h> #include "t102xqds_qixis.h" #define EMI_NONE 0xFFFFFFFF
board/freescale/t102xqds/spl.c +1 -1
@@ -11,7 +11,7 @@#include <mmc.h> #include <fsl_esdhc.h> #include <spi_flash.h> -#include "../common/qixis.h" +#include <board-common/qixis.h> #include "t102xqds_qixis.h" DECLARE_GLOBAL_DATA_PTR ;
board/freescale/t102xqds/t102xqds.c +2 -2
@@ -19,10 +19,10 @@#include <asm/fsl_liodn.h> #include <fm_eth.h> #include <hwconfig.h> -#include "../common/qixis.h" +#include <board-common/qixis.h> #include "t102xqds.h" #include "t102xqds_qixis.h" -#include "../common/sleep.h" +#include <board-common/sleep.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/t102xrdb/eth_t102xrdb.c +1 -1
@@ -23,7 +23,7 @@#include <phy.h> #include <fsl_dtsec.h> #include <asm/fsl_serdes.h> -#include "../common/fman.h" +#include <board-common/fman.h> int board_eth_init (bd_t *bis) {
board/freescale/t102xrdb/spl.c +1 -1
@@ -11,7 +11,7 @@#include <mmc.h> #include <fsl_esdhc.h> #include <spi_flash.h> -#include "../common/sleep.h" +#include <board-common/sleep.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/t102xrdb/t102xrdb.c +1 -1
@@ -24,7 +24,7 @@#include <i2c.h> #include <mmc.h> #endif -#include "../common/sleep.h" +#include <board-common/sleep.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/t1040qds/diu.c +2 -2
@@ -12,8 +12,8 @@#include <stdio_dev.h> #include <video_fb.h> #include <fsl_diu_fb.h> -#include "../common/qixis.h" -#include "../common/diu_ch7301.h" +#include <board-common/qixis.h> +#include <board-common/diu_ch7301.h> #include "t1040qds.h" #include "t1040qds_qixis.h"
board/freescale/t1040qds/eth.c +2 -2
@@ -20,8 +20,8 @@#include <fsl_dtsec.h> #include <vsc9953.h> -#include "../common/fman.h" -#include "../common/qixis.h" +#include <board-common/fman.h> +#include <board-common/qixis.h> #include "t1040qds_qixis.h"
board/freescale/t1040qds/t1040qds.c +2 -2
@@ -20,8 +20,8 @@#include <fm_eth.h> #include <hwconfig.h> -#include "../common/sleep.h" -#include "../common/qixis.h" +#include <board-common/sleep.h> +#include <board-common/qixis.h> #include "t1040qds.h" #include "t1040qds_qixis.h"
board/freescale/t104xrdb/diu.c +1 -1
@@ -12,7 +12,7 @@#include <linux/ctype.h> #include <video_fb.h> -#include "../common/diu_ch7301.h" +#include <board-common/diu_ch7301.h> #include "cpld.h" #include "t104xrdb.h"
board/freescale/t104xrdb/eth.c +1 -1
@@ -14,7 +14,7 @@#include <fsl_dtsec.h> #include <vsc9953.h> -#include "../common/fman.h" +#include <board-common/fman.h> int board_eth_init (bd_t *bis) {
board/freescale/t104xrdb/spl.c +1 -1
@@ -11,7 +11,7 @@#include <mmc.h> #include <fsl_esdhc.h> #include <spi_flash.h> -#include "../common/sleep.h" +#include <board-common/sleep.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/t104xrdb/t104xrdb.c +1 -1
@@ -19,7 +19,7 @@#include <asm/fsl_portals.h> #include <asm/fsl_liodn.h> #include <fm_eth.h> -#include "../common/sleep.h" +#include <board-common/sleep.h> #include "t104xrdb.h" #include "cpld.h"
board/freescale/t208xqds/eth_t208xqds.c +2 -2
@@ -24,8 +24,8 @@#include <fsl_dtsec.h> #include <asm/fsl_serdes.h> #include <hwconfig.h> -#include "../common/qixis.h" -#include "../common/fman.h" +#include <board-common/qixis.h> +#include <board-common/fman.h> #include "t208xqds_qixis.h" #define EMI_NONE 0xFFFFFFFF
board/freescale/t208xqds/spl.c +1 -1
@@ -11,7 +11,7 @@#include <mmc.h> #include <fsl_esdhc.h> #include <spi_flash.h> -#include "../common/qixis.h" +#include <board-common/qixis.h> #include "t208xqds_qixis.h" DECLARE_GLOBAL_DATA_PTR ;
board/freescale/t208xqds/t208xqds.c +3 -3
@@ -18,9 +18,9 @@#include <asm/fsl_liodn.h> #include <fm_eth.h> -#include "../common/qixis.h" -#include "../common/vsc3316_3308.h" -#include "../common/vid.h" +#include <board-common/qixis.h> +#include <board-common/vsc3316_3308.h> +#include <board-common/vid.h> #include "t208xqds.h" #include "t208xqds_qixis.h"
board/freescale/t208xrdb/t208xrdb.c +1 -1
@@ -19,7 +19,7 @@#include <fm_eth.h> #include "t208xrdb.h" #include "cpld.h" -#include "../common/vid.h" +#include <board-common/vid.h> DECLARE_GLOBAL_DATA_PTR ;
board/freescale/t4qds/eth.c +2 -2
@@ -24,8 +24,8 @@#include <fsl_dtsec.h> #include <asm/fsl_serdes.h> #include <hwconfig.h> -#include "../common/qixis.h" -#include "../common/fman.h" +#include <board-common/qixis.h> +#include <board-common/fman.h> #include "t4240qds_qixis.h"
board/freescale/t4qds/spl.c +1 -1
@@ -11,7 +11,7 @@#include <mmc.h> #include <fsl_esdhc.h> #include <i2c.h> -#include "../common/qixis.h" +#include <board-common/qixis.h> #include "t4240qds_qixis.h" #define FSL_CORENET_CCSR_PORSR1_RCW_MASK 0xFF800000
board/freescale/t4qds/t4240qds.c +2 -2
@@ -19,8 +19,8 @@#include <asm/fsl_liodn.h> #include <fm_eth.h> -#include "../common/qixis.h" -#include "../common/vsc3316_3308.h" +#include <board-common/qixis.h> +#include <board-common/vsc3316_3308.h> #include "t4qds.h" #include "t4240qds_qixis.h"
board/freescale/t4rdb/eth.c +1 -1
@@ -27,7 +27,7 @@#include <asm/fsl_serdes.h> #include <hwconfig.h> -#include "../common/fman.h" +#include <board-common/fman.h> #include "t4rdb.h" void fdt_fixup_board_enet (void *fdt)
Signature · 1 line
2.6.2.402.g2635c2b
PATCH v2 5/12 board: gdsys: Move common headers to board-common directory
In reply to Nishanth MenonHeader 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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
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%)board/gdsys/405ep/dlvision-10g.c +1 -1
@@ -15,7 +15,7 @@#include "405ep.h" #include <gdsys_fpga.h> -#include "../common/osd.h" +#include <board-common/osd.h> #define LATCH0_BASE (CONFIG_SYS_LATCH_BASE)#define LATCH1_BASE (CONFIG_SYS_LATCH_BASE + 0x100)
board/gdsys/405ep/iocon.c +3 -3
@@ -15,9 +15,9 @@#include "405ep.h" #include <gdsys_fpga.h> -#include "../common/osd.h" -#include "../common/mclink.h" -#include "../common/phy.h" +#include <board-common/osd.h> +#include <board-common/mclink.h> +#include <board-common/phy.h> #include <i2c.h> #include <pca953x.h>
board/gdsys/common/include/board-common/dp501.h renamed from board/gdsys/common/dp501.h +0 -0
board/gdsys/common/include/board-common/mclink.h renamed from board/gdsys/common/mclink.h +0 -0
board/gdsys/common/include/board-common/osd.h renamed from board/gdsys/common/osd.h +0 -0
board/gdsys/common/include/board-common/phy.h renamed from board/gdsys/common/phy.h +0 -0
board/gdsys/common/osd.c +1 -1
@@ -9,7 +9,7 @@#include <i2c.h> #include <malloc.h> -#include "dp501.h" +#include <board-common/dp501.h> #include <gdsys_fpga.h> #define CH7301_I2C_ADDR 0x75
board/gdsys/mpc8308/hrcon.c +3 -3
@@ -22,9 +22,9 @@#include <gdsys_fpga.h> -#include "../common/osd.h" -#include "../common/mclink.h" -#include "../common/phy.h" +#include <board-common/osd.h> +#include <board-common/mclink.h> +#include <board-common/phy.h> #include <pca953x.h> #include <pca9698.h>
board/gdsys/p1022/controlcenterd.c +1 -1
@@ -41,7 +41,7 @@#include <i2c.h> #include <pca9698.h> #include <watchdog.h> -#include "../common/dp501.h" +#include <board-common/dp501.h> #include "controlcenterd-id.h" DECLARE_GLOBAL_DATA_PTR ;
Signature · 1 line
2.6.2.402.g2635c2b
PATCH v2 5/12 board: gdsys: Move common headers to board-common directory
Hi Nishanth,
Am 13.11.2015 06:43 schrieb "Nishanth Menon" <[email protected]>:
Quoted 3 lines
Header files can be located in a generic location without needing to reference them with ../common/
sorry, I just don't get it. You collect vendor specific include files and put them in a common directory to avoid including relative paths. What is the problem with realtive paths? And is it really a good idea to throw random files together in a common directory? Our vendor filenames are pretty generic, and you cannot determine which files are from wich vendor. I am not convinced, that this is agood idea.
Cheers
Dirk
PATCH v2 5/12 board: gdsys: Move common headers to board-common directory
Sorry for the noise, I just saw that there is already some discussion on this.
PATCH v2 6/12 board: keymile: Move common headers to board-common directory
In reply to Nishanth MenonHeader 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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
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%)board/keymile/common/common.c +1 -1
@@ -21,7 +21,7 @@#if defined(CONFIG_POST )#include "post.h" #endif -#include "common.h" +#include <board-common/common.h> #include <i2c.h> DECLARE_GLOBAL_DATA_PTR ;
board/keymile/common/include/board-common/common.h renamed from board/keymile/common/common.h +0 -0
board/keymile/common/ivm.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <cli_hush.h> #include <i2c.h> -#include "common.h" +#include <board-common/common.h> #define MAC_STR_SZ 20
board/keymile/km82xx/km82xx.c +1 -1
@@ -16,7 +16,7 @@#endif #include <i2c.h> -#include "../common/common.h" +#include <board-common/common.h> static uchar ivm_content[CONFIG_SYS_IVM_EEPROM_MAX_LEN ];
board/keymile/km83xx/km83xx.c +1 -1
@@ -26,7 +26,7 @@#include <libfdt.h> #include <post.h> -#include "../common/common.h" +#include <board-common/common.h> static uchar ivm_content[CONFIG_SYS_IVM_EEPROM_MAX_LEN ];
board/keymile/km83xx/km83xx_i2c.c +1 -1
@@ -9,7 +9,7 @@#include <i2c.h> #include <asm/io.h> #include <linux/ctype.h> -#include "../common/common.h" +#include <board-common/common.h> static void i2c_write_start_seq (void ) {
board/keymile/km_arm/km_arm.c +1 -1
@@ -23,7 +23,7 @@#include <asm/arch/soc.h> #include <asm/arch/mpp.h> -#include "../common/common.h" +#include <board-common/common.h> DECLARE_GLOBAL_DATA_PTR ;
board/keymile/kmp204x/kmp204x.c +1 -1
@@ -21,7 +21,7 @@#include <asm/fsl_liodn.h> #include <fm_eth.h> -#include "../common/common.h" +#include <board-common/common.h> #include "kmp204x.h" DECLARE_GLOBAL_DATA_PTR ;
board/keymile/kmp204x/qrio.c +1 -1
@@ -7,7 +7,7 @@#include <common.h> -#include "../common/common.h" +#include <board-common/common.h> #include "kmp204x.h" /* QRIO GPIO register offsets */
Signature · 1 line
2.6.2.402.g2635c2b
PATCH v2 6/12 board: keymile: Move common headers to board-common directory
Quoted 21 lines · Nishanth Menon
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/commoncfiles=
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
doecho "processing $header in $common" hbase=`basename $header` git mv $common/$hbase $common/include/board-common sed -i -e "s/\"..\/common\/$hbase\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
Quoted 6 lines
done
Cc Valentin Longchamp <[email protected]>Cc Holger Brunck <[email protected]>Signed-off-by Nishanth Menon <[email protected]>
This was successfully tested on several Keymile boards and it is good that the Keymile boards also follow this new board/common include scheme.
Quoted 122 lines
--- 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%)board/keymile/common/common.c +1
-1@@ -21,7 +21,7 @@#if defined(CONFIG_POST )#include "post.h" #endif -#include "common.h" +#include <board-common/common.h> #include <i2c.h> DECLARE_GLOBAL_DATA_PTR ;board/keymile/common/include/board-common/common.h renamed from board/keymile/common/common.h +0
-0board/keymile/common/ivm.c +1
-1@@ -8,7 +8,7 @@#include <common.h> #include <cli_hush.h> #include <i2c.h> -#include "common.h" +#include <board-common/common.h> #define MAC_STR_SZ 20board/keymile/km82xx/km82xx.c +1
-1@@ -16,7 +16,7 @@#endif #include <i2c.h> -#include "../common/common.h" +#include <board-common/common.h> static uchar ivm_content[CONFIG_SYS_IVM_EEPROM_MAX_LEN ];board/keymile/km83xx/km83xx.c +1
-1@@ -26,7 +26,7 @@#include <libfdt.h> #include <post.h> -#include "../common/common.h" +#include <board-common/common.h> static uchar ivm_content[CONFIG_SYS_IVM_EEPROM_MAX_LEN ];board/keymile/km83xx/km83xx_i2c.c +1
-1@@ -9,7 +9,7 @@#include <i2c.h> #include <asm/io.h> #include <linux/ctype.h> -#include "../common/common.h" +#include <board-common/common.h> static void i2c_write_start_seq (void ) {board/keymile/km_arm/km_arm.c +1
-1@@ -23,7 +23,7 @@#include <asm/arch/soc.h> #include <asm/arch/mpp.h> -#include "../common/common.h" +#include <board-common/common.h> DECLARE_GLOBAL_DATA_PTR ;board/keymile/kmp204x/kmp204x.c +1
-1@@ -21,7 +21,7 @@#include <asm/fsl_liodn.h> #include <fm_eth.h> -#include "../common/common.h" +#include <board-common/common.h> #include "kmp204x.h" DECLARE_GLOBAL_DATA_PTR ;board/keymile/kmp204x/qrio.c +1
-1@@ -7,7 +7,7 @@#include <common.h> -#include "../common/common.h" +#include <board-common/common.h> #include "kmp204x.h" /* QRIO GPIO register offsets */
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
In reply to Nishanth MenonHeader files can be located in a generic location without needing to reference them with ../common/
Generated with the following script
#!/bin/bash
vendor=board/LaCie
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
board/LaCie/common/cpld-gpio-bus.c | 2 +-
board/LaCie/common/{ => include/board-common}/common.h | 0
board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h | 0
board/LaCie/edminiv2/edminiv2.c | 2 +-
board/LaCie/net2big_v2/net2big_v2.c | 4 ++--
board/LaCie/netspace_v2/netspace_v2.c | 2 +-
6 files changed, 5 insertions(+), 5 deletions(-)
rename board/LaCie/common/{ => include/board-common}/common.h (100%)
rename board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h (100%)board/LaCie/common/cpld-gpio-bus.c +1 -1
@@ -13,7 +13,7 @@*/ #include <asm/arch/gpio.h> -#include "cpld-gpio-bus.h" +#include <board-common/cpld-gpio-bus.h> static void cpld_gpio_bus_set_addr (struct cpld_gpio_bus *bus,unsigned addr) {
board/LaCie/common/include/board-common/common.h renamed from board/LaCie/common/common.h +0 -0
board/LaCie/common/include/board-common/cpld-gpio-bus.h renamed from board/LaCie/common/cpld-gpio-bus.h +0 -0
board/LaCie/edminiv2/edminiv2.c +1 -1
@@ -11,7 +11,7 @@#include <common.h> #include <miiphy.h> #include <asm/arch/orion5x.h> -#include "../common/common.h" +#include <board-common/common.h> #include <spl.h> #include <ns16550.h>
board/LaCie/net2big_v2/net2big_v2.c +2 -2
@@ -18,8 +18,8 @@#include <asm/arch/gpio.h> #include "net2big_v2.h" -#include "../common/common.h" -#include "../common/cpld-gpio-bus.h" +#include <board-common/common.h> +#include <board-common/cpld-gpio-bus.h> DECLARE_GLOBAL_DATA_PTR ;
board/LaCie/netspace_v2/netspace_v2.c +1 -1
@@ -17,7 +17,7 @@#include <asm/arch/gpio.h> #include "netspace_v2.h" -#include "../common/common.h" +#include <board-common/common.h> DECLARE_GLOBAL_DATA_PTR ;
Signature · 1 line
2.6.2.402.g2635c2b
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
Hi Nishanth,
Quoted 23 lines · Nishanth Menon
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/LaCie
common=$vendor/commoncfiles=
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
doecho "processing $header in $common" hbase=`basename $header` git mv $common/$hbase $common/include/board-common sed -i -e "s/\"..\/common\/$hbase\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]done
Quoted 7 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>--- board/LaCie/common/cpld-gpio-bus.c | 2 +- board/LaCie/common/{ => include/board-common}/common.h | 0
Is that really a good idea to move a LaCie-specific file named common.h to a place shared with other boards ?
Quoted 1 line
board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h | 0IMO, this headers are specific to LaCie boards and it don't make much sense to move them to a shared place. Moreover it is quite convenient to have them close from the board setup files.
Please don't move them.
Thanks,
Simon
Quoted 71 lines
board/LaCie/edminiv2/edminiv2.c | 2 +- board/LaCie/net2big_v2/net2big_v2.c | 4 ++-- board/LaCie/netspace_v2/netspace_v2.c | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename board/LaCie/common/{ => include/board-common}/common.h (100%) rename board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h (100%)board/LaCie/common/cpld-gpio-bus.c +1
-1@@ -13,7 +13,7 @@*/ #include <asm/arch/gpio.h> -#include "cpld-gpio-bus.h" +#include <board-common/cpld-gpio-bus.h> static void cpld_gpio_bus_set_addr (struct cpld_gpio_bus *bus,unsigned addr) {board/LaCie/common/include/board-common/common.h renamed from board/LaCie/common/common.h +0
-0board/LaCie/common/include/board-common/cpld-gpio-bus.h renamed from board/LaCie/common/cpld-gpio-bus.h +0
-0board/LaCie/edminiv2/edminiv2.c +1
-1@@ -11,7 +11,7 @@#include <common.h> #include <miiphy.h> #include <asm/arch/orion5x.h> -#include "../common/common.h" +#include <board-common/common.h> #include <spl.h> #include <ns16550.h> board/LaCie/net2big_v2/net2big_v2.c +2
-2@@ -18,8 +18,8 @@#include <asm/arch/gpio.h> #include "net2big_v2.h" -#include "../common/common.h" -#include "../common/cpld-gpio-bus.h" +#include <board-common/common.h> +#include <board-common/cpld-gpio-bus.h> DECLARE_GLOBAL_DATA_PTR ;board/LaCie/netspace_v2/netspace_v2.c +1
-1@@ -17,7 +17,7 @@#include <asm/arch/gpio.h> #include "netspace_v2.h" -#include "../common/common.h" +#include <board-common/common.h> DECLARE_GLOBAL_DATA_PTR ;Signature · 1 line
2.6.2.402.g2635c2b
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151113/8f411315/attachment.sig>
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
Quoted 37 lines · Simon Guinot
Hi Nishanth,
Quoted 23 lines · Nishanth Menon
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/LaCie
common=$vendor/commoncfiles=
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
doecho "processing $header in $common" hbase=`basename $header` git mv $common/$hbase $common/include/board-common sed -i -e "s/\"..\/common\/$hbase\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]done
Quoted 7 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>--- board/LaCie/common/cpld-gpio-bus.c | 2 +- board/LaCie/common/{ => include/board-common}/common.h | 0Is that really a good idea to move a LaCie-specific file named
common.hto a place shared with other boards ?
Quoted 7 lines
Quoted 1 line
board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h | 0IMO, this headers are specific to LaCie boards and it don't make much sense to move them to a shared place. Moreover it is quite convenient to have them close from the board setup files.
Please don't move them.
Please read and then suggest changes in the "Makefile: Include vendor common library in include search path" thread. Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151113/0a43981f/attachment.sig>
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
Quoted 40 lines · Tom Rini
Quoted 39 lines · Simon Guinot
Hi Nishanth,
Quoted 23 lines · Nishanth Menon
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/LaCie
common=$vendor/commoncfiles=
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
doecho "processing $header in $common" hbase=`basename $header` git mv $common/$hbase $common/include/board-common sed -i -e "s/\"..\/common\/$hbase\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]done
Quoted 7 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>--- board/LaCie/common/cpld-gpio-bus.c | 2 +- board/LaCie/common/{ => include/board-common}/common.h | 0Is that really a good idea to move a LaCie-specific file named
common.hto a place shared with other boards ?Quoted 1 line
board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h | 0
Quoted 8 lines
Quoted 5 lines
IMO, this headers are specific to LaCie boards and it don't make much sense to move them to a shared place. Moreover it is quite convenient to have them close from the board setup files.
Please don't move them.
Please read and then suggest changes in the "
Makefile: Include vendor common library in include search path" thread. Thanks!
Hi Tom,
Do you mean I answered without even really looking at the suggested change ? Well, it is true :)
Sorry about that. I have been confused by the "git move file" notation which I am not familiar with. So, I withdraw my previous objections.
Now, I have to say that I am still not convinced by the change.
After applying this patch, I can see that:
#include "../common/cpld-gpio-bus.h"
have been replaced with:
#include <board-common/cpld-gpio-bus.h>
While this change is fine, I can also see that the header file has been moved from:
board/LaCie/common/cpld-gpio-bus.h
to:
board/LaCie/common/include/board-common/cpld-gpio-bus.h
With both the strings "board" and "common" duplicated, I am definitively not a big fan of this new path. Moreover I think that moving the headers away from the board setup files will harm a little bit the code reading.
Maybe it would be better to have a shorter path like:
board/LaCie/include/board-common/cpld-gpio-bus.h
Anyway, IMHO things are fine as they are. But if anyone thinks this change is needed or valuable, then I am OK with it.
Thanks,
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151113/2bb814f0/attachment.sig>
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
Quoted 50 lines · Simon Guinot
Quoted 40 lines · Tom Rini
Quoted 39 lines · Simon Guinot
Hi Nishanth,
Quoted 23 lines · Nishanth Menon
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/LaCie
common=$vendor/commoncfiles=
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
doecho "processing $header in $common" hbase=`basename $header` git mv $common/$hbase $common/include/board-common sed -i -e "s/\"..\/common\/$hbase\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]done
Quoted 7 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>--- board/LaCie/common/cpld-gpio-bus.c | 2 +- board/LaCie/common/{ => include/board-common}/common.h | 0Is that really a good idea to move a LaCie-specific file named
common.hto a place shared with other boards ?Quoted 1 line
board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h | 0Quoted 8 lines
Quoted 5 lines
IMO, this headers are specific to LaCie boards and it don't make much sense to move them to a shared place. Moreover it is quite convenient to have them close from the board setup files.
Please don't move them.
Please read and then suggest changes in the "
Makefile: Include vendor common library in include search path" thread. Thanks!
Quoted 8 lines
Hi Tom,
Do you mean I answered without even really looking at the suggested change ? Well, it is true :)
Sorry about that. I have been confused by the "git move file" notation which I am not familiar with. So, I withdraw my previous objections.
Thanks.
Quoted 19 lines
Now, I have to say that I am still not convinced by the change.
After applying this patch, I can see that:
#include "
../common/cpld-gpio-bus.h"have been replaced with:
#include <
board-common/cpld-gpio-bus.h>While this change is fine, I can also see that the header file has been moved from:
board/LaCie/common/cpld-gpio-bus.hto:
board/LaCie/common/include/board-common/cpld-gpio-bus.h
Quoted 7 lines
With both the strings "board" and "common" duplicated, I am definitively not a big fan of this new path. Moreover I think that moving the headers away from the board setup files will harm a little bit the code reading.
Maybe it would be better to have a shorter path like:
board/LaCie/include/board-common/cpld-gpio-bus.h
That can easily be done as well. for me, it is just regenerating the scripts..
I strongly suggest to comment on the original patch
https://patchwork.ozlabs.org/patch/544030/ and suggest this so that other platform folks have the discussion context as well.
Quoted 3 lines
Anyway, IMHO things are fine as they are. But if anyone thinks this change is needed or valuable, then I am OK with it.
IMHO, I started on this story, because we have a need to have a board/ti/common directory and adding more cruft on top of what is already a bunch of crufty includes is just painful.
If you are interested in the complete history:
https://patchwork.ozlabs.org/patch/540280/ https://patchwork.ozlabs.org/patch/541068/ https://patchwork.ozlabs.org/patch/542424/
Tom, Simon,
Are you guys ok with board/$(VENDOR)/include?
Signature · 2 lines
Regards, Nishanth Menon
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
Hi Nishanth,
Quoted 105 lines · Nishanth Menon
Quoted 50 lines · Simon Guinot
Quoted 40 lines · Tom Rini
Quoted 39 lines · Simon Guinot
Hi Nishanth,
Quoted 23 lines · Nishanth Menon
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/LaCie
common=$vendor/commoncfiles=
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
doneQuoted 7 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>--- board/LaCie/common/cpld-gpio-bus.c | 2 +- board/LaCie/common/{ => include/board-common}/common.h | 0Is that really a good idea to move a LaCie-specific file named
common.hto a place shared with other boards ?Quoted 1 line
board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h | 0Quoted 8 lines
Quoted 5 lines
IMO, this headers are specific to LaCie boards and it don't make much sense to move them to a shared place. Moreover it is quite convenient to have them close from the board setup files.
Please don't move them.
Please read and then suggest changes in the "
Makefile: Include vendor common library in include search path" thread. Thanks!Quoted 8 lines
Hi Tom,
Do you mean I answered without even really looking at the suggested change ? Well, it is true :)
Sorry about that. I have been confused by the "git move file" notation which I am not familiar with. So, I withdraw my previous objections.
Thanks.
Quoted 19 lines
Now, I have to say that I am still not convinced by the change.
After applying this patch, I can see that:
#include "
../common/cpld-gpio-bus.h"have been replaced with:
#include <
board-common/cpld-gpio-bus.h>While this change is fine, I can also see that the header file has been moved from:
board/LaCie/common/cpld-gpio-bus.hto:
board/LaCie/common/include/board-common/cpld-gpio-bus.hQuoted 7 lines
With both the strings "board" and "common" duplicated, I am definitively not a big fan of this new path. Moreover I think that moving the headers away from the board setup files will harm a little bit the code reading.
Maybe it would be better to have a shorter path like:
board/LaCie/include/board-common/cpld-gpio-bus.hThat can easily be done as well. for me, it is just regenerating the scripts..
I strongly suggest to comment on the original patch
https://patchwork.ozlabs.org/patch/544030/ and suggest this so that other platform folks have the discussion context as well.Quoted 3 lines
Anyway, IMHO things are fine as they are. But if anyone thinks this change is needed or valuable, then I am OK with it.
IMHO, I started on this story, because we have a need to have a board/ti/common directory and adding more cruft on top of what is already a bunch of crufty includes is just painful.
If you are interested in the complete history:
Quoted 8 lines
https://patchwork.ozlabs.org/patch/540280/ https://patchwork.ozlabs.org/patch/541068/ https://patchwork.ozlabs.org/patch/542424/Tom, Simon,
Are you guys ok with board/$(VENDOR)/include?
Yes.
- Simon
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
Quoted 113 lines · Simon Glass
Hi Nishanth,
Quoted 110 lines · Nishanth Menon
Quoted 50 lines · Simon Guinot
Quoted 40 lines · Tom Rini
Quoted 39 lines · Simon Guinot
Hi Nishanth,
Quoted 23 lines · Nishanth Menon
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/LaCie
common=$vendor/commoncfiles=
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
doneQuoted 7 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>--- board/LaCie/common/cpld-gpio-bus.c | 2 +- board/LaCie/common/{ => include/board-common}/common.h | 0Is that really a good idea to move a LaCie-specific file named
common.hto a place shared with other boards ?Quoted 1 line
board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h | 0Quoted 8 lines
Quoted 5 lines
IMO, this headers are specific to LaCie boards and it don't make much sense to move them to a shared place. Moreover it is quite convenient to have them close from the board setup files.
Please don't move them.
Please read and then suggest changes in the "
Makefile: Include vendor common library in include search path" thread. Thanks!Quoted 8 lines
Hi Tom,
Do you mean I answered without even really looking at the suggested change ? Well, it is true :)
Sorry about that. I have been confused by the "git move file" notation which I am not familiar with. So, I withdraw my previous objections.
Thanks.
Quoted 19 lines
Now, I have to say that I am still not convinced by the change.
After applying this patch, I can see that:
#include "
../common/cpld-gpio-bus.h"have been replaced with:
#include <
board-common/cpld-gpio-bus.h>While this change is fine, I can also see that the header file has been moved from:
board/LaCie/common/cpld-gpio-bus.hto:
board/LaCie/common/include/board-common/cpld-gpio-bus.hQuoted 7 lines
With both the strings "board" and "common" duplicated, I am definitively not a big fan of this new path. Moreover I think that moving the headers away from the board setup files will harm a little bit the code reading.
Maybe it would be better to have a shorter path like:
board/LaCie/include/board-common/cpld-gpio-bus.hThat can easily be done as well. for me, it is just regenerating the scripts..
I strongly suggest to comment on the original patch
https://patchwork.ozlabs.org/patch/544030/ and suggest this so that other platform folks have the discussion context as well.Quoted 3 lines
Anyway, IMHO things are fine as they are. But if anyone thinks this change is needed or valuable, then I am OK with it.
IMHO, I started on this story, because we have a need to have a board/ti/common directory and adding more cruft on top of what is already a bunch of crufty includes is just painful.
If you are interested in the complete history:
https://patchwork.ozlabs.org/patch/540280/ https://patchwork.ozlabs.org/patch/541068/ https://patchwork.ozlabs.org/patch/542424/
Quoted 5 lines
Quoted 3 lines
Tom, Simon,
Are you guys ok with board/$(VENDOR)/include?
Yes.
Also Yes.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151115/80a42c48/attachment.sig>
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
In reply to Nishanth Menon2015-11-13 14:43 GMT+09:00 Nishanth Menon <[email protected]>:
Quoted 23 lines
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/LaCie
common=$vendor/commoncfiles=
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
Quoted 5 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>---
As far as I understood from 02 to 12,
the effect of this series is:
either
replace "../common/foo.h" with <board-common/foo.h>
or
replace "bar.h" with <board-common/bar.h>
Vendor common headers are referenced within their own directory. #include "..." is better than #include <...> in such cases.
I still do not understand what problem this series wants to solve.
Signature · 2 lines
Best Regards Masahiro Yamada
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
Quoted 31 lines · Masahiro Yamada
2015-11-13 14:43 GMT+09:00 Nishanth Menon <[email protected]>:
Quoted 23 lines
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/LaCie
common=$vendor/commoncfiles=
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
doneQuoted 5 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>---
Quoted 5 lines
As far as I understood from 02 to 12,
the effect of this series is:either
replace "../common/foo.h" with <board-common/foo.h>
for board/specific board files.
Quoted 2 lines
or
replace "bar.h" with <board-common/bar.h>
yes - for board/common headers which are exposed.
Quoted 3 lines
Vendor common headers are referenced within their own directory. #include "..." is better than #include <...> in such cases.
Not after this series, which is what is the 3rd change done by this
series: The headers are moved to a common location away from the board/common directory.
This is more inline with what you did with mach.
Quoted 1 line
I still do not understand what problem this series wants to solve.
standardize board common header inclusion strategy across boards in a consistent manner similar to what mach/ changes have been doing.
Overall, you did mention in https://patchwork.ozlabs.org/patch/541068/
[step 1] move SoC-specific headers to arch/<arch>/mach-<soc>/include/mach
[step 2] change #include <asm/arch/foo.h> to #include <mach/foo.h>
Why did we not let folks user relative includes such as #include "../../mach/xyz.h" ? because it constraints us from changing the directory architecture in the future.
This is exactly the same problem that board/<vendor>/ folders have.
Why is it that you dont see that as a problem?
Signature · 2 lines
Regards, Nishanth Menon
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
2015-11-15 14:38 GMT+09:00 Nishanth Menon <[email protected]>:
Quoted 67 lines · Masahiro Yamada
Quoted 31 lines
2015-11-13 14:43 GMT+09:00 Nishanth Menon <[email protected]>:
Quoted 23 lines
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/LaCie
common=$vendor/commoncfiles=
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
doneQuoted 5 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>---
Quoted 5 lines
As far as I understood from 02 to 12,
the effect of this series is:either
replace "../common/foo.h" with <board-common/foo.h>for board/specific board files.
Quoted 2 lines
or
replace "bar.h" with <board-common/bar.h>yes - for board/common headers which are exposed.
Quoted 3 lines
Vendor common headers are referenced within their own directory. #include "..." is better than #include <...> in such cases.
Not after this series, which is what is the 3rd change done by this
series: The headers are moved to a common location away from the board/common directory.This is more inline with what you did with mach.
Quoted 1 line
I still do not understand what problem this series wants to solve.
standardize board common header inclusion strategy across boards in a consistent manner similar to what mach/ changes have been doing.
Overall, you did mention in https://patchwork.ozlabs.org/patch/541068/
[step 1] move SoC-specific headers to arch/<arch>/mach-<soc>/include/mach
[step 2] change #include <
asm/arch/foo.h> to #include <mach/foo.h>
Quoted 9 lines
Why did we not let folks user relative includes such as #include "
../../mach/xyz.h" ? because it constraints us from changing the directory architecture in the future.This is exactly the same problem that board/<vendor>/ folders have.
Why is it that you dont see that as a problem?
You are misunderstanding.
SoC headers (either <asm/arch/*.h> in old style, or <mach/*.h> in new style) are exported.
For example, arch/asm/include/asm/gpio.h includes <asm/arch/gpio.h>. Also, many files under drivers/ include <asm/arch/*.h>
I do not think any drivers should depend on SoC specific headers, but it is the place where we stand now.
OTOH, vendor headers should be only referenced locally.
We should not expand the scope. No need to standardize the include path.
Relative path is a correct way to include a header file with local scope.
Even Linux does so.
For example
drivers/pinctrl/sunxi/pinctrl-sunxi.c
Signature · 2 lines
Best Regards Masahiro Yamada
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
Quoted 88 lines · Masahiro Yamada
2015-11-15 14:38 GMT+09:00 Nishanth Menon <[email protected]>:
Quoted 67 lines · Masahiro Yamada
Quoted 31 lines
2015-11-13 14:43 GMT+09:00 Nishanth Menon <[email protected]>:
Quoted 23 lines
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/LaCie
common=$vendor/commoncfiles=
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
doneQuoted 5 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>---
Quoted 5 lines
As far as I understood from 02 to 12,
the effect of this series is:either
replace "../common/foo.h" with <board-common/foo.h>for board/specific board files.
Quoted 2 lines
or
replace "bar.h" with <board-common/bar.h>yes - for board/common headers which are exposed.
Quoted 3 lines
Vendor common headers are referenced within their own directory. #include "..." is better than #include <...> in such cases.
Not after this series, which is what is the 3rd change done by this
series: The headers are moved to a common location away from the board/common directory.This is more inline with what you did with mach.
Quoted 1 line
I still do not understand what problem this series wants to solve.
standardize board common header inclusion strategy across boards in a consistent manner similar to what mach/ changes have been doing.
Overall, you did mention in https://patchwork.ozlabs.org/patch/541068/
[step 1] move SoC-specific headers to arch/<arch>/mach-<soc>/include/mach
[step 2] change #include <
asm/arch/foo.h> to #include <mach/foo.h>Quoted 9 lines
Why did we not let folks user relative includes such as #include "
../../mach/xyz.h" ? because it constraints us from changing the directory architecture in the future.This is exactly the same problem that board/<vendor>/ folders have.
Why is it that you dont see that as a problem?
You are misunderstanding.
SoC headers (either <asm/arch/*.h> in old style, or <mach/*.h> in new style) are exported.
For example,
arch/asm/include/asm/gpio.hincludes <asm/arch/gpio.h>. Also, many files underdrivers/include <asm/arch/*.h>
Quoted 7 lines
I do not think any drivers should depend on SoC specific headers, but it is the place where we stand now.
OTOH, vendor headers should be only referenced locally.
We should not expand the scope. No need to standardize the include path.
^^^
Quoted 9 lines
Relative path is a correct way to include a header file with local scope.
Even Linux does so.
For example
drivers/pinctrl/sunxi/pinctrl-sunxi.c
Hmm... so, lets review our status currently:
a) board/$(VENDOR)/board_X, board/$(VENDOR)/board_Y, board/$(VENDOR)/board_Z all need a common function, this is currently in board/$(VENDOR)/common/xyz.c.
b) the function prototype for the function needs to be in xyz.h so that board/$(VENDOR)/board_[XYZ] can use the function.
c) your suggestion is to stay in local scope for board/$(VENDOR)/board_[XYZ] by "../common/xyz.h"
So much I have understood. I dont understand *why* you feel that vendor headers should only be referenced locally. Could you elaborate a little more on that? Is it because of the risk that drivers will now be able to do <board-common/xyz.h> ?
If that is the case, and Tom, Simon, you folks agree as well, I can drop the entire series.
Signature · 2 lines
Regards, Nishanth Menon
PATCH v2 7/12 board: LaCie: Move common headers to board-common directory
Quoted 116 lines · Nishanth Menon
Quoted 88 lines · Masahiro Yamada
2015-11-15 14:38 GMT+09:00 Nishanth Menon <[email protected]>:
Quoted 67 lines · Masahiro Yamada
Quoted 31 lines
2015-11-13 14:43 GMT+09:00 Nishanth Menon <[email protected]>:
Quoted 23 lines
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/LaCie
common=$vendor/commoncfiles=
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
doneQuoted 5 lines
Cc Simon Guinot <[email protected]>Cc Albert ARIBAUD <[email protected]>Signed-off-by Nishanth Menon <[email protected]>---
Quoted 5 lines
As far as I understood from 02 to 12,
the effect of this series is:either
replace "../common/foo.h" with <board-common/foo.h>for board/specific board files.
Quoted 2 lines
or
replace "bar.h" with <board-common/bar.h>yes - for board/common headers which are exposed.
Quoted 3 lines
Vendor common headers are referenced within their own directory. #include "..." is better than #include <...> in such cases.
Not after this series, which is what is the 3rd change done by this
series: The headers are moved to a common location away from the board/common directory.This is more inline with what you did with mach.
Quoted 1 line
I still do not understand what problem this series wants to solve.
standardize board common header inclusion strategy across boards in a consistent manner similar to what mach/ changes have been doing.
Overall, you did mention in https://patchwork.ozlabs.org/patch/541068/
[step 1] move SoC-specific headers to arch/<arch>/mach-<soc>/include/mach
[step 2] change #include <
asm/arch/foo.h> to #include <mach/foo.h>Quoted 9 lines
Why did we not let folks user relative includes such as #include "
../../mach/xyz.h" ? because it constraints us from changing the directory architecture in the future.This is exactly the same problem that board/<vendor>/ folders have.
Why is it that you dont see that as a problem?
You are misunderstanding.
SoC headers (either <asm/arch/*.h> in old style, or <mach/*.h> in new style) are exported.
For example,
arch/asm/include/asm/gpio.hincludes <asm/arch/gpio.h>. Also, many files underdrivers/include <asm/arch/*.h>Quoted 7 lines
I do not think any drivers should depend on SoC specific headers, but it is the place where we stand now.
OTOH, vendor headers should be only referenced locally.
We should not expand the scope. No need to standardize the include path.^^^
Quoted 9 lines
Relative path is a correct way to include a header file with local scope.
Even Linux does so.
For example
drivers/pinctrl/sunxi/pinctrl-sunxi.cHmm... so, lets review our status currently:
a) board/$(VENDOR)/board_X, board/$(VENDOR)/board_Y, board/$(VENDOR)/board_Z all need a common function, this is currently in board/$(VENDOR)/common/xyz.c.
b) the function prototype for the function needs to be inxyz.hso that board/$(VENDOR)/board_[XYZ] can use the function.
c) your suggestion is to stay in local scope for board/$(VENDOR)/board_[XYZ] by "../common/xyz.h"
Quoted 7 lines
So much I have understood. I dont understand *why* you feel that vendor headers should only be referenced locally. Could you elaborate a little more on that? Is it because of the risk that drivers will now be able to do <
board-common/xyz.h> ?If that is the case, and Tom, Simon, you folks agree as well, I can drop the entire series.
So I think I see the point that Masahiro (and others) are making and it makes sense, sorry for not seeing it earlier myself. Since we have many matches on <board-common/foo.h> but no functions in common (or even common function names but with different prototypes) we really aren't gaining anything by doing this kind of change. So yes, we should just reference this locally since it is local to board/$(VENDOR). Thanks for taking the time to do this Nishanth but NAK.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151116/5bfb2637/attachment.sig>
PATCH v2 8/12 board: mpl: Move common headers to board-common directory
In reply to Nishanth MenonHeader files can be located in a generic location without needing to reference them with ../common/
Generated with the following script
#!/bin/bash
vendor=board/mpl
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
board/mpl/common/common_util.c | 2 +-
board/mpl/common/{ => include/board-common}/common_util.h | 0
board/mpl/common/{ => include/board-common}/isa.h | 0
board/mpl/common/isa.c | 2 +-
board/mpl/common/kbd.c | 2 +-
board/mpl/common/pci.c | 2 +-
board/mpl/mip405/cmd_mip405.c | 2 +-
board/mpl/mip405/mip405.c | 2 +-
board/mpl/pip405/cmd_pip405.c | 2 +-
board/mpl/pip405/pip405.c | 4 ++--
board/mpl/vcma9/cmd_vcma9.c | 2 +-
board/mpl/vcma9/vcma9.c | 2 +-
12 files changed, 11 insertions(+), 11 deletions(-)
rename board/mpl/common/{ => include/board-common}/common_util.h (100%)
rename board/mpl/common/{ => include/board-common}/isa.h (100%)board/mpl/common/common_util.c +1 -1
@@ -8,7 +8,7 @@#include <common.h> #include <command.h> #include <video_fb.h> -#include "common_util.h" +#include <board-common/common_util.h> #include <asm/processor.h> #include <asm/byteorder.h> #include <i2c.h>
board/mpl/common/include/board-common/common_util.h renamed from board/mpl/common/common_util.h +0 -0
board/mpl/common/include/board-common/isa.h renamed from board/mpl/common/isa.h +0 -0
board/mpl/common/isa.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <asm/processor.h> #include <stdio_dev.h> -#include "isa.h" +#include <board-common/isa.h> #include "piix4_pci.h" #include "kbd.h" #include "video.h"
board/mpl/common/kbd.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <asm/processor.h> #include <stdio_dev.h> -#include "isa.h" +#include <board-common/isa.h> #include "kbd.h"
board/mpl/common/pci.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <pci.h> -#include "isa.h" +#include <board-common/isa.h> #ifdef CONFIG_405GP #ifdef CONFIG_PCI
board/mpl/mip405/cmd_mip405.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <command.h> #include "mip405.h" -#include "../common/common_util.h" +#include <board-common/common_util.h> extern void print_mip405_info (void );
board/mpl/mip405/mip405.c +1 -1
@@ -51,7 +51,7 @@#include <asm/ppc4xx.h> #include <asm/ppc4xx-i2c.h> #include <miiphy.h> -#include "../common/common_util.h" +#include <board-common/common_util.h> #include <stdio_dev.h> #include <i2c.h> #include <rtc.h>
board/mpl/pip405/cmd_pip405.c +1 -1
@@ -10,7 +10,7 @@#include <common.h> #include <command.h> #include "pip405.h" -#include "../common/common_util.h" +#include <board-common/common_util.h> extern void print_pip405_info (void );
board/mpl/pip405/pip405.c +2 -2
@@ -12,8 +12,8 @@#include <asm/processor.h> #include <i2c.h> #include <stdio_dev.h> -#include "../common/isa.h" -#include "../common/common_util.h" +#include <board-common/isa.h> +#include <board-common/common_util.h> DECLARE_GLOBAL_DATA_PTR ;
board/mpl/vcma9/cmd_vcma9.c +1 -1
@@ -12,7 +12,7 @@#include <command.h> #include <net.h> #include "vcma9.h" -#include "../common/common_util.h" +#include <board-common/common_util.h> #if defined(CONFIG_CS8900 )#include <../drivers/net/cs8900.h>
board/mpl/vcma9/vcma9.c +1 -1
@@ -16,7 +16,7 @@#include <asm/arch/s3c24x0_cpu.h> #include "vcma9.h" -#include "../common/common_util.h" +#include <board-common/common_util.h> DECLARE_GLOBAL_DATA_PTR ;
Signature · 1 line
2.6.2.402.g2635c2b
PATCH v2 8/12 board: mpl: Move common headers to board-common directory
Hello
Quoted 5 lines · Nishanth Menon
Header files can be located in a generic location without needing to reference them with ../common/
board/mpl/common/{ =>
include/board-common}/common_util.h(100%) rename board/mpl/common/{ =>include/board-common}/isa.h(100%)
Correct me if I'm missing something here but I don't see the actual gain of doing this. "board/mpl/common" contains MPL specific things which should be kept as locally to the MPL boards directory as possible.
For example how is a potential other "isa.h" file from another vendor and/or board handled? By using a <VENDOR><BOARD> prefix/suffix?
Dave
PATCH v2 8/12 board: mpl: Move common headers to board-common directory
Quoted 6 lines · David M?ller (ELSOFT AG)
Hello
Quoted 3 lines · Nishanth Menon
Header files can be located in a generic location without needing to reference them with ../common/
Quoted 6 lines
Quoted 2 lines
board/mpl/common/{ =>
include/board-common}/common_util.h(100%) rename board/mpl/common/{ =>include/board-common}/isa.h(100%)Correct me if I'm missing something here but I don't see the actual gain of doing this. "board/mpl/common" contains MPL specific things which should be kept as locally to the MPL boards directory as possible.
The gain here is to make it easy and consistent in how we access and store things which are common to a vendor, but say spread over SoCs (and even architectures). We have a few ad-hoc methods today and Nishanth is consolidating things after another thread we just had.
Quoted 2 lines
For example how is a potential other "
isa.h" file from another vendor and/or board handled? By using a <VENDOR><BOARD> prefix/suffix?
If we run into two vendors having the same header file, and it being needed in common code (rather than vendor-common code) then we've put information in the wrong place.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151113/c1788e47/attachment.sig>
PATCH v2 9/12 board: seco: Move common headers to board-common directory
In reply to Nishanth MenonHeader files can be located in a generic location without needing to reference them with ../common/
Generated with the following script
#!/bin/bash
vendor=board/seco
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
board/seco/common/{ => include/board-common}/mx6.h | 0
board/seco/mx6quq7/mx6quq7.c | 2 +-
2 files changed, 1 insertion(+), 1 deletion(-)
rename board/seco/common/{ => include/board-common}/mx6.h (100%)board/seco/common/include/board-common/mx6.h renamed from board/seco/common/mx6.h +0 -0
board/seco/mx6quq7/mx6quq7.c +1 -1
@@ -31,7 +31,7 @@#include <asm/imx-common/mxc_i2c.h> #include <i2c.h> -#include "../common/mx6.h" +#include <board-common/mx6.h> DECLARE_GLOBAL_DATA_PTR ;
Signature · 1 line
2.6.2.402.g2635c2b
PATCH v2 10/12 board: siemens: Move common headers to board-common directory
In reply to Nishanth MenonHeader 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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
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%)board/siemens/common/board.c +1 -1
@@ -28,7 +28,7 @@#include <miiphy.h> #include <cpsw.h> #include <watchdog.h> -#include "../common/factoryset.h" +#include <board-common/factoryset.h> DECLARE_GLOBAL_DATA_PTR ;
board/siemens/common/factoryset.c +1 -1
@@ -17,7 +17,7 @@#include <net.h> #include <errno.h> #include <g_dnl.h> -#include "factoryset.h" +#include <board-common/factoryset.h> #define EEPR_PG_SZ 0x80#define EEPROM_FATORYSET_OFFSET 0x400
board/siemens/common/include/board-common/factoryset.h renamed from board/siemens/common/factoryset.h +0 -0
board/siemens/draco/board.c +1 -1
@@ -32,7 +32,7 @@#include <cpsw.h> #include <watchdog.h> #include "board.h" -#include "../common/factoryset.h" +#include <board-common/factoryset.h> DECLARE_GLOBAL_DATA_PTR ;
board/siemens/pxm2/board.c +1 -1
@@ -33,7 +33,7 @@#include <cpsw.h> #include <watchdog.h> #include "board.h" -#include "../common/factoryset.h" +#include <board-common/factoryset.h> #include "pmic.h" #include <nand.h> #include <bmp_layout.h>
board/siemens/rut/board.c +1 -1
@@ -32,7 +32,7 @@#include <video.h> #include <watchdog.h> #include "board.h" -#include "../common/factoryset.h" +#include <board-common/factoryset.h> #include "../../../drivers/video/da8xx-fb.h" DECLARE_GLOBAL_DATA_PTR ;
Signature · 1 line
2.6.2.402.g2635c2b
Egli
PATCH v2 10/12 board: siemens: Move common headers to board-common directory
Hi Nishanth,
this patch doesn't work for me. I applied the patch on top of 439fcb9b4f717f5a583014acb3e75b789564867c.
Running ./MAKEALL -v siemens
Quoted 12 lines
[...]
Building rut board...
arm-none-linux-gnueabi-size: './u-boot': No such fileboard/siemens/rut/board.c:35:37: fatal error:board-common/factoryset.h: No such file or directory make[1]: *** [board/siemens/rut/board.o] Error 1
make: *** [board/siemens/rut] Error 2board/siemens/rut/board.c:35:37: fatal error:board-common/factoryset.h: No such file or directory compilation terminated.
make[1]: *** [board/siemens/rut/board.o] Error 1
make: *** [board/siemens/rut] Error 2
make: *** Waiting for unfinished jobs....
Quoted 6 lines
--------------------- SUMMARY ---------------------------- Boards compiled: 9
Boards with errors: 5 ( draco rastaban thuban pxm2 rut )
----------------------------------------------------------
** Note: MAKEALL is deprecated - please use buildman instead ** Seetools/buildman/READMEfor details
All boards using board-common/factoryset.h fail with the same error like in the snippet above from "rut" board.
Regards,
Sam
Quoted 126 lines
-----Original Message-----
From: Nishanth Menon [mailto:nm at ti.com]
Sent: Freitag, 13. November 2015 06:44
To: Simon Glass; Tom Rini; Masahiro Yamada; Daniel Schwierzeck; Michal Marek; Stefan Roese; Bin Meng
Cc: u-boot at lists.denx.de; Nishanth Menon; Paul Kocialkowski; Joe Hershberger; Egli, Samuel; Heiko Schocher; Meier, Roger
Subject: [PATCH V2 10/12] board: siemens: Move common headers to board- common directoryHeader 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/commoncfiles=
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\"/<board-common\/$hbase>/g"
$vendor/*/*.[chS]sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g"$vendor/common/*.[chS] done
Cc Paul Kocialkowski <[email protected]>Cc Joe Hershberger <[email protected]>Cc Simon Glass <[email protected]>Cc Samuel Egli <[email protected]>Cc Heiko Schocher <[email protected]>Cc Roger Meier <[email protected]>Signed-off-by Nishanth Menon <[email protected]>--- 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(-) renameboard/siemens/common/{ =>
include/board-common}/factoryset.h(100%)board/siemens/common/board.c +1
-1@@ -28,7 +28,7 @@#include <miiphy.h> #include <cpsw.h> #include <watchdog.h> -#include "../common/factoryset.h" +#include <board-common/factoryset.h> DECLARE_GLOBAL_DATA_PTR ;board/siemens/common/factoryset.c +1
-1@@ -17,7 +17,7 @@#include <net.h> #include <errno.h> #include <g_dnl.h> -#include "factoryset.h" +#include <board-common/factoryset.h> #define EEPR_PG_SZ 0x80#define EEPROM_FATORYSET_OFFSET 0x400board/siemens/common/include/board-common/factoryset.h renamed from board/siemens/common/factoryset.h rename to +0
-0
board/siemens/common/include/board-common/factoryset.hboard/siemens/draco/board.c +1
-1@@ -32,7 +32,7 @@#include <cpsw.h> #include <watchdog.h> #include "board.h" -#include "../common/factoryset.h" +#include <board-common/factoryset.h> DECLARE_GLOBAL_DATA_PTR ;board/siemens/pxm2/board.c index renamed from board/siemens/pxm2/board.c +0
-0
750f33889742..9998a3f52bf4100644board/siemens/pxm2/board.c +1
-1@@ -33,7 +33,7 @@#include <cpsw.h> #include <watchdog.h> #include "board.h" -#include "../common/factoryset.h" +#include <board-common/factoryset.h> #include "pmic.h" #include <nand.h> #include <bmp_layout.h> board/siemens/rut/board.c index renamed from board/siemens/rut/board.c +0
-0
f94e3e5736f3..cafcfbd3358f100644board/siemens/rut/board.c +1
-2@@ -32,7 +32,7 @@#include <video.h> #include <watchdog.h> #include "board.h" -#include "../common/factoryset.h" +#include <board-common/factoryset.h> #include "../../../drivers/video/da8xx-fb.h" DECLARE_GLOBAL_DATA_PTR ; --2.6.2.402.g2635c2b
PATCH v2 11/12 board: varisys: Move common headers to board-common directory
In reply to Nishanth MenonHeader files can be located in a generic location without needing to reference them with ../common/
Generated with the following script
#!/bin/bash
vendor=board/varisys
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
board/varisys/common/{ => include/board-common}/eeprom.h | 0
board/varisys/common/sys_eeprom.c | 2 +-
board/varisys/cyrus/cyrus.c | 2 +-
3 files changed, 2 insertions(+), 2 deletions(-)
rename board/varisys/common/{ => include/board-common}/eeprom.h (100%)board/varisys/common/include/board-common/eeprom.h renamed from board/varisys/common/eeprom.h +0 -0
board/varisys/common/sys_eeprom.c +1 -1
@@ -16,7 +16,7 @@#include <i2c.h> #include <linux/ctype.h> -#include "eeprom.h" +#include <board-common/eeprom.h> #ifdef CONFIG_SYS_I2C_EEPROM_NXID_MAC #define MAX_NUM_PORTS CONFIG_SYS_I2C_EEPROM_NXID_MAC
board/varisys/cyrus/cyrus.c +1 -1
@@ -20,7 +20,7 @@#include <pci.h> #include "cyrus.h" -#include "../common/eeprom.h" +#include <board-common/eeprom.h> DECLARE_GLOBAL_DATA_PTR ;
Signature · 1 line
2.6.2.402.g2635c2b
PATCH v2 11/12 board: varisys: Move common headers to board-common directory
board/varisys/cyrus/cyrus.c line 23
Quoted 13 lines · Nishanth Menon
Header files can be located in a generic location without needing to reference them with ../common/
board/varisys/cyrus/cyrus.c +1
-1@@ -20,7 +20,7 @@#include <pci.h> #include "cyrus.h" -#include "../common/eeprom.h" +#include <board-common/eeprom.h>
PATCH v2 12/12 board: xes: Move common headers to board-common directory
In reply to Nishanth MenonHeader files can be located in a generic location without needing to reference them with ../common/
Generated with the following script
#!/bin/bash
vendor=board/xes
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
done
---
board/xes/common/board.c | 2 +-
board/xes/common/{ => include/board-common}/fsl_8xxx_misc.h | 0
board/xes/xpedite517x/xpedite517x.c | 2 +-
3 files changed, 2 insertions(+), 2 deletions(-)
rename board/xes/common/{ => include/board-common}/fsl_8xxx_misc.h (100%)board/xes/common/board.c +1 -1
@@ -5,7 +5,7 @@*/ #include <common.h> -#include "fsl_8xxx_misc.h" +#include <board-common/fsl_8xxx_misc.h> int checkboard (void ) {
board/xes/common/include/board-common/fsl_8xxx_misc.h renamed from board/xes/common/fsl_8xxx_misc.h +0 -0
board/xes/xpedite517x/xpedite517x.c +1 -1
@@ -11,7 +11,7 @@#include <asm/io.h> #include <fdt_support.h> #include <pca953x.h> -#include "../common/fsl_8xxx_misc.h" +#include <board-common/fsl_8xxx_misc.h> #if defined(CONFIG_OF_BOARD_SETUP ) && defined(CONFIG_PCI )extern void ft_board_pci_setup (void *blob,bd_t *bd);
Signature · 1 line
2.6.2.402.g2635c2b
v2 cover Series to move headers to a consistent include location
In reply to Nishanth MenonHi Nishanth,
Quoted 292 lines · Nishanth Menon
Hi,
This series is hopefully to setup the stage for consolidation of board/vendor/common include header organization in u-boot.Discussion thread:
https://patchwork.ozlabs.org/patch/540280/ https://patchwork.ozlabs.org/patch/541068/ https://patchwork.ozlabs.org/patch/542424/In short, we:
a) Dont want to have symlinks for include headers
b) Want to be able to reference headers in reuse by doing #include <board-common/xyz.h>So, we follow the "option #6" discussed in the last of the threads above. Only the first patch in this series was pasted and discussed previously. The remaining 11 in the series is natural cleanups as a result.
The series is Based on:
masterade766acfb27Merge branch 'next' ofgit://git.denx.de/u-boot-blackfinScript 1: identifying the board/vendors impacted:
#!/bin/bashfor common in
git grep "../common" board|grep "#include"|cut -d ':' -f1|cut -d '/' -f1,2|sort -udocfiles=`git grep "../common" $common|grep "#include"|cut -d '"' -f2|sort -u|grep c$` headers=`git grep "../common" $common|grep "#include"|cut -d '"' -f2|sort -u|grep h$` if [ -z "$headers" ]; then continue; fi echo $common : $headers : $cfilesdone
Output:
board/BuR :../common/bur_common.h:
board/compulab :../common/common.h../common/eeprom.h:
board/freescale :../common/cadmus.h../common/dcu_sii9022a.h../common/diu_ch7301.h../common/eeprom.h../common/fman.h../common/idt8t49n222a_serdes_clk.h../common/ngpixis.h../common/pfuze.h../common/pixis.h../common/pq-mds-pib.h../common/qixis.h../common/sgmii_riser.h../common/sleep.h../common/via.h../common/vid.h../common/vsc3316_3308.h../common/zm7300.h:
board/gdsys :../common/dp501.h../common/mclink.h../common/osd.h../common/phy.h:
board/keymile :../common/common.h:
board/LaCie :../common/common.h../common/cpld-gpio-bus.h:
board/mpl :../common/common_util.h../common/isa.h:
board/seco :../common/mx6.h:
board/siemens :../common/factoryset.h:../common/board.c
board/varisys :../common/eeprom.h:
board/xes :../common/fsl_8xxx_misc.h:Script2: this is used to move the headers to relevant locations:
#!/bin/bash
vendor=$1
common=$vendor/commoncfiles=
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\"/<board-common\/$hbase>/g" $vendor/*/*.[chS] sed -i -e "s/\"$hbase\"/<board-common\/$hbase>/g" $vendor/common/*.[chS]
doneBuild tested with the following with at least the ARM platforms:
MAKEALL -v compulab -v BuR -v LaCie -v seco -v siemensNOTE: I know this series impacts a lot of platforms..
other than patch #1, they are probably nice to have.. but upto you guys if you'd like it or not.. it will be good to standardize things a bit here. I am *NOT* trying to fix the following code:$ git grep "\.\./common" board/*/*/*.[chS]|sort -u board/amcc/bamboo/flash.c:#include "../common/flash.c" board/amcc/bubinga/flash.c:#include "../common/flash.c" board/amcc/luan/flash.c:#include "../common/flash.c" board/amcc/walnut/flash.c:#include "../common/flash.c" board/esd/cpci2dp/flash.c:#include "../common/flash.c" board/esd/cpci405/cpci405.c:#include "../common/fpga.c" board/esd/cpci405/flash.c:#include "../common/flash.c" board/esd/plu405/flash.c:#include "../common/flash.c" board/esd/plu405/plu405.c:#include "../common/fpga.c" board/esd/vom405/flash.c:#include "../common/flash.c" board/siemens/draco/board.c:#include "../common/board.c" board/siemens/pxm2/board.c:#include "../common/board.c" board/siemens/rut/board.c:#include "../common/board.c"Nishanth Menon (12):
Makefile: Include vendor common library in include search path
board: BuR: Move common headers to board-common directory
board: compulab: Move common headers to board-common directory
board: freescale: Move common headers to board-common directory
board: gdsys: Move common headers to board-common directory
board: keymile: Move common headers to board-common directory
board: LaCie: Move common headers to board-common directory
board: mpl: Move common headers to board-common directory
board: seco: Move common headers to board-common directory
board: siemens: Move common headers to board-common directory
board: varisys: Move common headers to board-common directory
board: xes: Move common headers to board-common directoryMakefile | 3 +++ 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 +- board/LaCie/common/cpld-gpio-bus.c | 2 +- board/LaCie/common/{ => include/board-common}/common.h | 0 board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h | 0 board/LaCie/edminiv2/edminiv2.c | 2 +- board/LaCie/net2big_v2/net2big_v2.c | 4 ++-- board/LaCie/netspace_v2/netspace_v2.c | 2 +- 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 +- board/freescale/b4860qds/b4860qds.c | 8 ++++---- board/freescale/b4860qds/eth_b4860qds.c | 6 +++--- board/freescale/b4860qds/spl.c | 2 +- board/freescale/bsc9132qds/bsc9132qds.c | 2 +- board/freescale/common/arm_sleep.c | 2 +- board/freescale/common/cds_pci_ft.c | 2 +- board/freescale/common/ics307_clk.c | 6 +++--- board/freescale/common/idt8t49n222a_serdes_clk.c | 2 +- board/freescale/common/{ => include/board-common}/cadmus.h | 0 board/freescale/common/{ => include/board-common}/dcu_sii9022a.h | 0 board/freescale/common/{ => include/board-common}/diu_ch7301.h | 0 board/freescale/common/{ => include/board-common}/eeprom.h | 0 board/freescale/common/{ => include/board-common}/fman.h | 0 .../common/{ => include/board-common}/idt8t49n222a_serdes_clk.h | 0 board/freescale/common/{ => include/board-common}/ngpixis.h | 0 board/freescale/common/{ => include/board-common}/pfuze.h | 0 board/freescale/common/{ => include/board-common}/pixis.h | 0 board/freescale/common/{ => include/board-common}/pq-mds-pib.h | 0 board/freescale/common/{ => include/board-common}/qixis.h | 0 board/freescale/common/{ => include/board-common}/sgmii_riser.h | 0 board/freescale/common/{ => include/board-common}/sleep.h | 0 board/freescale/common/{ => include/board-common}/via.h | 0 board/freescale/common/{ => include/board-common}/vid.h | 0 board/freescale/common/{ => include/board-common}/vsc3316_3308.h | 0 board/freescale/common/{ => include/board-common}/zm7300.h | 0 board/freescale/common/mpc85xx_sleep.c | 2 +- board/freescale/common/ngpixis.c | 2 +- board/freescale/common/pq-mds-pib.c | 2 +- board/freescale/common/qixis.c | 2 +- board/freescale/common/sys_eeprom.c | 2 +- board/freescale/common/vid.c | 2 +- board/freescale/common/vsc3316_3308.c | 2 +- board/freescale/common/zm7300.c | 2 +- board/freescale/corenet_ds/corenet_ds.c | 2 +- board/freescale/corenet_ds/eth_hydra.c | 4 ++-- board/freescale/corenet_ds/eth_p4080.c | 4 ++-- board/freescale/corenet_ds/eth_superhydra.c | 4 ++-- board/freescale/ls1021aqds/dcu.c | 2 +- board/freescale/ls1021aqds/eth.c | 4 ++-- board/freescale/ls1021aqds/ls1021aqds.c | 4 ++-- board/freescale/ls1021atwr/dcu.c | 2 +- board/freescale/ls1021atwr/ls1021atwr.c | 2 +- board/freescale/ls1043ardb/eth.c | 2 +- board/freescale/ls2085aqds/eth.c | 2 +- board/freescale/ls2085aqds/ls2085aqds.c | 2 +- board/freescale/ls2085ardb/ls2085ardb.c | 2 +- board/freescale/mpc832xemds/mpc832xemds.c | 2 +- board/freescale/mpc832xemds/pci.c | 2 +- board/freescale/mpc837xemds/mpc837xemds.c | 2 +- board/freescale/mpc8536ds/mpc8536ds.c | 2 +- board/freescale/mpc8541cds/mpc8541cds.c | 6 +++--- board/freescale/mpc8544ds/mpc8544ds.c | 2 +- board/freescale/mpc8548cds/mpc8548cds.c | 6 +++--- board/freescale/mpc8555cds/mpc8555cds.c | 6 +++--- board/freescale/mpc8569mds/mpc8569mds.c | 2 +- board/freescale/mpc8572ds/mpc8572ds.c | 2 +- board/freescale/mpc8610hpcd/mpc8610hpcd_diu.c | 2 +- board/freescale/mx6qsabreauto/mx6qsabreauto.c | 2 +- board/freescale/mx6sabresd/mx6sabresd.c | 2 +- board/freescale/mx6slevk/mx6slevk.c | 2 +- board/freescale/mx6sxsabresd/mx6sxsabresd.c | 2 +- board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +- board/freescale/mx7dsabresd/mx7dsabresd.c | 2 +- board/freescale/p1022ds/diu.c | 2 +- board/freescale/p1022ds/p1022ds.c | 2 +- board/freescale/p1022ds/spl.c | 2 +- board/freescale/p2041rdb/eth.c | 2 +- board/freescale/t102xqds/eth_t102xqds.c | 4 ++-- board/freescale/t102xqds/spl.c | 2 +- board/freescale/t102xqds/t102xqds.c | 4 ++-- board/freescale/t102xrdb/eth_t102xrdb.c | 2 +- board/freescale/t102xrdb/spl.c | 2 +- board/freescale/t102xrdb/t102xrdb.c | 2 +- board/freescale/t1040qds/diu.c | 4 ++-- board/freescale/t1040qds/eth.c | 4 ++-- board/freescale/t1040qds/t1040qds.c | 4 ++-- board/freescale/t104xrdb/diu.c | 2 +- board/freescale/t104xrdb/eth.c | 2 +- board/freescale/t104xrdb/spl.c | 2 +- board/freescale/t104xrdb/t104xrdb.c | 2 +- board/freescale/t208xqds/eth_t208xqds.c | 4 ++-- board/freescale/t208xqds/spl.c | 2 +- board/freescale/t208xqds/t208xqds.c | 6 +++--- board/freescale/t208xrdb/t208xrdb.c | 2 +- board/freescale/t4qds/eth.c | 4 ++-- board/freescale/t4qds/spl.c | 2 +- board/freescale/t4qds/t4240qds.c | 4 ++-- board/freescale/t4rdb/eth.c | 2 +- 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 +- 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 +- board/mpl/common/common_util.c | 2 +- board/mpl/common/{ => include/board-common}/common_util.h | 0 board/mpl/common/{ => include/board-common}/isa.h | 0 board/mpl/common/isa.c | 2 +- board/mpl/common/kbd.c | 2 +- board/mpl/common/pci.c | 2 +- board/mpl/mip405/cmd_mip405.c | 2 +- board/mpl/mip405/mip405.c | 2 +- board/mpl/pip405/cmd_pip405.c | 2 +- board/mpl/pip405/pip405.c | 4 ++-- board/mpl/vcma9/cmd_vcma9.c | 2 +- board/mpl/vcma9/vcma9.c | 2 +- board/seco/common/{ => include/board-common}/mx6.h | 0 board/seco/mx6quq7/mx6quq7.c | 2 +- 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 +- board/varisys/common/{ => include/board-common}/eeprom.h | 0 board/varisys/common/sys_eeprom.c | 2 +- board/varisys/cyrus/cyrus.c | 2 +- board/xes/common/board.c | 2 +- board/xes/common/{ => include/board-common}/fsl_8xxx_misc.h | 0 board/xes/xpedite517x/xpedite517x.c | 2 +- 153 files changed, 160 insertions(+), 157 deletions(-) rename board/BuR/common/{ => include/board-common}/bur_common.h (100%) rename board/LaCie/common/{ => include/board-common}/common.h (100%) rename board/LaCie/common/{ => include/board-common}/cpld-gpio-bus.h (100%) rename board/compulab/common/{ => include/board-common}/common.h (100%) rename board/compulab/common/{ => include/board-common}/eeprom.h (100%) rename board/freescale/common/{ => include/board-common}/cadmus.h (100%) rename board/freescale/common/{ => include/board-common}/dcu_sii9022a.h (100%) rename board/freescale/common/{ => include/board-common}/diu_ch7301.h (100%) rename board/freescale/common/{ => include/board-common}/eeprom.h (100%) rename board/freescale/common/{ => include/board-common}/fman.h (100%) rename board/freescale/common/{ => include/board-common}/idt8t49n222a_serdes_clk.h (100%) rename board/freescale/common/{ => include/board-common}/ngpixis.h (100%) rename board/freescale/common/{ => include/board-common}/pfuze.h (100%) rename board/freescale/common/{ => include/board-common}/pixis.h (100%) rename board/freescale/common/{ => include/board-common}/pq-mds-pib.h (100%) rename board/freescale/common/{ => include/board-common}/qixis.h (100%) rename board/freescale/common/{ => include/board-common}/sgmii_riser.h (100%) rename board/freescale/common/{ => include/board-common}/sleep.h (100%) rename board/freescale/common/{ => include/board-common}/via.h (100%) rename board/freescale/common/{ => include/board-common}/vid.h (100%) rename board/freescale/common/{ => include/board-common}/vsc3316_3308.h (100%) rename board/freescale/common/{ => include/board-common}/zm7300.h (100%) 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%) rename board/keymile/common/{ => include/board-common}/common.h (100%) rename board/mpl/common/{ => include/board-common}/common_util.h (100%) rename board/mpl/common/{ => include/board-common}/isa.h (100%) rename board/seco/common/{ => include/board-common}/mx6.h (100%) rename board/siemens/common/{ => include/board-common}/factoryset.h (100%) rename board/varisys/common/{ => include/board-common}/eeprom.h (100%) rename board/xes/common/{ => include/board-common}/fsl_8xxx_misc.h (100%)
Quoted 2 lines
--
2.6.2.402.g2635c2b
Are you going to do a new version of this series? It seems like a good idea to me and I'd like to see it applied.
Regards,
Simon
v2 cover Series to move headers to a consistent include location
Hi Simon,
On Sat, Dec 19, 2015 at 5:07 PM, Simon Glass <[email protected]> wrote:
[...]
Quoted 3 lines
Are you going to do a new version of this series? It seems like a good idea to me and I'd like to see it applied.
As per:
https://patchwork.ozlabs.org/patch/544032/
I think we agreed to just drop the entire series.
---
Regards,
Nishanth Menon
v2 cover Series to move headers to a consistent include location
Hi Nishanth,
Quoted 6 lines · Nishanth Menon
Hi Simon,
On Sat, Dec 19, 2015 at 5:07 PM, Simon Glass <[email protected]> wrote:
[...]
Quoted 1 line
Quoted 8 lines
Quoted 2 lines
Are you going to do a new version of this series? It seems like a good idea to me and I'd like to see it applied.
As per:
https://patchwork.ozlabs.org/patch/544032/
I think we agreed to just drop the entire series.
I see. It's a shame, but I can see the problem that the code might be used from other parts outside the board/ directory, and that would be bad.
Thanks for taking this on, sorry it didn't make the cut.
Regards,
Simon