Fix a typo in Makefile.
This commit is contained in:
parent
392d88a183
commit
1dc9b13294
|
@ -9,7 +9,7 @@ QEMU = qemu-system-x86_64
|
||||||
QEMU_KVM = -enable-kvm
|
QEMU_KVM = -enable-kvm
|
||||||
|
|
||||||
ifneq ($(wildcard /usr/share/OVMF/OVMF_CODE.fd),)
|
ifneq ($(wildcard /usr/share/OVMF/OVMF_CODE.fd),)
|
||||||
OVMF_IMG=/usr/share/OVMF/OVMF_CODE.fd)
|
OVMF_IMG = /usr/share/OVMF/OVMF_CODE.fd
|
||||||
else
|
else
|
||||||
OVMF_IMG = /usr/share/edk2-ovmf/OVMF_CODE.fd
|
OVMF_IMG = /usr/share/edk2-ovmf/OVMF_CODE.fd
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -25,7 +25,7 @@ efi_status_t efi_main(efi_handle_t image_handle, struct efi_system_table *system
|
||||||
uint16_t *out;
|
uint16_t *out;
|
||||||
do {
|
do {
|
||||||
++options;
|
++options;
|
||||||
} while (*options != ' '); /* Skip app name */
|
} while (*options != ' '); /* Skip application name */
|
||||||
in = ++options;
|
in = ++options;
|
||||||
do {
|
do {
|
||||||
++options;
|
++options;
|
||||||
|
@ -40,14 +40,14 @@ efi_status_t efi_main(efi_handle_t image_handle, struct efi_system_table *system
|
||||||
/* Get root fs */
|
/* Get root fs */
|
||||||
rootfs->open_volume(rootfs, &rootdir);
|
rootfs->open_volume(rootfs, &rootdir);
|
||||||
|
|
||||||
/* Open file for reading */
|
|
||||||
struct efi_file_protocol *fin;
|
|
||||||
rootdir->open(rootdir, &fin, in, EFI_FILE_MODE_READ, EFI_FILE_READ_ONLY);
|
|
||||||
|
|
||||||
/* Open file for writing */
|
/* Open file for writing */
|
||||||
struct efi_file_protocol *fout;
|
struct efi_file_protocol *fout;
|
||||||
rootdir->open(rootdir, &fout, out, EFI_FILE_MODE_CREATE| EFI_FILE_MODE_WRITE | EFI_FILE_MODE_READ, 0);
|
rootdir->open(rootdir, &fout, out, EFI_FILE_MODE_CREATE| EFI_FILE_MODE_WRITE | EFI_FILE_MODE_READ, 0);
|
||||||
|
|
||||||
|
/* Open file for reading */
|
||||||
|
struct efi_file_protocol *fin;
|
||||||
|
rootdir->open(rootdir, &fin, in, EFI_FILE_MODE_READ, EFI_FILE_READ_ONLY);
|
||||||
|
|
||||||
uint8_t c;
|
uint8_t c;
|
||||||
uint64_t size;
|
uint64_t size;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue