[U-Boot] [Announce][RFC] CFG_ macro renaming

Luigi 'Comio' Mantellini luigi.mantellini.ml at gmail.com
Sun Sep 14 00:12:32 CEST 2008


Hi J.

see inline comments.
Il sabato 13 settembre 2008 23:41:55 Jean-Christophe PLAGNIOL-VILLARD ha 
scritto:
> On 23:38 Sat 13 Sep     , Luigi 'Comio' Mantellini wrote:
> > Hi Jean-Christophe,
> > Hi Wolfgang,
> >
> > Can you create a "deprecated_cfg.h" file that contains directives like:
> >
> > #ifdef CFG_OLD_PARAMATER
> > #error "CFG_OLD_PARAMETER renamed! Use CONIFIG_NEW_PARAMETER instead!"
> > #endif
> >
> > for each CFG_* renamed directive?
> >
> > This should avoid to "lost" some configuration parameters during this
> > transitory.phase. this file should be included by common.h for example.
>
> IMHO, I do not think it's needed due to there is no "lost" possible with
> this kind of script
>
> git-grep CFG_ | cut -d: -f1 | grep -v -e "CHANGELOG*" | xargs sed -i -e
> "s:CFG_:CONFIG_SYS_:g"
>

This doesn't apply on CFG_ENV_IS_* / CONFIG_ENV_IS_* macros (for example). and 
I should use this grep/sed only at the end of the macro renaming. I'm speaking 
about the transitory time.

Best regards,

luigi

> Best Regards,
> J.

-- 


?
Luigi Mantellini
R&D - Software
Industrie Dial Face S.p.A.
Via Canzo, 4 
20068 Peschiera Borromeo (MI), Italy
Tel.:   +39 02 5167 2813
Fax:    +39 02 5167 2459
E-mail: luigi.mantellini at idf-hit.com




More information about the U-Boot mailing list