You are not logged in.

#1 2006-11-16 19:50:56

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

linux-2.6.18-ARCH compile error: missing Makefile

tried to compile custom kernel from provided sources and make generated following error:

make bzImage
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
scripts/Makefile.build:17: /usr/src/linux-2.6.18-ARCH/init/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.18-ARCH/init/Makefile'.  Stop.
make: *** [init] Error 2

So I downloaded vanilla and this worked fine.

I was wondering if make install script will use mainitcpio however this did not work either as install.sh script is looking at /dev/hda which is read-only installation device (cd/dvd)

So I copied vmlinuz and system.map and generated img file manually.

Offline

#2 2006-11-16 21:15:39

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

Re: linux-2.6.18-ARCH compile error: missing Makefile

There are no "provided sources" in Arch. /usr/src/linux-<kernel_version> contains only those elements of the compiled kernel that are required to build against, so getting the source from kernel.org is the right thing to do.

If you want to build a kernel package that uses mkinitcpio, like the official Arch kernels do, you need to create a PKGBUILD, or modify an existing one, and use ABS (Arch Build System). The wiki has all the details.

Offline

#3 2006-11-16 22:41:11

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: linux-2.6.18-ARCH compile error: missing Makefile

o.k. thanks

Offline

Board footer

Powered by FluxBB