Files
device_google_redfin/redfin/AndroidBoard.mk
Logan Chien c25bc19de9 Move persist.img build rules to another repository
This commit moves the persist.img build rules to another repository
because "device/google/redfin" is a part of aosp-without-vendor source
tree but it depends on some files that do NOT belong to
aosp-without-vendor source tree.

Bug: 140158409
Test: lunch redfin-userdebug && make
Change-Id: Ie11fe78b65ab3c1fb427496a46b0bb941f021a7c
2019-08-30 12:52:47 +08:00

27 lines
931 B
Makefile

LOCAL_PATH := $(call my-dir)
#A/B builds require us to create the mount points at compile time.
#Just creating it for all cases since it does not hurt.
FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT)
$(FIRMWARE_MOUNT_POINT):
@echo "Creating $(FIRMWARE_MOUNT_POINT)"
@mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt
# copy kernel headers to the build tree
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr: $(wildcard $(PRODUCT_VENDOR_KERNEL_HEADERS)/*)
rm -rf $@
mkdir -p $@/include
cp -a $(PRODUCT_VENDOR_KERNEL_HEADERS)/. $@/include
#----------------------------------------------------------------------
# build and sign the final stage of bootloader
#----------------------------------------------------------------------
.PHONY: aboot
ifeq ($(USESECIMAGETOOL), true)
aboot: gensecimage_target gensecimage_install
else
aboot: $(INSTALLED_BOOTLOADER_MODULE)
endif