Skip to contentSkip to conversation

arm: mach-k3: Move K3 degenerate keys out of board folder

PATCH Superseded Nishanth Menon 2 participants 3 messages Nov 3, 2023 – Nov 4, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: mach-k3: Move K3 degenerate keys out of board folder

This file is common for all of K3, move it out of board/ directory and into mach-k3. And change the relative paths to absolute paths in the binman paths.

---
Cc: Neha Malcom Francis <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Marcel Ziswiler <[email protected]>
Cc: Vignesh Raghavendra <[email protected]>
Cc: Francesco Dolcini <[email protected]>
Cc: Andrew Davis <[email protected]>

Similar to the patch https://lore.kernel.org/all/[email protected]/

 arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi         | 2 +-
 arch/arm/dts/k3-binman.dtsi                               | 2 +-
 {board/ti/keys => arch/arm/mach-k3}/ti-degenerate-key.pem | 0
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename {board/ti/keys => arch/arm/mach-k3}/ti-degenerate-key.pem (100%)
arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi +1 -1
index b489d8afbe36..a6d7c2df20e0 100644
@@ -10,7 +10,7 @@
 };
 
 &dkey_pem {
-	filename = "../../ti/keys/ti-degenerate-key.pem";
+	filename = "arch/arm/mach-k3/ti-degenerate-key.pem";
 };
 
 #ifdef CONFIG_TARGET_VERDIN_AM62_R5
arch/arm/dts/k3-binman.dtsi +1 -1
index 0212d44ee3b2..af0f83100bd5 100644
@@ -20,7 +20,7 @@
 	ti-degenerate-key {
 		filename = "ti-degenerate-key.pem";
 		dkey_pem: blob-ext {
-			filename = "../keys/ti-degenerate-key.pem";
+			filename = "arch/arm/mach-k3/ti-degenerate-key.pem";
 		};
 	};
 };
arch/arm/mach-k3/ti-degenerate-key.pem renamed from board/ti/keys/ti-degenerate-key.pem +0 -0
similarity index 100%
rename from board/ti/keys/ti-degenerate-key.pem
rename to arch/arm/mach-k3/ti-degenerate-key.pem
Signature · 1 line
2.40.0
#1 lore raw
Quoted 26 lines · Nishanth Menon

This file is common for all of K3, move it out of board/ directory and into mach-k3. And change the relative paths to absolute paths in the binman paths.

---
Cc: Neha Malcom Francis <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Marcel Ziswiler <[email protected]>
Cc: Vignesh Raghavendra <[email protected]>
Cc: Francesco Dolcini <[email protected]>
Cc: Andrew Davis <[email protected]>

Similar to the patch https://lore.kernel.org/all/[email protected]/

  arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi         | 2 +-
  arch/arm/dts/k3-binman.dtsi                               | 2 +-
  {board/ti/keys => arch/arm/mach-k3}/ti-degenerate-key.pem | 0
  3 files changed, 2 insertions(+), 2 deletions(-)

rename {board/ti/keys => arch/arm/mach-k3}/ti-degenerate-key.pem (100%)

arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi +0 -0
index b489d8afbe36..a6d7c2df20e0 100644

arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi line 14

Quoted 6 lines
arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi +1 -1
@@ -10,7 +10,7 @@
  };
 
  &dkey_pem {
-	filename = "../../ti/keys/ti-degenerate-key.pem";
+	filename = "arch/arm/mach-k3/ti-degenerate-key.pem";
  };

You shouldn't need to modify dkey_pem here anymore if the path is now absolute, you can just drop this whole override node.

While here you might as well move the TI dummy key (custMpk.pem) over the same way.

Andrew

Quoted 19 lines
arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi +0 -0
  #ifdef CONFIG_TARGET_VERDIN_AM62_R5
arch/arm/dts/k3-binman.dtsi +1 -1
index 0212d44ee3b2..af0f83100bd5 100644
@@ -20,7 +20,7 @@
  	ti-degenerate-key {
  		filename = "ti-degenerate-key.pem";
  		dkey_pem: blob-ext {
-			filename = "../keys/ti-degenerate-key.pem";
+			filename = "arch/arm/mach-k3/ti-degenerate-key.pem";
  		};
  	};
  };
arch/arm/mach-k3/ti-degenerate-key.pem renamed from board/ti/keys/ti-degenerate-key.pem +0 -0
similarity index 100%
rename from board/ti/keys/ti-degenerate-key.pem
rename to arch/arm/mach-k3/ti-degenerate-key.pem
#2 lore raw

On 18:31-20231103, Andrew Davis wrote:
[...]

Quoted 14 lines

arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi line 13

Quoted 10 lines
arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi +1 -1
index b489d8afbe36..a6d7c2df20e0 100644
@@ -10,7 +10,7 @@
  };
  &dkey_pem {
-	filename = "../../ti/keys/ti-degenerate-key.pem";
+	filename = "arch/arm/mach-k3/ti-degenerate-key.pem";
  };

You shouldn't need to modify dkey_pem here anymore if the path is now absolute, you can just drop this whole override node.

Quoted 2 lines

While here you might as well move the TI dummy key (custMpk.pem) over the same way.

True.. done in V2.

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D