2011-11-30 03:53:43 +08:00
|
|
|
define DEF_SNAP_FOR_STAGE_H
|
|
|
|
# $(1) stage
|
|
|
|
# $(2) triple
|
2011-05-03 14:43:13 +08:00
|
|
|
|
2011-12-01 10:33:39 +08:00
|
|
|
ifdef CFG_INSTALL_SNAP
|
|
|
|
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
|
|
|
|
$(S)src/etc/make-snapshot.py stage$(1) $(2) install
|
|
|
|
else
|
2011-11-30 03:53:43 +08:00
|
|
|
snap-stage$(1)-H-$(2): $$(HSREQ$(1)_H_$(2))
|
|
|
|
$(S)src/etc/make-snapshot.py stage$(1) $(2)
|
2011-12-01 10:33:39 +08:00
|
|
|
endif
|
2011-05-13 03:56:15 +08:00
|
|
|
|
2011-11-30 03:53:43 +08:00
|
|
|
endef
|
2011-05-13 03:56:15 +08:00
|
|
|
|
2011-11-30 03:53:43 +08:00
|
|
|
$(foreach host,$(CFG_TARGET_TRIPLES), \
|
|
|
|
$(eval $(foreach stage,1 2 3, \
|
|
|
|
$(eval $(call DEF_SNAP_FOR_STAGE_H,$(stage),$(host))))))
|
|
|
|
|
|
|
|
snap-stage1: snap-stage1-H-$(CFG_HOST_TRIPLE)
|
|
|
|
|
|
|
|
snap-stage2: snap-stage2-H-$(CFG_HOST_TRIPLE)
|
|
|
|
|
|
|
|
snap-stage3: snap-stage3-H-$(CFG_HOST_TRIPLE)
|