Hi, Martin, could you please check the ide initialization? Why are device type driver initialized twice? If I try to remove one of them, one machine here doesn't boot anymore. Sam Ravnborg wrote: > Another issue that I noticed after submitting the patch was that > due to the fact the 'echo' in gen_build... always create a .builtin_mods > file, there appear a number of lines only listing an empty directory > witin .allbuiltin_mods. .builtin_mods should be empty in this case. > 2) to do something like this in the Makefile: > init/generated-initcalls.c: $(wildcard $(addsuffix /.builtin_mods,\ > $(dir $(CORE_FILES) $(LIBS) $(DRIVERS) $(NETWORKS))) > $(CONFIG_SHELL) -e scripts/build-initcalls $< $^ $@ > And then move the contatenation of the .builtin_mods files to > build-initcalls. Nice idea. Done. > Another issue: > If I do: > $> find -name '.builtin_mods' | xargs rm -f > $> make > the .builtin_mods files are not regenerated. Some rule are missing... Could you try the attached patch? It should fix all the mentioned problems. Files are now regenerated only if something really changed. if_changed needed a fix to correctly save the command line and dependencies should be correct now. bye, Roman