0
0
mirror of https://github.com/edk2-porting/edk2-msm synced 2024-11-22 18:36:19 +00:00
edk2-msm/tools/BootShim/Makefile
Molly Sophia f8cbad0776 tools: Add a BootShim for dualbooting
Signed-off-by: Molly Sophia <mollysophia379@gmail.com>
2023-02-13 22:49:54 +08:00

23 lines
627 B
Makefile
Executable File

ARCH = arm64
TARGET = aarch64-linux-gnu
CROSS_COMPILE = $(TARGET)-
CC = $(CROSS_COMPILE)gcc
OBJCOPY = $(CROSS_COMPILE)objcopy
all: BootShim.elf BootShim.bin BootShim.Dualboot.elf BootShim.Dualboot.bin
BootShim.bin: BootShim.elf
$(OBJCOPY) -O binary $< $@
BootShim.elf: BootShim.S
$(CC) -c $< -o $@ -DUEFI_BASE=$(UEFI_BASE) -DUEFI_SIZE=$(UEFI_SIZE)
BootShim.Dualboot.bin: BootShim.Dualboot.elf
$(OBJCOPY) -O binary $< $@
BootShim.Dualboot.elf: BootShim.Dualboot.S
$(CC) -c $< -o $@ -DUEFI_BASE=$(UEFI_BASE) -DUEFI_SIZE=$(UEFI_SIZE)
BootShim.S:
BootShim.Dualboot.S: