You are not logged in.

#1 2005-12-18 09:28:43

Jacob
Member
Registered: 2005-03-19
Posts: 52

hardwired "-ARCH" into the build?

Alright I've decided to make my own kernel based on the current Arch buildsystem using it as my template.

I modify the "config" file accordingly, then re-md5sum it.  And added that sum to the PKGBUILD file and run makepkg in /var/abs/kernels/kernel26/ and after much downloading and patching I get the following error close to the end of the makepkg process:

Checking Input...
    Building full initrd for Arch standard kernel
      (includes all possible modules)
Setting up Parameters...
ERROR: /var/abs/kernels/kernel26/pkg/lib/modules/2.6.14-ARCH does not exist!
==> ERROR: Build Failed.  Aborting...
[root@k kernel26]#                     

It seems to be looking for the very directory based on the LOCALVERSION which I've commented out in the "config" file:

CONFIG_LOCALVERSION=""

Somewhere (and not in the PKGBUILD) it seems, that the "-ARCH" is being appended to the makepkg process...

Any ideas on how I can get around this, so that my kernel isn't branded?

Jacob

P.S.  This must be recent as kernel 2.6.13.4 didn't have this problem.
-> I also tried changing the line inside PKGBUILD:

  _kernver="${basekernel}${CONFIG_LOCALVERSION}"
--to--
  _kernver="${basekernel}"
...no help

Offline

#2 2005-12-18 09:30:16

Jacob
Member
Registered: 2005-03-19
Posts: 52

Re: hardwired "-ARCH" into the build?

...oh yes and I forgot to mention that if I change the:

CONFIG_LOCALVERSION=""

back to:

CONFIG_LOCALVERSION="-ARCH"

it builds without error.

Jacob

Offline

#3 2005-12-18 12:32:18

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,838

Re: hardwired "-ARCH" into the build?

In general, if you're compiling your own kernel, you don't need initrd, so you could use the custom kernel PKGBUILD - it's on the wiki here.

Just make sure you compile support for your disk controller and root filesystem into the kernel i.e. not as modules.

Offline

#4 2005-12-18 19:01:03

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: hardwired "-ARCH" into the build?

Hi Jacob,

You're right, mkinitrd should support non "-ARCH" kernels.

Try revision 1.38 from CVS:
http://cvs.archlinux.org/cgi-bin/viewcv … d/mkinitrd

Offline

#5 2005-12-18 19:02:09

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: hardwired "-ARCH" into the build?

btw, You can also use the "kernel_version" parameter w/ mkinitrd to force it to any version.

Offline

#6 2005-12-19 03:07:56

Jacob
Member
Registered: 2005-03-19
Posts: 52

Re: hardwired "-ARCH" into the build?

apeiro wrote:

btw, You can also use the "kernel_version" parameter w/ mkinitrd to force it to any version.

Worked like a charm!

Thanks!

Jacob

Offline

#7 2005-12-19 03:13:58

Jacob
Member
Registered: 2005-03-19
Posts: 52

Re: hardwired "-ARCH" into the build?

tomk wrote:

In general, if you're compiling your own kernel, you don't need initrd, so you could use the custom kernel PKGBUILD - it's on the wiki here.

Just make sure you compile support for your disk controller and root filesystem into the kernel i.e. not as modules.

I did consider a custom kernel, but I like the initrd style because I will be using encrypted filesystem shortly.

I would also like to keep my kernel as similar (to produce) as the stock ARCH kernel.

Thanks!

Jacob

Offline

Board footer

Powered by FluxBB