Ensure /system/vendor symlink exists in target-files-package

This used to happen in the system image creation, but the target-files
didn't really depend on the system image, so I removed that dependency.
But then we weren't creating the symlink all the time.

This should be safe to run in parallel with the same link step in the
system creation.

Bug: 36540023
Test: m -j target-files-package, ensure vendor symlink is created
      without system.img.
Change-Id: I37059fa1ce759a0870dc4c65c5515050992245e2
This commit is contained in:
Dan Willemsen
2017-03-23 13:09:21 -07:00
parent ed44a54991
commit f75d7fa8ea

View File

@@ -1958,6 +1958,7 @@ $(BUILT_TARGET_FILES_PACKAGE): \
$(BUILD_IMAGE_SRCS) \
| $(ACP)
@echo "Package target files: $@"
$(call create-system-vendor-symlink)
$(hide) rm -rf $@ $@.list $(zip_root)
$(hide) mkdir -p $(dir $@) $(zip_root)
ifneq (,$(INSTALLED_RECOVERYIMAGE_TARGET)$(filter true,$(BOARD_USES_RECOVERY_AS_BOOT)))