The master cbfs record was located at the end of the flash and overwrote
[coreboot.git] / util / cbfstool / create.c
index 23e7850952e77ee38f2db897874d67e5f3ea995c..ecfb21c956de773d0c64a87ee5fa88fb085c59ab 100644 (file)
@@ -59,11 +59,8 @@ int create_handler(struct rom *rom, int argc, char **argv)
                return -1;
        }
 
-       if (create_rom(rom, rom->name, size, bootblocksize, align))
+       if (create_rom(rom, rom->name, size, bootblock, bootblocksize, align))
                return -1;
 
-       if (bootblock != NULL)
-               return add_bootblock(rom, bootblock);
-
        return 0;
 }