Rename uboot/datetime to dummy/datetime.
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 8 May 2017 17:37:29 +0000 (19:37 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 8 May 2017 17:40:14 +0000 (19:40 +0200)
It's just a stub and is not UBoot-specific.

grub-core/Makefile.core.def
grub-core/lib/dummy/datetime.c [moved from grub-core/lib/uboot/datetime.c with 91% similarity]

index 2a38bd4..6540dc9 100644 (file)
@@ -1552,7 +1552,7 @@ module = {
   name = datetime;
   cmos = lib/cmos_datetime.c;
   efi = lib/efi/datetime.c;
-  uboot = lib/uboot/datetime.c;
+  uboot = lib/dummy/datetime.c;
   sparc64_ieee1275 = lib/ieee1275/datetime.c;
   powerpc_ieee1275 = lib/ieee1275/datetime.c;
   sparc64_ieee1275 = lib/ieee1275/cmos.c;
similarity index 91%
rename from grub-core/lib/uboot/datetime.c
rename to grub-core/lib/dummy/datetime.c
index 4be7169..cf693fc 100644 (file)
@@ -18,7 +18,6 @@
 
 #include <grub/types.h>
 #include <grub/symbol.h>
-#include <grub/uboot/uboot.h>
 #include <grub/datetime.h>
 #include <grub/dl.h>
 
@@ -30,12 +29,12 @@ grub_err_t
 grub_get_datetime (struct grub_datetime *datetime __attribute__ ((unused)))
 {
   return grub_error (GRUB_ERR_INVALID_COMMAND,
-                    "can\'t get datetime using U-Boot");
+                    "can\'t get datetime on this machine");
 }
 
 grub_err_t
 grub_set_datetime (struct grub_datetime * datetime __attribute__ ((unused)))
 {
   return grub_error (GRUB_ERR_INVALID_COMMAND,
-                    "can\'t set datetime using U-Boot");
+                    "can\'t set datetime on this machine");
 }