0001-plt.h-fix-build-with-gcc-10.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 9ed1946cef876acd5346ae806eecd7fc2e1e5341 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sat, 3 Oct 2020 10:32:48 +0200
  4. Subject: [PATCH] plt.h: fix build with gcc 10
  5. Drop EFUSE_PARAMETER_TYPE_ENM to avoid the following build failure with
  6. gcc 10 (which defaults to -fno-common):
  7. /home/naourr/work/instance-1/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: misc_cmds.o:(.bss+0x0): multiple definition of `EFUSE_PARAMETER_TYPE_ENM'; nvs.o:(.bss+0x0): first defined here
  8. Fixes:
  9. - http://autobuild.buildroot.org/results/e96c70910544085dc5299fa59f80ab9c5922fde2
  10. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  11. [Upstream status: https://github.com/gxk/ti-utils/pull/2]
  12. ---
  13. plt.h | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/plt.h b/plt.h
  16. index 523fded..8ba01c9 100644
  17. --- a/plt.h
  18. +++ b/plt.h
  19. @@ -363,7 +363,7 @@ enum EFUSE_PARAMETER_TYPE_ENMT {
  20. TX_BIP_PD_BUFFER_VBIAS_ERROR_E,
  21. EFUSE_NUMBER_OF_PARAMETERS_E,
  22. EFUSE_LAST_PARAMETER_E = (EFUSE_NUMBER_OF_PARAMETERS_E - 1)
  23. -} EFUSE_PARAMETER_TYPE_ENM;
  24. +};
  25. int get_mac_addr(int ifc_num, unsigned char *mac_addr);
  26. --
  27. 2.28.0