Changeset View
Changeset View
Standalone View
Standalone View
depends/funcs.mk
Show All 35 Lines | |||||
define int_get_build_recipe_hash | define int_get_build_recipe_hash | ||||
$(eval $(1)_all_file_checksums:=$(shell $(build_SHA256SUM) $(meta_depends) packages/$(1).mk $(addprefix $(PATCHES_PATH)/$(1)/,$($(1)_patches)) | cut -d" " -f1)) | $(eval $(1)_all_file_checksums:=$(shell $(build_SHA256SUM) $(meta_depends) packages/$(1).mk $(addprefix $(PATCHES_PATH)/$(1)/,$($(1)_patches)) | cut -d" " -f1)) | ||||
$(eval $(1)_recipe_hash:=$(shell echo -n "$($(1)_all_file_checksums)" | $(build_SHA256SUM) | cut -d" " -f1)) | $(eval $(1)_recipe_hash:=$(shell echo -n "$($(1)_all_file_checksums)" | $(build_SHA256SUM) | cut -d" " -f1)) | ||||
endef | endef | ||||
define int_get_build_id | define int_get_build_id | ||||
$(eval $(1)_dependencies += $($(1)_$(host_arch)_$(host_os)_dependencies) $($(1)_$(host_os)_dependencies)) | $(eval $(1)_dependencies += $($(1)_$(host_arch)_$(host_os)_dependencies) $($(1)_$(host_os)_dependencies)) | ||||
$(eval $(1)_all_dependencies:=$(call int_get_all_dependencies,$(1),$($($(1)_type)_native_toolchain) $($(1)_dependencies))) | $(eval $(1)_all_dependencies:=$(call int_get_all_dependencies,$(1),$($($(1)_type)_native_toolchain) $($($(1)_type)_native_binutils) $($(1)_dependencies))) | ||||
$(foreach dep,$($(1)_all_dependencies),$(eval $(1)_build_id_deps+=$(dep)-$($(dep)_version)-$($(dep)_recipe_hash))) | $(foreach dep,$($(1)_all_dependencies),$(eval $(1)_build_id_deps+=$(dep)-$($(dep)_version)-$($(dep)_recipe_hash))) | ||||
$(eval $(1)_build_id_long:=$(1)-$($(1)_version)-$($(1)_recipe_hash)-$(release_type) $($(1)_build_id_deps) $($($(1)_type)_id_string)) | $(eval $(1)_build_id_long:=$(1)-$($(1)_version)-$($(1)_recipe_hash)-$(release_type) $($(1)_build_id_deps) $($($(1)_type)_id_string)) | ||||
$(eval $(1)_build_id:=$(shell echo -n "$($(1)_build_id_long)" | $(build_SHA256SUM) | cut -c-$(HASH_LENGTH))) | $(eval $(1)_build_id:=$(shell echo -n "$($(1)_build_id_long)" | $(build_SHA256SUM) | cut -c-$(HASH_LENGTH))) | ||||
final_build_id_long+=$($(package)_build_id_long) | final_build_id_long+=$($(package)_build_id_long) | ||||
#compute package-specific paths | #compute package-specific paths | ||||
$(1)_build_subdir?=. | $(1)_build_subdir?=. | ||||
$(1)_download_file?=$($(1)_file_name) | $(1)_download_file?=$($(1)_file_name) | ||||
▲ Show 20 Lines • Show All 193 Lines • ▼ Show 20 Lines | |||||
#compute final vars after reading package vars | #compute final vars after reading package vars | ||||
$(foreach package,$(all_packages),$(eval $(call int_config_attach_build_config,$(package)))) | $(foreach package,$(all_packages),$(eval $(call int_config_attach_build_config,$(package)))) | ||||
#create build targets | #create build targets | ||||
$(foreach package,$(all_packages),$(eval $(call int_add_cmds,$(package)))) | $(foreach package,$(all_packages),$(eval $(call int_add_cmds,$(package)))) | ||||
#special exception: if a toolchain package exists, all non-native packages depend on it | #special exception: if a toolchain package exists, all non-native packages depend on it | ||||
$(foreach package,$(packages),$(eval $($(package)_unpacked): |$($($(host_arch)_$(host_os)_native_toolchain)_cached) )) | $(foreach package,$(packages),$(eval $($(package)_unpacked): |$($($(host_arch)_$(host_os)_native_toolchain)_cached) $($($(host_arch)_$(host_os)_native_binutils)_cached) )) |