Re: 2.5.37+ i386 arch split broke external module builds

From: James Bottomley (James.Bottomley@HansenPartnership.com)
Date: Wed Oct 02 2002 - 17:09:46 EST


alexamici@tiscali.it said:
> comments are welcome,

-#include "irq_vectors.h"
+#ifdef CONFIG_VISWS
+#include <asm/mach-visws/irq_vectors.h>
+#else
+#include <asm/mach-generic/irq_vectors.h>
+#endif

I'm afraid the whole purpose of the code was to get away from this type of
#ifdef problem. If you do this, every new mach-type added to i386 has to
modify a bunch of kernel headers.

dwmw2@infradead.org said:
> make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd` modules

This looks like a clean solution to me, since most kernel packages install
this module build directory.

James

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:36 EST