From Android Build System, it's improper to update the source tree during 'lunch'. Move symlink files into out/pixel folder Bug: 364831620 Flag: EXEMPT export current prebuilt path Change-Id: I5024788e169abb8f117a289c6a07e7c47527fe60 Signed-off-by: Robin Peng <robinpeng@google.com>
32 lines
1.2 KiB
Makefile
32 lines
1.2 KiB
Makefile
PIXEL_PREBUILT_SYMLINK_PATH=$(OUT_DIR)/pixel
|
|
$(shell rm -rf pixel_current_*)
|
|
$(shell rm -rf $(PIXEL_PREBUILT_SYMLINK_PATH)/pixel_current_*)
|
|
$(shell mkdir -p $(PIXEL_PREBUILT_SYMLINK_PATH))
|
|
|
|
# Create symlink for bootloader
|
|
$(shell rm -f "pixel_current_bootloader")
|
|
ifdef BOOTLOADER_FILE_PATH
|
|
$(shell ln -sf ../../${BOOTLOADER_FILE_PATH} $(PIXEL_PREBUILT_SYMLINK_PATH)/"pixel_current_bootloader")
|
|
else ifdef BOOTLOADER_RADIO_FILE_PATH
|
|
$(shell ln -sf ../../${BOOTLOADER_RADIO_FILE_PATH} $(PIXEL_PREBUILT_SYMLINK_PATH)/"pixel_current_bootloader")
|
|
endif
|
|
|
|
# Create symlink for kernel
|
|
$(shell rm -f "pixel_current_kernel")
|
|
ifdef TARGET_KERNEL_DIR
|
|
$(shell ln -sf ../../${TARGET_KERNEL_DIR} $(PIXEL_PREBUILT_SYMLINK_PATH)/"pixel_current_kernel")
|
|
endif
|
|
|
|
# Create symlink for radio
|
|
$(shell rm -f "pixel_current_radio")
|
|
ifdef RADIO_FILE_PATH
|
|
$(shell ln -sf ../../${RADIO_FILE_PATH} $(PIXEL_PREBUILT_SYMLINK_PATH)/"pixel_current_radio")
|
|
else ifdef BOOTLOADER_RADIO_FILE_PATH
|
|
$(shell ln -sf ../../${BOOTLOADER_RADIO_FILE_PATH} $(PIXEL_PREBUILT_SYMLINK_PATH)/"pixel_current_radio")
|
|
endif
|
|
|
|
# Create symlink for radiocfg
|
|
$(shell rm -f "pixel_current_radiocfg")
|
|
ifdef SRC_MDM_CFG_DIR
|
|
$(shell ln -sf ../../${SRC_MDM_CFG_DIR} $(PIXEL_PREBUILT_SYMLINK_PATH)/"pixel_current_radiocfg")
|
|
endif
|