Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Original Makefile:
- ------------------
- #
- # OTG infrastructure and transceiver drivers
- #
- # infrastructure
- obj-$(CONFIG_USB_OTG_UTILS) += otg.o
- # transceiver drivers
- obj-$(CONFIG_USB_GPIO_VBUS) += gpio_vbus.o
- obj-$(CONFIG_ISP1301_OMAP) += isp1301_omap.o
- obj-$(CONFIG_TWL4030_USB) += twl4030-usb.o
- obj-$(CONFIG_NOP_USB_XCEIV) += nop-usb-xceiv.o
- obj-$(CONFIG_USB_ULPI) += ulpi.o
- obj-$(CONFIG_USB_MSM_OTG_72K) += msm72k_otg.o
- ccflags-$(CONFIG_USB_DEBUG) += -DDEBUG
- ccflags-$(CONFIG_USB_GADGET_DEBUG) += -DDEBUG
- Original error:
- ---------------
- LD init/built-in.o
- LD .tmp_vmlinux1
- drivers/built-in.o: In function `msm_otg_set_host':
- /home/csaba/kernel_blade/zte-kernel-msm7x27/drivers/usb/otg/msm72k_otg.c:1049: undefined reference to `usb_unregister_notify'
- /home/csaba/kernel_blade/zte-kernel-msm7x27/drivers/usb/otg/msm72k_otg.c:1061: undefined reference to `usb_register_notify'
- make: *** [.tmp_vmlinux1] Error 1
- Makefile after adding linker parameter:
- ---------------------------------------
- #
- # OTG infrastructure and transceiver drivers
- #
- # infrastructure
- obj-$(CONFIG_USB_OTG_UTILS) += otg.o
- # transceiver drivers
- obj-$(CONFIG_USB_GPIO_VBUS) += gpio_vbus.o
- obj-$(CONFIG_ISP1301_OMAP) += isp1301_omap.o
- obj-$(CONFIG_TWL4030_USB) += twl4030-usb.o
- obj-$(CONFIG_NOP_USB_XCEIV) += nop-usb-xceiv.o
- obj-$(CONFIG_USB_ULPI) += ulpi.o
- obj-$(CONFIG_USB_MSM_OTG_72K) += msm72k_otg.o
- ldflags-$(CONFIG_USB_MSM_OTG_72K) += drivers/usb/core/notify.o
- ccflags-$(CONFIG_USB_DEBUG) += -DDEBUG
- ccflags-$(CONFIG_USB_GADGET_DEBUG) += -DDEBUG
- Error after modification:
- -------------------------
- LD init/built-in.o
- LD .tmp_vmlinux1
- drivers/built-in.o: In function `usb_notify_remove_device':
- /home/csaba/kernel_blade/zte-kernel-msm7x27/drivers/usb/core/notify.c:57: undefined reference to `usbfs_mutex'
- make: *** [.tmp_vmlinux1] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement