Skip to contentSkip to conversation

arm: imx25-pdk: Fix machine name

PATCH Applied Peter Crosthwaite 2 participants 3 messages Oct 10, 2015 – Oct 16, 2015 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: imx25-pdk: Fix machine name

ARM uses dashes instead of underscores for machine names. Fix imx25_pdk which has not seen a release yet (so there is no legacy yet).

Cc Jean-Christophe Dubois <[email protected]>
---
 hw/arm/imx25_pdk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/imx25_pdk.c +1 -1
index 4250114..59a4c11 100644
@@ -151,4 +151,4 @@ static void imx25_pdk_machine_init(MachineClass *mc)
     mc->init = imx25_pdk_init;
 }
 
-DEFINE_MACHINE("imx25_pdk", imx25_pdk_machine_init)
+DEFINE_MACHINE("imx25-pdk", imx25_pdk_machine_init)
Signature · 1 line
1.9.1
#1 lore raw
Quoted 20 lines · Peter Crosthwaite

ARM uses dashes instead of underscores for machine names. Fix imx25_pdk which has not seen a release yet (so there is no legacy yet).

Cc Jean-Christophe Dubois <[email protected]>
---
 hw/arm/imx25_pdk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/imx25_pdk.c +1 -2
index 4250114..59a4c11 100644
@@ -151,4 +151,4 @@ static void imx25_pdk_machine_init(MachineClass *mc)
     mc->init = imx25_pdk_init;
 }
 
-DEFINE_MACHINE("imx25_pdk", imx25_pdk_machine_init)
+DEFINE_MACHINE("imx25-pdk", imx25_pdk_machine_init)
--
Quoted 2 lines

1.9.1

Applied to target-arm.next, thanks.

-- PMM

#2 lore raw
Quoted 19 lines · Peter Maydell
Quoted 17 lines · Peter Crosthwaite

ARM uses dashes instead of underscores for machine names. Fix imx25_pdk which has not seen a release yet (so there is no legacy yet).

Cc Jean-Christophe Dubois <[email protected]>
---
 hw/arm/imx25_pdk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/imx25_pdk.c +0 -0
index 4250114..59a4c11 100644
@@ -151,4 +151,4 @@ static void imx25_pdk_machine_init(MachineClass *mc)
     mc->init = imx25_pdk_init;
 }
 
Quoted 4 lines

hw/arm/imx25_pdk.c static void imx25_pdk_machine_init(MachineClass *mc) · line 154

Quoted 2 lines
hw/arm/imx25_pdk.c +1 -1
-DEFINE_MACHINE("imx25_pdk", imx25_pdk_machine_init)
+DEFINE_MACHINE("imx25-pdk", imx25_pdk_machine_init)

Applied to target-arm.next, thanks.

This patch breaks 'make check'. (tests/ds1338-test.c tries to start a machine "imx25_pdk" still). I have squashed in this fix:

tests/ds1338-test.c +1 -1
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
 
     g_test_init(&argc, &argv, NULL);
 
-    s = qtest_start("-display none -machine imx25_pdk");
+    s = qtest_start("-display none -machine imx25-pdk");
     i2c = imx_i2c_create(IMX25_I2C_0_BASE);
     addr = DS1338_ADDR;
 

thanks
-- PMM