1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: architecture/avr32/linux.conf.sh
5 # Copyright (C) 2008 - 2020 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
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
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