Kbuild changes since 2.6.21??
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.
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_XXXXvariables to make decisions. For example,drivers/power/Makefilehas the following lines:ifeq ($(CONFIG_SYSFS),y)
power_supply-objs += power_supply_sysfs.o
endifIf I run make clean or make mrproper, it doesn't see
CONFIG_SYSFSset 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/Makefileas an example, but I am seeing the same thing for my driver'sMakefile.Thanks in advance.
Quoted 19 lines · Doug Reiland
By bad,
drivers/power/Makefileis ok.
I thought I reproduced the issue there.Quoted 15 lines · Doug Reiland
There are some makefiles that look at
CONFIG_XXXXvariables to make decisions. For example,drivers/power/Makefilehas the following lines:ifeq ($(CONFIG_SYSFS),y)
power_supply-objs += power_supply_sysfs.o
endifIf I run make clean or make mrproper, it doesn't see
CONFIG_SYSFSset 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/Makefileas an example, but I am seeing the same thing for my driver'sMakefile.
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