Print this page
11844 add rdmsr utility
Reviewed by: Dan McDonald <danmcd@joyent.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/Makefile
+++ new/usr/src/cmd/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 #
23 23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright (c) 2019, Joyent, Inc.
25 25 # Copyright (c) 2012, 2015 by Delphix. All rights reserved.
26 26 # Copyright (c) 2013 DEY Storage Systems, Inc. All rights reserved.
27 27 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
28 28 # Copyright 2016 Toomas Soome <tsoome@me.com>
29 29 # Copyright 2018 Nexenta Systems, Inc.
30 30 # Copyright 2018 Gary Mills
31 31 # Copyright 2019 Peter Tribble
32 32 #
33 33
34 34 include ../Makefile.master
35 35
36 36 #
37 37 # Note that the commands 'lp', and 'perl' are first in
38 38 # the list, violating alphabetical order. This is because they are very
39 39 # long-running and should be given the most wall-clock time for a
40 40 # parallel build.
41 41 #
42 42 # Commands in the FIRST_SUBDIRS list are built before starting the build
43 43 # of other commands. Currently this includes only 'isaexec' and
44 44 # 'platexec'. This is necessary because $(ROOT)/usr/lib/isaexec or
45 45 # $(ROOT)/usr/lib/platexec must exist when some other commands are built
46 46 # because their 'make install' creates a hard link to one of them.
47 47 #
48 48 # Commands are listed one per line so that TeamWare can auto-merge most
49 49 # changes.
50 50 #
51 51
52 52 FIRST_SUBDIRS= \
53 53 isaexec \
54 54 platexec
55 55
56 56 COMMON_SUBDIRS= \
57 57 allocate \
58 58 availdevs \
59 59 lp \
60 60 perl \
61 61 Adm \
62 62 abi \
63 63 adbgen \
64 64 acct \
65 65 acctadm \
66 66 arch \
67 67 asa \
68 68 ast \
69 69 audio \
70 70 auths \
71 71 autopush \
72 72 awk \
73 73 awk_xpg4 \
74 74 backup \
75 75 banner \
76 76 bart \
77 77 basename \
78 78 bc \
79 79 bdiff \
80 80 beadm \
81 81 bnu \
82 82 boot \
83 83 busstat \
84 84 cal \
85 85 captoinfo \
86 86 cat \
87 87 cdrw \
88 88 cfgadm \
89 89 checkeq \
90 90 checknr \
91 91 chgrp \
92 92 chmod \
93 93 chown \
94 94 chroot \
95 95 clear \
96 96 clinfo \
97 97 cmd-crypto \
98 98 cmd-inet \
99 99 col \
100 100 compress \
101 101 connstat \
102 102 consadm \
103 103 coreadm \
104 104 cpio \
105 105 cpc \
106 106 cron \
107 107 crypt \
108 108 csh \
109 109 csplit \
110 110 ctfconvert \
111 111 ctfdiff \
112 112 ctfdump \
113 113 ctfmerge \
114 114 ctrun \
115 115 ctstat \
116 116 ctwatch \
117 117 datadm \
118 118 date \
119 119 dc \
120 120 dd \
121 121 deroff \
122 122 devfsadm \
123 123 syseventd \
124 124 devctl \
125 125 devinfo \
126 126 devmgmt \
127 127 devprop \
128 128 dfs.cmds \
129 129 diff \
130 130 diff3 \
131 131 diffmk \
132 132 dircmp \
133 133 dirname \
134 134 dis \
135 135 diskinfo \
136 136 diskmgtd \
137 137 dispadmin \
138 138 dladm \
139 139 dlstat \
140 140 dlutil \
141 141 dmesg \
142 142 dodatadm \
143 143 dtrace \
144 144 du \
145 145 dumpadm \
146 146 dumpcs \
147 147 echo \
148 148 ed \
149 149 eeprom \
150 150 eject \
151 151 emul64ioctl \
152 152 enhance \
153 153 env \
154 154 eqn \
155 155 etdump \
156 156 expand \
157 157 expr \
158 158 exstr \
159 159 factor \
160 160 false \
161 161 fcinfo \
162 162 fcoesvc \
163 163 fdetach \
164 164 fdformat \
165 165 fdisk \
166 166 ficl \
167 167 filesync \
168 168 file \
169 169 find \
170 170 flowadm \
171 171 flowstat \
172 172 fm \
173 173 fmt \
174 174 fmthard \
175 175 fmtmsg \
176 176 fold \
177 177 format \
178 178 fs.d \
179 179 fstyp \
180 180 fuser \
181 181 fwflash \
182 182 gcore \
183 183 gencat \
184 184 geniconvtbl \
185 185 genmsg \
186 186 getconf \
187 187 getdevpolicy \
188 188 getent \
189 189 getfacl \
190 190 getmajor \
191 191 getopt \
192 192 gettext \
193 193 gettxt \
194 194 grep \
195 195 groups \
196 196 growfs \
197 197 grpck \
198 198 gss \
199 199 hal \
200 200 halt \
201 201 head \
202 202 hostid \
203 203 hostname \
204 204 hotplug \
205 205 hotplugd \
206 206 ibd_upgrade \
207 207 iconv \
208 208 id \
209 209 idmap \
210 210 infocmp \
211 211 init \
212 212 initpkg \
213 213 install.d \
214 214 intrd \
215 215 intrstat \
216 216 ipcrm \
217 217 ipcs \
218 218 ipdadm \
219 219 ipf \
220 220 isainfo \
221 221 isalist \
222 222 itutools \
223 223 iscsiadm \
224 224 iscsid \
225 225 iscsitsvc \
226 226 isns \
227 227 itadm \
228 228 kbd \
229 229 keyserv \
230 230 killall \
231 231 krb5 \
232 232 ksh \
233 233 kvmstat \
234 234 last \
235 235 lastcomm \
236 236 latencytop \
237 237 ldap \
238 238 ldapcachemgr \
239 239 lgrpinfo \
240 240 line \
241 241 link \
242 242 dlmgmtd \
243 243 listen \
244 244 loadkeys \
245 245 locale \
246 246 localedef \
247 247 lockstat \
248 248 locator \
249 249 lofiadm \
250 250 logadm \
251 251 logger \
252 252 login \
253 253 logins \
254 254 look \
255 255 ls \
256 256 luxadm \
257 257 mach \
258 258 mail \
259 259 mailwrapper \
260 260 mailx \
261 261 make \
262 262 makekey \
263 263 man \
264 264 mandoc \
265 265 mdb \
266 266 mesg \
267 267 mkdir \
268 268 mkfifo \
269 269 mkfile \
270 270 mkmsgs \
271 271 mknod \
272 272 mkpwdict \
273 273 mktemp \
274 274 modload \
275 275 more \
276 276 mpathadm \
277 277 msgfmt \
278 278 msgid \
279 279 mt \
280 280 mv \
281 281 mvdir \
282 282 ndmpadm \
283 283 ndmpd \
284 284 ndmpstat \
285 285 netadm \
286 286 netfiles \
287 287 newform \
288 288 newgrp \
289 289 news \
290 290 newtask \
291 291 nice \
292 292 nl \
293 293 nlsadmin \
294 294 nohup \
295 295 nsadmin \
296 296 nscd \
297 297 oamuser \
298 298 oawk \
299 299 od \
300 300 pack \
301 301 pagesize \
302 302 passmgmt \
303 303 passwd \
304 304 pathchk \
305 305 pbind \
306 306 pcidr \
307 307 pcieb \
308 308 pcitool \
309 309 pfexec \
310 310 pfexecd \
311 311 pginfo \
312 312 pgstat \
313 313 pgrep \
314 314 picl \
315 315 plimit \
316 316 policykit \
317 317 pools \
318 318 power \
319 319 powertop \
320 320 ppgsz \
321 321 pg \
322 322 plockstat \
323 323 pr \
324 324 prctl \
325 325 print \
326 326 printf \
327 327 priocntl \
328 328 profiles \
329 329 projadd \
330 330 projects \
331 331 prstat \
332 332 prtconf \
333 333 prtdiag \
334 334 prtvtoc \
335 335 ps \
336 336 psradm \
337 337 psrinfo \
338 338 psrset \
339 339 ptools \
340 340 pwck \
341 341 pwconv \
342 342 pwd \
343 343 pyzfs \
344 344 raidctl \
345 345 ramdiskadm \
346 346 rcap \
347 347 rcm_daemon \
348 348 rctladm \
349 349 refer \
350 350 regcmp \
351 351 renice \
352 352 rm \
353 353 rmdir \
354 354 rmformat \
355 355 rmmount \
356 356 rmt \
357 357 rmvolmgr \
358 358 roles \
359 359 rpcbind \
360 360 rpcgen \
361 361 rpcinfo \
362 362 rpcsvc \
363 363 runat \
364 364 sa \
365 365 saf \
366 366 sasinfo \
367 367 savecore \
368 368 sbdadm \
369 369 script \
370 370 scsi \
371 371 sdiff \
372 372 sdpadm \
373 373 sed \
374 374 sendmail \
375 375 setfacl \
376 376 setmnt \
377 377 setpgrp \
378 378 setuname \
379 379 sgs \
380 380 sh \
381 381 shcomp \
382 382 smbios \
383 383 smbsrv \
384 384 smserverd \
385 385 soelim \
386 386 sort \
387 387 spell \
388 388 split \
389 389 sqlite \
390 390 srchtxt \
391 391 srptadm \
392 392 srptsvc \
393 393 ssh \
394 394 stat \
395 395 stmfadm \
396 396 stmfproxy \
397 397 stmfsvc \
398 398 stmsboot \
399 399 streams \
400 400 strings \
401 401 su \
402 402 sulogin \
403 403 sunpc \
404 404 svc \
405 405 svr4pkg \
406 406 swap \
407 407 sync \
408 408 sysdef \
409 409 syseventadm \
410 410 syslogd \
411 411 tabs \
412 412 tail \
413 413 tar \
414 414 tbl \
415 415 tcopy \
416 416 tcpd \
417 417 th_tools \
418 418 tic \
419 419 time \
420 420 tip \
421 421 tnf \
422 422 touch \
423 423 tput \
424 424 tr \
425 425 trapstat \
426 426 troff \
427 427 true \
428 428 truss \
429 429 tsol \
430 430 tty \
431 431 ttymon \
432 432 tzreload \
433 433 uadmin \
434 434 ul \
435 435 uname \
436 436 units \
437 437 unlink \
438 438 unpack \
439 439 userattr \
440 440 users \
441 441 utmp_update \
442 442 utmpd \
443 443 uuidgen \
444 444 valtools \
445 445 vgrind \
446 446 vi \
447 447 volcheck \
448 448 volrmmount \
449 449 vrrpadm \
450 450 vscan \
451 451 vt \
452 452 vtfontcvt \
453 453 w \
454 454 wall \
455 455 which \
456 456 who \
457 457 whodo \
458 458 wracct \
459 459 write \
460 460 xargs \
461 461 xstr \
462 462 yes \
463 463 ypcmd \
464 464 yppasswd \
465 465 zdb \
466 466 zdump \
467 467 zfs \
468 468 zhack \
469 469 zic \
470 470 zinject \
471 471 zlogin \
472 472 zoneadm \
473 473 zoneadmd \
474 474 zonecfg \
475 475 zonename \
476 476 zpool \
477 477 zlook \
478 478 zonestat \
479 479 zstreamdump \
480 480 ztest
↓ open down ↓ |
480 lines elided |
↑ open up ↑ |
481 481
482 482 i386_SUBDIRS= \
483 483 acpi \
484 484 acpihpd \
485 485 addbadsec \
486 486 ahciem \
487 487 biosdev \
488 488 cxgbetool \
489 489 diskscan \
490 490 nvmeadm \
491 + rdmsr \
491 492 rtc \
492 493 ucodeadm \
493 494 xhci \
494 495 xvm
495 496
496 497 sparc_SUBDIRS= \
497 498 dcs \
498 499 device_remap \
499 500 drd \
500 501 fruadm \
501 502 ldmad \
502 503 oplhpd \
503 504 prtdscp \
504 505 prtfru \
505 506 scadm \
506 507 sckmd \
507 508 sf880drd \
508 509 virtinfo \
509 510 vntsd
510 511
511 512 #
512 513 # Commands that are messaged. Note that 'lp' comes first
513 514 # (see previous comment about 'lp'.)
514 515 #
515 516 MSGSUBDIRS= \
516 517 lp \
517 518 abi \
518 519 acctadm \
519 520 allocate \
520 521 asa \
521 522 audio \
522 523 audit \
523 524 auditconfig \
524 525 auditd \
525 526 auditrecord \
526 527 auditset \
527 528 auths \
528 529 autopush \
529 530 awk \
530 531 awk_xpg4 \
531 532 backup \
532 533 banner \
533 534 bart \
534 535 basename \
535 536 beadm \
536 537 bnu \
537 538 busstat \
538 539 cal \
539 540 cat \
540 541 cdrw \
541 542 cfgadm \
542 543 checkeq \
543 544 checknr \
544 545 chgrp \
545 546 chmod \
546 547 chown \
547 548 cmd-crypto \
548 549 cmd-inet \
549 550 col \
550 551 compress \
551 552 connstat \
552 553 consadm \
553 554 coreadm \
554 555 cpio \
555 556 cpc \
556 557 cron \
557 558 csh \
558 559 csplit \
559 560 ctrun \
560 561 ctstat \
561 562 ctwatch \
562 563 datadm \
563 564 date \
564 565 dc \
565 566 dcs \
566 567 dd \
567 568 deroff \
568 569 devfsadm \
569 570 dfs.cmds \
570 571 diff \
571 572 diffmk \
572 573 dladm \
573 574 dlstat \
574 575 du \
575 576 dumpcs \
576 577 ed \
577 578 eject \
578 579 env \
579 580 eqn \
580 581 expand \
581 582 expr \
582 583 fcinfo \
583 584 file \
584 585 filesync \
585 586 find \
586 587 flowadm \
587 588 flowstat \
588 589 fm \
589 590 fold \
590 591 fs.d \
591 592 fwflash \
592 593 geniconvtbl \
593 594 genmsg \
594 595 getconf \
595 596 getent \
596 597 gettext \
597 598 gettxt \
598 599 grep \
599 600 grpck \
600 601 gss \
601 602 halt \
602 603 head \
603 604 hostname \
604 605 hotplug \
605 606 iconv \
606 607 id \
607 608 idmap \
608 609 isaexec \
609 610 iscsiadm \
610 611 iscsid \
611 612 isns \
612 613 itadm \
613 614 kbd \
614 615 krb5 \
615 616 ksh \
616 617 last \
617 618 ldap \
618 619 ldapcachemgr \
619 620 lgrpinfo \
620 621 locale \
621 622 lofiadm \
622 623 logadm \
623 624 logger \
624 625 logins \
625 626 ls \
626 627 luxadm \
627 628 mailx \
628 629 make \
629 630 man \
630 631 mesg \
631 632 mkdir \
632 633 mkpwdict \
633 634 mktemp \
634 635 more \
635 636 mpathadm \
636 637 msgfmt \
637 638 mv \
638 639 ndmpadm \
639 640 ndmpstat \
640 641 newgrp \
641 642 newtask \
642 643 nice \
643 644 nohup \
644 645 oawk \
645 646 pack \
646 647 passwd \
647 648 passmgmt \
648 649 pathchk \
649 650 pfexec \
650 651 pg \
651 652 pgrep \
652 653 picl \
653 654 pools \
654 655 power \
655 656 pr \
656 657 praudit \
657 658 print \
658 659 profiles \
659 660 projadd \
660 661 projects \
661 662 prstat \
662 663 prtdiag \
663 664 ps \
664 665 psrinfo \
665 666 ptools \
666 667 pwconv \
667 668 pwd \
668 669 pyzfs \
669 670 raidctl \
670 671 ramdiskadm \
671 672 rcap \
672 673 rcm_daemon \
673 674 refer \
674 675 regcmp \
675 676 renice \
676 677 roles \
677 678 rm \
678 679 rmdir \
679 680 rmformat \
680 681 rmmount \
681 682 rmvolmgr \
682 683 sasinfo \
683 684 sbdadm \
684 685 scadm \
685 686 script \
686 687 scsi \
687 688 sdiff \
688 689 sdpadm \
689 690 sgs \
690 691 sh \
691 692 shcomp \
692 693 smbsrv \
693 694 sort \
694 695 split \
695 696 srptadm \
696 697 stat \
697 698 stmfadm \
698 699 stmsboot \
699 700 strings \
700 701 su \
701 702 svc \
702 703 svr4pkg \
703 704 swap \
704 705 syseventadm \
705 706 syseventd \
706 707 tabs \
707 708 tar \
708 709 tbl \
709 710 time \
710 711 tnf \
711 712 touch \
712 713 tput \
713 714 troff \
714 715 tsol \
715 716 tty \
716 717 ttymon \
717 718 tzreload \
718 719 ul \
719 720 uname \
720 721 units \
721 722 unlink \
722 723 unpack \
723 724 userattr \
724 725 valtools \
725 726 vgrind \
726 727 vi \
727 728 volcheck \
728 729 volrmmount \
729 730 vrrpadm \
730 731 vscan \
731 732 w \
732 733 who \
733 734 whodo \
734 735 wracct \
735 736 write \
736 737 xargs \
737 738 yppasswd \
738 739 zdump \
739 740 zfs \
740 741 zic \
741 742 zlogin \
742 743 zoneadm \
743 744 zoneadmd \
744 745 zonecfg \
745 746 zonename \
746 747 zpool \
↓ open down ↓ |
246 lines elided |
↑ open up ↑ |
747 748 zonestat
748 749
749 750 sparc_MSGSUBDIRS= \
750 751 fruadm \
751 752 prtdscp \
752 753 prtfru \
753 754 virtinfo \
754 755 vntsd
755 756
756 757 i386_MSGSUBDIRS= \
758 + rdmsr \
757 759 ucodeadm
758 760
759 761 #
760 762 # commands that use dcgettext for localized time, LC_TIME
761 763 #
762 764 DCSUBDIRS= \
763 765 cal \
764 766 cfgadm \
765 767 diff \
766 768 ls \
767 769 pr \
768 770 ps \
769 771 tar \
770 772 w \
771 773 who \
772 774 whodo \
773 775 write
774 776
775 777 #
776 778 # commands that belong only to audit.
777 779 #
778 780 AUDITSUBDIRS= \
779 781 amt \
780 782 audit \
781 783 audit_warn \
782 784 auditconfig \
783 785 auditd \
784 786 auditrecord \
785 787 auditreduce \
786 788 auditset \
787 789 auditstat \
788 790 praudit
789 791
790 792 #
791 793 # commands not owned by the systems group
792 794 #
793 795 BWOSDIRS=
794 796
795 797
796 798 all := TARGET = all
797 799 install := TARGET = install
798 800 clean := TARGET = clean
799 801 clobber := TARGET = clobber
800 802 lint := TARGET = lint
801 803 _msg := TARGET = _msg
802 804 _dc := TARGET = _dc
803 805
804 806 .KEEP_STATE:
805 807
806 808 SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
807 809
808 810 .PARALLEL: $(BWOSDIRS) $(SUBDIRS) $(MSGSUBDIRS) $(AUDITSUBDIRS)
809 811
810 812 all install clean clobber lint: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) \
811 813 $(AUDITSUBDIRS)
812 814
813 815 #
814 816 # Manifests cannot be checked in parallel, because we are using
815 817 # the global repository that is in $(SRC)/cmd/svc/seed/global.db.
816 818 # For this reason, to avoid .PARALLEL and .NO_PARALLEL conflicts,
817 819 # we spawn off a sub-make to perform the non-parallel 'make check'
818 820 #
819 821 check:
820 822 $(MAKE) -f Makefile.check check
821 823
822 824 #
823 825 # The .WAIT directive works around an apparent bug in parallel make.
824 826 # Evidently make was getting the target _msg vs. _dc confused under
825 827 # some level of parallelization, causing some of the _dc objects
826 828 # not to be built.
827 829 #
828 830 _msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc
829 831
830 832 _dc: $(DCSUBDIRS)
831 833
832 834 #
833 835 # Dependencies
834 836 #
835 837 fs.d: fstyp
836 838 ksh: shcomp isaexec
837 839 print: lp
838 840 fmt: mailx
839 841
840 842 $(FIRST_SUBDIRS) $(BWOSDIRS) $(SUBDIRS) $(AUDITSUBDIRS): FRC
841 843 @if [ -f $@/Makefile ]; then \
842 844 cd $@; pwd; $(MAKE) $(TARGET); \
843 845 else \
844 846 true; \
845 847 fi
846 848
847 849 FRC:
↓ open down ↓ |
81 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX