Re: Can't remove CONFIG_GENERIC_CMOS_UPDATE, CONFIG_X86_TSC from kernel configuration

"John D. Hendrickson and Sara Darnell" <[email protected]> Sat, 18 Oct 2014 15:35:53 -0400
Newsgroups gmane.linux.configuration
Message-ID <[email protected]>
LAUTERWASSER Stefan wrote:
> I want to rebuild linux-3.16.3-200.fc20.x86_64 with options:
> CONFIG_GENERIC_CMOS_UPDATE=3Dn
> CONFIG_X86_TSC=3Dn

i'm unsure how i got this mail (which list it came from)

also i'm unsure if you checked all other options to see if none of=20
those require x86.

# zless menuconfig-text.gz # lk 2.6+

i see CMOS is generic may requires "x86" and is for updating clock chip

here's my guesses...

         depends on X86_64 || (X86_32 && X86_PAE && !X86_VISWS)
         depends on X86_CMPXCHG && X86_TSC
         help

seeing the above makes me believe the Xen product is only available=20
as an x86 binary, ie SPARC zen doesn't exist or it'd say=20
(X86_TSC||SPARC_TSC) - and on arm you couldn't run Xen if you didn't=20
have Zen compiled for ARM - and something tells me hypervisor isn't=20
prepared for dealthing with anyting but x86.  if you have x86 newer=20
than 586, you have a TSC and say yes.  i can't remember but i think=20
sparc has fully multithread but doesn't use TSC flag verbatim as x86=20
does.

first figure out (read the source?) if it actually updates cmos=20
given your build.  usually kernel modules check a device is good=20
before doing anything.  if it does you can insert an exit(0) in the=20
code before it writes.

if you feel the dependancy is incorrect, that zen does not call for=20
cmos update and your not running 386, you may be able to edit the=20
Makefile (and which other file?) to remove the "depends" so it no=20
longer in the list of "required to build".  i think they do depends=20
by hand, but i'm unsure how the lk people have that sorted out.  my=20
guess is the dependancy is correct


> But it seams that "make olddefconfig" enables these options again bec=
ause of dependencies.
>=20
> I found the "select GENERIC_CMOS_UPDATE" entries in  arch/*/Kconfig f=
iles - if I remove them, I am able to build a kernel with CONFIG_GENERI=
C_CMOS_UPDATE=3Dn.
> It's selected by default but does not seam to be necessary isn't it?
>=20
> I am not able to disable CONFIG_X86_TSC.
> It seams that Xen (arch/x86/xen/Kconfig) depends on X86_TSC - so I di=
sabled all the XEN stuff.
> May arch/x86/Kconfig.cpu (config X86_TSC - def_bool y) is the reason =
that CONFIG_X86_TSC is enabled again?
> I thought it's just on of multiple clock sources isn't it?
>=20
> It's my first email to a kernel mailing list so please be clement - f=
eetback welcome. :-)
>=20
> Mit freundlichen Gr=FC=DFen/Best regards
>=20
> Stefan Lauterwasser
> Software Engineer=20
> Transportation Systems=20
> Thales Deutschland
>=20
> Email:                  [email protected]
> Web:                    www.thalesgroup.com
> --------------------------------------------------------------=20
> Thales Transportation Systems GmbH=20
> Thalesplatz 1 - 71254 Ditzingen - Germany
>=20
>=20
> --
> To unsubscribe from this list: send the line "unsubscribe linux-confi=
g" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>=20

--
To unsubscribe from this list: send the line "unsubscribe linux-config"=
 in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html