mirror of
https://github.com/torvalds/linux.git
synced 2026-06-11 08:03:05 +02:00
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
|
||
|---|---|---|
| .. | ||
| alpha | ||
| arc | ||
| arm | ||
| arm64 | ||
| c6x | ||
| csky | ||
| h8300 | ||
| hexagon | ||
| ia64 | ||
| m68k | ||
| microblaze | ||
| mips | ||
| nds32 | ||
| nios2 | ||
| openrisc | ||
| parisc | ||
| powerpc | ||
| riscv | ||
| s390 | ||
| sh | ||
| sparc | ||
| um | ||
| x86 | ||
| xtensa | ||
| .gitignore | ||
| Kconfig | ||