Sridhar Parasuram | fedf9ac | 2015-11-03 16:20:50 -0800 | [diff] [blame] | 1 | UEFI_TOP_DIR := . |
| 2 | |
| 3 | ifndef $(BOOTLOADER_OUT) |
| 4 | BOOTLOADER_OUT := . |
| 5 | endif |
| 6 | export $(BOOTLOADER_OUT) |
| 7 | |
| 8 | BUILDDIR=$(shell pwd) |
| 9 | export CLANG35_AARCH64_PREFIX := $(ANDROID_TOOLCHAIN)/aarch64-linux-android- |
| 10 | export CLANG35_BIN := $(CLANG_BIN) |
| 11 | ANDROID_PRODUCT_OUT := $(BOOTLOADER_OUT)/edk2 |
| 12 | |
| 13 | WORKSPACE=$(BUILDDIR) |
| 14 | TARGET_TOOLS := CLANG35 |
| 15 | TARGET := DEBUG |
| 16 | BUILD_ROOT := $(ANDROID_PRODUCT_OUT)/$(TARGET)_$(TARGET_TOOLS) |
| 17 | LOAD_ADDRESS := 0X98100000 |
| 18 | |
| 19 | ABL_FV_IMG := $(BUILD_ROOT)/FV/abl.fv |
| 20 | ABL_FV_ELF := $(BOOTLOADER_OUT)/../../abl.elf |
| 21 | |
| 22 | .PHONY: all cleanall |
| 23 | |
| 24 | all: ABL_FV_ELF |
| 25 | |
| 26 | cleanall: |
| 27 | @. ./edksetup.sh BaseTools && \ |
| 28 | build -p $(WORKSPACE)/QcomModulePkg/QcomModulePkg.dsc -a AARCH64 -t $(TARGET_TOOLS) -b $(TARGET) -j build_modulepkg.log cleanall |
| 29 | rm -rf $(WORKSPACE)/QcomModulePkg/Bin64 |
| 30 | |
| 31 | ABL_FV_IMG: |
| 32 | @. ./edksetup.sh BaseTools && \ |
| 33 | build -p $(WORKSPACE)/QcomModulePkg/QcomModulePkg.dsc -a AARCH64 -t $(TARGET_TOOLS) -b $(TARGET) -D ABL_OUT_DIR=$(ANDROID_PRODUCT_OUT) -j build_modulepkg.log $1 $2 $3 $4 $5 $6 $7 $8 |
| 34 | cp $(BUILD_ROOT)/FV/FVMAIN_COMPACT.Fv $(ABL_FV_IMG) |
| 35 | |
| 36 | ABL_FV_ELF: ABL_FV_IMG |
| 37 | python $(WORKSPACE)/QcomModulePkg/Tools/image_header.py $(ABL_FV_IMG) $(ABL_FV_ELF) $(LOAD_ADDRESS) elf 64 |