X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=include%2Ftarget.mk;h=1718a869c14780853bc61c69f9d66cf4769d87b7;hb=643f013d152805f989115a71a8d19b02d01320a4;hp=7f0501e5957a7948b79dbde566effd15dc51b40a;hpb=e158d8b6a7b3c883a8be74cb2327dda6374fc050;p=openwrt.git diff --git a/include/target.mk b/include/target.mk index 7f0501e595..1718a869c1 100644 --- a/include/target.mk +++ b/include/target.mk @@ -5,8 +5,21 @@ # See /LICENSE for more information. # + +define AddProfile + ifeq ($(CONFIG_LINUX_$(1)),y) + $(call Profile/$(1)) + PROFILE=$$(ID) + endif +endef + include $(TMP_DIR)/.target.mk -$(TMP_DIR)/.target.mk: - $(SCRIPT_DIR)/gen_target_mk.pl < $(TMP_DIR)/.targetinfo > $@ +ifeq ($(IB),1) +$(TMP_DIR)/.target.mk: $(TOPDIR)/.target.mk + $(CP) $< $@ +else +$(TMP_DIR)/.target.mk: $(TMP_DIR)/.targetinfo + $(SCRIPT_DIR)/metadata.pl target_mk < $(TMP_DIR)/.targetinfo > $@ +endif