Skip to contentSkip to conversation

(Re: Building kernel with buildroot fails)

PATCH New theHog 2 participants 2 messages Feb 24, 2009

lore
Share & tools
lore

theHog

author
#0 lore raw

PATCH 1/1 (Re: Building kernel with buildroot fails)

The error was:
/home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26.6/.unpacked

Quoted 1 line

make: *** No rule to make target `eddy-2.6.26.6.patch'

It is caused by target/linux/Makefile.in.advanced. There is a target (line
254) that patches the kernel:
$(LINUX26_DIR)/.patched: $(LINUX26_DIR)/.unpacked $(LINUX_HEADERS_DEPENDS)

This target depends on $(LINUX_HEADERS_DEPENDS). On line 74, this variable is initialized with the patchfile $(LINUX26_BSP_PATCH), but it omits $(DL_DIR).

Patch attached.

Richard.

----- Oorspronkelijk bericht -----
From: "theHog" <[email protected]>

Quoted 11 lines

Hi,

I am trying to build a kernel with buildroot, but the make fails. I need kernel 2.6.26.6 and a custom patch.

In menuconfig, I've selected the following options:

Kernel/Kernel Type: Advanced configuration
Kernel/Linux Kernel Version: Linux 2.6.26 Kernel/Patches/Add kernel.org patch: yes
Kernel/Patches/Add a kernel.org patch to the Linux Kernel: (Add a '.#'

minor

Quoted 8 lines

patch)
Kernel/Patches/patch level: 6
Additional patch to apply (from $(DL_DIR)): eddy-2.6.26.6.patch

I've put the 'eddy-2.6.26.6.patch' as a (non-zipped) patch file in the download dir where all downloaded packages are.

After doing a make, the build process does the following (see output

below):

Quoted 2 lines

- downloads and unpacks 2.6.26 kernel
- renames the directory to 2.6.26.6 (it does not download and patch with

the

Quoted 19 lines

2.6.26.6 kernel patch)
- outputs a 'kernelrelease not valid' error
- outputs a 'No rule to make target `eddy-2.6.26.6.patch'' error

What am I doing wrong here?

Thanks,
Richard.

Output of make:
----------------
*** Unpacking kernel source
bzcat /home/eddy/work/packages/linux-2.6.26.tar.bz2 | tar -C
/home/eddy/work/buildroot-2009.02/project_build_arm/eddy -xf -
# Rename the dir from the downloaded version to the AFTER patch version mv -f /home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26 /home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26.6 echo `/usr/bin/make -j1 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm CFLAGS_KERNEL="-Os -pipe -Os

Review

Quoted 3 lines
(quoted diff) +0 -3
-I/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/usr/include
-I/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/include
--sysroot=/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/

-isysroot

Quoted 3 lines

/home/eddy/work/buildroot-2009.02/build_arm/staging_dir -mabi=aapcs-linux -msoft-float"

INSTALL_MOD_PATH=/home/eddy/work/buildroot-2009.02/project_build_arm/eddy/root

Quoted 1 line

CROSS_COMPILE=/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/usr/bin/arm-linux-uclibcgnueabi-

Quoted 5 lines

LDFLAGS="-L/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/lib -L/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/usr/lib --sysroot=/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/" LZMA="/home/eddy/work/buildroot-2009.02/toolchain_build_arm/bin/lzma"

PATH=/home/eddy/work/buildroot-2009.02/project_build_arm/eddy/u-boot-tools:/home/eddy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Quoted 1 line

-C /home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26.6

-s

Quoted 3 lines

kernelrelease` > /home/eddy/work/buildroot-2009.02/project_build_arm/eddy/.linux-version Makefile:1510: *** kernelrelease not valid - run 'make prepare' to update

it.

Quoted 3 lines

Stop.
touch

/home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26.6/.unpacked

Quoted 2 lines

make: *** No rule to make target `eddy-2.6.26.6.patch', needed by

`/home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26.6/.patched'.

Quoted 2 lines

Stop.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: buildroot.patch
Type: application/octet-stream
Size: 596 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20090224/4493a8de/attachment.obj>

#1 lore raw

PATCH 1/1 (Re: Building kernel with buildroot fails)

tis 2009-02-24 klockan 01:00 +0100 skrev theHog:

Quoted 4 lines

The error was:
/home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26.6/.unpacked

Quoted 1 line

make: *** No rule to make target `eddy-2.6.26.6.patch'

Quoted 9 lines

It is caused by target/linux/Makefile.in.advanced. There is a target (line
254) that patches the kernel:
$(LINUX26_DIR)/.patched: $(LINUX26_DIR)/.unpacked $(LINUX_HEADERS_DEPENDS)

This target depends on $(LINUX_HEADERS_DEPENDS). On line 74, this variable is initialized with the patchfile $(LINUX26_BSP_PATCH), but it omits $(DL_DIR).

Patch attached.

I think it is better to remove the comment in the Config.in and allow it to be put anywhere in the file system. /BR
Ulf Samuelsson

Quoted 80 lines

Richard.

----- Oorspronkelijk bericht -----
From: "theHog" <[email protected]>

Quoted 11 lines

Hi,

I am trying to build a kernel with buildroot, but the make fails. I need kernel 2.6.26.6 and a custom patch.

In menuconfig, I've selected the following options:

Kernel/Kernel Type: Advanced configuration
Kernel/Linux Kernel Version: Linux 2.6.26 Kernel/Patches/Add kernel.org patch: yes
Kernel/Patches/Add a kernel.org patch to the Linux Kernel: (Add a '.#'

minor

Quoted 8 lines

patch)
Kernel/Patches/patch level: 6
Additional patch to apply (from $(DL_DIR)): eddy-2.6.26.6.patch

I've put the 'eddy-2.6.26.6.patch' as a (non-zipped) patch file in the download dir where all downloaded packages are.

After doing a make, the build process does the following (see output

below):

Quoted 2 lines

- downloads and unpacks 2.6.26 kernel
- renames the directory to 2.6.26.6 (it does not download and patch with

the

Quoted 19 lines

2.6.26.6 kernel patch)
- outputs a 'kernelrelease not valid' error
- outputs a 'No rule to make target `eddy-2.6.26.6.patch'' error

What am I doing wrong here?

Thanks,
Richard.

Output of make:
----------------
*** Unpacking kernel source
bzcat /home/eddy/work/packages/linux-2.6.26.tar.bz2 | tar -C
/home/eddy/work/buildroot-2009.02/project_build_arm/eddy -xf -
# Rename the dir from the downloaded version to the AFTER patch version mv -f /home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26 /home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26.6 echo `/usr/bin/make -j1 HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" ARCH=arm CFLAGS_KERNEL="-Os -pipe -Os

Review

Quoted 3 lines
(quoted diff) +0 -3
-I/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/usr/include
-I/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/include
--sysroot=/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/

-isysroot

Quoted 3 lines

/home/eddy/work/buildroot-2009.02/build_arm/staging_dir -mabi=aapcs-linux -msoft-float"

INSTALL_MOD_PATH=/home/eddy/work/buildroot-2009.02/project_build_arm/eddy/root

Quoted 1 line

CROSS_COMPILE=/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/usr/bin/arm-linux-uclibcgnueabi-

Quoted 5 lines

LDFLAGS="-L/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/lib -L/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/usr/lib --sysroot=/home/eddy/work/buildroot-2009.02/build_arm/staging_dir/" LZMA="/home/eddy/work/buildroot-2009.02/toolchain_build_arm/bin/lzma"

PATH=/home/eddy/work/buildroot-2009.02/project_build_arm/eddy/u-boot-tools:/home/eddy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Quoted 1 line

-C /home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26.6

-s

Quoted 3 lines

kernelrelease` > /home/eddy/work/buildroot-2009.02/project_build_arm/eddy/.linux-version Makefile:1510: *** kernelrelease not valid - run 'make prepare' to update

it.

Quoted 3 lines

Stop.
touch

/home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26.6/.unpacked

Quoted 2 lines

make: *** No rule to make target `eddy-2.6.26.6.patch', needed by

`/home/eddy/work/buildroot-2009.02/project_build_arm/eddy/linux-2.6.26.6/.patched'.

Quoted 2 lines

Stop.

_______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot