| 1333 | } |
| 1334 | |
| 1335 | static void disable_feature(const char *destconfig, const char *varname) |
| 1336 | { |
| 1337 | int ret; |
| 1338 | |
| 1339 | snprintf(g_buffer, BUFFER_SIZE, |
| 1340 | "kconfig-tweak --file %s --disable %s", |
| 1341 | destconfig, varname); |
| 1342 | |
| 1343 | ret = system(g_buffer); |
| 1344 | |
| 1345 | #ifdef WEXITSTATUS |
| 1346 | if (ret < 0 || WEXITSTATUS(ret) != 0) |
| 1347 | #else |
| 1348 | if (ret < 0) |
| 1349 | #endif |
| 1350 | { |
| 1351 | fprintf(stderr, "ERROR: Failed to disable %s\n", varname); |
| 1352 | fprintf(stderr, " command: %s\n", g_buffer); |
| 1353 | exit(EXIT_FAILURE); |
| 1354 | } |
| 1355 | } |
| 1356 | |
| 1357 | /* Select the host build development environment */ |
| 1358 | |