1
1
define int_vars
2
2
# Set defaults for vars which may be overridden per-package
3
- $(1 ) _cc=$($($(1 ) _type) _CC)
4
- $(1 ) _cxx=$($($(1 ) _type) _CXX)
5
- $(1 ) _objc=$($($(1 ) _type) _OBJC)
6
- $(1 ) _objcxx=$($($(1 ) _type) _OBJCXX)
7
- $(1 ) _ar=$($($(1 ) _type) _AR)
8
- $(1 ) _ranlib=$($($(1 ) _type) _RANLIB)
9
- $(1 ) _libtool=$($($(1 ) _type) _LIBTOOL)
10
- $(1 ) _nm=$($($(1 ) _type) _NM)
11
- $(1 ) _cflags=$($($(1 ) _type) _CFLAGS) $($($(1 ) _type) _$(release_type ) _CFLAGS)
12
- $(1 ) _cxxflags=$($($(1 ) _type) _CXXFLAGS) $($($(1 ) _type) _$(release_type ) _CXXFLAGS)
13
- $(1 ) _arflags=$($($(1 ) _type) _ARFLAGS) $($($(1 ) _type) _$(release_type ) _ARFLAGS)
14
- $(1 ) _ldflags=$($($(1 ) _type) _LDFLAGS) $($($(1 ) _type) _$(release_type ) _LDFLAGS) -L$($($(1 ) _type) _prefix) /lib
15
- $(1 ) _cppflags=$($($(1 ) _type) _CPPFLAGS) $($($(1 ) _type) _$(release_type ) _CPPFLAGS) -I$($($(1 ) _type) _prefix) /include
3
+ $(1 ) _cc=$$($$($(1 ) _type) _CC)
4
+ $(1 ) _cxx=$$($$($(1 ) _type) _CXX)
5
+ $(1 ) _objc=$$($$($(1 ) _type) _OBJC)
6
+ $(1 ) _objcxx=$$($$($(1 ) _type) _OBJCXX)
7
+ $(1 ) _ar=$$($$($(1 ) _type) _AR)
8
+ $(1 ) _ranlib=$$($$($(1 ) _type) _RANLIB)
9
+ $(1 ) _libtool=$$($$($(1 ) _type) _LIBTOOL)
10
+ $(1 ) _nm=$$($$($(1 ) _type) _NM)
11
+ $(1 ) _cflags=$$($$($(1 ) _type) _CFLAGS) \
12
+ $$($$($(1 ) _type) _$$(release_type ) _CFLAGS)
13
+ $(1 ) _cxxflags=$$($$($(1 ) _type) _CXXFLAGS) \
14
+ $$($$($(1 ) _type) _$$(release_type ) _CXXFLAGS)
15
+ $(1 ) _arflags=$$($$($(1 ) _type) _ARFLAGS) \
16
+ $$($$($(1 ) _type) _$(release_type ) _ARFLAGS)
17
+ $(1 ) _ldflags=$$($$($(1 ) _type) _LDFLAGS) \
18
+ $$($$($(1 ) _type) _$$(release_type ) _LDFLAGS) \
19
+ -L$$($($(1 ) _type) _prefix) /lib
20
+ $(1 ) _cppflags=$$($$($(1 ) _type) _CPPFLAGS) \
21
+ $$($$($(1 ) _type) _$$(release_type ) _CPPFLAGS) \
22
+ -I$$($$($(1 ) _type) _prefix) /include
16
23
$(1 ) _recipe_hash:=
17
24
endef
18
25
37
44
38
45
define int_get_build_recipe_hash
39
46
$(eval $(1 ) _all_file_checksums:=$(shell $(build_SHA256SUM ) $(meta_depends ) packages/$(1 ) .mk $(addprefix $(PATCHES_PATH ) /$(1 ) /,$($(1 ) _patches) ) | cut -d" " -f1) )
47
+ final_build_id_long+=:[$(1 ) _all_file_checksums]$(foreach checksum,$($(1 ) _all_file_checksums) ,$(shell echo ":$(checksum ) ") ) :
40
48
$(eval $(1 ) _recipe_hash:=$(shell echo -n "$($(1 ) _all_file_checksums) " | $(build_SHA256SUM ) | cut -d" " -f1) )
41
49
endef
42
50
@@ -46,7 +54,7 @@ $(eval $(1)_all_dependencies:=$(call int_get_all_dependencies,$(1),$($($(1)_type
46
54
$(foreach dep,$($(1 ) _all_dependencies) ,$(eval $(1 ) _build_id_deps+=$(dep ) -$($(dep ) _version) -$($(dep ) _recipe_hash) ) )
47
55
$(eval $(1 ) _build_id_long:=$(1 ) -$($(1 ) _version) -$($(1 ) _recipe_hash) -$(release_type ) $($(1 ) _build_id_deps) $($($(1 ) _type) _id_string) )
48
56
$(eval $(1 ) _build_id:=$(shell echo -n "$($(1 ) _build_id_long) " | $(build_SHA256SUM ) | cut -c-$(HASH_LENGTH ) ) )
49
- final_build_id_long+=$( $( package ) _build_id_long)
57
+ final_build_id_long+=:[recipe]: $( 1 ) - $( $( 1 ) _version) - $( $( 1 ) _recipe_hash) - $( release_type ) :[deps] $( foreach dep, $( $( 1 ) _build_id_deps) , $( shell echo ": $( dep ) ") ) :[ $( $( 1 ) _type) _id]: $( $( $( 1 ) _type) _id_string) :
50
58
51
59
# compute package-specific paths
52
60
$(1 ) _build_subdir?=.
@@ -267,4 +275,4 @@ $(foreach package,$(all_packages),$(eval $(call int_config_attach_build_config,$
267
275
$(foreach package,$(all_packages),$(eval $(call int_add_cmds,$(package))))
268
276
269
277
# special exception: if a toolchain package exists, all non-native packages depend on it
270
- $(foreach package,$(packages ) ,$(eval $($(package ) _unpacked ) : |$($($(host_arch ) _$(host_os ) _native_toolchain) _cached) ))
278
+ $(foreach package,$(packages ) ,$(eval $($(package ) _extracted ) : |$($($(host_arch ) _$(host_os ) _native_toolchain) _cached) ))
0 commit comments