You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB

  1. From 36fd4f214f9ba74aaf0e5fb3e4ba271b946a1550 Mon Sep 17 00:00:00 2001
  2. From: Thomas Graf <tgraf@noironetworks.com>
  3. Date: Wed, 26 Nov 2014 15:52:31 +0100
  4. Subject: [PATCH] datapath: Use ccflags-y instead of deprecated EXTRA_CFLAGS
  5. This allows users to pass in additional compiler flags through the
  6. environment variable EXTRA_CFLAGS, e.g.
  7. make EXTRA_CFLAGS=-Wno-error=foo V=1
  8. Reported-by: Alexandru Ardelean <ardeleanalex@gmail.com>
  9. Signed-off-by: Thomas Graf <tgraf@noironetworks.com>
  10. Acked-by: Pravin B Shelar <pshelar@nicira.com>
  11. ---
  12. datapath/linux/Kbuild.in | 10 +++++-----
  13. 1 file changed, 5 insertions(+), 5 deletions(-)
  14. diff --git a/datapath/linux/Kbuild.in b/datapath/linux/Kbuild.in
  15. index 6f6f65f..cb98c11 100644
  16. --- a/datapath/linux/Kbuild.in
  17. +++ b/datapath/linux/Kbuild.in
  18. @@ -7,11 +7,11 @@ export VERSION = @VERSION@
  19. include $(srcdir)/../Modules.mk
  20. include $(srcdir)/Modules.mk
  21. -EXTRA_CFLAGS := -DVERSION=\"$(VERSION)\"
  22. -EXTRA_CFLAGS += -I$(srcdir)/..
  23. -EXTRA_CFLAGS += -I$(builddir)/..
  24. -EXTRA_CFLAGS += -g
  25. -EXTRA_CFLAGS += -include $(builddir)/kcompat.h
  26. +ccflags-y := -DVERSION=\"$(VERSION)\"
  27. +ccflags-y += -I$(srcdir)/..
  28. +ccflags-y += -I$(builddir)/..
  29. +ccflags-y += -g
  30. +ccflags-y += -include $(builddir)/kcompat.h
  31. # These include directories have to go before -I$(KSRC)/include.
  32. # NOSTDINC_FLAGS just happens to be a variable that goes in the
  33. --
  34. 2.1.2