0001-Rename-aes.h-to-uboot_aes.h.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. From c35adbbf2ae6e8668951e2b5fbb9b2c7c0b158c1 Mon Sep 17 00:00:00 2001
  2. From: Stefano Babic <sbabic@denx.de>
  3. Date: Sun, 8 Jan 2017 17:39:16 +0100
  4. Subject: [PATCH v1 1/4] Rename aes.h to uboot_aes.h
  5. aes.h is a too generic name if this file can
  6. be exported and used by a program.
  7. Rename it to avoid any conflicts with
  8. other files (for example, from openSSL).
  9. Signed-off-by: Stefano Babic <sbabic@denx.de>
  10. ---
  11. arch/arm/mach-tegra/tegra20/crypto.c | 2 +-
  12. cmd/aes.c | 2 +-
  13. common/env_common.c | 2 +-
  14. include/{aes.h => uboot_aes.h} | 0
  15. lib/aes.c | 2 +-
  16. tools/env/fw_env.h | 2 +-
  17. 6 files changed, 5 insertions(+), 5 deletions(-)
  18. rename include/{aes.h => uboot_aes.h} (100%)
  19. diff --git a/arch/arm/mach-tegra/tegra20/crypto.c b/arch/arm/mach-tegra/tegra20/crypto.c
  20. index 1b82fbb..eae7921 100644
  21. --- a/arch/arm/mach-tegra/tegra20/crypto.c
  22. +++ b/arch/arm/mach-tegra/tegra20/crypto.c
  23. @@ -8,7 +8,7 @@
  24. #include <common.h>
  25. #include <linux/errno.h>
  26. #include "crypto.h"
  27. -#include "aes.h"
  28. +#include "uboot_aes.h"
  29. static u8 zero_key[16];
  30. diff --git a/cmd/aes.c b/cmd/aes.c
  31. index 76da3ef..ee1ae13 100644
  32. --- a/cmd/aes.c
  33. +++ b/cmd/aes.c
  34. @@ -9,7 +9,7 @@
  35. #include <common.h>
  36. #include <command.h>
  37. #include <environment.h>
  38. -#include <aes.h>
  39. +#include <uboot_aes.h>
  40. #include <malloc.h>
  41. #include <asm/byteorder.h>
  42. #include <linux/compiler.h>
  43. diff --git a/common/env_common.c b/common/env_common.c
  44. index 7fb62e8..6845f8d 100644
  45. --- a/common/env_common.c
  46. +++ b/common/env_common.c
  47. @@ -140,7 +140,7 @@ int set_default_vars(int nvars, char * const vars[])
  48. }
  49. #ifdef CONFIG_ENV_AES
  50. -#include <aes.h>
  51. +#include <uboot_aes.h>
  52. /**
  53. * env_aes_cbc_get_key() - Get AES-128-CBC key for the environment
  54. *
  55. diff --git a/include/aes.h b/include/uboot_aes.h
  56. similarity index 100%
  57. rename from include/aes.h
  58. rename to include/uboot_aes.h
  59. diff --git a/lib/aes.c b/lib/aes.c
  60. index 9d7a0a1..d6144e6 100644
  61. --- a/lib/aes.c
  62. +++ b/lib/aes.c
  63. @@ -27,7 +27,7 @@
  64. #else
  65. #include <string.h>
  66. #endif
  67. -#include "aes.h"
  68. +#include "uboot_aes.h"
  69. /* forward s-box */
  70. static const u8 sbox[256] = {
  71. diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h
  72. index 05588ab..0d7130a 100644
  73. --- a/tools/env/fw_env.h
  74. +++ b/tools/env/fw_env.h
  75. @@ -5,7 +5,7 @@
  76. * SPDX-License-Identifier: GPL-2.0+
  77. */
  78. -#include <aes.h>
  79. +#include <uboot_aes.h>
  80. #include <stdint.h>
  81. /* Pull in the current config to define the default environment */
  82. --
  83. 2.7.4