MCPcopy Create free account
hub / github.com/apache/nuttx / disable_feature

Function disable_feature

tools/configure.c:1335–1355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1333}
1334
1335static 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

Callers 1

set_hostFunction · 0.85

Calls 3

fprintfFunction · 0.85
exitFunction · 0.85
snprintfFunction · 0.50

Tested by

no test coverage detected