patch-2.3.22 linux/drivers/usb/Makefile

Next file: linux/drivers/usb/acm.c
Previous file: linux/drivers/sound/maestro.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.21/linux/drivers/usb/Makefile linux/drivers/usb/Makefile
@@ -98,21 +98,27 @@
 endif
 
 ifeq ($(CONFIG_USB_SERIAL),y)
-  L_OBJS += serial.o
+  L_OBJS += usb-serial.o
 endif
 
 ifeq ($(CONFIG_USB_SERIAL),m)
-  M_OBJS += serial.o
-  MIX_OBJS += serial.o  
+  M_OBJS += usb-serial.o
+  MIX_OBJS += usb-serial.o  
+endif
+
+ifneq ($(CONFIG_ADB_KEYBOARD),y)
+KEYMAP=keymap
+else
+KEYMAP=keymap-mac
 endif
 
 ifeq ($(CONFIG_USB_KBD),y)
-  L_OBJS += keyboard.o keymap.o
+  L_OBJS += keyboard.o $(KEYMAP).o
 endif
 
 ifeq ($(CONFIG_USB_KBD),m)
   M_OBJS += usb-keyboard.o
-  MIX_OBJS += keyboard.o keymap.o
+  MIX_OBJS += keyboard.o $(KEYMAP).o
 endif
 
 ifeq ($(CONFIG_USB_AUDIO),y)
@@ -177,13 +183,8 @@
 keymap-mac.c: maps/mac.map maps/usb.map
 	./mkmap.adb > $@
 
-ifneq ($(CONFIG_MAC_KEYBOARD),y)
-usb-keyboard.o: keymap.o keyboard.o
-	$(LD) $(LD_RFLAG) -r -o $@  keymap.o keyboard.o 
-else
-usb-keyboard.o: keymap-mac.o keyboard.o
-	$(LD) $(LD_RFLAG) -r -o $@  keymap-mac.o keyboard.o 
-endif
+usb-keyboard.o: $(KEYMAP).o keyboard.o
+	$(LD) $(LD_RFLAG) -r -o $@  $(KEYMAP).o keyboard.o 
 
 ifeq ($(CONFIG_USB_SCSI_DEBUG),y)
 usb-scsi.o: usb_scsi.o usb_scsi_debug.o

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)