* [Xenomai] Script to cleanup linux .config file
@ 2014-12-04 10:21 Anders Blomdell
2014-12-04 12:12 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: Anders Blomdell @ 2014-12-04 10:21 UTC (permalink / raw)
To: Xenomai
I post the attached script in the vain hope that it might be useful for someone else
(and possibly enhanced by our all-knowing experts).
Regards
Anders
--
Anders Blomdell Email: anders.blomdell@control.lth.se
Department of Automatic Control
Lund University Phone: +46 46 222 4625
P.O. Box 118 Fax: +46 46 138118
SE-221 00 Lund, Sweden
-------------- next part --------------
#!/bin/sh
while [ $# -gt 0 ] ; do
case $1 in
--cleanup)
CLEANUP=$1
shift
;;
*)
if [ ! -z "${CONFIG}" ] ; then
echo "Only one config file allowed"
exit 1
fi
CONFIG=$1
shift
;;
esac
done
if [ -z "${CONFIG}" ] ; then
echo "No config file given"
exit 1
fi
BLACKLIST_OPTIONS=(
ACPI_PROCESSOR
APM
CONTEXT_TRACKING_FORCE
CPU_FREQ
CPU_IDLE
INTEL_IDLE
KGDB
# CC_STACKPROTECTOR
# CC_STACKPROTECTOR_STRONG
)
RESULT=0
for o in ${BLACKLIST_OPTIONS[*]} ; do
if grep -q "CONFIG_$o=" ${CONFIG} ; then
echo "Invalid option CONFIG_$o"
RESULT=1
fi
done
if [ ${RESULT} -ne 0 -a "${CLEANUP}" == "--cleanup" ] ; then
D=`mktemp -d`
cp ${CONFIG} $D/config
for o in ${BLACKLIST_OPTIONS[*]} ; do
if grep -q "CONFIG_$o=" ${D}/config ; then
echo "Cleaning ${o}"
grep -v "CONFIG_$o=" ${D}/config > ${D}/tmp
mv ${D}/tmp ${D}/config
fi
done
mv $D/config ${CONFIG}
rmdir ${D}
echo "Remember to run 'make oldconfig'"
else
exit $RESULT
fi
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Xenomai] Script to cleanup linux .config file
2014-12-04 10:21 [Xenomai] Script to cleanup linux .config file Anders Blomdell
@ 2014-12-04 12:12 ` Gilles Chanteperdrix
2014-12-04 15:52 ` Anders Blomdell
0 siblings, 1 reply; 4+ messages in thread
From: Gilles Chanteperdrix @ 2014-12-04 12:12 UTC (permalink / raw)
To: Anders Blomdell; +Cc: Xenomai
On Thu, Dec 04, 2014 at 11:21:09AM +0100, Anders Blomdell wrote:
> I post the attached script in the vain hope that it might be useful for someone else
> (and possibly enhanced by our all-knowing experts).
I would say the simple option is to disable the options by directly
patching the Kconfig in the I-pipe patch.
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Xenomai] Script to cleanup linux .config file
2014-12-04 12:12 ` Gilles Chanteperdrix
@ 2014-12-04 15:52 ` Anders Blomdell
2014-12-04 16:44 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: Anders Blomdell @ 2014-12-04 15:52 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: Xenomai
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2014-12-04 13:12, Gilles Chanteperdrix wrote:
> On Thu, Dec 04, 2014 at 11:21:09AM +0100, Anders Blomdell wrote:
>> I post the attached script in the vain hope that it might be useful for someone else
>> (and possibly enhanced by our all-knowing experts).
>
> I would say the simple option is to disable the options by directly
> patching the Kconfig in the I-pipe patch.
>
Something like:
config ACPI_PROCESSOR
depends on ! IPIPE
perhaps? Should I submit a patch for latest ipipe?
/Anders
- --
Anders Blomdell Email: anders.blomdell@control.lth.se
Department of Automatic Control
Lund University Phone: +46 46 222 4625
P.O. Box 118 Fax: +46 46 138118
SE-221 00 Lund, Sweden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJUgIMrAAoJENZYyvaDG8NcdzoH/j69M5q6UxT2BGJbnlFZXJtf
AtbT1cKHrfKHP0coyR7nmtEd/pIBRaYRWGyy3h68fq4ECX0id1mus5XCF/cnjz/J
BX8Y0FUmb9P6yTxqy+4ZPEykTb0TcraD8Qy2tHFfmdoEeBMo7NJ5AiJ6u3xN6NMi
UPL4cdRUgJOWp8oMDdzI640cLPSbsRtyMDDGr/nrH7t/+KIHzTn+S79TTtulbUct
xjvZNOPPyKwrSU88zUctvqF5PGTy1o72RYoBrAUQhaQxVB8Eo/C5gBY5sKUaJ1Ys
W6zifY7rjBtCM7trkM4t5nsXmv7k97yQ6KZUakokxFZeNvakPRI00e2qBZ87QYQ=
=HuAw
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Xenomai] Script to cleanup linux .config file
2014-12-04 15:52 ` Anders Blomdell
@ 2014-12-04 16:44 ` Gilles Chanteperdrix
0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2014-12-04 16:44 UTC (permalink / raw)
To: Anders Blomdell; +Cc: Xenomai
Anders Blomdell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2014-12-04 13:12, Gilles Chanteperdrix wrote:
>> On Thu, Dec 04, 2014 at 11:21:09AM +0100, Anders Blomdell wrote:
>>> I post the attached script in the vain hope that it might be useful for
>>> someone else
>>> (and possibly enhanced by our all-knowing experts).
>>
>> I would say the simple option is to disable the options by directly
>> patching the Kconfig in the I-pipe patch.
>>
> Something like:
>
> config ACPI_PROCESSOR
> depends on ! IPIPE
>
> perhaps? Should I submit a patch for latest ipipe?
Yes, but be aware: not all options must be disabled on all architectures.
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-12-04 16:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-04 10:21 [Xenomai] Script to cleanup linux .config file Anders Blomdell
2014-12-04 12:12 ` Gilles Chanteperdrix
2014-12-04 15:52 ` Anders Blomdell
2014-12-04 16:44 ` Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.