diff --git a/src/commonlib/Makefile.inc b/src/commonlib/Makefile.inc index ad55794cde..be22e0097d 100644 --- a/src/commonlib/Makefile.inc +++ b/src/commonlib/Makefile.inc @@ -25,5 +25,3 @@ verstage-y += lz4_wrapper.c romstage-y += lz4_wrapper.c ramstage-y += lz4_wrapper.c postcar-y += lz4_wrapper.c - -ramstage-y += rtc.c diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc index 5d619d923a..2272b82dfd 100644 --- a/src/lib/Makefile.inc +++ b/src/lib/Makefile.inc @@ -81,6 +81,7 @@ ramstage-$(CONFIG_PRIMITIVE_MEMTEST) += primitive_memtest.c romstage-$(CONFIG_CACHE_AS_RAM) += ramtest.c romstage-$(CONFIG_GENERIC_GPIO_LIB) += gpio.c romstage-y += stack.c +ramstage-y += rtc.c ifeq ($(CONFIG_EARLY_CBMEM_INIT),y) romstage-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c diff --git a/src/commonlib/rtc.c b/src/lib/rtc.c similarity index 85% rename from src/commonlib/rtc.c rename to src/lib/rtc.c index 08ce0d12c9..bd98590d96 100644 --- a/src/commonlib/rtc.c +++ b/src/lib/rtc.c @@ -1,8 +1,18 @@ /* - * (C) Copyright 2001 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * This file is part of the coreboot project. + * + * (C) Copyright 2001 Wolfgang Denk, DENX Software Engineering, wd@denx.de. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * SPDX-License-Identifier: GPL-2.0+ * From U-Boot 2016.05 */