1LOCAL_PATH := $(call my-dir)
2
3#A/B builds require us to create the mount points at compile time.
4#Just creating it for all cases since it does not hurt.
5FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt
6ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT)
7
8$(FIRMWARE_MOUNT_POINT):
9	@echo "Creating $(FIRMWARE_MOUNT_POINT)"
10	@mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt
11
12# copy kernel headers to the build tree
13$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr: $(wildcard $(PRODUCT_VENDOR_KERNEL_HEADERS)/*)
14	rm -rf $@
15	mkdir -p $@/include
16	cp -a $(PRODUCT_VENDOR_KERNEL_HEADERS)/. $@/include
17
18#----------------------------------------------------------------------
19# build and sign the final stage of bootloader
20#----------------------------------------------------------------------
21.PHONY: aboot
22ifeq ($(USESECIMAGETOOL), true)
23aboot: gensecimage_target gensecimage_install
24else
25aboot: $(INSTALLED_BOOTLOADER_MODULE)
26endif
27