Advertisement
Guest User

Untitled

a guest
Mar 6th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. diff --git a/config.mk b/config.mk
  2. index b7cd481..acd1ffb 100644
  3. --- a/config.mk
  4. +++ b/config.mk
  5. @@ -313,6 +313,13 @@ export CONFIG_SYS_TEXT_BASE PLATFORM_CPPFLAGS PLATFORM_RELFLAGS CPPFLAGS CFLAGS
  6.  
  7. #########################################################################
  8.  
  9. +ifeq (1,$(VERBOSE))
  10. +quiet =
  11. +else
  12. +quiet = quiet_
  13. +endif
  14. +
  15. +
  16. # Allow boards to use custom optimize flags on a per dir/file basis
  17. BCURDIR = $(subst $(SRCTREE)/,,$(CURDIR:$(obj)%=%))
  18. ALL_AFLAGS = $(AFLAGS) $(AFLAGS_$(BCURDIR)/$(@F)) $(AFLAGS_$(BCURDIR))
  19. @@ -328,11 +335,14 @@ $(obj)%.s: %.S
  20. $(CPP) $(ALL_AFLAGS) -o $@ $<
  21. $(obj)%.o: %.S
  22. $(CC) $(ALL_AFLAGS) -o $@ $< -c
  23. + CMD_CC_O_C = $(CC) $(ALL_CFLAGS) -o $@ $< -c
  24. +quiet_CMD_CC_O_C = "CC $<" $(obj)%.o: %.c
  25. ifneq ($(CHECKSRC),0)
  26. $(CHECK) $(CHECKFLAGS) $(ALL_CFLAGS) $<
  27. endif
  28. - $(CC) $(ALL_CFLAGS) -o $@ $< -c
  29. + @echo $($(quiet)CMD_CC_O_C)
  30. + @$(CMD_CC_O_C)
  31. $(obj)%.i: %.c
  32. $(CPP) $(ALL_CFLAGS) -o $@ $< -c
  33. $(obj)%.s: %.c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement