* updated klickety (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / architecture / avr32 / linux.conf.sh
blobb52df8b87077221607400bfd14cd78bb452f6577
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: architecture/avr32/linux.conf.sh
5 # Copyright (C) 2008 - 2020 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
16 if [ -f .config.defconfig ]; then
17 cat .config.defconfig
18 elif [ -f $base/architecture/$arch/linux.conf.m4 ]; then
19 m4 -I $base/architecture/$arch -I $base/architecture/share $base/architecture/$arch/linux.conf.m4
20 else
21 echo "# No defaults found"
25 # too much troubles with the common kernel settings, many drivers do not
26 # compile cleanly ... :-(
28 merge_defconfig_and_t2 () {
30 m4 -I $base/architecture/$arch -I $base/architecture/share $base/architecture/$arch/linux.conf.m4 > .config.kdef
31 cp .config.defconfig .config.k1
33 # merge various text/plain config files
34 for x in .config.k1 ; do
35 if [ -f $x ] ; then
36 tag="$(sed '/CONFIG_/ ! d; s,.*CONFIG_\([^ =]*\).*,\1,' $x | tr '\n' '|')"
37 egrep -v "\bCONFIG_($tag)\b" < .config.kdef > .config.k2
38 sed 's,\(CONFIG_.*\)=n,# \1 is not set,' $x >> .config.k2
40 done
42 cat .config.k2