@ -20,18 +20,19 @@ $(sort $(foreach dep,$(2),$(2) $(call int_get_all_dependencies,$(1),$($(dep)_dep
@@ -20,18 +20,19 @@ $(sort $(foreach dep,$(2),$(2) $(call int_get_all_dependencies,$(1),$($(dep)_dep
e n d e f
d e f i n e f e t c h _ f i l e
( t e s t - f $( SOURCES_PATH ) / $( 4) | | \
( mkdir -p $$ ( $( 1) _extract_dir) && \
( $( build_DOWNLOAD) " $$ ( $( 1) _extract_dir)/ $( 4) .temp " " $( 2) / $( 3) " || \
$( build_DOWNLOAD) " $$ ( $( 1) _extract_dir)/ $( 4) .temp " " $( FALLBACK_DOWNLOAD_PATH) / $( 3) " ) && \
echo " $( 5) $$ ( $( 1) _extract_dir)/ $( 4) .temp " > $$ ( $( 1) _extract_dir) /.$( 4) .hash && \
$( build_SHA256SUM) -c $$ ( $( 1) _extract_dir) /.$( 4) .hash && \
mv $$ ( $( 1) _extract_dir) /$( 4) .temp $( SOURCES_PATH) /$( 4) ) )
( t e s t - f $$ ( $( 1) _ s o u r c e _ d i r ) / $( 4) | | \
( mkdir -p $$ ( $( 1) _download_dir) && echo Fetching $( 1) ... && \
( $( build_DOWNLOAD) " $$ ( $( 1) _download_dir)/ $( 4) .temp " " $( 2) / $( 3) " || \
$( build_DOWNLOAD) " $$ ( $( 1) _download_dir)/ $( 4) .temp " " $( FALLBACK_DOWNLOAD_PATH) / $( 3) " ) && \
echo " $( 5) $$ ( $( 1) _download_dir)/ $( 4) .temp " > $$ ( $( 1) _download_dir) /.$( 4) .hash && \
$( build_SHA256SUM) -c $$ ( $( 1) _download_dir) /.$( 4) .hash && \
mv $$ ( $( 1) _download_dir) /$( 4) .temp $$ ( $( 1) _source_dir) /$( 4) && \
rm -rf $$ ( $( 1) _download_dir) ) )
e n d e f
d e f i n e i n t _ g e t _ b u i l d _ r e c i p e _ h a s h
$(eval $(1)_all_file_checksums : =$( shell $ ( build_SHA 256SUM ) $ ( meta_depends ) packages /$ ( 1) .mk $ ( addprefix $ ( PATCHES_PATH ) /$ ( 1) /,$ ( $ ( 1) _patches ) ) ) )
$(eval $(1)_recipe_hash : =$( shell echo -n "$ ( $ ( 1) _all_file_checksums ) " | $ ( build_SHA 256SUM ) ) )
$(eval $(1)_recipe_hash : =$( shell echo -n "$ ( $ ( 1) _all_file_checksums ) " | cut -d " " -f 1 | $ ( build_SHA 256SUM ) ) )
e n d e f
d e f i n e i n t _ g e t _ b u i l d _ i d
@ -45,17 +46,19 @@ final_build_id_long+=$($(package)_build_id_long)
@@ -45,17 +46,19 @@ final_build_id_long+=$($(package)_build_id_long)
#compute package-specific paths
$(1)_build_subdir ?= .
$(1)_download_file ?= $( $( 1) _file_name)
$(1)_source := $( SOURCES_PATH) /$( $( 1) _file_name)
$(1)_source_dir := $( SOURCES_PATH)
$(1)_source := $$ ( $( 1) _source_dir) /$( $( 1) _file_name)
$(1)_staging_dir = $( base_staging_dir) /$( host) /$( 1) /$( $( 1) _version) -$( $( 1) _build_id)
$(1)_staging_prefix_dir := $$ ( $( 1) _staging_dir) $( $( $( 1) _type) _prefix)
$(1)_extract_dir := $( base_build_dir) /$( host) /$( 1) /$( $( 1) _version) -$( $( 1) _build_id)
$(1)_download_dir := $( base_download_dir) /$( 1) -$( $( 1) _version)
$(1)_build_dir := $$ ( $( 1) _extract_dir) /$$ ( $( 1) _build_subdir)
$(1)_patch_dir := $( base_build_dir) /$( host) /$( 1) /$( $( 1) _version) -$( $( 1) _build_id) /.patches-$( $( 1) _build_id)
$(1)_prefixbin := $( $( $( 1) _type) _prefix) /bin/
$(1)_cached := $( BASE_CACHE) /$( host) /$( 1) /$( 1) -$( $( 1) _version) -$( $( 1) _build_id) .tar.gz
#stamps
$(1)_fetched = $$ ( $( 1) _extract_dir) /.stamp_fetched
$(1)_fetched = $$ ( $( 1) _source_dir) /download-stamps/.stamp_fetched-$( 1) -$( $( 1) _file_name)
$(1)_extracted = $$ ( $( 1) _extract_dir) /.stamp_extracted
$(1)_preprocessed = $$ ( $( 1) _extract_dir) /.stamp_preprocessed
$(1)_cleaned = $$ ( $( 1) _extract_dir) /.stamp_cleaned
@ -150,7 +153,6 @@ endef
@@ -150,7 +153,6 @@ endef
d e f i n e i n t _ a d d _ c m d s
$($(1)_fetched) :
$( AT) echo Fetching $( 1) ...
$( AT) mkdir -p $$ ( @D) $( SOURCES_PATH)
$( AT) cd $$ ( @D) ; $( call $( 1) _fetch_cmds,$( 1) )
$( AT) touch $$ @