]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/efi.h
bootstage: Record the time taken to set up driver model
[people/ms/u-boot.git] / include / efi.h
index d07187c7dd06c000698f9ac40a18e338e81c1c34..3d587807e8c9bf34d7adc645fa16d8bd41e81335 100644 (file)
@@ -30,8 +30,11 @@ struct efi_device_path;
 
 #define EFI_BITS_PER_LONG      BITS_PER_LONG
 
-/* With 64-bit EFI stub, EFI_BITS_PER_LONG has to be 64 */
-#ifdef CONFIG_EFI_STUB_64BIT
+/*
+ * With 64-bit EFI stub, EFI_BITS_PER_LONG has to be 64. EFI_STUB is set
+ * in lib/efi/Makefile, when building the stub.
+ */
+#if defined(CONFIG_EFI_STUB_64BIT) && defined(EFI_STUB)
 #undef EFI_BITS_PER_LONG
 #define EFI_BITS_PER_LONG      64
 #endif