1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495
|
# $Id: Makefile.kmk $
## @file
# Top level makefile.
#
#
# Copyright (C) 2006-2024 Oracle and/or its affiliates.
#
# This file is part of VirtualBox base platform packages, as
# available from https://www.virtualbox.org.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, in version 3 of the
# License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses>.
#
# SPDX-License-Identifier: GPL-3.0-only
#
SUB_DEPTH = .
include $(KBUILD_PATH)/subheader.kmk
#
# Sub-makefiles / Sub-directories.
#
ifndef VBOX_ONLY_ROOT_MAKEFILE
if (defined(VBOX_WITH_DOCS) || defined(VBOX_WITH_MAIN)) \
&& ( !defined(VBOX_ONLY_BUILD) \
|| defined(VBOX_ONLY_DOCS) \
|| (defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_SDK_IN_VM))) \
&& "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
include $(PATH_SUB_CURRENT)/doc/manual/Makefile.kmk
endif
include $(PATH_SUB_CURRENT)/src/Makefile.kmk
ifdef VBOX_WITH_INCLUDE_SYNTAX_CHECKING
include $(PATH_SUB_CURRENT)/include/Makefile.kmk
endif
endif
#
# Below we might need TOOL_ZIP_UNPACK (for the additions/docs/efifw packages
# from the build server), and it's not really worth the effort of dragging in
#q this tool only if absolutely needed.
#
## @todo Hack to get at TOOL_ZIP_UNPACK; see if this can be integrated somehow...
include $(KBUILD_PATH)/tools/ZIP.kmk
ifndef TOOL_ZIP_PACK
TOOL_ZIP_PACK = zip
endif
## @todo split up this file!
#
# Clean up global stuff that Config.kmk generates.
#
OTHER_CLEAN += \
$(VBOX_PACKAGE_HEADER) \
$(VBOX_LICENSE_VER_KMK) \
$(VBOX_VERSION_MK) \
$(VBOX_VERSION_HEADER) \
$(VBOX_VERSION_STAMP) \
$(wildcard $(PATH_OUT)/version-stamp-*.*.*) \
$(VBOX_SVN_REV_KMK).ts \
$(VBOX_SVN_REV_KMK) \
$(PATH_OUT)/DynamicConfig.kmk
if !defined(VBOX_ONLY_ADDITIONS) \
&& !defined(VBOX_ONLY_DOCS) \
&& !defined(VBOX_ONLY_EXTPACKS) \
&& !defined(VBOX_ONLY_VALIDATIONKIT) # -> line 426b ;-)
if !defined(VBOX_OSE) && defined(VBOX_LICENSE_FILES)
#
# Install the license (and misc non-executable stuff).
#
INSTALLS += InstallLicenseFiles
InstallLicenseFiles_INST = $(INST_BIN)
InstallLicenseFiles_MODE = 0644
InstallLicenseFiles_SOURCES =
InstallLicenseFiles_SOURCES += \
$(VBOX_BRAND_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER).html \
$(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES),$(VBOX_BRAND_$(f)_LICENSE_HTML)=>License-$(VBOX_LICENSE_VER)-$(f).html)
endif
#
# Install external binaries (mostly redistributable parts of tools we use).
#
# To avoid dragging in unnecessary tools and sdks here, we don't use the .win
# and .linux property suffixes.
#
if !defined(VBOX_ONLY_SDK)
INSTALLS += InstallExternalLibs
endif
InstallExternalLibs_INST = $(INST_BIN)
# The SDL DLLs
if1of ($(KBUILD_TARGET), win os2)
ifdef VBOX_WITH_VBOXSDL
include $(KBUILD_PATH)/sdks/LIBSDL.kmk
InstallExternalLibs_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDL))
ifdef VBOX_WITH_SECURELABEL
InstallExternalLibs_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(DLL_SDK_LIBSDL_SDLTTF))
endif
ifeq ($(KBUILD_TARGET),os2)
InstallExternalLibs_SOURCES += \
$(DLL_SDK_LIBSDL_FSLIB)
endif
endif
endif
# The compiler runtime DLLs.
ifeq ($(KBUILD_TARGET).$(VBOX_WITHOUT_COMPILER_REDIST),win.)
ifndef TOOL_$(VBOX_VCC_TOOL)
include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk
endif
ifneq ($(KBUILD_TARGET_ARCH),arm64)
ifndef TOOL_$(VBOX_VCC_TOOL_STEM)X86
include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL_STEM)X86.kmk
endif
endif
ifdef PATH_TOOL_$(VBOX_VCC_TOOL_STEM)_REDIST
InstallExternalLibs_SOURCES += \
$(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL)_REDIST_CRT)/), \
$(TOOL_$(VBOX_VCC_TOOL)_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CPP_DLLS)) \
,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll)) \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll))=>testcase/$(qnotdir ,$(redistdll)))
ifdef VBOX_WITH_32_ON_64_MAIN_API
InstallExternalLibs_SOURCES += \
$(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CRT)/), \
$(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CPP_DLLS)) \
,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll),x86)=>x86/$(qnotdir ,$(redistdll)))
endif
ifeq ($(VBOX_VCC_CRT_TYPE),d)
InstallExternalLibs_SOURCES += \
$(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL)_REDIST_DEBUG_CRT)/), \
$(addsuffix d.dll,$(basename $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL)_REDIST_CPP_DLLS)))) \
,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll)) \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll))=>testcase/$(qnotdir ,$(redistdll)))
ifdef VBOX_WITH_32_ON_64_MAIN_API
InstallExternalLibs_SOURCES += \
$(foreachfile redistdll, $(qaddprefix ,$(requote unq,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_DEBUG_CRT)/), \
$(addsuffix d.dll,$(basename $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CRT_DLLS) $(TOOL_$(VBOX_VCC_TOOL_STEM)X86_REDIST_CPP_DLLS)))) \
,$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(redistdll),x86)=>x86/$(qnotdir ,$(redistdll)))
endif
endif
ifeq ($(KBUILD_TYPE),asan)
ifeq ($(KBUILD_TARGET_ARCH),amd64)
InstallExternalLibs_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)AMD64_BIN)/clang_rt.asan_dynamic-x86_64.dll) \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)AMD64_BIN)/clang_rt.asan_dynamic-x86_64.dll)=>testcase/clang_rt.asan_dynamic-x86_64.dll
ifeq ($(VBOX_VCC_CRT_TYPE),d)
InstallExternalLibs_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)AMD64_BIN)/clang_rt.asan_dbg_dynamic-x86_64.dll) \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)AMD64_BIN)/clang_rt.asan_dbg_dynamic-x86_64.dll)=>testcase/clang_rt.asan_dbg_dynamic-x86_64.dll
endif
endif
ifeq ($(KBUILD_TARGET_ARCH),x86)
InstallExternalLibs_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dynamic-i386.dll) \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dynamic-i386.dll)=>testcase/clang_rt.asan_dynamic-i386.dll
ifeq ($(VBOX_VCC_CRT_TYPE),d)
InstallExternalLibs_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dbg_dynamic-i386.dll) \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dbg_dynamic-i386.dll)=>testcase/clang_rt.asan_dbg_dynamic-i386.dll
endif
endif
ifdef VBOX_WITH_32_ON_64_MAIN_API
InstallExternalLibs_SOURCES += $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dynamic-i386.dll,x86)=>x86/clang_rt.asan_dynamic-i386.dll
ifeq ($(VBOX_VCC_CRT_TYPE),d)
InstallExternalLibs_SOURCES += $(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_BIN)/clang_rt.asan_dbg_dynamic-i386.dll,x86)=>x86/clang_rt.asan_dbg_dynamic-i386.dll
endif
endif
endif
else
VBOX_VCC_REDIR_BASE := Microsoft.VC$(substr $(VBOX_VCC_TOOL),4,3)
VBOX_PATH_VCC_REDIST = $(PATH_TOOL_$(VBOX_VCC_TOOL))/redist/
VBOX_PATH_VCC_REDIST_CRT = $(VBOX_PATH_VCC_REDIST)/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).CRT
VBOX_PATH_VCC_REDIST_CRT_DBG = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/$(subst amd64,x64,$(KBUILD_TARGET_ARCH))/$(VBOX_VCC_REDIR_BASE).DebugCRT
VBOX_PATH_VCC_REDIST_CRT_X86 = $(VBOX_PATH_VCC_REDIST)/x86/$(VBOX_VCC_REDIR_BASE).CRT
VBOX_PATH_VCC_REDIST_CRT_DBG_X86 = $(VBOX_PATH_VCC_REDIST)/Debug_NonRedist/x86/$(VBOX_VCC_REDIR_BASE).DebugCRT
InstallExternalLibs_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll) \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
ifdef VBOX_WITH_32_ON_64_MAIN_API
InstallExternalLibs_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll,x86_)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4).dll \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll,x86_)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4).dll
endif
ifeq ($(VBOX_VCC_CRT_TYPE),d)
InstallExternalLibs_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll) \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll)=>testcase/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG)/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll)=>testcase/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll
ifdef VBOX_WITH_32_ON_64_MAIN_API
InstallExternalLibs_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcr$(substr $(VBOX_VCC_TOOL_STEM)d,4).dll,x86_)=>x86/msvcr$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll \
$(call VBOX_RE_SIGN_DLL_FN,InstallExternalLibs,$(VBOX_PATH_VCC_REDIST_CRT_DBG_X86)/msvcp$(substr $(VBOX_VCC_TOOL_STEM)d,4).dll,x86_)=>x86/msvcp$(substr $(VBOX_VCC_TOOL_STEM),4)d.dll
endif
endif
endif
endif
#
# Install our Qt DLLs / Shared Objects / Frameworks.
# Note: The installer fixes the darwin .dylibs when hardening is enabled.
# Note: Contents/Info.plist is where it's in 4.7.x, not sure if the location is kosher... According to
# https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html
# the Info.plist file goes into Resources.
#
if defined(VBOX_WITH_QTGUI) && !defined(VBOX_ONLY_SDK) && "$(KBUILD_TARGET)" == "darwin"
include $(KBUILD_PATH)/units/qt6.kmk
INSTALLS += qt-bin
qt-bin_INST = $(INST_VIRTUALBOX)Contents/
qt-bin_EXEC_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
$(PATH_SDK_QT6_LIB)/$(qtmod).framework/Versions/A/$(qtmod)=>Frameworks/$(qtmod).framework/Versions/A/$(qtmod))
qt-bin_SOURCES = $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
$(PATH_SDK_QT6_LIB)/$(qtmod).framework/Versions/A/Resources/Info.plist=>Frameworks/$(qtmod).framework/Versions/A/Resources/Info.plist)
ifdef VBOX_WITH_QT_DSYMS
qt-bin_SOURCES += $(foreach qtmod,$(VBOX_QT_MOD_NAMES), \
$(PATH_SDK_QT6_LIB)/$(qtmod).framework.dSYM/Contents/Info.plist=>Frameworks/$(qtmod).framework.dSYM/Contents/Info.plist \
$(PATH_SDK_QT6_LIB)/$(qtmod).framework.dSYM/Contents/Resources/DWARF/$(qtmod)=>Frameworks/$(qtmod).framework.dSYM/Contents/Resources/DWARF/$(qtmod))
endif
qt-bin_EXEC_SOURCES += \
$(PATH_SDK_QT6)/plugins/platforms/libqcocoa$(SUFF_DLL)=>plugins/platforms/libqcocoa$(SUFF_DLL) \
$(PATH_SDK_QT6)/plugins/platforms/libqminimal$(SUFF_DLL)=>plugins/platforms/libqminimal$(SUFF_DLL) \
$(PATH_SDK_QT6)/plugins/platforms/libqoffscreen$(SUFF_DLL)=>plugins/platforms/libqoffscreen$(SUFF_DLL) \
$(PATH_SDK_QT6)/plugins/sqldrivers/libqsqlite$(SUFF_DLL)=>plugins/sqldrivers/libqsqlite$(SUFF_DLL) \
$(PATH_SDK_QT6)/plugins/styles/libqmacstyle$(SUFF_DLL)=>plugins/styles/libqmacstyle$(SUFF_DLL)
ifdef VBOX_WITH_QT_DSYMS
qt-bin_SOURCES += $(foreach qtplat, qcocoa qminimal qoffscreen, \
$(PATH_SDK_QT6)/plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Info.plist \
$(PATH_SDK_QT6)/plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat)=>plugins/platforms/lib$(qtplat)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtplat))
qt-bin_SOURCES += $(foreach qtsqldrv, qsqlite, \
$(PATH_SDK_QT6)/plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Info.plist \
$(PATH_SDK_QT6)/plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv)=>plugins/sqldrivers/lib$(qtsqldrv)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtsqldrv))
qt-bin_SOURCES += $(foreach qtstyl, qmacstyle, \
$(PATH_SDK_QT6)/plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist=>plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Info.plist \
$(PATH_SDK_QT6)/plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl)=>plugins/styles/lib$(qtstyl)$(SUFF_DLL).dSYM/Contents/Resources/DWARF/$(qtstyl))
endif
qt-bin_SYMLINKS = $(foreach qtmod, $(VBOX_QT_MOD_NAMES), \
Frameworks/$(qtmod).framework/Versions/Current=>A \
Frameworks/$(qtmod).framework/$(qtmod)=>Versions/A/$(qtmod) \
Frameworks/$(qtmod).framework/Resources=>Versions/A/Resources)
qt-bin_INSTALLER = $(INSTALL) $(if $(uid),-o $(uid)) $(if $(gid),-g $(gid)) $(if $(mode),-m $(mode)) $(4) -- "$(1)" "$(2)" \
$(if-expr "$(source_type_prefix)" == "EXEC_" \
,$(NLTAB)install_name_tool \
$(if-expr "$(suffix $2)" == "", -id "$(if $(VBOX_WITH_HARDENING),/Applications/VirtualBox.app/Contents/Framework,@rpath)/$(notdir $(2)).framework/Version/A/$(notdir $(2))",) \
$(foreach qtmod, $(VBOX_QT_MOD_NAMES), \
$(foreach prefix, @executable_path/../Frameworks/ $(PATH_SDK_QT6)/Frameworks/ $(PATH_SDK_QT6)/, \
-change "$(prefix)$(qtmod).framework/Versions/A/$(qtmod)" \
"$(if $(VBOX_WITH_HARDENING),/Applications/VirtualBox.app/Contents/Frameworks,@rpath)/$(qtmod).framework/Versions/A/$(qtmod)") ) \
"$(2)",) # HACK ALERT! Using $(source_type_prefix) to detect EXEC_SOURCES.
else if defined(VBOX_WITH_QTGUI) && !defined(VBOX_ONLY_SDK) && (defined(VBOX_WITH_ORACLE_QT) || defined(VBOX_WITH_QT_PAYLOAD))
# win x11
include $(KBUILD_PATH)/units/qt6.kmk
INSTALLS += qt-bin
qt-bin_MODE := 755
qt-bin_INST = $(INST_BIN)
ifeq ($(KBUILD_TARGET),win)
qt-bin_SOURCES = \
$(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/bin/$(qtmod)$(SUFF_DLL)))
qt-bin_SOURCES += \
$(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/platforms/qwindows$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qwindows$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \
$(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/platforms/qminimal$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qminimal$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \
$(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/platforms/qoffscreen$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>platforms/qoffscreen$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \
$(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/sqldrivers/qsqlite$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>sqldrivers/qsqlite$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL) \
$(call VBOX_RE_SIGN_DLL_FN,qt-bin,$(PATH_SDK_QT6)/plugins/styles/qwindowsvistastyle$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL))=>styles/qwindowsvistastyle$(VBOX_QT_POSTFIX)$(VBOX_QT_DBG)$(SUFF_DLL)
ifdef VBOX_WITH_QT_PDBS
qt-bin_SOURCES += $(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(PATH_SDK_QT6)/qt*/$(VBOX_PATH_QT_LIB)/$(qtmod).pdb))
endif
else # x11
VBOX_QT_VERSION := 6.5.3
VBOX_QT_VERSION_MAJOR := 6
ifdef VBOX_WITH_HARDENING
# The wildcards are necessary to install the libs instead of the symlinks
qt-bin_SOURCES = \
$(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(wildcard $(VBOX_PATH_QT_LIB)/lib$(qtmod).so.*.*.*[0-9])=>lib$(qtmod).so.$(VBOX_QT_VERSION_MAJOR)) \
$(foreach lib,$(VBOX_QT_PLUGINS),$(VBOX_PATH_QT)/$(lib)=>$(lib))
else # !VBOX_WITH_HARDENING
# For non-hardened builds we need to remove the RUNPATH. This stuff is
# ugly but we need to prevent kBuild from hard-linking otherwise we
# (indirectly) change the binaries in tools
qt-bin_SOURCES = \
$(foreach qtmod,$(VBOX_QT_MOD_NAMES),$(qt-bin_0_OUTDIR)/lib$(qtmod).so.$(VBOX_QT_VERSION)=>lib$(qtmod).so.$(VBOX_QT_VERSION_MAJOR)) \
$(foreach lib,$(VBOX_QT_PLUGINS),$(qt-bin_0_OUTDIR)/$(lib)=>$(lib))
$(foreach qtmod,$(VBOX_QT_MOD_NAMES),$$(qt-bin_0_OUTDIR)/lib$(qtmod).so.$(VBOX_QT_VERSION)): \
$$(qt-bin_0_OUTDIR)/% : $(VBOX_PATH_QT_LIB)/% | $$(qt-bin_0_OUTDIR)/
$(call MSG_INST_FILE,$^,$@)
$(QUIET)$(CP) $^ $@
$(QUIET)chrpath --replace "\$$ORIGIN" $@
ifn1of ($(KBUILD_TARGET), solaris linux)
$(foreach lib,$(VBOX_QT_PLUGINS),$$(qt-bin_0_OUTDIR)/$(lib)): $$(qt-bin_0_OUTDIR)/% : \
$(VBOX_PATH_QT)/% | $$(qt-bin_0_OUTDIR)/
$(call MSG_INST_FILE,$^,$@)
$(QUIET)$(MKDIR) -p $(@D)
$(QUIET)$(CP) $^ $@
$(QUIET)chrpath --delete $@
endif # !solaris and !linux
# @todo For solaris and some linuxes dlopen fails to navigate executable rpath to dependent libraries,
# so add explicit rpath for libqxcb.so, find better solution later.
if1of ($(KBUILD_TARGET), solaris linux)
$(foreach lib,$(VBOX_QT_PLUGINS),$$(qt-bin_0_OUTDIR)/$(lib)): $$(qt-bin_0_OUTDIR)/% : \
$(VBOX_PATH_QT)/% | $$(qt-bin_0_OUTDIR)/
$(call MSG_INST_FILE,$^,$@)
$(QUIET)$(MKDIR) -p $(@D)
$(QUIET)$(CP) $^ $@
$(QUIET)chrpath --replace "\$$ORIGIN/../../" $@
endif # solaris linux
endif # !VBOX_WITH_HARDENING
endif # x11
endif # defined(VBOX_WITH_QTGUI) && !defined(VBOX_ONLY_SDK)
#
# Install additions iso from the build server if configured to do so.
#
# Note! For building the combined package, just get the additions .ISO
# once for amd64 to prevent version inconsistences. In all other
# cases we get the .ISO per target architecture.
#
if defined(VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER) \
&& ( !defined(VBOX_WITH_COMBINED_PACKAGE) \
|| "$(KBUILD_TARGET_ARCH)" == "amd64" )
INSTALLS += buildserver-additions
buildserver-additions_INST = $(INST_ADDITIONS_ISO)
buildserver-additions_MODE = 0644
buildserver-additions_SOURCES = $(PATH_TARGET)/VBoxGuestAdditions.iso
buildserver-additions_CLEANS = \
$(buildserver-additions_0_OUTDIR)/unpacked.ts \
$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip \
$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip.tmp \
$(PATH_TARGET)/VBoxGuestAdditions.iso
$$(buildserver-additions_0_OUTDIR)/unpacked.ts +| $(PATH_TARGET)/VBoxGuestAdditions.iso: \
$$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip
$(call MSG_L1,Unpacking additions archive)
$(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
$(TOUCH) -c -- $(PATH_TARGET)/VBoxGuestAdditions.iso
$(APPEND) -t $@ "done"
$$(buildserver-additions_0_OUTDIR)/VBoxGuestAdditions.zip: $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/additions.sh | $$(dir $$@)
$(RM) -f -- "$@" "$@.tmp"
$(SHELL) $(KBUILD_DEVTOOLS)/bin/additions.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
$(MV) -f -- "$@.tmp" "$@"
endif # VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER unless win.x86+combined
#
# Install documentation files (at the moment the .chm) from the build server.
#
ifdef VBOX_WITH_DOCS_FROM_BUILD_SERVER
## @todo r=bird: Too much mess now for $(PATH_TARGET); move to doc/manual/.
INSTALLS += buildserver-docs
buildserver-docs_INST = $(INST_BIN)
buildserver-docs_MODE = 0644
buildserver-docs_SOURCES = \
$(addprefix $(PATH_TARGET)/, \
$(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),UserManual.qch UserManual.qhc,) \
UserManual.pdf \
$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
$(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),UserManual_$(f).qch UserManual_$(f).qhc,) \
UserManual_$(f).pdf))
buildserver-docs_CLEANS = \
$(buildserver-docs_0_OUTDIR)/unpacked.ts \
$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip \
$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip.tmp \
$(addprefix $(PATH_TARGET)/, \
VirtualBox.chm UserManual.qch UserManual.qhc UserManual.pdf \
$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
VirtualBox_$(f).chm \
UserManual_$(f).qch UserManual_$(f).qhc \
UserManual_$(f).pdf))
$$(buildserver-docs_0_OUTDIR)/unpacked.ts +| \
$(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),$(PATH_TARGET)/UserManual.qch $(PATH_TARGET)/UserManual.qhc,) \
$(PATH_TARGET)/UserManual.pdf \
$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
$(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),$(PATH_TARGET)/UserManual_$(f).qch $(PATH_TARGET)/UserManual_$(f).qhc,) \
$(PATH_TARGET)/UserManual_$(f).pdf): \
$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip
$(call MSG_L1,Unpacking documentation)
$(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(PATH_TARGET)
$(TOUCH) -c -- \
$(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),$(PATH_TARGET)/UserManual.qch $(PATH_TARGET)/UserManual.qhc,) \
$(PATH_TARGET)/UserManual.pdf \
$(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES), \
$(if-expr defined(VBOX_WITH_DOCS_QHELP_PACKING),$(PATH_TARGET)/UserManual_$(f).qch $(PATH_TARGET)/UserManual_$(f).qhc,) \
$(PATH_TARGET)/UserManual_$(f).pdf)
$(APPEND) -t $@ "done"
$$(buildserver-docs_0_OUTDIR)/VBoxDocumentation.zip: $(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/documentation.sh | $$(dir $$@)
$(RM) -f -- "$@" "$@.tmp"
$(SHELL) $(KBUILD_DEVTOOLS)/bin/documentation.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
$(MV) -f -- "$@.tmp" "$@"
endif # VBOX_WITH_DOCS_FROM_BUILD_SERVER
if defined(VBOX_WITH_EFI) && !defined(VBOX_ONLY_SDK)
#
# Install EFI firmware image
#
ifdef VBOX_WITH_EFIFW_FROM_BUILD_SERVER
#
# Either from the build server.
#
ifndef VBOX_EFI_FIRMWARE_EFI_MODULES_KMK_INCLUDED
include $(PATH_ROOT)/src/VBox/Devices/EFI/Firmware/EfiModules.kmk
endif
INSTALLS += buildserver-efifw
buildserver-efifw_INST = $(INST_BIN)
buildserver-efifw_MODE = 0644
buildserver-efifw_SOURCES = \
$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
buildserver-efifw_CLEANS = \
$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip \
$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip.tmp \
$(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT_X86),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb))
INSTALLS += buildserver-efifw-dbg-amd64
buildserver-efifw-dbg-amd64_INST = $(INST_VBOXDBG_SYMS)amd64/
buildserver-efifw-dbg-amd64_MODE = 0644
buildserver-efifw-dbg-amd64_SOURCES = \
$(foreach mod,$(VBOX_EFI_MODULES_FLAT_X86),$(buildserver-efifw_0_OUTDIR)/amd64/$(mod).pdb)
INSTALLS += buildserver-efifw-dbg-x86
buildserver-efifw-dbg-x86_INST = $(INST_VBOXDBG_SYMS)x86/
buildserver-efifw-dbg-x86_MODE = 0644
buildserver-efifw-dbg-x86_SOURCES = \
$(foreach mod,$(VBOX_EFI_MODULES_FLAT_X86),$(buildserver-efifw_0_OUTDIR)/x86/$(mod).pdb)
$$(buildserver-efifw_0_OUTDIR)/unpacked.ts \
+| $$(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
$$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd \
$(foreach arch, amd64 x86, $(foreach mod,$(VBOX_EFI_MODULES_FLAT_X86),$$(buildserver-efifw_0_OUTDIR)/$(arch)/$(mod).pdb)): \
$$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip
$(call MSG_L1,Unpacking EFI firmware)
$(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw_0_OUTDIR)
$(foreach arch, amd64 x86, \
$(NLTAB) $(QUIET)$(TEST) '!' -d $(dir $@)/$(arch) -- $(MKDIR_EXT) -- $(dir $@)/$(arch) \
$(foreach mod,$(VBOX_EFI_MODULES_FLAT_X86) \
,$(NLTAB) $(QUIET)$(TEST) '!' -f $(dir $@)/$(arch)/$(mod).pdb -- $(APPEND_EXT) $(dir $@)/$(arch)/$(mod).pdb ))
$(TOUCH) -c -- $(buildserver-efifw_0_OUTDIR)/VBoxEFI32.fd \
$(buildserver-efifw_0_OUTDIR)/VBoxEFI64.fd
$(APPEND) -t $@ "done"
$$(buildserver-efifw_0_OUTDIR)/VBoxEfiFirmware.zip: \
$(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
$(RM) -f -- "$@" "$@.tmp"
$(SHELL) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
$(MV) -f -- "$@.tmp" "$@"
ifdef VBOX_WITH_VIRT_ARMV8
#
# The ARMv8 EFI images
#
INSTALLS += buildserver-efifw-armv8
buildserver-efifw-armv8_INST = $(INST_BIN)
buildserver-efifw-armv8_MODE = 0644
buildserver-efifw-armv8_SOURCES = \
$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEFIAArch32.fd \
$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEFIAArch64.fd
buildserver-efifw-armv8_CLEANS = \
$(buildserver-efifw-armv8_0_OUTDIR)/unpacked.ts \
$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEFIAArch32.fd \
$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEFIAArch64.fd \
$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEfiFirmware-armv8.zip \
$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEfiFirmware-armv8.zip.tmp \
$(foreach arch, aarch64 aarch32, $(foreach mod,$(VBOX_EFI_MODULES_FLAT_ARM),$$(buildserver-efifw-armv8_0_OUTDIR)/$(arch)/$(mod).pdb))
INSTALLS += buildserver-efifw-dbg-aarch64
buildserver-efifw-dbg-aarch64_INST = $(INST_VBOXDBG_SYMS)aarch64/
buildserver-efifw-dbg-aarch64_MODE = 0644
buildserver-efifw-dbg-aarch64_SOURCES = \
$(foreach mod,$(VBOX_EFI_MODULES_FLAT_ARM),$(buildserver-efifw-armv8_0_OUTDIR)/aarch64/$(mod).pdb)
INSTALLS += buildserver-efifw-dbg-aarch32
buildserver-efifw-dbg-aarch32_INST = $(INST_VBOXDBG_SYMS)aarch32/
buildserver-efifw-dbg-aarch32_MODE = 0644
buildserver-efifw-dbg-aarch32_SOURCES = \
$(foreach mod,$(VBOX_EFI_MODULES_FLAT_ARM),$(buildserver-efifw-armv8_0_OUTDIR)/aarch32/$(mod).pdb)
$$(buildserver-efifw-armv8_0_OUTDIR)/unpacked.ts \
+| $$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEFIAArch32.fd \
$$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEFIAArch64.fd \
$(foreach arch, aarch64 aarch32, $(foreach mod,$(VBOX_EFI_MODULES_FLAT_ARM),$$(buildserver-efifw-armv8_0_OUTDIR)/$(arch)/$(mod).pdb)): \
$$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEfiFirmware-armv8.zip
$(call MSG_L1,Unpacking EFI ARMv8 firmware)
$(QUIET)$(TOOL_ZIP_UNPACK) $(TOOL_ZIP_UNPACKFLAGS) -o $< -d $(buildserver-efifw-armv8_0_OUTDIR)
$(foreach arch, aarch64 aarch32, \
$(NLTAB) $(QUIET)$(TEST) '!' -d $(dir $@)/$(arch) -- $(MKDIR_EXT) -- $(dir $@)/$(arch) \
$(foreach mod,$(VBOX_EFI_MODULES_FLAT_ARM) \
,$(NLTAB) $(QUIET)$(TEST) '!' -f $(dir $@)/$(arch)/$(mod).pdb -- $(APPEND_EXT) $(dir $@)/$(arch)/$(mod).pdb ))
$(TOUCH) -c -- $(buildserver-efifw-armv8_0_OUTDIR)/VBoxEFIAArch32.fd \
$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEFIAArch64.fd
$(APPEND) -t $@ "done"
$$(buildserver-efifw-armv8_0_OUTDIR)/VBoxEfiFirmware-armv8.zip: \
$(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh | $$(dir $$@)
$(RM) -f -- "$@" "$@.tmp"
$(SHELL) $(KBUILD_DEVTOOLS)/bin/efi_firmware.sh --cmd fetch-armv8 --filename "$@.tmp" $(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
$(MV) -f -- "$@.tmp" "$@"
endif
else # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
#
# Or from the local copy (no debug).
#
INSTALLS += local-efifw
local-efifw_INST = $(INST_BIN)
local-efifw_MODE = 0644
local-efifw_SOURCES = \
$(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI32.fd=>VBoxEFI32.fd \
$(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFI64.fd=>VBoxEFI64.fd
ifdef VBOX_WITH_VIRT_ARMV8
local-efifw_SOURCES += \
$(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFIAArch32.fd=>VBoxEFIAArch32.fd \
$(PATH_ROOT)/src/VBox/Devices/EFI/FirmwareBin/VBoxEFIAArch64.fd=>VBoxEFIAArch64.fd
endif
endif # !VBOX_WITH_EFIFW_FROM_BUILD_SERVER
endif # VBOX_WITH_EFI && !VBOX_ONLY_SDK
ifdef VBOX_WITH_EXTPACKS_FROM_BUILD_SERVER
#
# Get the extension pack from from the build server to facility the automatic
# testing (everything in one tarball (VBoxAll-*)).
#
# Note! Using the plural here as we might be downloading more packages eventually.
#
INSTALLS += buildserver-extpacks
buildserver-extpacks_INST = $(INST_DIST)
buildserver-extpacks_MODE = 0644
buildserver-extpacks_SOURCES = \
$(buildserver-extpacks_0_OUTDIR)/$(VBOX_PUEL_MANGLED_NAME).vbox-extpack
buildserver-extpacks_CLEANS = \
$(buildserver-extpacks_0_OUTDIR)/$(VBOX_PUEL_MANGLED_NAME).vbox-extpack \
$(buildserver-extpacks_0_OUTDIR)/$(VBOX_PUEL_MANGLED_NAME).vbox-extpack.tmp
$$(buildserver-extpacks_0_OUTDIR)/$(VBOX_PUEL_MANGLED_NAME).vbox-extpack: \
$(VBOX_SVN_REV_KMK) $(KBUILD_DEVTOOLS)/bin/extpacks.sh | $$(dir $$@)
$(RM) -f -- "$@.tmp" "$@"
$(SHELL) $(KBUILD_DEVTOOLS)/bin/extpacks.sh --cmd fetch --filename "$@.tmp" --vbox-version "$(VBOX_VERSION_STRING_NO_PUB)" \
$(if $(VBOX_USE_PROXY_FOR_BUILD_SERVER),--default-proxy,)
$(MV) -f -- "$@.tmp" "$@"
$(TOUCH) -- "$@"
endif
#
# Install staged binaries on platforms where we can't cross
# compile things.
#
ifn1of ($(KBUILD_TARGET), linux win)
VBOX_PATH_STAGED ?= .
# Additions.
ifndef VBOX_WITH_LINUX_ADDITIONS
ifndef VBOX_WITH_WIN32_ADDITIONS
ifneq ($(wildcard $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso),)
INSTALLS += staged-additions
staged-additions_INST = $(INST_ADDITIONS_ISO)
staged-additions_MODE = 0644
staged-additions_SOURCES = $(VBOX_PATH_STAGED)/VBoxGuestAdditions.iso
endif
endif
endif
# guesttool.exe
ifndef VBOX_WITH_WIN32_ADDITIONS
ifneq ($(wildcard $(VBOX_PATH_STAGED)/guesttool.exe),)
INSTALLS += staged-guesttool
staged-guesttool_INST = $(INST_BIN)
staged-guesttool_SOURCES = $(VBOX_PATH_STAGED)/guesttool.exe
endif
endif
endif
endif # !VBOX_ONLY_ADDITIONS && !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_VALIDATIONKIT
ifdef VBOX_ONLY_DOCS
# It may sound a bit odd, but for preparing the documentation package the
# doxygen documentation isn't needed and increases the build time a lot.
docs:
else # !VBOX_ONLY_DOCS
#
# Generate documentation.
# (This should be converted into a separate pass or merged with an existing one later.)
#
ifdef VBOX_WITH_ALL_DOXYGEN_TARGETS
docs: docs.Core
else
docs:
endif
endif # !VBOX_ONLY_DOCS
#
# The core (VMM+Devices+Main) documentation.
#
# This includes so much because we wish to have the complete CFGM
# and GCFGM lists.
#
VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core
BLDDIRS += $(VBOX_CORE_DOXYFILE_OUTPUT)
OTHER_CLEAN += \
$(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core \
$(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
VBOX_CORE_DOXYFILE_INPUT_DIRS = \
include/iprt \
include/iprt/cpp \
include/iprt/crypto \
include/iprt/formats \
include/iprt/linux \
include/iprt/nt \
include/iprt/solaris \
include/iprt/win \
include/iprt/nocrt \
include/VBox \
include/VBox/vmm \
include/VBox/com \
include/VBox/ExtPack \
include/VBox/HostServices \
include/VBox/GuestHost \
include/VBox/HGSMI \
src/VBox/VMM \
src/VBox/VMM/VMMR0 \
src/VBox/VMM/VMMRC \
src/VBox/VMM/VMMR3 \
src/VBox/VMM/VMMAll \
src/VBox/VMM/VMMSwitcher \
src/VBox/VMM/include \
src/VBox/Debugger \
src/VBox/Devices \
src/VBox/Devices/Audio \
src/VBox/Devices/Bus \
src/VBox/Devices/Graphics \
src/VBox/Devices/Graphics/BIOS \
src/VBox/Devices/Graphics/shaderlib \
src/VBox/Devices/Input \
src/VBox/Devices/Networking \
src/VBox/Devices/PC \
src/VBox/Devices/PC/BIOS \
src/VBox/Devices/Parallel \
src/VBox/Devices/Serial \
src/VBox/Devices/Storage \
src/VBox/Devices/USB \
src/VBox/Devices/USB/darwin \
src/VBox/Devices/USB/linux \
src/VBox/Devices/USB/os2 \
src/VBox/Devices/USB/solaris \
src/VBox/Devices/USB/vrdp \
src/VBox/Devices/USB/win32 \
src/VBox/Devices/VMMDev \
src/VBox/Main/include \
src/VBox/Main/include/hgcm \
src/VBox/Main \
src/VBox/Main/glue \
src/VBox/Main/webservice \
src/VBox/Main/xml \
src/VBox/Main/src-all \
src/VBox/Main/src-all/win \
src/VBox/Main/src-client \
src/VBox/Main/src-client/win \
src/VBox/Main/src-client/xpcom \
src/VBox/Main/src-server \
src/VBox/Main/src-server/darwin \
src/VBox/Main/src-server/linux \
src/VBox/Main/src-server/os2 \
src/VBox/Main/src-server/solaris \
src/VBox/Main/src-server/win \
src/VBox/Main/src-server/xpcom \
src/VBox/HostServices \
src/VBox/HostServices/DragAndDrop \
src/VBox/HostServices/GuestControl \
src/VBox/HostServices/GuestProperties \
src/VBox/HostServices/SharedClipboard \
src/VBox/HostServices/SharedFolders \
src/VBox/HostServices/SharedOpenGL \
src/VBox/HostServices/SharedOpenGL/crserver \
src/VBox/HostServices/SharedOpenGL/crserverlib \
src/VBox/HostServices/SharedOpenGL/render \
src/VBox/HostServices/SharedOpenGL/unpacker \
src/VBox/HostServices/auth \
src/VBox/HostServices/auth/directoryservice \
src/VBox/HostServices/auth/pam \
src/VBox/HostServices/auth/simple \
src/VBox/HostServices/auth/winlogon \
src/VBox/HostDrivers/Support \
src/VBox/HostDrivers/Support/darwin \
src/VBox/HostDrivers/Support/freebsd \
src/VBox/HostDrivers/Support/linux \
src/VBox/HostDrivers/Support/os2 \
src/VBox/HostDrivers/Support/solaris \
src/VBox/HostDrivers/Support/win \
src/VBox/HostDrivers/VBoxNetFlt \
src/VBox/HostDrivers/VBoxNetFlt/darwin \
src/VBox/HostDrivers/VBoxNetFlt/linux \
src/VBox/HostDrivers/VBoxNetFlt/solaris \
src/VBox/HostDrivers/VBoxNetFlt/win \
src/VBox/HostDrivers/VBoxNetNat \
src/VBox/HostDrivers/VBoxNetNat/darwin \
src/VBox/HostDrivers/VBoxNetNat/linux \
src/VBox/HostDrivers/VBoxNetNat/solaris \
src/VBox/HostDrivers/VBoxNetNat/win \
src/VBox/HostDrivers/VBoxNetAdp \
src/VBox/HostDrivers/VBoxNetAdp/darwin \
src/VBox/HostDrivers/VBoxNetAdp/linux \
src/VBox/HostDrivers/VBoxNetAdp/solaris \
src/VBox/HostDrivers/VBoxNetAdp/win \
src/VBox/HostDrivers/VBoxPci \
src/VBox/HostDrivers/VBoxPci/darwin \
src/VBox/HostDrivers/VBoxPci/linux \
src/VBox/HostDrivers/VBoxPci/solaris \
src/VBox/HostDrivers/VBoxPci/win \
src/VBox/HostDrivers/VBoxUSB \
src/VBox/HostDrivers/VBoxUSB/darwin \
src/VBox/HostDrivers/VBoxUSB/os2 \
src/VBox/HostDrivers/VBoxUSB/solaris \
src/VBox/HostDrivers/VBoxUSB/win \
src/VBox/HostDrivers/VBoxUSB/win/Device \
src/VBox/HostDrivers/VBoxUSB/win/Device/amd64 \
src/VBox/HostDrivers/VBoxUSB/win/Device/x86 \
src/VBox/HostDrivers/VBoxUSB/win/Filter \
src/VBox/HostDrivers/VBoxUSB/win/Install \
src/VBox/HostDrivers/VBoxUSB/win/Monitor \
src/VBox/HostDrivers/VBoxUSB/win/Monitor/win32 \
src/VBox/HostDrivers/VBoxUSB/win/Monitor/win64 \
src/VBox/HostDrivers/VBoxUSB/win/usbd \
src/VBox/Additions \
src/VBox/Additions/WINNT \
src/VBox/Additions/WINNT/Graphics \
src/VBox/Additions/WINNT/Graphics/Video \
src/VBox/Additions/WINNT/Graphics/Video/common \
src/VBox/Additions/WINNT/Graphics/Video/common/wddm \
src/VBox/Additions/WINNT/Graphics/Video/common/xpdm \
src/VBox/Additions/WINNT/Graphics/Video/disp \
src/VBox/Additions/WINNT/Graphics/Video/disp/common \
src/VBox/Additions/WINNT/Graphics/Video/disp/wddm \
src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg \
src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm \
src/VBox/Additions/WINNT/Graphics/Video/mp \
src/VBox/Additions/WINNT/Graphics/Video/mp/common \
src/VBox/Additions/WINNT/Graphics/Video/mp/wddm \
src/VBox/Additions/WINNT/Graphics/Video/mp/xpdm \
src/VBox/Additions/WINNT/Graphics/Wine_new \
src/VBox/Additions/WINNT/Graphics/Wine_new/d3d8 \
src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9 \
src/VBox/Additions/WINNT/Graphics/Wine_new/libWine \
src/VBox/Additions/WINNT/Graphics/Wine_new/switcher \
src/VBox/Additions/WINNT/Graphics/Wine_new/vbox \
src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d \
src/VBox/Additions/WINNT/Installer \
src/VBox/Additions/WINNT/Installer/ISO \
src/VBox/Additions/WINNT/Installer/InstallHelper \
src/VBox/Additions/WINNT/Installer/Languages \
src/VBox/Additions/WINNT/Installer/Loader \
src/VBox/Additions/WINNT/Mouse \
src/VBox/Additions/WINNT/Mouse/NT5 \
src/VBox/Additions/WINNT/Mouse/common \
src/VBox/Additions/WINNT/SharedFolders \
src/VBox/Additions/WINNT/SharedFolders/redirector \
src/VBox/Additions/WINNT/SharedFolders/redirector/dll \
src/VBox/Additions/WINNT/SharedFolders/redirector/sys \
src/VBox/Additions/WINNT/SharedFolders/redirector/sys/rdbss \
src/VBox/Additions/WINNT/VBoxCredProv \
src/VBox/Additions/WINNT/VBoxGINA \
src/VBox/Additions/WINNT/VBoxHook \
src/VBox/Additions/WINNT/VBoxTray \
src/VBox/Additions/WINNT/VBoxUSB \
src/VBox/Additions/WINNT/i8042prt \
src/VBox/Additions/WINNT/i8042prt/i386 \
src/VBox/Additions/WINNT/i8042prt/include \
src/VBox/Additions/WINNT/include \
src/VBox/Additions/common \
src/VBox/Additions/common/VBoxControl \
src/VBox/Additions/common/VBoxGuest \
src/VBox/Additions/common/VBoxGuest/freebsd \
src/VBox/Additions/common/VBoxGuest/linux \
src/VBox/Additions/common/VBoxGuest/win \
src/VBox/Additions/common/VBoxGuestLib \
src/VBox/Additions/common/VBoxService \
src/VBox/Additions/common/VBoxVideo \
src/VBox/Additions/common/crOpenGL \
src/VBox/Additions/common/crOpenGL/array \
src/VBox/Additions/common/crOpenGL/feedback \
src/VBox/Additions/common/crOpenGL/pack \
src/VBox/Additions/common/crOpenGL/passthrough \
src/VBox/Additions/common/pam \
src/VBox/Additions/darwin \
src/VBox/Additions/freebsd \
src/VBox/Additions/freebsd/Installer \
src/VBox/Additions/freebsd/drm \
src/VBox/Additions/freebsd/vboxvfs \
src/VBox/Additions/linux \
src/VBox/Additions/linux/drm \
src/VBox/Additions/linux/installer \
src/VBox/Additions/linux/selinux-fedora \
src/VBox/Additions/linux/sharedfolders \
src/VBox/Additions/os2 \
src/VBox/Additions/os2/VBoxGradd \
src/VBox/Additions/os2/VBoxGradd/graddlib \
src/VBox/Additions/os2/VBoxGrext \
src/VBox/Additions/os2/VBoxMouse \
src/VBox/Additions/os2/VBoxSF \
src/VBox/Additions/solaris \
src/VBox/Additions/solaris/DRM \
src/VBox/Additions/solaris/Installer \
src/VBox/Additions/solaris/SharedFolders \
src/VBox/Additions/solaris/SharedFolders/solaris10 \
src/VBox/Additions/solaris/SharedFolders/solaris10/sys \
src/VBox/Additions/solaris/Virtio \
src/VBox/Additions/x11 \
src/VBox/Additions/x11/Installer \
src/VBox/Additions/x11/VBoxClient \
src/VBox/Additions/x11/vboxmouse \
src/VBox/Additions/x11/vboxmouse/xorg70 \
src/VBox/Additions/x11/vboxmouse/xorg71 \
src/VBox/Additions/x11/vboxvideo \
src/VBox/NetworkServices \
src/VBox/NetworkServices/Dhcpd \
src/VBox/NetworkServices/NAT \
src/VBox/NetworkServices/NetLib \
src/VBox/Storage \
src/VBox/ValidationKit/ \
src/VBox/ValidationKit/docs/ \
src/VBox/ValidationKit/testdriver/ \
src/VBox/ValidationKit/bootsectors/ \
src/VBox/ValidationKit/bootsectors/bs3kit/ \
src/VBox/ValidationKit/tests/ \
src/VBox/ValidationKit/tests/additions/ \
src/VBox/ValidationKit/tests/api/ \
src/VBox/ValidationKit/tests/autostart/ \
src/VBox/ValidationKit/tests/benchmarks/ \
src/VBox/ValidationKit/tests/cpu/ \
src/VBox/ValidationKit/tests/installation/ \
src/VBox/ValidationKit/tests/network/ \
src/VBox/ValidationKit/tests/selftests/ \
src/VBox/ValidationKit/tests/smoketests/ \
src/VBox/ValidationKit/tests/storage/ \
src/VBox/ValidationKit/tests/teleportation/ \
src/VBox/ValidationKit/tests/unittests/ \
src/VBox/ValidationKit/tests/usb/ \
src/VBox/ValidationKit/common/ \
src/VBox/ValidationKit/utils/ \
src/VBox/ValidationKit/utils/TestExecServ/ \
src/VBox/ValidationKit/utils/cpu/ \
src/VBox/ValidationKit/utils/misc/ \
src/VBox/ValidationKit/utils/network/ \
src/VBox/ValidationKit/utils/nt/ \
src/VBox/ValidationKit/utils/usb/ \
src/VBox/ValidationKit/vms/ \
src/VBox/ValidationKit/testmanager/ \
src/VBox/ValidationKit/testmanager/core/ \
src/VBox/ValidationKit/testmanager/db/ \
src/VBox/ValidationKit/testmanager/debug/ \
src/VBox/ValidationKit/testmanager/cgi/ \
src/VBox/ValidationKit/testmanager/webui/ \
src/VBox/ValidationKit/testboxscript/
# These must come first in order to make things look nice.
VBOX_CORE_DOXYFILE_INPUT_FIRST = \
$(PATH_ROOT)/doc/VBox-doc.c \
$(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \
$(PATH_ROOT)/doc/VBox-MakefileGuidelines.cpp \
$(PATH_ROOT)/src/VBox/VMM/Docs-CodingGuidelines.cpp \
$(PATH_ROOT)/src/VBox/VMM/Docs-RawMode.cpp \
$(PATH_ROOT)/include/VBox/cdefs.h \
$(PATH_ROOT)/include/VBox/vmm/vmm.h \
$(PATH_ROOT)/include/VBox/vmm/vmapi.h \
$(PATH_ROOT)/include/VBox/vmm/cpum.h \
$(PATH_ROOT)/include/VBox/vmm/mm.h \
$(PATH_ROOT)/include/VBox/vmm/pgm.h \
$(PATH_ROOT)/include/VBox/vmm/selm.h \
$(PATH_ROOT)/include/VBox/vmm/trpm.h \
$(PATH_ROOT)/include/VBox/vmm/dbgf.h \
$(PATH_ROOT)/include/VBox/vmm/stam.h \
$(PATH_ROOT)/include/VBox/vmm/em.h \
$(PATH_ROOT)/include/VBox/vmm/hm.h \
$(PATH_ROOT)/include/VBox/vmm/hm_svm.h \
$(PATH_ROOT)/include/VBox/vmm/hm_vmx.h \
$(PATH_ROOT)/include/VBox/vmm/iem.h \
$(PATH_ROOT)/include/VBox/vmm/nem.h \
$(PATH_ROOT)/include/VBox/vmm/pdm.h \
$(PATH_ROOT)/include/VBox/vmm/pdmifs.h \
$(PATH_ROOT)/include/VBox/vmm/pdmaudioifs.h \
$(PATH_ROOT)/include/VBox/vmm/pdmnetifs.h \
$(PATH_ROOT)/include/VBox/vmm/pdmserialifs.h \
$(PATH_ROOT)/include/VBox/vmm/pdmstorageifs.h \
$(PATH_ROOT)/include/VBox/vmm/iom.h \
$(PATH_ROOT)/include/VBox/vmm/cfgm.h \
$(PATH_ROOT)/include/VBox/vmm/gim.h \
$(PATH_ROOT)/include/VBox/vmm/tm.h \
$(PATH_ROOT)/include/VBox/vmm/ssm.h \
\
$(PATH_ROOT)/src/VBox/VMM/include/CFGMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/CPUMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/DBGFInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/EMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/HMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/IEMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/IOMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/MMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/NEMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/PDMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/PGMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/GIMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/SELMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/SSMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/STAMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/TMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/TRPMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/VMInternal.h \
$(PATH_ROOT)/src/VBox/VMM/include/VMMInternal.h \
\
$(PATH_ROOT)/include/VBox/vmm/vm.h \
\
$(PATH_ROOT)/include/VBox/sup.h \
$(PATH_ROOT)/include/VBox/vd.h \
$(PATH_ROOT)/include/VBox/types.h \
$(PATH_ROOT)/include/VBox/err.h \
$(PATH_ROOT)/include/VBox/vmm/cpumdis.h \
$(PATH_ROOT)/include/VBox/dbggui.h \
$(PATH_ROOT)/include/VBox/dis.h \
$(PATH_ROOT)/include/VBox/disopcode-x86-amd64.h \
$(PATH_ROOT)/include/VBox/intnet.h \
$(PATH_ROOT)/include/VBox/settings.h \
$(PATH_ROOT)/include/VBox/pci.h \
$(PATH_ROOT)/include/VBox/scsi.h \
$(PATH_ROOT)/include/VBox/shflsvc.h \
$(PATH_ROOT)/include/VBox/hgcmsvc.h \
$(PATH_ROOT)/include/VBox/usb.h \
$(PATH_ROOT)/include/VBox/vusb.h \
\
$(PATH_ROOT)/include/VBox/log.h \
$(PATH_ROOT)/include/VBox/param.h \
$(PATH_ROOT)/include/VBox/version.h \
\
$(PATH_ROOT)/include/VBox/com/com.h \
$(PATH_ROOT)/include/VBox/com/utils.h
VBOX_CORE_DOXYFILE_INPUT := \
$(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \
$(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS) \
, $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/*.m $(dir)/*.mm $(dir)/*.py $(dir)/.asm))
VBOX_CORE_DOXYFILE_INPUT := \
$(VBOX_CORE_DOXYFILE_INPUT_FIRST) \
$(sort $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST) %/CPUM-armv8.cpp, $(VBOX_CORE_DOXYFILE_INPUT)))
VBOX_CORE_DOXYFILE_INPUT += \
$(wildcard $(PATH_ROOT)/src/VBox/VMM/VMMAll/*.h $(PATH_ROOT)/src/VBox/VMM/VMMR3/*.h $(PATH_ROOT)/src/VBox/VMM/VMMR0/*.h )
includedep $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core.dep
# Generate the Doxyfile
$(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core: Doxyfile.Core \
$(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_CORE_INPUT_PREV,FORCE) \
$(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_CORE_OUTPUT_PREV,FORCE) \
| $$(dir $$@)
$(QUIET)$(RM) -f $@ $@.tmp $@.dep
$(QUIET)$(CP) -f Doxyfile.Core $@.tmp
$(QUIET)$(APPEND) $@.tmp
$(QUIET)$(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)"
$(QUIET)$(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors"
$(QUIET)$(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include "
$(QUIET)$(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h"
$(QUIET)$(APPEND) $@.tmp "EXCLUDE = " \
"$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/utils.c" \
"$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserver/main.c" \
"$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c" \
"$(PATH_ROOT)/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c" \
"$(PATH_ROOT)/src/VBox/Additions/common/crOpenGL/context.c" \
\
"$(PATH_ROOT)/src/VBox/VMM/include/IEMInternal-armv8.h" \
"src/VBox/VMM/include/IEMInternal-armv8.h" \
"$(PATH_ROOT)/src/VBox/VMM/VMMAll/CPUMAllRegs-armv8.cpp" \
"src/VBox/VMM/VMMAll/CPUMAllRegs-armv8.cpp" \
"$(PATH_ROOT)/src/VBox/VMM/VMMR3/CPUM-armv8.cpp" \
"src/VBox/VMM/VMMR3/CPUM-armv8.cpp" \
"$(PATH_ROOT)/src/VBox/VMM/VMMR3/HM-armv8.cpp" \
"src/VBox/VMM/VMMR3/HM-armv8.cpp"
## @todo ARMv8: crap is duplicated multiple times or in different sections. Clean up the above *armv8* mess.
$(QUIET)$(APPEND) $@.tmp
$(QUIET)$(APPEND) $@.tmp 'INPUT = $(foreach x,$(VBOX_CORE_DOXYFILE_INPUT),\$(NLTAB)$(x))'
$(QUIET)$(APPEND) $@.tmp
$(QUIET)$(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)"
$(QUIET)$(APPEND) $@.tmp "PREDEFINED += ARCH_BITS=HC_ARCH_BITS R3_ARCH_BITS=HC_ARCH_BITS R0_ARCH_BITS=HC_ARCH_BITS "
$(QUIET)$(APPEND) $@.tmp
$(QUIET)$(APPEND) $@.tmp "PLANTUML_JAR_PATH = $(firstword $(rsort $(wildcard $(KBUILD_DEVTOOLS)/common/plantuml/v*/plantuml*.jar)))"
$(QUIET)$(APPEND) $@.tmp
$(QUIET)$(MV) -f $@.tmp $@
@$(APPEND) $@.dep "DOXYGEN_CORE_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)"
@$(APPEND) $@.dep "DOXYGEN_CORE_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)"
# Do the actual job.
# Note! We must add the VBOX_JAVA dir to the path so doxygen can run plantuml.jar.
$(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core: $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core $$(VBOX_CORE_DOXYFILE_INPUT) \
| $(VBOX_CORE_DOXYFILE_OUTPUT)/
$(QUIET)$(RM) -f $@
$(QUIET)$(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/
$(if-expr $(VBOX_JAVA_VERSION)+0 >= 70000, $(REDIRECT) -E "PATH=$(VBOX_JAVA_BIN_PATH)$(HOST_PATH_SEP)$(PATH)" --,) \
$(VBOX_DOXYGEN) $(VBOX_CORE_DOXYFILE_OUTPUT)/Doxyfile.Core
$(SED) -n \
-e ':nextwarning' \
-e '/^ *$(DOLLAR)/d' \
-e '/\/src\/VBox\/Main\/.* warning: documented symbol.*::~.* was not declared or defined/b ignore' \
-e '/\/src\/VBox\/Main\/.* warning: explicit link request to.* could not be resolved/b ignore' \
-e '/\/src\/VBox\/Additions\/common\/crOpenGL\/.* warning/b ignore' \
-e '/\/src\/VBox\/Additions\/x11\/VBoxClient\/seamless-x11\.h.* warning/b ignore' \
-e '/\/src\/VBox\/HostDrivers\/Support\/win\/SUPR3HardenedMain-win\.cpp.* warning/b ignore' \
-e '/\/src\/VBox\/ValidationKit\/.* warning/b ignore' \
-e '/WRAPPED_MODULE_SYMBOL_INCLUDE/b ignore' \
\
-e '/unable to resolve link to .dtrace_pops_t./b ignore' \
\
-e 'b end' \
-e ':ignore' \
-e 'n' \
-e '/^[[:space:]]/b ignore' \
-e '/^Possible candidates/b ignore' \
-e '/^def testmanager::webui::wuicontentbase::__init__/b ignore' \
-e 'b nextwarning' \
-e ':end' \
-e 'p' \
--output $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2 \
$(VBOX_CORE_DOXYFILE_OUTPUT)/errors
$(CAT) $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
$(SED) -e "/[^ ]/q 1" $(VBOX_CORE_DOXYFILE_OUTPUT)/errors2
$(APPEND) $@
docs.Core docs.core: $(VBOX_CORE_DOXYFILE_OUTPUT)/docs.Core
#
# This is a bit odd, but we attach the optional scm check run onto the 'docs' pass
# so the build box output is less confusing on failure.
#
ifeq ($(KBUILD_HOST),$(KBUILD_TARGET))
ifdef VBOX_WITH_SCM_CHECK_RUN
docs: scm.check.run
endif
.PHONY: scm.check.run
scm.check.run: $(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE)
$(REDIRECT) -E VBOX_LOG_FLAGS="disabled" -E VBOX_LOG_DEST="nofile" \
$(if-expr "$(KBUILD_HOST)" == "darwin",-E DYLD_FALLBACK_LIBRARY_PATH="$(VBOX_PATH_TOOLS)/..",) -- \
$(VBOX_PATH_TOOLS)/scm$(HOSTSUFF_EXE) -qvv --check-run $(PATH_ROOT)
endif
#
# Combined package build (windows only).
#
# The combined package is created by the x86 environment, so we do the amd64
# packaging in the build phase since it's just a few very slow jobs. We hold
# back the x86 build until the amd64 packaging starts, to try encourage
# parallel execution.
#
# Note! VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1 is required because the additions
# packing must be done in amd64 mode as it picks files from the x86 build.
#
VBOX_COMBINED_PACKAGE_DEFS := \
VBOX_WITH_COMBINED_PACKAGE=1 \
VBOX_WITH_ALL_DOXYGEN_TARGETS= \
VBOX_WITH_ADDITIONS_FROM_BUILD_SERVER=1
combined-package-fetch:
+ $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
+ $(KMK) -C tools $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
combined-package-build-amd64:
+ $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
combined-package-build-amd64-packing: combined-package-build-amd64
+ $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=amd64
combined-package-build-x86: combined-package-build-amd64
+ $(KMK) docs all $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
combined-package-build: combined-package-build-amd64-packing combined-package-build-x86
combined-package-packing:
+ $(KMK) packing $(VBOX_COMBINED_PACKAGE_DEFS) KBUILD_TARGET_ARCH=x86
#
# Common rsync bits.
#
## Overridable ssh name.
# On windows build boxes install https://github.com/PowerShell/Win32-OpenSSH/releases
# and point to it in LocalConfig. (The cygwin ssh frequently segfaults due to
# termination race or something along those lines.)
VBOX_SSH ?= ssh
VBOX_SSH_FOR_RSYNC ?= $(VBOX_SSH)
## Overridable rsh name.
VBOX_RSYNC ?= rsync --rsh="$(VBOX_SSH_FOR_RSYNC)"
VBOX_RSYNC_NOSSH ?= rsync
##
# The basic rsync invocation for syncing the tree into a VM; the source and
# target specs are missing.
#
# @param 1 os name.
# @param 2 arch or *.
# @param 3 nossh or empty
#
VBOX_RSYNC_IN_FN = $(if-expr "$(3)" != "nossh",$(VBOX_RSYNC),$(VBOX_RSYNC_NOSSH)) \
-a -v --delete --delete-excluded --prune-empty-dirs \
--exclude=*.pyc \
--exclude=.svn/ \
--exclude=doc/Devices/ \
--exclude=doc/tg/ \
--exclude=doc/vp/ \
--exclude=tinderclient.log \
--exclude=tools/FetchDir/ \
--exclude=webtools/ \
--exclude=out/ \
--exclude=tools/common/plantuml/ \
$(if-expr "$1" == "solaris",--exclude=tools/common/openwatcom/,) \
$(foreach os,$(filter-out $(1), darwin freebsd linux solaris os2 win), \
--exclude=tools/$(os)/ \
--exclude=tools/$(os).x86/ \
--exclude=tools/$(os).amd64/ \
--exclude=tools/$(os).arm64/ )
#
# VM IP addresses.
#
VBOX_BLD_VM_LNX_IP := 192.168.27.2
VBOX_BLD_VM_LNX_ARM64_IP := 192.168.27.26
VBOX_BLD_VM_OS2_IP := 192.168.27.3
VBOX_BLD_VM_SOLARIS_IP := 192.168.27.4
VBOX_BLD_VM_DARWIN_X86_IP := 192.168.27.5
VBOX_BLD_VM_DARWIN_AMD64_IP := 192.168.27.15
VBOX_BLD_VM_DARWIN_109_AMD64_IP := 192.168.27.18
VBOX_BLD_VM_DARWIN_ARM64_IP := 192.168.27.25
VBOX_BLD_VM_WIN_X86_IP := 192.168.27.6
VBOX_BLD_VM_WIN_AMD64_IP := 192.168.27.16
VBOX_BLD_VM_FBSD_X86_IP := 192.168.27.7
VBOX_BLD_VM_FBSD_AMD64_IP := 192.168.27.17
VBOX_WITH_OS2_ADD_BUILD = 1
#
# For profiling the VM building steps.
#
if 0
VBOX_BLD_VM_MSG_BEGIN = $(call MSG_L1,Building $1.)
VBOX_BLD_VM_MSG_END__ =
else
VBOX_BLD_VM_MSG_BEGIN = @echo "$(date ) - Start building $1."
VBOX_BLD_VM_MSG_END__ = @echo "$(date ) - Done building $1."
endif
#
# For killing old build jobs in the OS/2 VM before rsyncing.
#
VBOX_BLD_VM_OS2_KKILL_STUFF = $(REDIRECT_EXT) --stdin-pipe -- rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "kkill -All -Tree kmk.exe gcc.exe & sleep.exe 1 & kkill -All gcc.exe emxomfld.exe as.exe kmk.exe "
#
# Build the additions, all of them.
#
# This is currently tailored (hardcoded) for the additions
# build box. Can make it pretty and configurable later.
#
# The fetching must be done in serial fashion, while the building
# should be more flexible wrt to -jN.
#
additions-fetch:
+ $(KMK) -C tools fetch VBOX_ONLY_ADDITIONS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 VBOX_DEF_MACOSX_VERSION_MIN=10.7
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_ADDITIONS=1 #VBOX_DEF_MACOSX_VERSION_MIN=10.5
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
ifdef VBOX_WITH_LNX_ARM64_ADDITIONS
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=arm64 KBUILD_TARGET=linux VBOX_ONLY_ADDITIONS=1
endif
ifdef VBOX_WITH_OS2_ADD_BUILD
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_ADDITIONS=1
endif
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_ADDITIONS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_ADDITIONS=1
## @todo Currently combined solaris additions building assumes that amd64 is
# built first. The windows amd64 additions need some x86 files, so don't change
# the order of the windows builds. TODO: Split building and packing for these two VMs.
additions-build: \
additions-build-rsync-into-vms \
additions-build-win.x86 \
additions-build-win.amd64 \
additions-build-solaris.amd64 \
additions-build-solaris.x86 \
additions-build-os2.x86 \
additions-build-linux \
additions-build-darwin.x86 \
additions-build-darwin.amd64 \
$(if $(VBOX_WITH_LNX_ARM64_ADDITIONS), additions-build-linux.arm64,)
additions-build-rsync-into-vms: \
additions-build-solaris.rsync-into-vm \
additions-build-os2.rsync-into-vm \
additions-build-darwin.x86.rsync-into-vm \
additions-build-darwin.amd64.rsync-into-vm \
additions-build-linux.rsync-into-vm \
$(if $(VBOX_WITH_LNX_ARM64_ADDITIONS), additions-build-linux.arm64.rsync-into-vm,)
$(call MSG_L1,Rsynced the sources + tools into the VMs.)
.NOTPARALLEL: additions-build-rsync-into-vms
.PHONY: additions-build-rsync-into-vms
VBOX_ADDITIONS_BUILD.amd64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
VBOX_ADDITIONS_BUILD.x86 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
ifdef VBOX_WITH_LNX_ARM64_ADDITIONS
VBOX_ADDITIONS_BUILD.arm64 = VBOX_ONLY_ADDITIONS=1 VBOX_WITHOUT_ADDITIONS_ISO=1 \
KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=arm64 VBOX_SVN_REV=$(VBOX_SVN_REV)
endif
# Automatically determine the additions build subdir name. Used for figuring
# out directory names inside the additions building VMs.
VBOX_ADDITIONS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
ifeq ($(KBUILD_TARGET),win)
additions-build-win.amd64:
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
else
additions-build-win.amd64:
$(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 additions build+pack)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) ' cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing '
$(call VBOX_BLD_VM_MSG_END__,Windows/amd64 additions build+pack)
endif
ifeq ($(KBUILD_TARGET),win)
additions-build-win.x86:
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
else
additions-build-win.x86:
$(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 additions build.pack)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) ' cd e:/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_ADDITIONS_BUILD.x86) all packing '
$(call VBOX_BLD_VM_MSG_END__,Windows/x86 additions build+pack)
endif
# ASSUMES the 64-bit edition are built first. This also serializes VM access.
ifeq ($(KBUILD_TARGET),solaris)
additions-build-solaris.amd64:
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
additions-build-solaris.x86: additions-build-solaris.amd64
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 packing
additions-build-solaris.rsync-into-vm:
else
additions-build-solaris.rsync-into-vm:
$(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
'--exclude=src/VBox/Additions/WINNT/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/VMM/**' \
. $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
additions-build-solaris.build-it: additions-build-solaris.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 additions build+pack)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) ' cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing '
$(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 additions build+pack)
$(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 additions build+pack)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) ' cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 '
$(call VBOX_BLD_VM_MSG_END__,Solaris/x86 additions build+pack)
additions-build-solaris.rsync-out-of-vm: additions-build-solaris.build-it
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.x86 out/
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
.NOTPARALLEL: additions-build-solaris.rsync-into-vm
.PHONY: additions-build-solaris.rsync-into-vm additions-build-solaris.rsync-out-of-vm additions-build-solaris.build-it
additions-build-solaris.amd64: additions-build-solaris.rsync-out-of-vm
additions-build-solaris.x86: additions-build-solaris.rsync-out-of-vm
endif
ifdef VBOX_WITH_OS2_ADD_BUILD
ifeq ($(KBUILD_TARGET),os2)
additions-build-os2.x86:
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
additions-build-os2.rsync-into-vm:
else
additions-build-os2.rsync-into-vm:
-$(VBOX_BLD_VM_OS2_KKILL_STUFF)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh)\
'--exclude=src/VBox/Additions/x11/**' \
'--exclude=src/VBox/Additions/WINNT/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/VMM/**' \
. rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
additions-build-os2.build-it: #additions-build-os2.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,OS/2 additions build+pack)
$(TIME) -- $(REDIRECT_EXT) --stdin-pipe -- rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "cd e:\\tinderbox\\$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && e: && kbuild\\bin\\os2.x86\\kmk_ash tools\\env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing"
$(call VBOX_BLD_VM_MSG_END__,OS/2 additions build+pack)
additions-build-os2.rsync-out-of-vm: additions-build-os2.build-it
-$(VBOX_BLD_VM_OS2_KKILL_STUFF)
$(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/os2.x86 ./out
.NOTPARALLEL: additions-build-os2.rsync-into-vm
.PHONY: additions-build-os2.rsync-into-vm additions-build-os2.rsync-out-of-vm additions-build-os2.build-it
additions-build-os2.x86: additions-build-os2.rsync-out-of-vm
endif
#
else
additions-build-os2.x86:
# Dummy
endif
# Linux
ifeq ($(KBUILD_TARGET),linux)
additions-build-linux.amd64:
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
additions-build-linux.x86:
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1
additions-build-linux: additions-build-linux.x86 additions-build-linux.amd64
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1
ifdef VBOX_WITH_LNX_ARM64_ADDITIONS
additions-build-linux.arm64:
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.arm64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.arm64) packing
endif
else
additions-build-linux.rsync-into-vm:
$(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
'--exclude=src/VBox/Additions/WINNT/**' \
'--include=src/VBox/Devices/' \
'--include=src/VBox/Devices/Audio/' \
'--include=src/VBox/Devices/Audio/**' \
'--include=src/VBox/Devices/build/' \
'--include=src/VBox/Devices/build/**' \
'--exclude=src/VBox/Devices/**' \
'--exclude=src/VBox/Debugger/**' \
'--exclude=src/VBox/ExtPacks/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/HostService/**' \
'--exclude=src/VBox/ImageMounter/**' \
'--exclude=src/VBox/Main/**' \
'--exclude=src/VBox/NetworkServices/**' \
'--exclude=src/VBox/RDP/**' \
'--exclude=src/VBox/Storage/**' \
'--include=src/VBox/ValidationKit/' \
'--include=src/VBox/ValidationKit/Config.kmk' \
'--include=src/VBox/ValidationKit/utils/' \
'--include=src/VBox/ValidationKit/utils/audio/' \
'--include=src/VBox/ValidationKit/utils/audio/**' \
'--exclude=src/VBox/ValidationKit/**' \
'--exclude=src/VBox/VMM/**' \
'--exclude=src/libs/dxvk-native-**' \
'--exclude=src/libs/curl-**' \
'--exclude=src/libs/libjpeg-turbo-**' \
'--exclude=src/libs/libogg-**' \
'--exclude=src/libs/libpng-**' \
'--exclude=src/libs/libssh-**' \
'--exclude=src/libs/libtpms-**' \
'--exclude=src/libs/libvorbis-**' \
'--exclude=src/libs/libvpx-**' \
'--exclude=src/libs/libxml-**' \
'--exclude=src/libs/softfloat-**' \
'--exclude=src/libs/TestFloat-**' \
'--exclude=src/libs/xpcom18a4/**' \
'--exclude=src/apps/**' \
. $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
additions-build-linux.build-it: additions-build-linux.rsync-into-vm
ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions/greeter)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c ubuntu-11.10-amd64 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) PATH_OUT=/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter " '
$(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions/greeter)
endif
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 additions build+pack)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c debian-4.0-amd64 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING) " '
$(call VBOX_BLD_VM_MSG_END__,Linux/amd64 additions build+pack)
ifdef VBOX_WITH_LIGHTDM_GREETER_PACKING
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions/greeter)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c ubuntu-11.10-i386 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=x86 tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) PATH_OUT=/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86/$(KBUILD_TYPE)/greeter VBOX_WITH_LIGHTDM_GREETER=1 vbox-greeter " '
$(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions/greeter)
endif
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions build+pack)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c rhel3-i386 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITHOUT_LINUX_GUEST_PACKAGE=1 VBOX_WITH_LIGHTDM_GREETER_PACKING=$(VBOX_WITH_LIGHTDM_GREETER_PACKING) " '
$(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions build+pack)
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 additions combine)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c rhel3-i386 "cd /mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all packing VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 " '
$(call VBOX_BLD_VM_MSG_END__,Linux/x86 additions combine)
additions-build-linux.rsync-out-of-vm: additions-build-linux.build-it
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.x86 out/
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
.NOTPARALLEL: additions-build-linux.rsync-into-vm
.PHONY: additions-build-linux.rsync-into-vm additions-build-linux.rsync-out-of-vm additions-build-linux.build-it
additions-build-linux: additions-build-linux.rsync-out-of-vm
#
# Preliminary arm64 Linux guest additions build.
#
ifdef VBOX_WITH_LNX_ARM64_ADDITIONS
additions-build-linux.arm64.rsync-into-vm:
$(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
'--exclude=src/VBox/Additions/WINNT/**' \
'--include=src/VBox/Devices/' \
'--include=src/VBox/Devices/Audio/' \
'--include=src/VBox/Devices/Audio/**' \
'--include=src/VBox/Devices/build/' \
'--include=src/VBox/Devices/build/**' \
'--exclude=src/VBox/Devices/**' \
'--exclude=src/VBox/Debugger/**' \
'--exclude=src/VBox/ExtPacks/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/HostService/**' \
'--exclude=src/VBox/ImageMounter/**' \
'--exclude=src/VBox/NetworkServices/**' \
'--exclude=src/VBox/RDP/**' \
'--exclude=src/VBox/Storage/**' \
'--include=src/VBox/ValidationKit/' \
'--include=src/VBox/ValidationKit/Config.kmk' \
'--include=src/VBox/ValidationKit/utils/' \
'--include=src/VBox/ValidationKit/utils/audio/' \
'--include=src/VBox/ValidationKit/utils/audio/**' \
'--exclude=src/VBox/ValidationKit/**' \
'--exclude=src/VBox/VMM/**' \
'--exclude=src/libs/dxvk-native-**' \
'--exclude=src/libs/curl-**' \
'--exclude=src/libs/libjpeg-turbo-**' \
'--exclude=src/libs/libogg-**' \
'--exclude=src/libs/libpng-**' \
'--exclude=src/libs/libssh-**' \
'--exclude=src/libs/libtpms-**' \
'--exclude=src/libs/libvorbis-**' \
'--exclude=src/libs/libvpx-**' \
'--exclude=src/libs/libxml-**' \
'--exclude=src/libs/softfloat-**' \
'--exclude=src/libs/TestFloat-**' \
'--exclude=src/libs/xpcom18a4/**' \
'--exclude=src/apps/**' \
. $(VBOX_BLD_VM_LNX_ARM64_IP):/home/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
additions-build-linux.arm64.build-it: additions-build-linux.arm64.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/arm64 additions build+pack)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_ARM64_IP) 'cd /home/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.arm64) VBOX_WITH_WARNINGS_AS_ERRORS= VBOX_WITHOUT_LINUX_TEST_BUILDS=1 VBOX_WITH_LNX_ARM64_ADDITIONS=1 all packing'
$(call VBOX_BLD_VM_MSG_END__,Linux/arm64 additions build+pack)
additions-build-linux.arm64.rsync-out-of-vm: additions-build-linux.arm64.build-it
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_ARM64_IP):/home/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/linux.arm64 out/
.NOTPARALLEL: additions-build-linux.arm64.rsync-into-vm
.PHONY: additions-build-linux.arm64.rsync-into-vm additions-build-linux.arm64.rsync-out-of-vm additions-build-linux.arm64.build-it
additions-build-linux.arm64: additions-build-linux.arm64.rsync-out-of-vm
endif
endif
# Darwin
ifeq ($(KBUILD_TARGET),darwin)
additions-build-darwin.amd64:
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.amd64) packing
additions-build-darwin.x86:
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) all $(VBOX_ADD_HOST_BUILD_TWEAK)
+ $(TIME) -- $(KMK) $(VBOX_ADDITIONS_BUILD.x86) packing
additions-build-darwin: additions-build-darwin.amd64 additions-build-darwin.x86
.PHONY: additions-build-darwin.amd64 additions-build-darwin.x86
else
additions-build-darwin.amd64.rsync-into-vm:
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
$(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
'--exclude=src/libs/xpcom18a4/**' \
'--exclude=src/libs/curl*/**' \
'--exclude=src/libs/libxml*/**' \
'--exclude=src/libs/libvpx*/**' \
'--exclude=src/VBox/Additions/WINNT/**' \
'--exclude=src/VBox/Additions/x11/**' \
'--exclude=src/VBox/Artwork/x11/**' \
'--include=src/VBox/Devices/' \
'--include=src/VBox/Devices/Audio/' \
'--include=src/VBox/Devices/Audio/**' \
'--include=src/VBox/Devices/build/' \
'--include=src/VBox/Devices/build/**' \
'--exclude=src/VBox/Devices/**' \
'--exclude=src/VBox/Disassembler/**' \
'--exclude=src/VBox/ExtPacks/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/HostDriver/**' \
'--exclude=src/VBox/HostService/**' \
'--exclude=src/VBox/ImageMounter/**' \
'--exclude=src/VBox/Installer/win/**' \
'--exclude=src/VBox/Main/**' \
'--exclude=src/VBox/NetworkService/**' \
'--exclude=src/VBox/RDP/**' \
'--exclude=src/VBox/Storage/**' \
'--include=src/VBox/ValidationKit/' \
'--include=src/VBox/ValidationKit/Config.kmk' \
'--include=src/VBox/ValidationKit/utils/' \
'--include=src/VBox/ValidationKit/utils/audio/' \
'--include=src/VBox/ValidationKit/utils/audio/**' \
'--exclude=src/VBox/ValidationKit/**' \
'--exclude=src/VBox/VMM/**' \
'--exclude=src/apps/**' \
'--exclude=src/recompiler/**' \
. $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
additions-build-darwin.x86.rsync-into-vm:
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'sudo rm -Rf /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/'
$(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,*) \
'--exclude=src/libs/xpcom18a4/**' \
'--exclude=src/libs/curl*/**' \
'--exclude=src/libs/libxml*/**' \
'--exclude=src/libs/libvpx*/**' \
'--exclude=src/VBox/Additions/WINNT/**' \
'--exclude=src/VBox/Additions/x11/**' \
'--exclude=src/VBox/Artwork/x11/**' \
'--include=src/VBox/Devices/' \
'--include=src/VBox/Devices/Audio/' \
'--include=src/VBox/Devices/Audio/**' \
'--include=src/VBox/Devices/build/' \
'--include=src/VBox/Devices/build/**' \
'--exclude=src/VBox/Devices/**' \
'--exclude=src/VBox/Disassembler/**' \
'--exclude=src/VBox/ExtPacks/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/HostDriver/**' \
'--exclude=src/VBox/HostService/**' \
'--exclude=src/VBox/ImageMounter/**' \
'--exclude=src/VBox/Installer/win/**' \
'--exclude=src/VBox/Main/**' \
'--exclude=src/VBox/NetworkService/**' \
'--exclude=src/VBox/RDP/**' \
'--exclude=src/VBox/Storage/**' \
'--include=src/VBox/ValidationKit/' \
'--include=src/VBox/ValidationKit/Config.kmk' \
'--include=src/VBox/ValidationKit/utils/' \
'--include=src/VBox/ValidationKit/utils/audio/' \
'--include=src/VBox/ValidationKit/utils/audio/**' \
'--exclude=src/VBox/ValidationKit/**' \
'--exclude=src/VBox/VMM/**' \
'--exclude=src/apps/**' \
'--exclude=src/recompiler/**' \
. $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)
additions-build-darwin.amd64.build-it: additions-build-darwin.amd64.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Additions)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) all ' # VBOX_DEF_MACOSX_VERSION_MIN=10.7
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.amd64) packing ' # VBOX_DEF_MACOSX_VERSION_MIN=10.7
$(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Additions)
additions-build-darwin.x86.build-it: additions-build-darwin.x86.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Additions)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) all ' # VBOX_DEF_MACOSX_VERSION_MIN=10.5
# no pkgbuild # $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_ADDITIONS_BUILD.x86) packing ' # VBOX_DEF_MACOSX_VERSION_MIN=10.5
$(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Additions)
additions-build-darwin.amd64.rsync-out-of-vm: additions-build-darwin.amd64.build-it
$(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
additions-build-darwin.x86.rsync-out-of-vm: additions-build-darwin.x86.build-it
$(TIME) -- $(VBOX_RSYNC) -a -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_ADDITIONS_BUILD_SUBDIRNAME)/out/darwin.x86 out/
additions-build-darwin.amd64: additions-build-darwin.amd64.rsync-out-of-vm
additions-build-darwin.x86: additions-build-darwin.x86.rsync-out-of-vm
additions-build-darwin: additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.amd64.rsync-out-of-vm
.PHONY: additions-build-darwin.amd64.rsync-into-vm additions-build-darwin.amd64.rsync-out-of-vm additions-build-darwin.amd64.build-it \
additions-build-darwin.x86.rsync-into-vm additions-build-darwin.x86.rsync-out-of-vm additions-build-darwin.x86.build-it
endif
additions-packing:
+ $(KMK) VBOX_ONLY_ADDITIONS=1 \
VBOX_WITH_ADDITIONS_ISO.darwin.amd64=1 \
VBOX_WITH_ADDITIONS_ISO.darwin.x86= \
VBOX_WITH_ADDITIONS_ISO.freebsd.amd64= \
VBOX_WITH_ADDITIONS_ISO.freebsd.x86= \
VBOX_WITH_ADDITIONS_ISO.linux.amd64= \
VBOX_WITH_ADDITIONS_ISO.linux.x86=1 \
VBOX_WITH_ADDITIONS_ISO.linux.arm64=1 \
VBOX_WITH_COMBINED_LINUX_GUEST_PACKAGE=1 \
$(if $(VBOX_WITH_LNX_ARM64_ADDITIONS), VBOX_WITH_LNX_ARM64_ADDITIONS=1,) \
VBOX_WITH_ADDITIONS_ISO.os2.x86=1 \
VBOX_WITH_ADDITIONS_ISO.solaris.amd64=1 \
VBOX_WITH_ADDITIONS_ISO.solaris.x86=1 \
VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE=1 \
VBOX_WITH_ADDITIONS_ISO.win.amd64=1 \
VBOX_WITH_ADDITIONS_ISO.win.x86=1 \
-C src/VBox/Additions \
$(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.zip
.PHONY: \
additions-build-win.x86 \
additions-build-win.amd64 \
additions-build-solaris.amd64 \
additions-build-solaris.x86 \
additions-build-os2.x86 \
additions-build-linux \
additions-build-linux.amd64 \
additions-build-linux.x86 \
additions-build-linux.x86.combined \
$(if $(VBOX_WITH_LNX_ARM64_ADDITIONS), additions-build-linux.arm64,) \
additions-build-darwin \
additions-build-darwin.x86 \
additions-build-darwin.amd64 \
additions-packing
#
# Build the extension packs, all of them.
#
# This is tailored (hardcoded) for the extension pack build box.
#
# The fetching must be done in serial fashion, while the building should be
# more flexible wrt to -jN.
#
extpacks-fetch:
+ $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_EXTPACKS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=arm64 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_EXTPACKS=1
# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_EXTPACKS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_EXTPACKS=1
# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_EXTPACKS=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_EXTPACKS=1
endif
extpacks-build: \
extpacks-build-win.amd64 \
extpacks-build-win.x86 \
extpacks-build-solaris.amd64 \
extpacks-build-os2.x86 \
extpacks-build-linux \
extpacks-build-darwin.amd64 \
extpacks-build-darwin.arm64 \
extpacks-build-freebsd.amd64 \
extpacks-build-freebsd.x86
VBOX_EXTPACKS_BUILD.amd64 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
VBOX_EXTPACKS_BUILD.arm64 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=arm64 VBOX_SVN_REV=$(VBOX_SVN_REV)
VBOX_EXTPACKS_BUILD.x86 = VBOX_ONLY_EXTPACKS=1 VBOX_WITH_MAIN_NLS= VBOX_WITH_PUEL_NLS_NO_QM=1 \
KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
ifdef VBOX_WITH_PUEL_NLS
VBOX_EXTPACKS_HOST_EXTRA = VBOX_WITH_PUEL_NLS_NO_QM=
else
VBOX_EXTPACKS_HOST_EXTRA = VBOX_WITH_PUEL_NLS_NO_QM=
endif
# Automatically determine the extpack build subdir name. Used for figuring out
# directory names inside the extension pack building VMs.
VBOX_EXTPACKS_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
# When building in parallel on a Windows host, make sure we finish the host
# bit before kicking off any UNIX guest or we'll run into file sharing issues.
ifeq ($(KBUILD_TARGET),win)
VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST = extpacks-build-win.x86 extpacks-build-win.amd64
else
VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST =
endif
extpacks-build-win.amd64:
ifeq ($(KBUILD_TARGET),win)
+ $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
else
$(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 extension packs)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) 'cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
$(call VBOX_BLD_VM_MSG_END__,Windows/amd64 extension packs)
endif
extpacks-build-win.x86:
if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
ifeq ($(KBUILD_TARGET),win)
+ $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
else
$(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 extension packs)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) 'cd e:/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_EXTPACKS_BUILD.x86) all '
$(call VBOX_BLD_VM_MSG_END__,Windows/x86 extension packs)
endif
else
@$(ECHO) "nothing to do for unsupported host $@"
endif
ifeq ($(KBUILD_TARGET),solaris)
extpacks-build-solaris.amd64:
+ $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
else
# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
extpacks-build-solaris.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) . $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
extpacks-build-solaris.build-it: extpacks-build-solaris.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 extension packs)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
$(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 extension packs)
extpacks-build-solaris.rsync-out-of-vm: extpacks-build-solaris.build-it
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
#.NOTPARALLEL: extpacks-build-solaris.rsync-into-vm
.PHONY: extpacks-build-solaris.rsync-out-of-vm extpacks-build-solaris.rsync-into-vm extpacks-build-solaris.build-it
extpacks-build-solaris.amd64: extpacks-build-solaris.rsync-out-of-vm
endif
extpacks-build-os2.x86:
#ifeq ($(KBUILD_TARGET),os2)
# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
#else
# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_OS2_IP) ' cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) '
#endif
ifeq ($(KBUILD_TARGET),linux)
extpacks-build-linux.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
+ $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
extpacks-build-linux.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
+ $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
else
@$(ECHO) "nothing to do for unsupported host $@"
endif
extpacks-build-linux: extpacks-build-linux.x86 extpacks-build-linux.amd64
else
# Serialize 32-bit and 64-bit ASSUMING the same VM builds both.
extpacks-build-linux.rsync-into-vm: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
'--exclude=src/VBox/Additions/**' \
'--exclude=src/VBox/Debugger/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/GuestHost/**' \
'--exclude=src/VBox/HostServices/**' \
'--exclude=src/VBox/ImageMounter/**' \
'--exclude=src/VBox/NetworkServices/**' \
'--exclude=src/app/**' \
. $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
extpacks-build-linux.build-it: extpacks-build-linux.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 extension packs)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c ol-7.5-amd64 "cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && PATH=/opt/rh/devtoolset-9/root/bin:$$PATH tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all " '
$(call VBOX_BLD_VM_MSG_END__,Linux/amd64 extension packs)
if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 extension packs)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c debian-4.0-i386 "cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all " '
$(call VBOX_BLD_VM_MSG_END__,Linux/x86 extension packs)
endif
extpacks-build-linux.rsync-out-of-vm: extpacks-build-linux.build-it
if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.x86 out/
endif
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/linux.amd64 out/
#.NOTPARALLEL: extpacks-build-linux.rsync-into-vm
.PHONY: extpacks-build-linux.rsync-out-of-vm extpacks-build-linux.rsync-into-vm extpacks-build-linux.build-it
extpacks-build-linux: extpacks-build-linux.rsync-out-of-vm
endif
extpacks-build-freebsd.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
#else
# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/amd64 extension packs)
# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/amd64 extension packs)
#endif
extpacks-build-freebsd.x86: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
# + $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.x86) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
#else
# $(call VBOX_BLD_VM_MSG_BEGIN,FreeBSD/x86 extension packs)
# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_X86_IP) 'cd /mnt/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.x86) all '
# $(call VBOX_BLD_VM_MSG_END__,FreeBSD/x86 extension packs)
#endif
extpacks-build-darwin.amd64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
+ $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.amd64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
else
$(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 extension packs)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_109_AMD64_IP) 'PATH=$$PATH:/opt/local/bin; cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=amd64 tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.amd64) all '
$(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_109_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
$(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 extension packs)
endif
extpacks-build-darwin.arm64: $(VBOX_EXTPACKS_BUILD_WIN_HOST_FIRST)
ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.arm64)
+ $(TIME) -- $(KMK) $(VBOX_EXTPACKS_BUILD.arm64) all $(VBOX_EXTPACKS_HOST_EXTRA) $(VBOX_EXTPACKS_HOST_BUILD_TWEAK)
else
$(call VBOX_BLD_VM_MSG_BEGIN,Darwin/arm64 extension packs)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,arm64) . $(VBOX_BLD_VM_DARWIN_ARM64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_ARM64_IP) 'PATH=$$PATH:/opt/local/bin; cd /Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=arm64 tools/env.sh --no-wine kmk $(VBOX_EXTPACKS_BUILD.arm64) all '
$(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_ARM64_IP):/Users/vbox/tinderbox/$(VBOX_EXTPACKS_BUILD_SUBDIRNAME)/out/darwin.arm64 out/
$(call VBOX_BLD_VM_MSG_END__,Darwin/arm64 extension packs)
endif
extpacks-packing:
if1of (x86, $(VBOX_SUPPORTED_HOST_ARCHS))
+ $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 linux.amd64 linux.x86 solaris.amd64 win.amd64 win.x86" \
VBOX_ONLY_EXTPACKS=1 packing
else
+ $(KMK) VBOX_WITH_EXTPACK_OS_ARCHS="darwin.amd64 darwin.arm64 linux.amd64 solaris.amd64 win.amd64" \
VBOX_ONLY_EXTPACKS=1 packing
endif
# +++ freebsd.amd64 ^^^
.PHONY: \
extpacks-build-win.x86 \
extpacks-build-win.amd64 \
extpacks-build-solaris.amd64 \
extpacks-build-os2.x86 \
extpacks-build-linux \
extpacks-build-linux.amd64 \
extpacks-build-linux.x86 \
extpacks-build-freebsd.amd64 \
extpacks-build-freebsd.x86 \
extpacks-build-darwin.amd64 \
extpacks-packing
#
# Build the test suite, all of it.
#
# This is currently tailored (hardcoded) for the additions build box just like
# the additions build above, which it in fact is a copy of.
#
validationkit-fetch:
+ $(KMK) -C tools fetch VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=arm64 KBUILD_TARGET=darwin VBOX_ONLY_VALIDATIONKIT=1
# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
# + $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=freebsd VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=arm64 KBUILD_TARGET=linux VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=os2 VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=solaris VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=amd64 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
+ $(KMK) -C tools fetch KBUILD_TARGET_ARCH=x86 KBUILD_TARGET=win VBOX_ONLY_VALIDATIONKIT=1
validationkit-build: \
validationkit-build-rsync-into-vms \
validationkit-build-solaris.amd64 \
validationkit-build-solaris.x86 \
validationkit-build-win.x86 \
validationkit-build-win.amd64 \
validationkit-build-os2.x86 \
validationkit-build-linux \
validationkit-build-linux.arm64 \
validationkit-build-freebsd.amd64 \
validationkit-build-freebsd.x86 \
validationkit-build-darwin.amd64 \
validationkit-build-darwin.x86 \
validationkit-build-darwin.arm64
validationkit-build-rsync-into-vms: \
validationkit-build-solaris.rsync-into-vm \
validationkit-build-os2.rsync-into-vm \
validationkit-build-linux.rsync-into-vm \
validationkit-build-linux.arm64.rsync-into-vm
$(call MSG_L1,Rsynced the sources + tools into the VMs.)
.NOTPARALLEL: validationkit-build-rsync-into-vms
.PHONY: validationkit-build-rsync-into-vms
VBOX_VALIDATIONKIT_BUILD.amd64 = VBOX_ONLY_VALIDATIONKIT=1 \
KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
VBOX_VALIDATIONKIT_BUILD.x86 = VBOX_ONLY_VALIDATIONKIT=1 \
KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=x86 VBOX_SVN_REV=$(VBOX_SVN_REV)
VBOX_VALIDATIONKIT_BUILD.arm64 = VBOX_ONLY_VALIDATIONKIT=1 \
KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=arm64 VBOX_SVN_REV=$(VBOX_SVN_REV)
# Automatically determine the Validation Kit build subdir name. Used for figuring
# out directory names inside the test suite building VMs.
VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
# When building in parallel on a Windows host, make sure we finish the host
# bit before kicking off any UNIX guest or we'll run into file sharing issues.
ifeq ($(KBUILD_TARGET),win)
VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST = validationkit-build-win.x86 validationkit-build-win.amd64
else
VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST =
endif
validationkit-build-win.amd64:
ifeq ($(KBUILD_TARGET),win)
+ $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
else
$(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 Validation Kit)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) 'cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
$(call VBOX_BLD_VM_MSG_END__,Windows/amd64 Validation Kit)
endif
validationkit-build-win.x86:
ifeq ($(KBUILD_TARGET),win)
+ $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
else
$(call VBOX_BLD_VM_MSG_BEGIN,Windows/x86 Validation Kit)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_AMD64_IP) 'cd e:/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
$(call VBOX_BLD_VM_MSG_END__,Windows/x86 Validation Kit)
endif
ifeq ($(KBUILD_TARGET),solaris)
validationkit-build-solaris.amd64:
+ $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
validationkit-build-solaris.x86:
+ $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
else
validationkit-build-solaris.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,solaris,*) \
'--exclude=src/VBox/Additions/WINNT/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/VMM/**' \
. $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
validationkit-build-solaris.build-it: validationkit-build-solaris.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,Solaris/amd64 Validation Kit)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
$(call VBOX_BLD_VM_MSG_END__,Solaris/amd64 Validation Kit)
$(call VBOX_BLD_VM_MSG_BEGIN,Solaris/x86 Validation Kit)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_SOLARIS_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
$(call VBOX_BLD_VM_MSG_END__,Solaris/x86 Validation Kit)
validationkit-build-solaris.rsync-out-of-vm: validationkit-build-solaris.build-it
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.x86 out/
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_SOLARIS_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/solaris.amd64 out/
.PHONY: validationkit-build-solaris.rsync-out-of-vm validationkit-build-solaris.rsync-into-vm validationkit-build-solaris.build-it
validationkit-build-solaris.amd64: validationkit-build-solaris.rsync-out-of-vm
validationkit-build-solaris.x86: validationkit-build-solaris.rsync-out-of-vm
endif
ifeq ($(KBUILD_TARGET),os2)
validationkit-build-os2.x86:
+ $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
validationkit-build-os2.rsync-into-vm:
else # !OS/2
validationkit-build-os2.rsync-into-vm:
-$(VBOX_BLD_VM_OS2_KKILL_STUFF)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,os2,*,nossh) \
'--exclude=src/VBox/Additions/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/VMM/**' \
. rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
validationkit-build-os2.build-it: validationkit-build-os2.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,OS/2 Validation Kit)
$(TIME) -- $(REDIRECT_EXT) --stdin-pipe -- rsh -l vbox $(VBOX_BLD_VM_OS2_IP) "cd e:\\tinderbox\\$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && e: && kbuild\\bin\\os2.x86\\kmk_ash tools\\env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all"
$(call VBOX_BLD_VM_MSG_END__,OS/2 Validation Kit)
validationkit-build-os2.rsync-out-of-vm: validationkit-build-os2.build-it
-$(VBOX_BLD_VM_OS2_KKILL_STUFF)
$(TIME) -- $(VBOX_RSYNC_NOSSH) -v -a --delete rsync://vbox@$(VBOX_BLD_VM_OS2_IP)/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/os2.x86 ./out
.PHONY: validationkit-build-os2.rsync-into-vm validationkit-build-os2.rsync-out-of-vm validationkit-build-os2.build-it
validationkit-build-os2.x86: validationkit-build-os2.rsync-out-of-vm
endif # !OS/2
ifeq ($(KBUILD_TARGET),linux)
validationkit-build-linux.amd64:
+ $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
validationkit-build-linux.x86:
+ $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
validationkit-build-linux: validationkit-build-linux.x86 validationkit-build-linux.amd64
else
validationkit-build-linux.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
'--exclude=src/VBox/Additions/**' \
'--exclude=src/VBox/Debugger/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/GuestHost/**' \
'--exclude=src/VBox/HostServices/**' \
'--exclude=src/VBox/ImageMounter/**' \
'--include=src/VBox/Main/' \
'--include=src/VBox/Main/idl**' \
'--exclude=src/VBox/Main/**' \
'--exclude=src/VBox/NetworkServices/**' \
'--exclude=src/VBox/RDP/**' \
'--exclude=src/VBox/Storage/**' \
'--exclude=src/VBox/VMM/**' \
'--exclude=src/app/**' \
. $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
validationkit-build-linux.build-it: validationkit-build-linux.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 Validation Kit)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'dchroot -c debian-4.0-amd64 "cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all " '
$(call VBOX_BLD_VM_MSG_END__,Linux/amd64 Validation Kit)
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/x86 Validation Kit)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'linux32 dchroot -c rhel3-i386 "cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all " '
$(call VBOX_BLD_VM_MSG_END__,Linux/x86 Validation Kit)
validationkit-build-linux.rsync-out-of-vm: validationkit-build-linux.build-it
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.x86 out/
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.amd64 out/
.PHONY: validationkit-build-linux.rsync-out-of-vm validationkit-build-linux.rsync-into-vm validationkit-build-linux.build-it
validationkit-build-linux: validationkit-build-linux.rsync-out-of-vm
#
# ValidationKit build for Linux ARM.
#
validationkit-build-linux.arm64.rsync-into-vm: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
'--exclude=src/VBox/Additions/**' \
'--exclude=src/VBox/Debugger/**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/GuestHost/**' \
'--exclude=src/VBox/HostServices/**' \
'--exclude=src/VBox/ImageMounter/**' \
'--include=src/VBox/Main/' \
'--include=src/VBox/Main/idl**' \
'--exclude=src/VBox/Main/**' \
'--exclude=src/VBox/NetworkServices/**' \
'--exclude=src/VBox/RDP/**' \
'--exclude=src/VBox/Storage/**' \
'--exclude=src/VBox/VMM/**' \
'--exclude=src/app/**' \
. $(VBOX_BLD_VM_LNX_ARM64_IP):/home/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
validationkit-build-linux.arm64.build-it: validationkit-build-linux.arm64.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/arm64 Validation Kit)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_ARM64_IP) 'cd /home/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.arm64) all '
$(call VBOX_BLD_VM_MSG_END__,Linux/arm64 Validation Kit)
validationkit-build-linux.arm64.rsync-out-of-vm: validationkit-build-linux.arm64.build-it
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_ARM64_IP):/home/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/linux.arm64 out/
.PHONY: validationkit-build-linux.arm64.rsync-out-of-vm validationkit-build-linux.arm64.rsync-into-vm validationkit-build-linux.arm64.build-it
validationkit-build-linux.arm64: validationkit-build-linux.arm64.rsync-out-of-vm
endif
validationkit-build-freebsd.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.amd64)
# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
#else
# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/amd64 Validation Kit)
# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_AMD64_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
# $(call VBOX_BLD_VM_MSG_END__,Freebsd/amd64 Validation Kit)
#endif
validationkit-build-freebsd.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
#ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),freebsd.x86)
# + $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
#else
# $(call VBOX_BLD_VM_MSG_BEGIN,Freebsd/x86 Validation Kit)
# $(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_FBSD_X86_IP) 'cd /mnt/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
# $(call VBOX_BLD_VM_MSG_END__,Freebsd/x86 Validation Kit)
#endif
validationkit-build-darwin.amd64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.amd64)
+ $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.amd64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
else
$(call VBOX_BLD_VM_MSG_BEGIN,Darwin/amd64 Validation Kit)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,amd64) . $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_AMD64_IP) 'cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.amd64) all '
$(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_AMD64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.amd64 out/
$(call VBOX_BLD_VM_MSG_END__,Darwin/amd64 Validation Kit)
endif
validationkit-build-darwin.x86: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.x86)
+ $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.x86) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
else
$(call VBOX_BLD_VM_MSG_BEGIN,Darwin/x86 Validation Kit)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,x86) . $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_X86_IP) 'cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.x86) all '
$(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_X86_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.x86 out/
$(call VBOX_BLD_VM_MSG_END__,Darwin/x86 Validation Kit)
endif
validationkit-build-darwin.arm64: $(VBOX_VALIDATIONKIT_BUILD_WIN_HOST_FIRST)
ifeq ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH),darwin.arm64)
+ $(TIME) -- $(KMK) $(VBOX_VALIDATIONKIT_BUILD.arm64) all $(VBOX_VALIDATIONKIT_HOST_BUILD_TWEAK)
else
$(call VBOX_BLD_VM_MSG_BEGIN,Darwin/arm64 Validation Kit)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,darwin,arm64) . $(VBOX_BLD_VM_DARWIN_ARM64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_DARWIN_ARM64_IP) 'PATH=$$PATH:/opt/local/bin; cd /Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME) && KBUILD_HOST_ARCH=arm64 tools/env.sh --no-wine kmk $(VBOX_VALIDATIONKIT_BUILD.arm64) all '
$(TIME) -- $(VBOX_RSYNC) -am -v --delete $(VBOX_BLD_VM_DARWIN_ARM64_IP):/Users/vbox/tinderbox/$(VBOX_VALIDATIONKIT_BUILD_SUBDIRNAME)/out/darwin.arm64 out/
$(call VBOX_BLD_VM_MSG_END__,Darwin/arm64 Validation Kit)
endif
validationkit-packing:
+ $(KMK) VBOX_ONLY_VALIDATIONKIT=1 \
VBOX_WITH_VALIDATIONKIT_PACKING.darwin.amd64=1 \
VBOX_WITH_VALIDATIONKIT_PACKING.darwin.x86=2 \
VBOX_WITH_VALIDATIONKIT_PACKING.darwin.arm64=1 \
VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.amd64= \
VBOX_WITH_VALIDATIONKIT_PACKING.freebsd.x86= \
VBOX_WITH_VALIDATIONKIT_PACKING.linux.amd64=1 \
VBOX_WITH_VALIDATIONKIT_PACKING.linux.x86=1 \
VBOX_WITH_VALIDATIONKIT_PACKING.linux.arm64=1 \
VBOX_WITH_VALIDATIONKIT_PACKING.os2.x86=1 \
VBOX_WITH_VALIDATIONKIT_PACKING.solaris.amd64=1 \
VBOX_WITH_VALIDATIONKIT_PACKING.solaris.x86=1 \
VBOX_WITH_VALIDATIONKIT_PACKING.win.amd64=1 \
VBOX_WITH_VALIDATIONKIT_PACKING.win.x86=1 \
-C src/VBox/ValidationKit \
$(PATH_OUT)/VBoxValidationKit.zip \
$(PATH_OUT)/VBoxTestBoxScript.zip
.PHONY: \
validationkit-build-win.x86 \
validationkit-build-win.amd64 \
validationkit-build-solaris.amd64 \
validationkit-build-solaris.x86 \
validationkit-build-os2.x86 \
validationkit-build-linux \
validationkit-build-linux.amd64 \
validationkit-build-linux.x86 \
validationkit-build-linux.arm64 \
validationkit-build-freebsd.amd64 \
validationkit-build-freebsd.x86 \
validationkit-build-darwin.amd64 \
validationkit-build-darwin.x86 \
validationkit-build-darwin.arm64 \
validationkit-packing
#
# Build the EFI firmware, all of it.
#
efi-fetch:
+ $(KMK) -C tools fetch VBOX_ONLY_EXTPACKS=1 VBOX_ONLY_EFI=1
efi-build: $(VBOX_VERSION_HEADER)
+ $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX)
efi-packing:
+ $(KMK) -C src/VBox/Devices/EFI/Firmware$(VBOX_EFI_FIRMWARE_SUFFIX) $(PATH_STAGE)/VBoxEfiFirmware.zip $(if $(VBOX_WITH_VIRT_ARMV8),$(PATH_STAGE)/VBoxEfiFirmware-armv8.zip,)
#
# Build the SDK, all of it.
#
# Hosting the build on windows, with the linux part in a VM.
#
sdk-fetch:
+ $(KMK) -C tools fetch VBOX_ONLY_SDK=1 VBOX_ONLY_SDK_ON_HOST=1
+ $(KMK) -C tools fetch VBOX_ONLY_SDK=1 VBOX_ONLY_SDK_IN_VM=1 KBUILD_TARGET=linux
+ $(KMK) -C tools fetch VBOX_ONLY_SDK=1 VBOX_ONLY_SDK_IN_VM=1 KBUILD_TARGET=win
sdk-build: \
sdk-build-rsync-into-vms \
sdk-build-linux \
sdk-build-win
sdk-build-rsync-into-vms: \
sdk-build-linux.rsync-into-vm
$(call MSG_L1,Rsynced the sources + tools into the VM(s).)
.NOTPARALLEL: sdk-build-rsync-into-vms
.PHONY: sdk-build-rsync-into-vms
VBOX_SDK_BUILD.amd64 = VBOX_ONLY_SDK=1 KBUILD_TYPE=$(KBUILD_TYPE) KBUILD_TARGET_ARCH=amd64 VBOX_SVN_REV=$(VBOX_SVN_REV)
# Automatically determine the SDL build subdir name. Used for figuring
# out directory names inside the test suite building VMs.
VBOX_SDK_BUILD_SUBDIRNAME := $(lastword $(subst /, ,$(PATH_ROOT)))
sdk-build-win:
ifeq ($(KBUILD_TARGET),win)
+ $(TIME) -- $(KMK) $(VBOX_SDK_BUILD.amd64) VBOX_ONLY_SDK_ON_HOST=1 all $(VBOX_SDK_HOST_BUILD_TWEAK)
else
$(call VBOX_BLD_VM_MSG_BEGIN,Windows/amd64 SDK)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_WIN_X86_IP) 'cd e:/$(VBOX_SDK_BUILD_SUBDIRNAME) && tools/env.sh kmk $(VBOX_SDK_BUILD.amd64) VBOX_ONLY_SDK_IN_VM=1 all '
$(call VBOX_BLD_VM_MSG_END__,Windows/amd64 SDK)
endif
ifeq ($(KBUILD_TARGET),linux)
sdk-build-linux:
+ $(TIME) -- $(KMK) $(VBOX_SDK_BUILD.amd64) all $(VBOX_SDK_HOST_BUILD_TWEAK)
else
sdk-build-linux.rsync-into-vm: $(VBOX_SDK_BUILD_WIN_HOST_FIRST)
$(TIME) -- $(call VBOX_RSYNC_IN_FN,linux,*) \
'--exclude=src/VBox/Additions/**' \
'--exclude=src/VBox/Artwork/**' \
'--exclude=src/VBox/Devices**' \
'--exclude=src/VBox/Debugger/**' \
'--exclude=src/VBox/Disassembler/**' \
'--exclude=src/VBox/ExtPacks/**' \
'--include=src/VBox/Frontends/' \
'--include=src/VBox/Frontends/VBoxShell**' \
'--exclude=src/VBox/Frontends/**' \
'--exclude=src/VBox/GuestHost/**' \
'--exclude=src/VBox/HostDrivers/**' \
'--exclude=src/VBox/HostServices/**' \
'--exclude=src/VBox/ImageMounter/**' \
'--exclude=src/VBox/NetworkServices/**' \
'--exclude=src/VBox/Storage/**' \
'--exclude=src/VBox/VMM/**' \
'--include=src/libs/' \
'--include=src/libs/Makefile.kmk' \
'--include=src/libs/xpcom**' \
'--exclude=src/libs/**' \
. $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_SDK_BUILD_SUBDIRNAME)
sdk-build-linux.build-it: sdk-build-linux.rsync-into-vm
$(call VBOX_BLD_VM_MSG_BEGIN,Linux/amd64 SDK)
$(TIME) -- $(VBOX_SSH) vbox@$(VBOX_BLD_VM_LNX_IP) 'cd /mnt/tinderbox/$(VBOX_SDK_BUILD_SUBDIRNAME) && tools/env.sh --no-wine kmk $(VBOX_SDK_BUILD.amd64) VBOX_ONLY_SDK_IN_VM=1 all '
$(call VBOX_BLD_VM_MSG_END__,Linux/amd64 SDK)
sdk-build-linux.rsync-out-of-vm: sdk-build-linux.build-it
$(TIME) -- $(VBOX_RSYNC) -a --delete $(VBOX_BLD_VM_LNX_IP):/mnt/tinderbox/$(VBOX_SDK_BUILD_SUBDIRNAME)/out/linux.amd64 out/
.PHONY: sdk-build-linux.rsync-out-of-vm sdk-build-linux.rsync-into-vm sdk-build-linux.build-it
sdk-build-linux: sdk-build-linux.rsync-out-of-vm
endif
sdk-packing:
+ $(KMK) VBOX_ONLY_SDK=1 VBOX_ONLY_SDK_ON_HOST=1 \
VBOX_WITH_SDK_PACKING.linux.amd64=1 \
VBOX_WITH_SDK_PACKING.win.amd64=1 \
-C src/VBox/Installer packing
.PHONY: \
sdk-fetch \
sdk-build \
sdk-build-linux \
sdk-build-win \
sdk-packing
#
# Generate VirtualBox-x.x.x.zip (PUEL) snapshot archive for internal use only
# - includes kBuild
# - must be executed on an PUEL checkout
#
# the path where to store the zip archive
ZIPPATH ?= $(abspath $(PATH_ROOT)/..)
# the root directory inside the zip archive
ZIPROOT ?= VirtualBox-$(VBOX_VERSION_STRING)
# the name of the zip archive
ZIPNAME ?= VirtualBox-$(VBOX_VERSION_STRING).zip
snapshot-puel:
@$(call MSG_L1,Creating zip $(ZIPPATH)/$(ZIPNAME))
@if [ ! -r "$(PATH_ROOT)/src/VBox/RDP/server/server.cpp" ]; then \
echo; \
echo "Did not find RDP stuff, is this an OSE branch?"; \
echo; \
exit 1; \
fi
@if [ -z "$(PASSWORD)" ]; then \
echo; \
echo "Please specify a password with PASSWORD=..."; \
echo; \
exit 1; \
fi
$(QUIET)$(MKDIR) -p $(ZIPPATH)
$(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPROOT)
$(QUIET)$(RM) -f $(ZIPPATH)/$(ZIPNAME)
$(QUIET)$(LN_SYMLINK) $(PATH_ROOT) $(ZIPPATH)/$(ZIPROOT)
$(QUIET)(cd $(ZIPPATH); 7z a \
-l -tzip -mmt=on -mx=7 -p$(PASSWORD) \
-xr!.svn \
-i!$(ZIPROOT)/Config.kmk \
-i!$(ZIPROOT)/Doxyfile.Core \
-i!$(ZIPROOT)/Makefile.kmk \
-i!$(ZIPROOT)/configure \
-i!$(ZIPROOT)/configure.vbs \
-i!$(ZIPROOT)/doc \
-i!$(ZIPROOT)/include \
-i!$(ZIPROOT)/kBuild \
-i!$(ZIPROOT)/src \
-i!$(ZIPROOT)/tools/env.sh \
-i!$(ZIPROOT)/tools/linux.x86/bin/* \
-i!$(ZIPROOT)/tools/linux.amd64/bin/* \
-x!$(ZIPROOT)/doc/Devices \
-x!$(ZIPROOT)/doc/\*pdf \
-x!$(ZIPROOT)/doc/VMM \
-x!$(ZIPROOT)/doc/licenses_old \
-x!$(ZIPROOT)/doc/manual/de_DE \
-x!$(ZIPROOT)/doc/manual/fr_FR \
-x!$(ZIPROOT)/src/tests \
-x!$(ZIPROOT)/src/VBox/Artwork/2008-\* \
-x!$(ZIPROOT)/src/VBox/Installer/AMI \
-x!$(ZIPROOT)/src/VBox/Installer/Avanquest \
-x!$(ZIPROOT)/src/VBox/Installer/Encore \
-x!$(ZIPROOT)/src/VBox/Installer/linux/debian \
-x!$(ZIPROOT)/src/VBox/Installer/linux/rpm \
$(ZIPPATH)/$(ZIPNAME))
$(QUIET)$(RM) $(ZIPPATH)/$(ZIPROOT)
#
# Generate VirtualBox-x.x.x.tar.bz2 (OSE) snapshot archive
# - includes kBuild
#
snapshot-ose:
ifndef VBOX_OSE
$(QUIET)$(RM) -Rf $(wildcard $(PATH_OUT)/vbox-ose-snap-*) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
$(call MSG_L1,Making OSE snapshot at $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING))
$(KBUILD_DEVTOOLS)/bin/ose-snapshot.sh $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING)
$(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
$(REDIRECT) -C $(PATH_OUT)/vbox-ose-snap-$(VBOX_VERSION_STRING) -- \
$(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
else
$(QUIET)$(RM) $(wildcard $(PATH_OUT)/VirtualBox-*.tar.bz2)
$(call MSG_L1,Creating OSE tarball $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2)
$(REDIRECT) -C $(PATH_ROOT) -- \
$(KBUILD_DEVTOOLS)/bin/ose-tarball.sh $(PATH_OUT)/VirtualBox-$(VBOX_VERSION_STRING)-r$(VBOX_SVN_REV).tar.bz2
endif
#
# Generate ALL the rules.
#
include $(FILE_KBUILD_SUB_FOOTER)
#
# Generate x86.mac and err.mac.
#
incs:
$(SED) -f include/VBox/err.sed --output include/VBox/err.mac include/VBox/err.h
$(APPEND) include/VBox/err.mac '%include "iprt/err.mac"'
$(SED) -f include/VBox/err.sed --output include/iprt/err.mac include/iprt/err.h
$(SED) -f include/VBox/various.sed --output include/iprt/x86.mac include/iprt/x86.h
$(SED) -f include/VBox/various.sed --output include/iprt/formats/dwarf.mac include/iprt/formats/dwarf.h
$(APPEND) include/iprt/x86.mac '%include "iprt/x86extra.mac"'
$(SED) -f include/VBox/various.sed --output include/VBox/apic.mac include/VBox/apic.h
$(SED) -f include/VBox/various.sed --output include/VBox/bios.mac include/VBox/bios.h
$(SED) -f include/VBox/various.sed --output include/VBox/param.mac include/VBox/param.h
$(SED) -f include/VBox/various.sed --output include/VBox/VMMDevTesting.mac include/VBox/VMMDevTesting.h
$(SED) -f include/VBox/various.sed --output include/VBox/vmm/cpuidcall.mac include/VBox/vmm/cpuidcall.h
#
# Legacy.
#
vslick.h:
$(ECHO) This is now done by gen-slickedit-workspace.sh/cmd.
exit 1
#
# Add fetching of the tools to the 'up[date][2]' targets.
#
up update up2 update2::
ifndef VBOX_OSE
+$(MAKE) -C tools fetch
else
$(MAKE) -C tools -f Makefile-ose.kmk fetch
endif
#
# Build the essentials to run a VM. Incomplete. Use with care!
#
quick: \
VBoxRT \
VBoxVMM \
VMMR0 \
VBoxDD \
VBoxDDR0 \
VBoxDD2 \
VBoxDD2R0 \
VBoxC \
VBoxSVC \
$(if-expr defined(VBOX_WITH_RAW_MODE),VMMRC VBoxDDRC VBoxDD2RC,) \
$(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win",VBoxProxyStub,) \
$(if-expr defined(VBOX_WITH_SDS),VBoxSDS,) \
$(if-expr defined(VBOX_WITH_QTGUI),VirtualBox,)
#
# Runs the analysis with parfait
#
# @todo A lot of stuff doesn't compile with parfait under
# Windows yet due to insufficient MSVC emulation.
# Thatswhy the build is just ignoring errors and we let
# parfait work on whats there, even if incomplete.
# See @bugref{3409} for updates.
#
run-parfait:
ifdef VBOX_WITH_PARFAIT
ifeq ($(KBUILD_TARGET),win)
- $(REDIRECT) -E "PARFAIT_DUMP_PATH=$(PATH_OUT)" -- $(TIME) -- $(KMK) all -k
else
+ $(REDIRECT) -E "PARFAIT_DUMP_PATH=$(PATH_OUT)" -- $(TIME) -- $(KMK) all
endif
- $(REDIRECT) -E "PARFAIT_DUMP_PATH=$(PATH_OUT)" -- $(TIME) -- $(VBOX_PARFAIT) \
$(if-expr defined(VBOX_PARFAIT_SERVER),-s $(VBOX_PARFAIT_SERVER),) \
$(VBOX_PARFAIT_OPTS) \
$(if-expr defined(VBOX_PARFAIT_SERVER_BASELINE),-b $(VBOX_PARFAIT_SERVER_BASELINE),-b $(PATH_ROOT)/tools/parfait-vbox-baseline.conf) \
-j $(if-expr $(KMK_OPTS_JOBS) > 0, $(KMK_OPTS_JOBS), 1) \
-o $(PATH_OUT)/report.txt \
-g $(PATH_OUT)/html \
-c $(PATH_ROOT)/tools/parfait-vbox.conf \
--exclude-from=$(PATH_ROOT)/tools/parfait-vbox-exclude.conf \
--mrr-include-flagged=all --mrr-exclude-flagged=false,wontfix \
-z $(PATH_ROOT) \
-r $(VBOX_SVN_REV) \
$(PATH_OUT)/obj
else
$(ECHO) This target requires VBOX_WITH_PARFAIT to be set.
exit 1
endif
|