scripts: Change a class name from RpiInitParams to InitParams 37/303537/1
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 2 Jan 2024 01:28:02 +0000 (10:28 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 2 Jan 2024 01:28:02 +0000 (10:28 +0900)
InitParams can be also used for other targets, not only Rpi.
So the Rpi prefix can be removed.

Change-Id: I6b55056cddb8aef2fa582a9e40565423319904fe
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
scripts/tizen/sd_fusing.py

index 16867a9..a3d4415 100755 (executable)
@@ -156,7 +156,7 @@ class SdFusingTargetAB(SdFusingTarget):
             return self.binaries_b.get(binary, None)
         return self.binaries.get(binary, None)
 
-class RpiInitParams:
+class InitParams:
     def initialize_parameters(self):
         logging.debug("Initializing parameterss")
         n = None
@@ -190,7 +190,7 @@ class RpiInitParams:
                            stdin=subprocess.DEVNULL,
                            stdout=None, stderr=None)
 
-class Rpi3(RpiInitParams, SdFusingTarget):
+class Rpi3(InitParams, SdFusingTarget):
     long_name = "Raspberry Pi 3"
     part_table = [
         {"size": 64,   "fstype": "vfat", "name": "boot", "start": 4, "ptype": "0xe", "bootable": True,
@@ -220,7 +220,7 @@ class Rpi3(RpiInitParams, SdFusingTarget):
         self.user_partition = 4
         super().__init__(device, "dos")
 
-class Rpi4Super(RpiInitParams, SdFusingTargetAB):
+class Rpi4Super(InitParams, SdFusingTargetAB):
     long_name = "Raspberry Pi 4 w/ super partition"
     part_table = [
         {"size": 64,   "fstype": "vfat", "name": "boot_a","start": 4,
@@ -269,7 +269,7 @@ class Rpi4Super(RpiInitParams, SdFusingTargetAB):
         self.with_super = True
         self.super_alignment = 1048576
 
-class Rpi4(RpiInitParams, SdFusingTargetAB):
+class Rpi4(InitParams, SdFusingTargetAB):
     long_name = "Raspberry Pi 4"
     part_table = [
         {"size": 64,   "fstype": "vfat", "name": "boot_a", "start": 4,