##// END OF EJS Templates
a
Unknown -
r400:2604f8ea96ac
parent child
Show More
@@ -77,11 +77,9 chroot_remove_cc() {
77 }
77 }
78 #GPL v2.0
78 #GPL v2.0
79 #https://github.com/sakaki-/bcmrpi3-kernel-bis/blob/master/conform_config.sh
79 #https://github.com/sakaki-/bcmrpi3-kernel-bis/blob/master/conform_config.sh
80 # edited with thir param
81 #start
82 set_kernel_config() {
80 set_kernel_config() {
83 # flag as $1, value to set as $2, config must exist at "./.config"
81 # flag as $1, value to set as $2, config must exist at "./.config"
84 local TGT="CONFIG_${1}"
82 local TGT="CONFIG_${1#CONFIG_}"
85 local REP="${2//\//\\/}"
83 local REP="${2//\//\\/}"
86 if grep -q "^${TGT}[^_]" .config; then
84 if grep -q "^${TGT}[^_]" .config; then
87 sed -i "s/^\(${TGT}=.*\|# ${TGT} is not set\)/${TGT}=${REP}/" .config
85 sed -i "s/^\(${TGT}=.*\|# ${TGT} is not set\)/${TGT}=${REP}/" .config
@@ -92,9 +90,8 set_kernel_config() {
92
90
93 unset_kernel_config() {
91 unset_kernel_config() {
94 # unsets flag with the value of $1, config must exist at "./.config"
92 # unsets flag with the value of $1, config must exist at "./.config"
95 local TGT="CONFIG_${1}"
93 local TGT="CONFIG_${1#CONFIG_}"
96 sed -i "s/^${TGT}=.*/# ${TGT} is not set/" .config
94 sed -i "s/^${TGT}=.*/# ${TGT} is not set/" .config
97 }
95 }
98 #
96 #
99 #end
97
100 #
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant