xref: /OK3568_Linux_fs/device/rockchip/common/scripts/normalize-defconfigs.sh (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1#!/bin/bash -e
2
3SCRIPTS_DIR="${SCRIPTS_DIR:-$(dirname "$(realpath "$0")")}"
4SDK_DIR="${SDK_DIR:-$SCRIPTS_DIR/../../../..}"
5
6cd "$SDK_DIR"
7
8for c in $(find device/rockchip/.chips \
9	-type f -mindepth 1 -maxdepth 1 -name "rockchip_*_defconfig"); do
10	./build.sh $c
11	make savedefconfig
12	sed -i '/RK_KERNEL_VERSION/d' $c
13done
14