Skip to content

Commit

Permalink
Staging: dt3155: add it to the build
Browse files Browse the repository at this point in the history
Now it will build with the rest of the kernel

Cc: Scott Smedley <ss@aao.gov.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Mar 4, 2010
1 parent bad9f95 commit 293c0db
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 27 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,7 @@ source "drivers/staging/netwave/Kconfig"

source "drivers/staging/sm7xx/Kconfig"

source "drivers/staging/dt3155/Kconfig"

endif # !STAGING_EXCLUDE_BUILD
endif # STAGING
1 change: 1 addition & 0 deletions drivers/staging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ obj-$(CONFIG_WAVELAN) += wavelan/
obj-$(CONFIG_PCMCIA_WAVELAN) += wavelan/
obj-$(CONFIG_PCMCIA_NETWAVE) += netwave/
obj-$(CONFIG_FB_SM7XX) += sm7xx/
obj-$(CONFIG_DT3155) += dt3155/
4 changes: 4 additions & 0 deletions drivers/staging/dt3155/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config DT3155
tristate "DT3155 Digitizer support"
depends on PCI

33 changes: 6 additions & 27 deletions drivers/staging/dt3155/Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@

ifeq ($(shell [[ `uname -r | cut -f 1,2 -d\.` < 2.6 ]] && echo pre2.6),pre2.6)
# system with a pre 2.6 kernel _don't_ use kbuild.
all:
$(MAKE) -f Makefile.pre-2.6

clean:
rm -f *.o

else
# systems with a 2.6 or later kernel use kbuild.
ifneq ($(KERNELRELEASE),)
obj-m := dt3155.o
dt3155-objs := dt3155_drv.o dt3155_isr.o dt3155_io.o allocator.o

else
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

all:
$(MAKE) -C $(KDIR) M=$(PWD) modules

clean:
rm -rf *.o *.mod *.mod.c *.ko .dt3155* .allocator.o.cmd .tmp_versions

endif
endif
obj-$(CONFIG_DT3155) += dt3155.o
dt3155-objs := \
dt3155_drv.o \
dt3155_isr.o \
dt3155_io.o \
allocator.o

0 comments on commit 293c0db

Please sign in to comment.