--- linux-2.6.0-test9/Makefile	2003-11-16 18:26:37.986066776 +0100
+++ linux-2.6.0-test9.s5/Makefile	2003-11-16 16:24:53.781474656 +0100
@@ -314,7 +314,9 @@
 scripts/fixdep:
 	$(Q)$(MAKE) $(build)=scripts $@
 
-
+# Create Makefile/Kconfig for all the 3rdparty stuff
+3rdparty/Kconfig:
+	(cd $(srctree)/3rdparty ; perl ./mkbuild.pl)
 # To make sure we do not include .config for any of the *config targets
 # catch them early, and hand them over to scripts/kconfig/Makefile
 # It is allowed to specify more targets when calling make, including
@@ -357,9 +359,9 @@
 # *config targets only - make sure prerequisites are updated, and descend
 # in scripts/kconfig to make the *config target
 
-%config: scripts/fixdep FORCE
+%config: 3rdparty/Kconfig scripts/fixdep FORCE
 	$(Q)$(MAKE) $(build)=scripts/kconfig $@
-config : scripts/fixdep FORCE
+config : 3rdparty/Kconfig scripts/fixdep FORCE
 	$(Q)$(MAKE) $(build)=scripts/kconfig $@
 
 else
@@ -402,6 +404,13 @@
 
 endif
 
+# again 3rdparty magic
+# and we need .config
+
+ifdef CONFIG_3RDPARTY
+drivers-y       += 3rdparty/
+endif
+
 include $(srctree)/arch/$(ARCH)/Makefile
 
 # Let architecture Makefiles change CPPFLAGS if needed
@@ -584,7 +593,7 @@
 	$(Q)ln -fsn $(srctree)/include/asm-$(ARCH) include2/asm
 endif
 
-prepare0: prepare1 include/linux/version.h include/asm include/config/MARKER
+prepare0: prepare1 include/linux/version.h include/asm include/config/MARKER 3rdparty/Kconfig
 ifdef KBUILD_MODULES
 ifeq ($(origin SUBDIRS),file)
 	$(Q)rm -rf $(MODVERDIR)
@@ -767,6 +776,7 @@
 	include/asm \
 	.hdepend include/linux/modversions.h \
 	tags TAGS cscope* kernel.spec \
+	3rdparty/Makefile.meta 3rdparty/Kconfig \
 	.tmp*
 
 # Directories removed with 'make mrproper'
