target.mk 711 B

1234567891011121314151617181920212223242526272829303132
  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. $(eval $(call Profile/Default))
  9. $(eval $(call Profile/$(1)))
  10. ifneq ($(ID),)
  11. PROFILE:=$(ID)
  12. $(ID)_NAME:=$(NAME)
  13. $(ID)_PACKAGES:=$(PACKAGES)
  14. ifneq ($(KCONFIG),)
  15. PROFILE_LIST += \
  16. echo '$(ID):'; [ -z '$(NAME)' ] || echo ' $(NAME)'; echo ' Packages: $(PACKAGES)';
  17. endif
  18. endif
  19. endef
  20. include $(TMP_DIR)/.target.mk
  21. ifeq ($(IB),1)
  22. $(TMP_DIR)/.target.mk: $(TOPDIR)/.target.mk
  23. $(CP) $< $@
  24. else
  25. $(TMP_DIR)/.target.mk: $(TMP_DIR)/.targetinfo
  26. $(SCRIPT_DIR)/metadata.pl target_mk < $(TMP_DIR)/.targetinfo > $@
  27. endif