@ -21,16 +21,22 @@ export HOST_EXTRACFLAGS=-I$(STAGING_DIR_HOST)/include
# defined in quilt.mk
# defined in quilt.mk
Kernel/Patch : =$( Kernel /Patch /Default )
Kernel/Patch : =$( Kernel /Patch /Default )
i f n e q ( , $( findstring .xz ,$ ( LINUX_SOURCE ) ) )
LINUX_CAT:= xzcat
e l s e
LINUX_CAT:= zcat
e n d i f
i f e q ( $( strip $ ( CONFIG_EXTERNAL_KERNEL_TREE ) ) , "" )
i f e q ( $( strip $ ( CONFIG_EXTERNAL_KERNEL_TREE ) ) , "" )
ifeq ( $( strip $( CONFIG_KERNEL_GIT_CLONE_URI) ) ,"" )
ifeq ( $( strip $( CONFIG_KERNEL_GIT_CLONE_URI) ) ,"" )
define Kernel/Prepare/Default
define Kernel/Prepare/Default
xzcat $( DL_DIR) /$( LINUX_SOURCE) | $( TAR) -C $( KERNEL_BUILD_DIR) $( TAR_OPTIONS)
$( LINUX_CAT) $( DL_DIR) /$( LINUX_SOURCE) | $( TAR) -C $( KERNEL_BUILD_DIR) $( TAR_OPTIONS)
$( Kernel/Patch)
$( Kernel/Patch)
$( if $( QUILT) ,touch $( LINUX_DIR) /.quilt_used)
$( if $( QUILT) ,touch $( LINUX_DIR) /.quilt_used)
endef
endef
else
else
define Kernel/Prepare/Default
define Kernel/Prepare/Default
xzcat $( DL_DIR) /$( LINUX_SOURCE) | $( TAR) -C $( KERNEL_BUILD_DIR) $( TAR_OPTIONS)
$( LINUX_CAT) $( DL_DIR) /$( LINUX_SOURCE) | $( TAR) -C $( KERNEL_BUILD_DIR) $( TAR_OPTIONS)
endef
endef
endif
endif
e l s e
e l s e