linux/arch
Bian Jin chen d2573a1eaa arm64: configs: Add rockchip_gki.config
convert from rockchip_defconfig to rockchip_gki.config by this script:

make gki_defconfig
cp .config gki.config

scripts/kconfig/merge_config.sh -m arch/arm64/configs/gki_defconfig arch/arm64/configs/rockchip_defconfig
make olddefconfig

scripts/diffconfig -m gki.config .config | sed -e "s/ is not set/=n/" -e "s/# //" > d.config
sed -e "s/ is not set/=n/" -e "s/# CONFIG_/CONFIG_/" -e "/#.*/d" -e "/^$/d" gki.config > g.config
> r.config
for i in $(cat d.config); do
	c=${i%%=*};
	v=${i##*=};
	if grep -q "$c=n" g.config; then
		if [ "$v" == "y" -o "$v" == "m" ]; then
			echo $c=m >> r.config;
		fi
	elif ! grep -q "$c=" g.config; then
		if [ "$v" == "n" ]; then
			echo "# $c is not set" >> r.config;
		elif [ "$v" == "y" ]; then
			echo $c=m >> r.config;
		else
			echo $c=$v >> r.config;
		fi
	fi
done
sed -i 's/CONFIG_ARCH_ROCKCHIP=m/CONFIG_ARCH_ROCKCHIP=y/' r.config

scripts/kconfig/merge_config.sh -m arch/arm64/configs/gki_defconfig r.config
make olddefconfig 2>&1 | grep invalid | sed "s/.*symbol value 'm' invalid for /CONFIG_/" > nm.config

> r.config
for i in $(cat d.config); do
	c=${i%%=*};
	v=${i##*=};
	if grep -q "$c=n" g.config; then
		if ! grep -q "$c$" nm.config; then
			if [ "$v" == "y" ]; then
				echo $c=m >> r.config;
			fi
		fi
	elif ! grep -q "$c=" g.config; then
		if [ "$v" == "n" ]; then
			echo "# $c is not set" >> r.config;
		elif [ "$v" == "y" ]; then
			if grep -q "$c$" nm.config; then
				echo $c=y >> r.config;
			else
				echo $c=m >> r.config;
			fi
		else
			echo $c=$v >> r.config;
		fi
	fi
done

sed -i 's/CONFIG_ARCH_ROCKCHIP=m/CONFIG_ARCH_ROCKCHIP=y/' r.config

scripts/kconfig/merge_config.sh -m arch/arm64/configs/gki_defconfig r.config

scripts/config -d CONFIG_BRIDGE_NETFILTER
scripts/config -d CONFIG_BRIDGE_NF_EBTABLES
scripts/config -d CONFIG_USB_MON

scripts/config -e CONFIG_ION
scripts/config -e CONFIG_ION_SYSTEM_HEAP
scripts/config -e CONFIG_SW_SYNC
make olddefconfig

make savedefconfig
scripts/diffconfig -m arch/arm64/configs/gki_defconfig defconfig > arch/arm64/configs/rockchip_gki.config
echo "# CONFIG_USB_DUMMY_HCD is not set" >> arch/arm64/configs/rockchip_gki.config

Test: make gki_defconfig rockchip_gki.config
Status: mounted/console/adb/tp ok
TODO: check configs

Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifecf0a0cd836cbb1510704f9d120715ff7b01b35
2021-07-19 20:20:20 +08:00
..
alpha BACKPORT: FROMGIT: mm: arch: remove indirection level in alloc_zeroed_user_highpage_movable() 2021-06-07 20:38:48 +00:00
arc ARC: mm: Use max_high_pfn as a HIGHMEM zone border 2021-05-19 10:13:10 +02:00
arm ARM: rockchip_linux_defconfig: Enable CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND 2021-07-09 09:26:17 +08:00
arm64 arm64: configs: Add rockchip_gki.config 2021-07-19 20:20:20 +08:00
c6x
csky Merge 5.10.33 into android12-5.10 2021-04-29 13:57:47 +02:00
h8300 rk: revert to v4.19 2021-03-17 18:05:39 +08:00
hexagon rk: revert to v4.19 2021-03-17 18:05:39 +08:00
ia64 BACKPORT: FROMGIT: mm: arch: remove indirection level in alloc_zeroed_user_highpage_movable() 2021-06-07 20:38:48 +00:00
m68k BACKPORT: FROMGIT: mm: arch: remove indirection level in alloc_zeroed_user_highpage_movable() 2021-06-07 20:38:48 +00:00
microblaze rk: revert to v4.19 2021-03-17 18:05:39 +08:00
mips Merge 5.10.42 into android12-5.10 2021-06-03 18:47:38 +02:00
nds32 nds32: flush_dcache_page: use page_mapping_file to avoid races with swapoff 2021-04-14 08:41:58 +02:00
nios2 rk: revert to v4.19 2021-03-17 18:05:39 +08:00
openrisc openrisc: Define memory barrier mb 2021-06-03 09:00:44 +02:00
parisc UPSTREAM: parisc: select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY 2021-06-10 20:26:03 -07:00
powerpc Merge 5.10.43 into android12-5.10 2021-06-12 14:48:14 +02:00
riscv Merge 5.10.43 into android12-5.10 2021-06-12 14:48:14 +02:00
s390 BACKPORT: FROMGIT: mm: arch: remove indirection level in alloc_zeroed_user_highpage_movable() 2021-06-07 20:38:48 +00:00
sh BACKPORT: FROMGIT: hugetlb: pass vma into huge_pte_alloc() and huge_pmd_share() 2021-04-09 15:35:58 -07:00
sparc BACKPORT: FROMGIT: hugetlb: pass vma into huge_pte_alloc() and huge_pmd_share() 2021-04-09 15:35:58 -07:00
um This is the 5.10.39 stable release 2021-05-22 15:34:48 +02:00
x86 ANDROID: gki - CONFIG_NET_SCH_FQ=y 2021-06-15 00:40:03 -07:00
xtensa Merge 5.10.28 into android12-5.10 2021-04-09 09:29:17 +02:00
.gitignore
Kconfig rk: revert to v4.19 2021-03-17 18:05:39 +08:00