@ -10,8 +10,6 @@
FEEDS_INSTALLED := $( notdir $( wildcard $( TOPDIR) /package/feeds/*) )
FEEDS_AVAILABLE := $( sort $( FEEDS_INSTALLED) $( shell $( SCRIPT_DIR) /feeds list -n) )
FEEDS_ENABLED := $( foreach feed,$( FEEDS_AVAILABLE) ,$( if $( CONFIG_FEED_$( feed) ) ,$( feed) ) )
FEEDS_DISABLED := $( filter-out $( FEEDS_ENABLED) ,$( FEEDS_AVAILABLE) )
PACKAGE_SUBDIRS = $( PACKAGE_DIR)
i f n e q ( $( CONFIG_PER_FEED_REPO ) , )
@ -35,10 +33,11 @@ endef
# 1: destination file
d e f i n e F e e d S o u r c e s A p p e n d
( \
echo "src/gz %d_core %U/targets/%S/packages" ; \
echo 'src/gz %d_core %U/targets/%S/packages' ; \
echo 'src/gz %d_base %U/packages/%A/base' ; \
$( strip $( if $( CONFIG_PER_FEED_REPO) , \
$( foreach feed,base $( FEEDS_ENABLED) ,echo " src/gz %d_ $( feed) %U/packages/%A/ $( feed) " ; ) \
$( if $( CONFIG_PER_FEED_REPO_ADD_DISABLED ) , \
$( foreach feed,$( FEEDS_DISABLED) ,echo " $( if $( CONFIG_PER_FEED_REPO_ADD_COMMENTED) ,# ) src/gz %d_ $( feed) %U/packages/%A/ $( feed) " ; ) ) ) ) \
$( foreach feed,$( FEEDS_AVAILABLE) , \
$( if $( CONFIG_FEED_$( feed) ) , \
echo '$(if $(filter m,$(CONFIG_FEED_$(feed))),# )src/gz %d_$(feed) %U/packages/%A/$(feed)' ; ) ) ) ) \
) > > $( 1)
e n d e f