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.

39 lines
1.3 KiB

  1. From deb44e6e9d64001562ee9395a2c8525848052394 Mon Sep 17 00:00:00 2001
  2. From: Alexandru Ardelean <aa@ocedo.com>
  3. Date: Tue, 28 Oct 2014 11:03:53 +0200
  4. Subject: [PATCH] datapath/linux: add KCFLAGS var to modules Makefile.main.in
  5. This is mostly required because of GCC 4.9 which seems
  6. to error out with:
  7. openvswitch/datapath/linux/datapath.c:2108:10:
  8. error: macro "DATE" might prevent reproducible builds
  9. We would have wanted to add '-Wno-error=date-time' directly
  10. but that would be too specific, so we decided to add
  11. a generic make flag and configure it with what we need.
  12. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
  13. ---
  14. datapath/linux/Makefile.main.in | 4 ++--
  15. 1 file changed, 2 insertions(+), 2 deletions(-)
  16. diff --git a/datapath/linux/Makefile.main.in b/datapath/linux/Makefile.main.in
  17. index 88f144c..0b200b7 100644
  18. --- a/datapath/linux/Makefile.main.in
  19. +++ b/datapath/linux/Makefile.main.in
  20. @@ -67,10 +67,10 @@ ifeq (,$(wildcard $(CONFIG_FILE)))
  21. endif
  22. default:
  23. - $(MAKE) -C $(KSRC) M=$(builddir) modules
  24. + $(MAKE) -C $(KSRC) M=$(builddir) $(KCFLAGS) modules
  25. modules_install:
  26. - $(MAKE) -C $(KSRC) M=$(builddir) modules_install
  27. + $(MAKE) -C $(KSRC) M=$(builddir) $(KCFLAGS) modules_install
  28. depmod `sed -n 's/#define UTS_RELEASE "\([^"]*\)"/\1/p' $(KSRC)/include/generated/utsrelease.h`
  29. endif
  30. --
  31. 1.8.4.5