You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
771B

  1. # Creates symlinks relative to the PRODUCT_OUT folder.
  2. # This is different from BOARD_ROOT_EXTRA_SYMLINKS in that it allows symlinks on other partitions.
  3. #
  4. # Links can be specified in TARGET:DIRECTORY or TARGET:LINK_NAME notation. This creates a link named LINK_NAME or DIRECTORY/$(basename TARGET) pointing to TARGET.
  5. #
  6. # This script is based on conversion from BOARD_ROOT_EXTRA_SYMLINKS to LOCAL_POST_INSTALL_CMD from system/core/rootdir/Android.mk.
  7. ifeq ($(SONY_SYMLINKS),)
  8. $(warning "No symlinks set!")
  9. else
  10. LOCAL_POST_INSTALL_CMD := $(foreach s,$(SONY_SYMLINKS), \
  11. $(eval p := $(subst :,$(space),$(s))) \
  12. mkdir -p $(dir $(PRODUCT_OUT)/$(word 2,$(p))); \
  13. ln -sf $(word 1,$(p)) $(PRODUCT_OUT)/$(word 2,$(p)); \
  14. )
  15. endif
  16. include $(BUILD_PHONY_PACKAGE)