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

Function set_host

tools/configure.c:1359–1475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1357/* Select the host build development environment */
1358
1359static void set_host(const char *destconfig)
1360{
1361 switch (g_host)
1362 {
1363 case HOST_LINUX:
1364 {
1365 printf(" Select the Linux host\n");
1366
1367 enable_feature(destconfig, "CONFIG_HOST_LINUX");
1368 disable_feature(destconfig, "CONFIG_HOST_WINDOWS");
1369 disable_feature(destconfig, "CONFIG_HOST_MACOS");
1370 disable_feature(destconfig, "CONFIG_HOST_BSD");
1371
1372 disable_feature(destconfig, "CONFIG_WINDOWS_NATIVE");
1373 disable_feature(destconfig, "CONFIG_WINDOWS_CYGWIN");
1374 disable_feature(destconfig, "CONFIG_WINDOWS_MSYS");
1375 disable_feature(destconfig, "CONFIG_WINDOWS_OTHER");
1376
1377 enable_feature(destconfig, "CONFIG_SIM_X8664_SYSTEMV");
1378 disable_feature(destconfig, "CONFIG_SIM_X8664_MICROSOFT");
1379 }
1380 break;
1381
1382 case HOST_MACOS:
1383 {
1384 printf(" Select the macOS host\n");
1385
1386 disable_feature(destconfig, "CONFIG_HOST_LINUX");
1387 disable_feature(destconfig, "CONFIG_HOST_WINDOWS");
1388 disable_feature(destconfig, "CONFIG_HOST_BSD");
1389 enable_feature(destconfig, "CONFIG_HOST_MACOS");
1390
1391 disable_feature(destconfig, "CONFIG_WINDOWS_NATIVE");
1392 disable_feature(destconfig, "CONFIG_WINDOWS_CYGWIN");
1393 disable_feature(destconfig, "CONFIG_WINDOWS_MSYS");
1394 disable_feature(destconfig, "CONFIG_WINDOWS_OTHER");
1395
1396 enable_feature(destconfig, "CONFIG_SIM_X8664_SYSTEMV");
1397 disable_feature(destconfig, "CONFIG_SIM_X8664_MICROSOFT");
1398 }
1399 break;
1400
1401 case HOST_BSD:
1402 {
1403 printf(" Select the BSD host\n");
1404
1405 disable_feature(destconfig, "CONFIG_HOST_LINUX");
1406 disable_feature(destconfig, "CONFIG_HOST_WINDOWS");
1407 disable_feature(destconfig, "CONFIG_HOST_MACOS");
1408 enable_feature(destconfig, "CONFIG_HOST_BSD");
1409
1410 disable_feature(destconfig, "CONFIG_WINDOWS_NATIVE");
1411 disable_feature(destconfig, "CONFIG_WINDOWS_CYGWIN");
1412 disable_feature(destconfig, "CONFIG_WINDOWS_MSYS");
1413 disable_feature(destconfig, "CONFIG_WINDOWS_OTHER");
1414
1415 enable_feature(destconfig, "CONFIG_SIM_X8664_SYSTEMV");
1416 disable_feature(destconfig, "CONFIG_SIM_X8664_MICROSOFT");

Callers 1

configureFunction · 0.85

Calls 5

printfFunction · 0.85
enable_featureFunction · 0.85
disable_featureFunction · 0.85
fprintfFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected