mirror of
https://github.com/edk2-porting/edk2-msm
synced 2024-11-22 18:36:19 +00:00
f8cbad0776
Signed-off-by: Molly Sophia <mollysophia379@gmail.com>
23 lines
627 B
Makefile
Executable File
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: |