Skip to contentSkip to conversation

Kbuild changes since 2.6.21??

DISCUSSION Doug Reiland 2 participants 3 messages May 28, 2008

lore
Share & tools
lore
#0 lore raw

There are some makefiles that look at CONFIG_XXXX variables to make decisions. For example, drivers/power/Makefile has the following lines:

ifeq ($(CONFIG_SYSFS),y)
power_supply-objs += power_supply_sysfs.o
endif

If I run make clean or make mrproper, it doesn't see CONFIG_SYSFS set anymore so it doesn't cleanup power_supply_sysfs.o.

This is for 2.6.25, but I think this use to work for 2.6.21. I am using drivers/power/Makefile as an example, but I am seeing the same thing for my driver's Makefile.

Thanks in advance.

#1 lore raw

By bad, drivers/power/Makefile is ok.
I thought I reproduced the issue there.

Quoted 18 lines · Doug Reiland

There are some makefiles that look at CONFIG_XXXX variables to make decisions. For example, drivers/power/Makefile has the following lines:

ifeq ($(CONFIG_SYSFS),y)
power_supply-objs += power_supply_sysfs.o
endif

If I run make clean or make mrproper, it doesn't see CONFIG_SYSFS set anymore so it doesn't cleanup power_supply_sysfs.o.

This is for 2.6.25, but I think this use to work for 2.6.21. I am using drivers/power/Makefile as an example, but I am seeing the same thing for my driver's Makefile.

Thanks in advance.

#2 lore raw
Quoted 19 lines · Doug Reiland

By bad, drivers/power/Makefile is ok.
I thought I reproduced the issue there.

Quoted 15 lines · Doug Reiland

There are some makefiles that look at CONFIG_XXXX variables to make decisions. For example, drivers/power/Makefile has the following lines:

ifeq ($(CONFIG_SYSFS),y)
power_supply-objs += power_supply_sysfs.o
endif

If I run make clean or make mrproper, it doesn't see CONFIG_SYSFS set anymore so it doesn't cleanup power_supply_sysfs.o.

This is for 2.6.25, but I think this use to work for 2.6.21. I am using drivers/power/Makefile as an example, but I am seeing the same thing for my driver's Makefile.

We use find to delete all .o files. So the content of your Kbuild file should not matter here.
Can you describe the setup where you see the issue?

Sam