Advertisement
Guest User

Untitled

a guest
Oct 7th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 1.88 KB | None | 0 0
  1. Original Makefile:
  2. ------------------
  3.  
  4. #
  5. # OTG infrastructure and transceiver drivers
  6. #
  7.  
  8. # infrastructure
  9. obj-$(CONFIG_USB_OTG_UTILS) += otg.o
  10.  
  11. # transceiver drivers
  12. obj-$(CONFIG_USB_GPIO_VBUS) += gpio_vbus.o
  13. obj-$(CONFIG_ISP1301_OMAP)  += isp1301_omap.o
  14. obj-$(CONFIG_TWL4030_USB)   += twl4030-usb.o
  15. obj-$(CONFIG_NOP_USB_XCEIV) += nop-usb-xceiv.o
  16. obj-$(CONFIG_USB_ULPI)      += ulpi.o
  17. obj-$(CONFIG_USB_MSM_OTG_72K)   += msm72k_otg.o
  18.  
  19. ccflags-$(CONFIG_USB_DEBUG) += -DDEBUG
  20. ccflags-$(CONFIG_USB_GADGET_DEBUG) += -DDEBUG
  21.  
  22.  
  23. Original error:
  24. ---------------
  25.  
  26.   LD      init/built-in.o
  27.   LD      .tmp_vmlinux1
  28. drivers/built-in.o: In function `msm_otg_set_host':
  29. /home/csaba/kernel_blade/zte-kernel-msm7x27/drivers/usb/otg/msm72k_otg.c:1049: undefined reference to `usb_unregister_notify'
  30. /home/csaba/kernel_blade/zte-kernel-msm7x27/drivers/usb/otg/msm72k_otg.c:1061: undefined reference to `usb_register_notify'
  31. make: *** [.tmp_vmlinux1] Error 1
  32.  
  33.  
  34. Makefile after adding linker parameter:
  35. ---------------------------------------
  36.  
  37. #
  38. # OTG infrastructure and transceiver drivers
  39. #
  40.  
  41. # infrastructure
  42. obj-$(CONFIG_USB_OTG_UTILS) += otg.o
  43.  
  44. # transceiver drivers
  45. obj-$(CONFIG_USB_GPIO_VBUS) += gpio_vbus.o
  46. obj-$(CONFIG_ISP1301_OMAP)  += isp1301_omap.o
  47. obj-$(CONFIG_TWL4030_USB)   += twl4030-usb.o
  48. obj-$(CONFIG_NOP_USB_XCEIV) += nop-usb-xceiv.o
  49. obj-$(CONFIG_USB_ULPI)      += ulpi.o
  50. obj-$(CONFIG_USB_MSM_OTG_72K)   += msm72k_otg.o
  51. ldflags-$(CONFIG_USB_MSM_OTG_72K) += drivers/usb/core/notify.o
  52.  
  53. ccflags-$(CONFIG_USB_DEBUG) += -DDEBUG
  54. ccflags-$(CONFIG_USB_GADGET_DEBUG) += -DDEBUG
  55.  
  56.  
  57. Error after modification:
  58. -------------------------
  59.  
  60.  LD      init/built-in.o
  61.  LD      .tmp_vmlinux1
  62. drivers/built-in.o: In function `usb_notify_remove_device':
  63. /home/csaba/kernel_blade/zte-kernel-msm7x27/drivers/usb/core/notify.c:57: undefined reference to `usbfs_mutex'
  64. make: *** [.tmp_vmlinux1] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement