I got the source code of R28.1 kernel and I compiled it with a scripts as follows:
function build_kernel()
{
check_exec_log_cmd cd ${WORK_DIR}
cd ${KERNEL_BUILD_DIR} #KERNEL_BUILD_DIR=/kernel/kernel-4.4
mkdir -p ${PRODUCT_OUT}/kernel
mkdir -p out
source /etc/profile
export ARCH=arm64
export CROSS_COMPILE=aarch64-unknown-linux-gnu-
export CROSS32CC=arm-unknown-linux-gnueabi-gcc
export TEGRA_KERNEL_OUT=$KERNEL_BUILD_DIR/out
make clean
make O=$TEGRA_KERNEL_OUT ${KERNEL_DEFCONFIG} #KERNEL_DEFCONFIG=tegra21_defconfig
make O=$TEGRA_KERNEL_OUT zImage 2>&1 |tee build.log
#make O=$TEGRA_KERNEL_OUT dtbs
#for build my own modules
#make O=$TEGRA_KERNEL_OUT modules
#make O=$TEGRA_KERNEL_OUT modules_install INSTALL_MOD_PATH=your_destination
#copy to the release out
#cp -f $TEGRA_KERNEL_OUT/* $PRODUCT_OUT/kernel
}
and build fail.key log as follows:
scripts/kconfig/conf --silentoldconfig Kconfig
*** Configuration file “.config” not found!
*** Please run some configurator (e.g. “make oldconfig” or
*** “make menuconfig” or “make xconfig”).
make[3]: *** [silentoldconfig] Error 1
make[2]: *** [silentoldconfig] Error 2
make[1]: *** No rule to make target include/config/auto.conf', needed by
include/config/kernel.release’. Stop.
R24.2.1 kernel can be compiled use the scripts above.
Please help,thank you.