target.mk 491 B

12345678910111213141516171819202122232425
  1. #
  2. # Copyright (C) 2006 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. define AddProfile
  8. ifeq ($(CONFIG_LINUX_$(1)),y)
  9. $(call Profile/$(1))
  10. PROFILE=$$(ID)
  11. endif
  12. endef
  13. include $(TMP_DIR)/.target.mk
  14. ifeq ($(IB),1)
  15. $(TMP_DIR)/.target.mk: $(TOPDIR)/.target.mk
  16. $(CP) $< $@
  17. else
  18. $(TMP_DIR)/.target.mk: $(TMP_DIR)/.targetinfo
  19. $(SCRIPT_DIR)/metadata.pl target_mk < $(TMP_DIR)/.targetinfo > $@
  20. endif