0002-Fix-compiler-warning-flags.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From 9b8f1df41f7579da63c27763ff184d351e4c7fef Mon Sep 17 00:00:00 2001
  2. From: Simon Dawson <spdawson@gmail.com>
  3. Date: Sun, 4 Jan 2015 12:06:18 +0100
  4. Subject: [PATCH] Fix compiler warning flags
  5. When building for bfin, the build fails as follows.
  6. cc1: error: unrecognized command line option "-Wno-packed-bitfield-compat"
  7. An example of an autobuild failure arising from this is the following.
  8. http://autobuild.buildroot.net/results/92e/92e472004812a3616f62d766a9ea07a997a66e89/
  9. http://autobuild.buildroot.net/results/6e7/6e7b48ad9768349d983985c3067c4267cde80541/
  10. Clearly, not all toolchains provide a gcc that understands
  11. the -Wno-packed-bitfield-compat flag; remove usage of this flag.
  12. Wno-packed-bitfield-compat option was added in gcc 4.4.
  13. [Romain:
  14. - This patch is also needed for bfin toolchains which use gcc 4.3.5
  15. - Add a link to bfin build failure]
  16. Signed-off-by: Simon Dawson <spdawson@gmail.com>
  17. Signed-off-by: Romain Naour <romain.naour@openwide.fr>
  18. ---
  19. util/scan/Makefile | 2 +-
  20. 1 file changed, 1 insertion(+), 1 deletion(-)
  21. diff --git a/util/scan/Makefile b/util/scan/Makefile
  22. index d48c478..88667c5 100644
  23. --- a/util/scan/Makefile
  24. +++ b/util/scan/Makefile
  25. @@ -14,7 +14,7 @@ inst_bin = $(binaries)
  26. removing = atsc_psip_section.c atsc_psip_section.h
  27. -CPPFLAGS += -Wno-packed-bitfield-compat -D__KERNEL_STRICT_NAMES
  28. +CPPFLAGS += -D__KERNEL_STRICT_NAMES
  29. .PHONY: all
  30. --
  31. 1.9.3