You are not logged in.

#1 2005-01-29 19:02:09

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

abs cvs kernel config issue.

When building a custom kernel I like to work from the arch config file as a starting point, however there seems to be a problem with the curent config files of the 2.6 kernel around line 78. Mine looks like this:

CONFIG_M#CARCH#=y

Which I am fairly certain is wrong. It also seems to be in the other kernels.

Has anyone else got a similar corruption in their abs tree?


Kind regards

Benedict White

Offline

#2 2005-01-29 20:14:39

kill
Member
Registered: 2004-09-30
Posts: 126

Re: abs cvs kernel config issue.

That is correct and suposed to be in the config file.

  # get rid of the 'i' in i686
  carch=`echo $CARCH | sed 's|i||'`
  cat ../config | sed "s|#CARCH#|$carch|g" >./.config

It is set by the above code in the PKGBUILD.

Offline

#3 2005-01-29 21:16:05

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

Re: abs cvs kernel config issue.

I see, so it's WAD.

Why do this? It seems to stop the make menuconfig working as well as make xconfig which is a shame as I wanted a tweaked Arch Kernel


Kind regards

Benedict White

Offline

#4 2005-01-29 21:24:33

kill
Member
Registered: 2004-09-30
Posts: 126

Re: abs cvs kernel config issue.

Set up your custom PKGBUILD like this, adding the appropriate lines where necessary. This is an excerpt from my custom PKGBUILD.  It will allow you to use arch's config file while letting you make changes.

  # Arch logo!
  cp ../logo_linux_clut224.ppm drivers/video/logo/
  # get rid of the 'i' in i686
  carch=`echo $CARCH | sed 's|i||'`

  cat ../config | sed "s|#CARCH#|$carch|g" >./.config
  # build the full kernel version to use in pathnames
  . ./.config
  _kernver="${pkgver}-grsec${CONFIG_LOCALVERSION}"

---->  # make changes in kernel configuration
---->  make xconfig #gconfig menuconfig

  # load configuration
  yes "" | make config

  # build!
  make clean bzImage modules || return 1
  mkdir -p $startdir/pkg/{lib/modules,boot}

Offline

#5 2007-06-27 04:27:46

kishd
Member
Registered: 2006-06-14
Posts: 401

Re: abs cvs kernel config issue.

Sorry for resurrecting such an old thread. However, this tip is so good that I think it should be added to the wiki. It really works like a charm. Thank you very much, kill.

Ooops roll Just read the wiki and found it in there though I don't know how I missed it the ten times I read it before.

Last edited by kishd (2007-06-27 04:33:08)


---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare

Offline

Board footer

Powered by FluxBB