Makefile cleanup
[keystone-rtos/ibl.git] / src / make / makestg2
index 23062d5502c8cd6cbcf397379a719342f3a3a4d7..1407b4e65447f3f371142698040c0ee667f45900 100644 (file)
@@ -133,6 +133,7 @@ i2crom:
        ../util/romparse/romparse $(COMPACT) -rom_base $(I2C_BUS_ADDR) ibl_$(TARGET)/$@.map.pp
        $(CP) i2crom.ccs ibl_$(TARGET)/$@.ccs
        $(CP) i2crom.ccs ibl_$(TARGET)/$@.dat
+       ../util/btoccs/ccs2bin -swap ibl_$(TARGET)/$@.ccs ibl_$(TARGET)/$@.bin
        $(RM) i2crom.ccs ibl_le.b ibl.b
 
 spiRom:
@@ -248,19 +249,18 @@ cleant:
        rm -rf ibl_$(TARGET)/ibl_init.i2c.le.ccs
        rm -rf ibl_$(TARGET)/ibl_init.le.ccs
        rm -rf ibl_$(TARGET)/ibl_init.be.ccs
-       rm -rf ibl_$(TARGET)/i2crom.ccs
-       rm -rf ibl_$(TARGET)/i2crom.dat
-       rm -rf ibl_$(TARGET)/i2crom_0x50.dat
-       rm -rf ibl_$(TARGET)/i2crom_0x51.dat
-       rm -rf ibl_$(TARGET)/i2crom.map.pp
+       rm -rf ibl_$(TARGET)/i2crom*.ccs
+       rm -rf ibl_$(TARGET)/i2crom*.dat
+       rm -rf ibl_$(TARGET)/i2crom*.bin
+       rm -rf ibl_$(TARGET)/i2crom*.map.pp
        rm -rf ibl_$(TARGET)/ibl_init_objs.inc
        rm -rf ibl_$(TARGET)/ibl_init_objs.pp
        rm -rf ibl_$(TARGET)/ibl_init_symbols.inc
        rm -rf ibl_$(TARGET)/ibl_objs.inc
        rm -rf ibl_$(TARGET)/ibl_objs.pp
        rm -rf ibl_$(TARGET)/ibl_objs.tmp
-       rm -rf ibl_$(TARGET)/spiRom.dat
-       rm -rf ibl_$(TARGET)/spiRom.map.pp
+       rm -rf ibl_$(TARGET)/spiRom*.dat
+       rm -rf ibl_$(TARGET)/spiRom*.map.pp