fix out-of-tree module build
authorBrian Swetland <swetland@google.com>
Mon, 27 Oct 2008 23:22:35 +0000 (16:22 -0700)
committerBrian Swetland <swetland@google.com>
Mon, 27 Oct 2008 23:22:35 +0000 (16:22 -0700)
Now you can build correctly with:
make KERNEL=/path/to/kernel

sta_dk_4_0_4_32/Makefile

index 7404f8c..76fbe48 100644 (file)
@@ -107,12 +107,12 @@ ifneq ($(KERNELRELEASE),)
        # Intermediate object name - this should be converted to the appropriate library file
        # after the kernel makefile finishes its work.
        #
-       obj-$(CONFIG_TIWLAN1251) += wlan.o
+       obj-m += wlan.o
        
        #
        # List of object files the kernel makefile needs to compile.
        #
-       wlan-objs := $(DK_OBJS) $(OS_OBJS)
+       wlan-y := $(DK_OBJS) $(OS_OBJS)
 
        
 else   # ifneq ($(KERNELRELEASE),)