On 05/08/2012 11:22 AM, Jarkko Sakkinen wrote: > diff --git a/arch/x86/realmode/Makefile b/arch/x86/realmode/Makefile > new file mode 100644 > index 0000000..f22a4f8 > --- /dev/null > +++ b/arch/x86/realmode/Makefile > @@ -0,0 +1,20 @@ > +# > +# arch/x86/realmode/Makefile > +# > +# This file is subject to the terms and conditions of the GNU General Public > +# License. See the file "COPYING" in the main directory of this archive > +# for more details. > +# > +# > + > +subdir- := rm > + > +obj-y += rmpiggy.o > + > +$(obj)/rmpiggy.o: $(obj)/rm/realmode.relocs $(obj)/rm/realmode.bin > + > +$(obj)/rm/realmode.bin: FORCE > + $(Q)$(MAKE) $(build)=$(obj)/rm $@ > + > +$(obj)/rm/realmode.relocs: FORCE > + $(Q)$(MAKE) $(build)=$(obj)/rm $@ OK, this bit seems to cause serious problems. Specifically, this invokes the rm/ Makefile twice, and they end up doing two independent builds in parallel, stepping on each other in the process. Sam, Michal: do you have any suggestions for how to do the above better? -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html