@ -165,14 +165,31 @@ $(KERNEL_CONFIG): $(KERNEL_OUT)
echo $( KERNEL_CONFIG_OVERRIDE) >> $( KERNEL_OUT) /.config; \
echo $( KERNEL_CONFIG_OVERRIDE) >> $( KERNEL_OUT) /.config; \
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) oldconfig; fi
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) oldconfig; fi
$(TARGET_PREBUILT_INT_KERNEL) : $( KERNEL_OUT ) $( KERNEL_HEADERS_INSTALL )
i f e q ( $( TARGET_KERNEL_APPEND_DTB ) , t r u e )
TARGET_PREBUILT_INT_KERNEL_IMAGE := $( KERNEL_OUT) /arch/$( KERNEL_ARCH) /boot/Image
$(TARGET_PREBUILT_INT_KERNEL_IMAGE) : $( KERNEL_USR )
$(TARGET_PREBUILT_INT_KERNEL_IMAGE) : $( KERNEL_OUT ) $( KERNEL_HEADERS_INSTALL )
$( hide) echo "Building kernel modules..."
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) $( KERNEL_CFLAGS) Image
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) $( KERNEL_CFLAGS) modules
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) INSTALL_MOD_PATH = $( BUILD_ROOT_LOC) ../$( KERNEL_MODULES_INSTALL) INSTALL_MOD_STRIP = 1 $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) modules_install
$( mv-modules)
$( clean-module-folder)
$(TARGET_PREBUILT_INT_KERNEL) : $( TARGET_PREBUILT_INT_KERNEL_IMAGE )
$( hide) echo "Building kernel..."
$( hide) echo "Building kernel..."
$( hide) rm -rf $( KERNEL_OUT) /arch/$( KERNEL_ARCH) /boot/dts
$( hide) rm -rf $( KERNEL_OUT) /arch/$( KERNEL_ARCH) /boot/dts
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) $( KERNEL_CFLAGS)
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) $( KERNEL_CFLAGS)
e l s e
TARGET_PREBUILT_INT_KERNEL_IMAGE := $( TARGET_PREBUILT_INT_KERNEL)
$(TARGET_PREBUILT_INT_KERNEL) : $( KERNEL_OUT ) $( KERNEL_HEADERS_INSTALL )
$( hide) echo "Building kernel..."
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) $( KERNEL_CFLAGS)
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) $( KERNEL_CFLAGS) modules
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) $( KERNEL_CFLAGS) modules
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) INSTALL_MOD_PATH = $( BUILD_ROOT_LOC) ../$( KERNEL_MODULES_INSTALL) INSTALL_MOD_STRIP = 1 $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) modules_install
$( MAKE) -C $( TARGET_KERNEL_SOURCE) O = $( BUILD_ROOT_LOC) $( KERNEL_OUT) INSTALL_MOD_PATH = $( BUILD_ROOT_LOC) ../$( KERNEL_MODULES_INSTALL) INSTALL_MOD_STRIP = 1 $( KERNEL_MAKE_ENV) ARCH = $( KERNEL_ARCH) CROSS_COMPILE = $( KERNEL_CROSS_COMPILE) $( real_cc) modules_install
$( mv-modules)
$( mv-modules)
$( clean-module-folder)
$( clean-module-folder)
e n d i f
$(KERNEL_HEADERS_INSTALL) : $( KERNEL_OUT )
$(KERNEL_HEADERS_INSTALL) : $( KERNEL_OUT )
$( hide) if [ ! -z " $( KERNEL_HEADER_DEFCONFIG) " ] ; then \
$( hide) if [ ! -z " $( KERNEL_HEADER_DEFCONFIG) " ] ; then \