if [ ! -f $LINUX/.config ]; then
make -C $LINUX ARCH=arm64 CROSS_COMPILE=$TOOLS ${PLATFORM}_linux_defconfig
echo -e "\e[1;31m Using ${PLATFROM}_linux_defconfig \e[0m"
fi
In case .config is not found. This file can be dropper when "make clean" or "make mrproper" is made
Then OrangePiH5_PC2_linux_defconfig is used.
But file, located in kernel/arch/arm64/configs/OrangePiH5_PC2_linux_defconfig differs and lacks SUNXI_GPIOKEY setting.
There is a code scripts/kernel_compile.sh
if [ ! -f $LINUX/.config ]; then make -C $LINUX ARCH=arm64 CROSS_COMPILE=$TOOLS ${PLATFORM}_linux_defconfig echo -e "\e[1;31m Using ${PLATFROM}_linux_defconfig \e[0m" fi
In case .config is not found. This file can be dropper when "make clean" or "make mrproper" is made
Then OrangePiH5_PC2_linux_defconfig is used. But file, located in kernel/arch/arm64/configs/OrangePiH5_PC2_linux_defconfig differs and lacks SUNXI_GPIOKEY setting.
$ diff .config OrangePiH5_PC2_linux_defconfig 29,30d28 < CONFIG_SUNXI_GPIOKEY=y <
Please align them.