@@ -3,6 +3,17 | |||
|
3 | 3 | cleanup (){ |
|
4 | 4 | set +x |
|
5 | 5 | set +e |
|
6 | ||
|
7 | # Remove exports from nexmon | |
|
8 | unset KERNEL | |
|
9 | unset ARCH | |
|
10 | unset SUBARCH | |
|
11 | unset CCPLUGIN | |
|
12 | unset ZLIBFLATE | |
|
13 | unset Q | |
|
14 | unset NEXMON_SETUP_ENV | |
|
15 | unset HOSTUNAME | |
|
16 | unset PLATFORMUNAME | |
|
6 | 17 | |
|
7 | 18 | # Identify and kill all processes still using files |
|
8 | 19 | echo "killing processes using mount point ..." |
@@ -75,3 +86,20 chroot_remove_cc() { | |||
|
75 | 86 | COMPILER_PACKAGES="" |
|
76 | 87 | fi |
|
77 | 88 | } |
|
89 | # GPL v2.0 - #https://github.com/sakaki-/bcmrpi3-kernel-bis/blob/master/conform_config.sh | |
|
90 | set_kernel_config() { | |
|
91 | # flag as $1, value to set as $2, config must exist at "./.config" | |
|
92 | TGT="CONFIG_${1#CONFIG_}" | |
|
93 | REP="${2}" | |
|
94 | if grep -q "^${TGT}[^_]" .config; then | |
|
95 | sed -i "s/^\(${TGT}=.*\|# ${TGT} is not set\)/${TGT}=${REP}/" .config | |
|
96 | else | |
|
97 | echo "${TGT}"="${2}" >> .config | |
|
98 | fi | |
|
99 | } | |
|
100 | # unset kernel config parameter | |
|
101 | unset_kernel_config() { | |
|
102 | # unsets flag with the value of $1, config must exist at "./.config" | |
|
103 | TGT="CONFIG_${1#CONFIG_}" | |
|
104 | sed -i "s/^${TGT}=.*/# ${TGT} is not set/" .config | |
|
105 | } No newline at end of file |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant