@ -40,6 +40,10 @@ include $(INCLUDE_DIR)/prereq.mk
i n c l u d e $( INCLUDE_DIR ) / u n p a c k . m k
i n c l u d e $( INCLUDE_DIR ) / d e p e n d s . m k
i f n e q ( $( wildcard $ ( TOPDIR ) /git -src /$ ( PKG_NAME ) /.git ) , )
USE_GIT_SRC_CHECKOUT:= 1
QUILT:= 1
e n d i f
i f n e q ( $( if $ ( CONFIG_SRC_TREE_OVERRIDE ) ,$ ( wildcard ./git -src ) ) , )
USE_GIT_TREE:= 1
QUILT:= 1
@ -129,6 +133,18 @@ ifeq ($(DUMP)$(filter prereq clean refresh update,$(MAKECMDGOALS)),)
endif
e n d i f
i f d e f U S E _ G I T _ S R C _ C H E C K O U T
define Build/Prepare/Default
mkdir -p $( PKG_BUILD_DIR)
ln -s $( TOPDIR) /git-src/$( PKG_NAME) /.git $( PKG_BUILD_DIR) /.git
( cd $( PKG_BUILD_DIR) ; \
git checkout .; \
git submodule update --recursive; \
git submodule foreach git config --unset core.worktree; \
git submodule foreach git checkout .; \
)
endef
e n d i f
i f d e f U S E _ G I T _ T R E E
define Build/Prepare/Default
mkdir -p $( PKG_BUILD_DIR)
@ -248,7 +264,7 @@ define Build/CoreTargets
e n d e f
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 $( USE_SOURCE_DIR) $( USE_GIT_TREE) ,,$( if $( strip $( PKG_SOURCE_URL) ) ,$( call Download,default) ) )
$( if $( USE_SOURCE_DIR) $( USE_GIT_TREE) $( USE_GIT_SRC_CHECKOUT) ,,$( if $( strip $( PKG_SOURCE_URL) ) ,$( call Download,default) ) )
$( if $( DUMP) ,,$( Build/CoreTargets) )
define Build/DefaultTargets