kbuild: pass -g to assembler under CONFIG_DEBUG_INFO
[firefly-linux-kernel-4.4.55.git] / Makefile
index 1b0d84d4961281acacbcd85caec8180878c97f3e..0ad6e8d9b0b3a04ed3d087bf3edd70fa5298146d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -502,6 +502,7 @@ endif
 
 ifdef CONFIG_DEBUG_INFO
 CFLAGS         += -g
+AFLAGS         += -gdwarf-2
 endif
 
 # Force gcc to behave correct even for buggy distributions