0083-x86-build-Beautify-build-log-of-syscall-headers.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Masahiro Yamada <[email protected]>
  3. Date: Fri, 27 Oct 2017 13:11:10 +0900
  4. Subject: [PATCH] x86/build: Beautify build log of syscall headers
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. CVE-2017-5754
  9. This makes the build log look nicer.
  10. Before:
  11. SYSTBL arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
  12. SYSHDR arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h
  13. SYSHDR arch/x86/entry/syscalls/../../include/generated/asm/unistd_64_x32.h
  14. SYSTBL arch/x86/entry/syscalls/../../include/generated/asm/syscalls_64.h
  15. SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
  16. SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h
  17. SYSHDR arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
  18. After:
  19. SYSTBL arch/x86/include/generated/asm/syscalls_32.h
  20. SYSHDR arch/x86/include/generated/asm/unistd_32_ia32.h
  21. SYSHDR arch/x86/include/generated/asm/unistd_64_x32.h
  22. SYSTBL arch/x86/include/generated/asm/syscalls_64.h
  23. SYSHDR arch/x86/include/generated/uapi/asm/unistd_32.h
  24. SYSHDR arch/x86/include/generated/uapi/asm/unistd_64.h
  25. SYSHDR arch/x86/include/generated/uapi/asm/unistd_x32.h
  26. Signed-off-by: Masahiro Yamada <[email protected]>
  27. Acked-by: Thomas Gleixner <[email protected]>
  28. Cc: Linus Torvalds <[email protected]>
  29. Cc: Peter Zijlstra <[email protected]>
  30. Cc: "H. Peter Anvin" <[email protected]>
  31. Cc: [email protected]
  32. Link: http://lkml.kernel.org/r/[email protected]
  33. Signed-off-by: Ingo Molnar <[email protected]>
  34. (cherry picked from commit af8e947079a7dab0480b5d6db6b093fd04b86fc9)
  35. Signed-off-by: Andy Whitcroft <[email protected]>
  36. Signed-off-by: Kleber Sacilotto de Souza <[email protected]>
  37. (cherry picked from commit d945957924e9b1a469516b4029fd384138c2cb69)
  38. Signed-off-by: Fabian Grünbichler <[email protected]>
  39. ---
  40. arch/x86/entry/syscalls/Makefile | 4 ++--
  41. 1 file changed, 2 insertions(+), 2 deletions(-)
  42. diff --git a/arch/x86/entry/syscalls/Makefile b/arch/x86/entry/syscalls/Makefile
  43. index 57aa59fd140c..e34c7a931994 100644
  44. --- a/arch/x86/entry/syscalls/Makefile
  45. +++ b/arch/x86/entry/syscalls/Makefile
  46. @@ -1,5 +1,5 @@
  47. -out := $(obj)/../../include/generated/asm
  48. -uapi := $(obj)/../../include/generated/uapi/asm
  49. +out := arch/$(SRCARCH)/include/generated/asm
  50. +uapi := arch/$(SRCARCH)/include/generated/uapi/asm
  51. # Create output directory if not already present
  52. _dummy := $(shell [ -d '$(out)' ] || mkdir -p '$(out)') \
  53. --
  54. 2.14.2