Skip to contentSkip to conversation

Prevent zImage to be copied to /boot/ in image

DISCUSSION Christophe Aeschlimann 2 participants 4 messages Apr 3, 2013 – Apr 4, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

I'm using the danny branch and I would like to know if there is a way to not have the zImage included in the generated image under the /boot/ folder.

I'm trying to save on space in the generated image and I couldn't find anywhere to configure that behaviour.

Thank you,

Signature · 6 lines
Christophe Aeschlimann

Embedded Software Engineer & IT Manager
ACN Advanced Communications Networks S.A.
2000 - Neuchâtel, Switzerland
Tel. +41 32 724 74 31
#1 lore raw
Quoted 7 lines · Christophe Aeschlimann

Hi,

I'm using the danny branch and I would like to know if there is a way to not have the zImage included in the generated image under the /boot/ folder.

I'm trying to save on space in the generated image and I couldn't find anywhere to configure that behaviour.

Have you tried clearing this variable:

(from kernel.bbclass)

# Allow machines to override this dependency if kernel image files are

# not wanted in images as standard
RDEPENDS_kernel-base ?= "kernel-image"

Cheers,

Bruce

Quoted 3 lines

Thank you,

#2 lore raw
Quoted 9 lines · Christophe Aeschlimann

Have you tried clearing this variable:

(from kernel.bbclass)

# Allow machines to override this dependency if kernel image files are

# not wanted in images as standard
RDEPENDS_kernel-base ?= "kernel-image"

Thank you for your answer,

I did that but it still didn't work.

I now found out that it is because I have an out-of-tree kernel module in my layer that inherits module.bbclass.

And module.bbclass does the following :

RDEPENDS += "kernel-image update-modules"

Is there a reason why module.bbclass requires kernel-image ?

Best regards,

Signature · 6 lines
Christophe Aeschlimann

Embedded Software Engineer & IT Manager
ACN Advanced Communications Networks S.A.
2000 - Neuchâtel, Switzerland
Tel. +41 32 724 74 31
#3 lore raw
Quoted 14 lines · Christophe Aeschlimann
Quoted 9 lines · Christophe Aeschlimann

Have you tried clearing this variable:

(from kernel.bbclass)

# Allow machines to override this dependency if kernel image files are

# not wanted in images as standard
RDEPENDS_kernel-base ?= "kernel-image"

Thank you for your answer,

I did that but it still didn't work.

Quoted 8 lines

I now found out that it is because I have an out-of-tree kernel module in my layer that inherits module.bbclass.

And module.bbclass does the following :

RDEPENDS += "kernel-image update-modules"

Is there a reason why module.bbclass requires kernel-image ?

It shouldn't be required, the image isn't used by the modules at runtime. In fact, I can see that we've removed the dependency in master (along with other module build reorganizations).

Cheers,

Bruce

Quoted 3 lines

Best regards,