ARM: dts: at91: remove duplicated entries

Message ID 20230721053918.33944-1-claudiu.beznea@tuxon.dev
State New
Headers
Series ARM: dts: at91: remove duplicated entries |

Commit Message

claudiu beznea July 21, 2023, 5:39 a.m. UTC
  Remove duplicated DTC_FLAGS_<board> := -@ entries which intends to enable
the building of device tree overlays.
Commit 724ba6751532 ("ARM: dts: Move .dts files to vendor sub-directories")
added those entries at the beginning of file w/o removing the already
available entries spread though file.

Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
---
 arch/arm/boot/dts/microchip/Makefile | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)
  

Comments

Nicolas Ferre July 21, 2023, 3:27 p.m. UTC | #1
On 21/07/2023 at 07:39, Claudiu Beznea wrote:
> [You don't often get email from claudiu.beznea@tuxon.dev. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> 
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> Remove duplicated DTC_FLAGS_<board> := -@ entries which intends to enable
> the building of device tree overlays.
> Commit 724ba6751532 ("ARM: dts: Move .dts files to vendor sub-directories")
> added those entries at the beginning of file w/o removing the already
> available entries spread though file.
> 
> Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>

Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>

Thanks Claudiu for this finding, best regards,
    Nicolas

> ---
>   arch/arm/boot/dts/microchip/Makefile | 15 +--------------
>   1 file changed, 1 insertion(+), 14 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/microchip/Makefile b/arch/arm/boot/dts/microchip/Makefile
> index 0f5193d05a31..31e03747cdf4 100644
> --- a/arch/arm/boot/dts/microchip/Makefile
> +++ b/arch/arm/boot/dts/microchip/Makefile
> @@ -1,4 +1,5 @@
>   # SPDX-License-Identifier: GPL-2.0
> +# Enables support for device-tree overlays
>   DTC_FLAGS_at91-sam9x60_curiosity := -@
>   DTC_FLAGS_at91-sam9x60ek := -@
>   DTC_FLAGS_at91-sama5d27_som1_ek := -@
> @@ -54,21 +55,9 @@ dtb-$(CONFIG_SOC_AT91SAM9) += \
>          at91sam9g35ek.dtb \
>          at91sam9x25ek.dtb \
>          at91sam9x35ek.dtb
> -# Enables support for device-tree overlays
> -DTC_FLAGS_at91-sam9x60_curiosity := -@
> -DTC_FLAGS_at91-sam9x60ek := -@
>   dtb-$(CONFIG_SOC_SAM9X60) += \
>          at91-sam9x60_curiosity.dtb \
>          at91-sam9x60ek.dtb
> -# Enables support for device-tree overlays
> -DTC_FLAGS_at91-sama5d27_som1_ek := -@
> -DTC_FLAGS_at91-sama5d27_wlsom1_ek := -@
> -DTC_FLAGS_at91-sama5d2_icp := -@
> -DTC_FLAGS_at91-sama5d2_ptc_ek := -@
> -DTC_FLAGS_at91-sama5d2_xplained := -@
> -DTC_FLAGS_at91-sama5d3_eds := -@
> -DTC_FLAGS_at91-sama5d3_xplained := -@
> -DTC_FLAGS_at91-sama5d4_xplained := -@
>   dtb-$(CONFIG_SOC_SAM_V7) += \
>          at91-kizbox2-2.dtb \
>          at91-kizbox3-hs.dtb \
> @@ -95,8 +84,6 @@ dtb-$(CONFIG_SOC_SAM_V7) += \
>          at91-sama5d4_xplained.dtb \
>          at91-sama5d4ek.dtb \
>          at91-vinco.dtb
> -# Enables support for device-tree overlays
> -DTC_FLAGS_at91-sama7g5ek := -@
>   dtb-$(CONFIG_SOC_SAMA7G5) += \
>          at91-sama7g5ek.dtb
> 
> --
> 2.39.2
>
  

Patch

diff --git a/arch/arm/boot/dts/microchip/Makefile b/arch/arm/boot/dts/microchip/Makefile
index 0f5193d05a31..31e03747cdf4 100644
--- a/arch/arm/boot/dts/microchip/Makefile
+++ b/arch/arm/boot/dts/microchip/Makefile
@@ -1,4 +1,5 @@ 
 # SPDX-License-Identifier: GPL-2.0
+# Enables support for device-tree overlays
 DTC_FLAGS_at91-sam9x60_curiosity := -@
 DTC_FLAGS_at91-sam9x60ek := -@
 DTC_FLAGS_at91-sama5d27_som1_ek := -@
@@ -54,21 +55,9 @@  dtb-$(CONFIG_SOC_AT91SAM9) += \
 	at91sam9g35ek.dtb \
 	at91sam9x25ek.dtb \
 	at91sam9x35ek.dtb
-# Enables support for device-tree overlays
-DTC_FLAGS_at91-sam9x60_curiosity := -@
-DTC_FLAGS_at91-sam9x60ek := -@
 dtb-$(CONFIG_SOC_SAM9X60) += \
 	at91-sam9x60_curiosity.dtb \
 	at91-sam9x60ek.dtb
-# Enables support for device-tree overlays
-DTC_FLAGS_at91-sama5d27_som1_ek := -@
-DTC_FLAGS_at91-sama5d27_wlsom1_ek := -@
-DTC_FLAGS_at91-sama5d2_icp := -@
-DTC_FLAGS_at91-sama5d2_ptc_ek := -@
-DTC_FLAGS_at91-sama5d2_xplained := -@
-DTC_FLAGS_at91-sama5d3_eds := -@
-DTC_FLAGS_at91-sama5d3_xplained := -@
-DTC_FLAGS_at91-sama5d4_xplained := -@
 dtb-$(CONFIG_SOC_SAM_V7) += \
 	at91-kizbox2-2.dtb \
 	at91-kizbox3-hs.dtb \
@@ -95,8 +84,6 @@  dtb-$(CONFIG_SOC_SAM_V7) += \
 	at91-sama5d4_xplained.dtb \
 	at91-sama5d4ek.dtb \
 	at91-vinco.dtb
-# Enables support for device-tree overlays
-DTC_FLAGS_at91-sama7g5ek := -@
 dtb-$(CONFIG_SOC_SAMA7G5) += \
 	at91-sama7g5ek.dtb