Skip to contentSkip to conversation

kbuild: Disallow DTB overlays to built from .dts named source files

PATCH In review Andrew Davis 5 participants 8 messages Mar 6, 2023 – May 22, 2023 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: Disallow DTB overlays to built from .dts named source files

As a follow up to the series allowing DTB overlays to built from .dtso files. Now that all overlays have been renamed, remove the ability to build from overlays from .dts files to prevent any files with the old name from accidental being added.

---
 scripts/Makefile.lib | 3 ---
 1 file changed, 3 deletions(-)
scripts/Makefile.lib +0 -3
index 100a386fcd71..68d0134bdbf9 100644
@@ -418,9 +418,6 @@ endif
 $(obj)/%.dtb: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
 	$(call if_changed_dep,dtb)
 
-$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE
-	$(call if_changed_dep,dtc)
-
 $(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE
 	$(call if_changed_dep,dtc)
 
Signature · 1 line
2.39.2
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Andrew Davis

As a follow up to the series allowing DTB overlays to built from .dtso files. Now that all overlays have been renamed, remove the ability to build from overlays from .dts files to prevent any files with the old name from accidental being added.

if Rob picks this up.

Quoted 21 lines
---
 scripts/Makefile.lib | 3 ---
 1 file changed, 3 deletions(-)
scripts/Makefile.lib +0 -4
index 100a386fcd71..68d0134bdbf9 100644
@@ -418,9 +418,6 @@ endif
 $(obj)/%.dtb: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
        $(call if_changed_dep,dtb)
 
-$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE
-       $(call if_changed_dep,dtc)
-
 $(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE
        $(call if_changed_dep,dtc)
 
--

2.39.2

Signature · 2 lines
Best Regards
Masahiro Yamada
Reviewed-by on v1 1/1
#2 lore raw
In reply to Andrew Davis
Quoted 6 lines · Andrew Davis

As a follow up to the series allowing DTB overlays to built from .dtso files. Now that all overlays have been renamed, remove the ability to build from overlays from .dts files to prevent any files with the old name from accidental being added.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Acked-by on v1 1/1
#3 lore raw
In reply to Andrew Davis
Quoted 4 lines · Andrew Davis

As a follow up to the series allowing DTB overlays to built from .dtso files. Now that all overlays have been renamed, remove the ability to build from overlays from .dts files to prevent any files with the old name from accidental being added.

Since in the past I had a problem with unnecessary rebuilding, this removes the rule, so should not bring a similar regression.

Thank you.

Quoted 22 lines
---
 scripts/Makefile.lib | 3 ---
 1 file changed, 3 deletions(-)
scripts/Makefile.lib +0 -3
index 100a386fcd71..68d0134bdbf9 100644
@@ -418,9 +418,6 @@ endif
 $(obj)/%.dtb: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
 	$(call if_changed_dep,dtb)
 
-$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE
-	$(call if_changed_dep,dtc)
-
 $(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE
 	$(call if_changed_dep,dtc)
 
Signature · 1 line
2.39.2
Signature · 2 lines
With Best Regards,
Andy Shevchenko
#4 lore raw
In reply to Andrew Davis
Quoted 3 lines · On Mon, Mar 06, 2023 at 04:47:52PM -0600 Andrew Davis wrote:

As a follow up to the series allowing DTB overlays to built from .dtso files. Now that all overlays have been renamed, remove the ability to build from overlays from .dts files to prevent any files with the old

        ^^^^

The first "from" sounds superfluous to me.

Kind regards,
Nicolas

Quoted 23 lines

name from accidental being added.

---
 scripts/Makefile.lib | 3 ---
 1 file changed, 3 deletions(-)
scripts/Makefile.lib +0 -3
index 100a386fcd71..68d0134bdbf9 100644
@@ -418,9 +418,6 @@ endif
 $(obj)/%.dtb: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
 	$(call if_changed_dep,dtb)
 
-$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE
-	$(call if_changed_dep,dtc)
-
 $(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE
 	$(call if_changed_dep,dtc)
 
Signature · 1 line
2.39.2
Signature · 8 lines
epost|xmpp: [email protected]          irc://oftc.net/nsc
↳ gpg: 18ed 52db e34f 860e e9fb  c82b 7d97 0932 55a0 ce7f
     -- frykten for herren er opphav til kunnskap --

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#5 lore raw
Quoted 8 lines · Nicolas Schier
Quoted 3 lines · On Mon, Mar 06, 2023 at 04:47:52PM -0600 Andrew Davis wrote:

As a follow up to the series allowing DTB overlays to built from .dtso files. Now that all overlays have been renamed, remove the ability to build from overlays from .dts files to prevent any files with the old

         ^^^^

The first "from" sounds superfluous to me.

It is a typo, feel free to drop it locally whoever takes this patch.

Thanks,
Andrew

Quoted 17 lines

Kind regards,
Nicolas

Quoted 15 lines

name from accidental being added.

---
  scripts/Makefile.lib | 3 ---
  1 file changed, 3 deletions(-)
scripts/Makefile.lib +0 -0
index 100a386fcd71..68d0134bdbf9 100644
@@ -418,9 +418,6 @@ endif
  $(obj)/%.dtb: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
  	$(call if_changed_dep,dtb)
 
Quoted 9 lines
Quoted 8 lines
scripts/Makefile.lib +0 -3
-$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE
-	$(call if_changed_dep,dtc)
-
  $(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE
  	$(call if_changed_dep,dtc)
 
Signature · 1 line
2.39.2

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#6 lore raw
Quoted 5 lines · Andrew Davis
Quoted 4 lines · Nicolas Schier
Quoted 3 lines · On Mon, Mar 06, 2023 at 04:47:52PM -0600 Andrew Davis wrote:

As a follow up to the series allowing DTB overlays to built from .dtso files. Now that all overlays have been renamed, remove the ability to build from overlays from .dts files to prevent any files with the old

Quoted 7 lines
Quoted 4 lines

         ^^^^

The first "from" sounds superfluous to me.

It is a typo, feel free to drop it locally whoever takes this patch.

Seems no one took this last cycle.. Still valid and applies for this one.

Andrew

Quoted 27 lines

Thanks,
Andrew

Quoted 24 lines

Kind regards,
Nicolas

Quoted 21 lines

name from accidental being added.

---
  scripts/Makefile.lib | 3 ---

  1 file changed, 3 deletions(-)
scripts/Makefile.lib +0 -0
index 100a386fcd71..68d0134bdbf9 100644
@@ -418,9 +418,6 @@ endif

  $(obj)/%.dtb: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE $(call if_changed_dep,dtb)
-$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE
-    $(call if_changed_dep,dtc)
-
  $(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE $(call if_changed_dep,dtc)

Signature · 1 line
2.39.2

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#7 lore raw
Quoted 9 lines · Andrew Davis
Quoted 7 lines · Andrew Davis
Quoted 6 lines · Nicolas Schier
Quoted 3 lines · On Mon, Mar 06, 2023 at 04:47:52PM -0600 Andrew Davis wrote:

As a follow up to the series allowing DTB overlays to built from .dtso files. Now that all overlays have been renamed, remove the ability to build from overlays from .dts files to prevent any files with the old

         ^^^^
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

The first "from" sounds superfluous to me.

It is a typo, feel free to drop it locally whoever takes this patch.

Seems no one took this last cycle.. Still valid and applies for this one.

Seems it fell into a crack.

Now applied to linux-kbuild. Thanks.

Quoted 29 lines

Andrew

Quoted 27 lines

Thanks,
Andrew

Quoted 24 lines

Kind regards,
Nicolas

Quoted 21 lines

name from accidental being added.

---
  scripts/Makefile.lib | 3 ---
  1 file changed, 3 deletions(-)
scripts/Makefile.lib +0 -4
index 100a386fcd71..68d0134bdbf9 100644
@@ -418,9 +418,6 @@ endif
  $(obj)/%.dtb: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE
      $(call if_changed_dep,dtb)
-$(obj)/%.dtbo: $(src)/%.dts $(DTC) FORCE
-    $(call if_changed_dep,dtc)
-
  $(obj)/%.dtbo: $(src)/%.dtso $(DTC) FORCE
      $(call if_changed_dep,dtc)
--

2.39.2

Signature · 2 lines
Best Regards
Masahiro Yamada