| 1392 | } |
| 1393 | |
| 1394 | static int cbfs_add_flat_binary(void) |
| 1395 | { |
| 1396 | if (param.loadaddress == 0) { |
| 1397 | ERROR("You need to specify a valid " |
| 1398 | "-l/--load-address.\n"); |
| 1399 | return 1; |
| 1400 | } |
| 1401 | if (param.entrypoint == 0) { |
| 1402 | ERROR("You need to specify a valid " |
| 1403 | "-e/--entry-point.\n"); |
| 1404 | return 1; |
| 1405 | } |
| 1406 | param.type = CBFS_TYPE_SELF; |
| 1407 | return cbfs_add_component(param.filename, |
| 1408 | param.name, |
| 1409 | param.headeroffset, |
| 1410 | cbfstool_convert_mkflatpayload); |
| 1411 | } |
| 1412 | |
| 1413 | static int cbfs_add_integer(void) |
| 1414 | { |
nothing calls this directly
no test coverage detected