@ -66,6 +66,12 @@ ifneq ($(if $(CONFIG_SRC_TREE_OVERRIDE),$(wildcard ./git-src)),)
USE_GIT_TREE:= 1
QUILT:= 1
e n d i f
i f d e f U S E _ S O U R C E _ D I R
QUILT:= 1
e n d i f
i f n e q ( $( wildcard $ ( PKG_BUILD_DIR ) /.source_dir ) , )
QUILT:= 1
e n d i f
PKG_DIR_NAME := $( lastword $( subst /,$( space) ,$( CURDIR) ) )
PKG_INSTALL_STAMP := $( PKG_INFO_DIR) /$( PKG_DIR_NAME) .$( if $( BUILD_VARIANT) ,$( BUILD_VARIANT) ,default) .install
@ -95,20 +101,6 @@ ifeq ($(DUMP)$(filter prereq clean refresh update,$(MAKECMDGOALS)),)
endif
e n d i f
i f e q ( $( CONFIG_ $ ( PKG_NAME ) _USE_CUSTOM_SOURCE_DIR ) , y )
# disable load stage
PKG_SOURCE_URL :=
# add hook to install a link to customer source path of dedicated package
H o o k s / P r e p a r e / Pre += prepare_custom_source_directory
i f e q ( $( filter autoreconf ,$ ( Hooks /Configure /Pre ) ) , )
Hooks/Configure/Pre += autoreconf_target
e n d i f
# define empty default action
d e f i n e B u i l d / P r e p a r e / D e f a u l t
@:
e n d e f
e n d i f
d e f i n e D o w n l o a d / d e f a u l t
FILE:= $( PKG_SOURCE)
URL:= $( PKG_SOURCE_URL)
@ -127,6 +119,14 @@ ifdef USE_GIT_TREE
( cd $( PKG_BUILD_DIR) ; git checkout .)
endef
e n d i f
i f d e f U S E _ S O U R C E _ D I R
define Build/Prepare/Default
rm -rf $( PKG_BUILD_DIR)
$( if $( wildcard $( USE_SOURCE_DIR) /*) ,,@echo " Error: USE_SOURCE_DIR= $( USE_SOURCE_DIR) path not found " ; false )
ln -snf $( USE_SOURCE_DIR) $( PKG_BUILD_DIR)
touch $( PKG_BUILD_DIR) /.source_dir
endef
e n d i f
d e f i n e B u i l d / E x p o r t s / D e f a u l t
$( 1) : export ACLOCAL_INCLUDE = $$ ( foreach p,$$ ( wildcard $$ ( STAGING_DIR) /usr/share/aclocal $$ ( STAGING_DIR) /usr/share/aclocal-* $$ ( STAGING_DIR) /host/share/aclocal $$ ( STAGING_DIR) /host/share/aclocal-*) ,-I $$ ( p) )
@ -141,7 +141,7 @@ Build/Exports=$(Build/Exports/Default)
d e f i n e B u i l d / D e f a u l t T a r g e t s
$( if $( QUILT) ,$( Build/Quilt) )
$( if $( USE_GIT_TREE) ,,$( if $( strip $( PKG_SOURCE_URL) ) ,$( call Download,default) ) )
$( if $( USE_SOURCE_DIR) $( USE_ GIT_TREE) ,,$( if $( strip $( PKG_SOURCE_URL) ) ,$( call Download,default) ) )
$( call Build/Autoclean)
download: