mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 09:11:42 +00:00
[EFI]
- Add BCD creation. - Add BCD to bootcd, and also to EFISYS.BIN. Verified the BCD is now present on the EFI partition. svn path=/trunk/; revision=69156
This commit is contained in:
parent
be0ecbd74e
commit
28b4a595d3
5 changed files with 38 additions and 2 deletions
|
@ -16,7 +16,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_custom_target(efisys
|
add_custom_target(efisys
|
||||||
COMMAND native-fatten ${CMAKE_CURRENT_BINARY_DIR}/efisys.bin -format 2880 EFIBOOT -boot ${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/fat.bin -mkdir EFI -mkdir EFI/BOOT -add $<TARGET_FILE:bootmgfw> EFI/BOOT/boot${EFI_PLATFORM_ID}.efi
|
COMMAND native-fatten ${CMAKE_CURRENT_BINARY_DIR}/efisys.bin -format 2880 EFIBOOT -boot ${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/fat.bin -mkdir EFI -mkdir EFI/BOOT -add $<TARGET_FILE:bootmgfw> EFI/BOOT/boot${EFI_PLATFORM_ID}.efi -add ${CMAKE_BINARY_DIR}/boot/bootdata/BCD EFI/BOOT/BCD
|
||||||
DEPENDS native-fatten bootmgfw fat
|
DEPENDS native-fatten bootmgfw fat
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@ add_registry_inf(
|
||||||
hivecls.inf
|
hivecls.inf
|
||||||
hivedef.inf
|
hivedef.inf
|
||||||
hivesft.inf
|
hivesft.inf
|
||||||
hivesys.inf)
|
hivesys.inf
|
||||||
|
hivebcd.inf)
|
||||||
|
|
||||||
|
|
||||||
#regtest
|
#regtest
|
||||||
|
|
11
reactos/boot/bootdata/hivebcd.inf
Normal file
11
reactos/boot/bootdata/hivebcd.inf
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Version]
|
||||||
|
Signature = "$ReactOS$"
|
||||||
|
|
||||||
|
[AddReg]
|
||||||
|
|
||||||
|
HKLM,"BCD00000000\Description\Control","System",0x00010003,1
|
||||||
|
HKLM,"BCD00000000\Description\Control","TreatAtSystem",0x00010003,1
|
||||||
|
HKLM,"BCD00000000\Description\Control","KeyName",2,"BCD00000000"
|
||||||
|
HKLM,"BCD00000000\Description\Objects",,0x00000012
|
||||||
|
|
||||||
|
; EOF
|
|
@ -793,6 +793,22 @@ function(create_registry_hives)
|
||||||
DESTINATION reactos/system32/config
|
DESTINATION reactos/system32/config
|
||||||
FOR livecd)
|
FOR livecd)
|
||||||
|
|
||||||
|
# BCD Hive
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${CMAKE_BINARY_DIR}/boot/bootdata/BCD
|
||||||
|
COMMAND native-mkhive ${CMAKE_BINARY_DIR}/boot/bootdata/ ${CMAKE_BINARY_DIR}/boot/bootdata/hivebcd_utf16.inf
|
||||||
|
DEPENDS native-mkhive ${CMAKE_SOURCE_DIR}/boot/bootdata/hivebcd.inf)
|
||||||
|
|
||||||
|
add_custom_target(bcd_hive
|
||||||
|
DEPENDS ${CMAKE_BINARY_DIR}/boot/bootdata/BCD)
|
||||||
|
|
||||||
|
add_cd_file(
|
||||||
|
FILE ${CMAKE_BINARY_DIR}/boot/bootdata/BCD
|
||||||
|
TARGET bcd_hive
|
||||||
|
DESTINATION efi/boot
|
||||||
|
NO_CAB
|
||||||
|
FOR bootcd regtest livecd)
|
||||||
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
if(KDBG)
|
if(KDBG)
|
||||||
|
|
|
@ -143,6 +143,14 @@ int main (int argc, char *argv[])
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
convert_path (FileName, argv[1]);
|
||||||
|
strcat (FileName, DIR_SEPARATOR_STRING);
|
||||||
|
strcat (FileName, "bcd");
|
||||||
|
if (!ExportBinaryHive (FileName, &SystemHive))
|
||||||
|
{
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
RegShutdownRegistry ();
|
RegShutdownRegistry ();
|
||||||
|
|
||||||
printf (" Done.\n");
|
printf (" Done.\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue