ioutil: make the file compile on MacOS
[fw/openocd] / tcl / board / imx27ads.cfg
index 664b4705cac1d203484bc9acc317e9e401c17190..e705b1e1666d4990c1f75c86d6193cebb4e65483 100644 (file)
@@ -5,7 +5,8 @@ $_TARGETNAME configure -event gdb-attach { reset init }
 $_TARGETNAME configure -event reset-init { imx27ads_init }
 
 # The IMX27 ADS board has a NOR flash on CS0
-flash_bank cfi 0xc0000000 0x00200000 2 2 0
+set _FLASHNAME $_CHIPNAME.flash
+flash bank $_FLASHNAME cfi 0xc0000000 0x00200000 2 2 $_TARGETNAME
 
 proc imx27ads_init { } {
        # This setup puts RAM at 0xA0000000