3 # The script helps to apply/revert RT patches to/from
9 file_list=`find ../rt-patches -name \*.patch -type f | sort`
10 for p in $file_list; do
11 # set flag in case of failure and continue
12 patch -s -d .. -p1 < $p || any_failure=1
14 ./config --file ../arch/arm64/configs/tegra_t186ref_gnu_linux_defconfig --enable PREEMPT_RT_FULL --disable CPU_IDLE_TEGRA18X --disable CPU_FREQ_GOV_INTERACTIVE || any_failure=1
20 file_list=`find ../rt-patches -name \*.patch -type f | sort -r`
21 for p in $file_list; do
22 # set flag in case of failure and continue
23 patch -s -R -d .. -p1 < $p || any_failure=1
25 # CPU_FREQ_GOV_INTERACTIVE need to keep disable for Automotive
26 ./config --file ../arch/arm64/configs/tegra_t186ref_gnu_linux_defconfig --disable PREEMPT_RT_FULL --enable CPU_IDLE_TEGRA18X --disable CPU_FREQ_GOV_INTERACTIVE || any_failure=1
32 echo 1. ${0} apply-patches : Apply RT patches
33 echo 2. ${0} revert-patches : Revert RT patches
37 # script starts from here
38 dir_run_from=`dirname ${0}`
39 pushd $dir_run_from &>/dev/null
41 if [ "$1" == "apply-patches" ]; then
43 elif [ "$1" == "revert-patches" ]; then