# Rockchip common config, every Rockchip defconfig should include it

#include "base/kernel.config"
#include "fs/e2fs.config"

# Host environment setup script (for developing)

# Prefer using buildroot mirror

# Mirror for GNU packages

# Rockchip BSP packages

# Toolchain

# Basic tools

# Rootfs configs

# Post rootfs script

# Host tools

# Force using buildroot's host tools
#include "base/common.config"


# Devtmpfs + eudev

# Basic tools
BR2_PACKAGE_ANDROID_ADBD=y
BR2_PACKAGE_INPUT_EVENT_DAEMON=y
BR2_PACKAGE_PM_UTILS=y
BR2_PACKAGE_USBMOUNT=y
BR2_PACKAGE_UTIL_LINUX_MOUNT=y

# Rootfs configs
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_ROOTFS_EXT2_SIZE_AUTO=y
BR2_LINUX_KERNEL_CUSTOM_LOCAL=y
BR2_LINUX_KERNEL_CUSTOM_LOCAL_LOCATION="$(TOPDIR)/../kernel"
BR2_PACKAGE_E2FSPROGS=y
BR2_PACKAGE_E2FSPROGS_FSCK=y
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
# Rockchip common config, every Rockchip defconfig should include it

#include "base/kernel.config"
#include "fs/e2fs.config"

# Host environment setup script (for developing)
BR2_PACKAGE_HOST_ENVIRONMENT_SETUP=y

# Prefer using buildroot mirror
BR2_PRIMARY_SITE="http://sources.buildroot.net"
BR2_BACKUP_SITE=""

# Mirror for GNU packages
BR2_GNU_MIRROR="http://mirrors.kernel.org/gnu"

# Rockchip BSP packages
BR2_PACKAGE_ROCKCHIP=y

# Toolchain
BR2_CCACHE=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y

# Basic tools
BR2_PACKAGE_RKTOOLKIT=y
BR2_PACKAGE_RKSCRIPT=y
BR2_PACKAGE_BUSYBOX=y
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/rockchip/common/base/busybox.fragment"

# Rootfs configs
BR2_TARGET_GENERIC_ROOT_PASSWD="rockchip"
BR2_TARGET_SERIAL_SHELL_SH=y
BR2_ROOTFS_MERGED_USR=y
BR2_TARGET_ROOTFS_CPIO=y
BR2_TARGET_ROOTFS_CPIO_GZIP=y
BR2_TARGET_ROOTFS_SQUASHFS=y

# Post rootfs script
BR2_ROOTFS_POST_BUILD_SCRIPT="board/rockchip/common/post-build.sh"

# Host tools
BR2_PACKAGE_HOST_E2FSPROGS=y
BR2_PACKAGE_HOST_NTFS_3G=y
BR2_PACKAGE_HOST_PYTHON3=y
BR2_PACKAGE_HOST_PYTHON3_SSL=y

# Force using buildroot's host tools
BR2_FORCE_HOST_BUILD=y
BR2_PACKAGE_DOSFSTOOLS=y
BR2_PACKAGE_DOSFSTOOLS_FATLABEL=y
BR2_PACKAGE_DOSFSTOOLS_FSCK_FAT=y
BR2_PACKAGE_DOSFSTOOLS_MKFS_FAT=y
BR2_PACKAGE_PARTED=y
BR2_PACKAGE_FATRESIZE=y
#include "base/common.config"
#include "fs/vfat.config"

# BR2_PACKAGE_EUDEV_ENABLE_HWDB is not set

BR2_PACKAGE_RECOVERY=y
BR2_PACKAGE_RKUPDATE=y


BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_cortex_a55=y
BR2_PACKAGE_RK3566_RK3568=y
BR2_ROOTFS_OVERLAY="board/rockchip/common/base board/rockchip/rk3566_rk3568/fs-overlay/"
BR2_TARGET_GENERIC_HOSTNAME="rk3566_rk3568"
BR2_TARGET_GENERIC_ISSUE="Welcome to RK3566_RK3568 Buildroot"
#include "chips/rk3566_rk3568.config"
BR2_aarch64=y
#include "base/base.config"
#include "base/recovery.config"
#include "chips/rk3566_rk3568_aarch64.config"
