[PATCH 1/1] lib: move rtc-lib.c to lib

Pali Rohár pali at kernel.org
Sat Jun 12 12:58:06 CEST 2021


On Saturday 12 June 2021 18:55:12 Bin Meng wrote:
> Hi Heinrich,
> 
> On Sat, Jun 12, 2021 at 2:22 PM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> >
> > Function rtc_to_tm() is needed for FAT file system support even if we don't
> > have a real time clock. So move it from drivers/ to lib/.
> >
> > Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> > ---
> >  drivers/rtc/Makefile  |  1 -
> >  drivers/rtc/rtc-lib.c | 77 -------------------------------------------
> >  lib/Makefile          |  1 +
> >  lib/rtc-lib.c         | 77 +++++++++++++++++++++++++++++++++++++++++++
> >  4 files changed, 78 insertions(+), 78 deletions(-)
> >  delete mode 100644 drivers/rtc/rtc-lib.c
> >  create mode 100644 lib/rtc-lib.c
> 
> Please use "git mv"

"git mv" probably does not help as git internally does not track
information about movement... "git mv" should od same thing as
"git add" && "git rm".

Rather you need to generate patch with "-M" option to detect file
movement.

> Regards,
> Bin


More information about the U-Boot mailing list