Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dwc_otg -DDEBUG option breaks build. #882

Closed
ali1234 opened this issue Mar 11, 2015 · 4 comments
Closed

dwc_otg -DDEBUG option breaks build. #882

ali1234 opened this issue Mar 11, 2015 · 4 comments

Comments

@ali1234
Copy link
Contributor

ali1234 commented Mar 11, 2015

In drivers/usb/host/dwc_otg/Makefile uncomment this line:

#ccflags-y  += -DDEBUG

Result: kernel fails to build:

al@al-desktop:~/piusb/linux$ make
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CHK     kernel/config_data.h
  CC      drivers/usb/host/dwc_otg/dwc_otg_driver.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_attr.o
drivers/usb/host/dwc_otg/dwc_otg_attr.c: In function ‘spramdump_show’:
drivers/usb/host/dwc_otg/dwc_otg_attr.c:921:27: warning: unused variable ‘otg_dev’ [-Wunused-variable]
  CC      drivers/usb/host/dwc_otg/dwc_otg_cil.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_cil_intr.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_pcd_linux.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_pcd.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_pcd_intr.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_hcd.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_hcd_linux.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_hcd_intr.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_hcd_queue.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_hcd_ddma.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_adp.o
  CC      drivers/usb/host/dwc_otg/dwc_otg_fiq_fsm.o
  LD      drivers/usb/host/dwc_otg/dwc_otg.o
  LD      drivers/usb/host/dwc_otg/built-in.o
  LD      drivers/usb/host/built-in.o
  LD      drivers/usb/built-in.o
  LD      drivers/built-in.o
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
drivers/built-in.o: In function `dwc_otg_driver_remove':
:(.text+0xc2b18): undefined reference to `__DWC_DEBUG'
:(.text+0xc2b60): undefined reference to `__DWC_DEBUG'
:(.text+0xc2b74): undefined reference to `__DWC_DEBUG'
:(.text+0xc2bd8): undefined reference to `__DWC_DEBUG'
:(.text+0xc2bec): undefined reference to `__DWC_DEBUG'
drivers/built-in.o::(.text+0xc2c0c): more undefined references to `__DWC_DEBUG' follow
make: *** [vmlinux] Error 1
@Ruffio
Copy link

Ruffio commented Aug 14, 2016

@ali1234 has your issue been resolved? If yes, then please close this issue.

@ali1234
Copy link
Contributor Author

ali1234 commented Aug 23, 2016

Not fixed.

@popcornmix
Copy link
Collaborator

dwc_otg depends on dwc_common_port. You need to enable debug in there too.
https://github.com/raspberrypi/linux/blob/rpi-4.4.y/drivers/usb/host/dwc_common_port/Makefile#L8

@ali1234
Copy link
Contributor Author

ali1234 commented Aug 24, 2016

Indeed. Fixed.

@ali1234 ali1234 closed this as completed Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants