24 #
25 # This makefile contains the common definitions for all intel
26 # implementation architecture independent modules.
27 #
28
29 #
30 # Machine type (implementation architecture):
31 #
32 PLATFORM = i86pc
33
34 #
35 # Everybody needs to know how to build modstubs.o and to locate unix.o.
36 # Note that unix.o must currently be selected from among the possible
37 # "implementation architectures". Note further, that unix.o is only
38 # used as an optional error check for undefines so (theoretically)
39 # any "implementation architectures" could be used. We choose i86pc
40 # because it is the reference port.
41 #
42 UNIX_DIR = $(UTSBASE)/i86pc/unix
43 GENLIB_DIR = $(UTSBASE)/intel/genunix
44 IPDRV_DIR = $(UTSBASE)/intel/ip
45 MODSTUBS_DIR = $(UNIX_DIR)
46 DSF_DIR = $(UTSBASE)/$(PLATFORM)/genassym
47 LINTS_DIR = $(OBJS_DIR)
48 LINT_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
49
50 UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
51 GENLIB = $(GENLIB_DIR)/$(OBJS_DIR)/libgenunix.so
52 MODSTUBS_O = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o
53 LINT_LIB = $(UTSBASE)/i86pc/lint-libs/$(OBJS_DIR)/llib-lunix.ln
54 GEN_LINT_LIB = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)/llib-lgenunix.ln
55
56 #
57 # Include the makefiles which define build rule templates, the
58 # collection of files per module, and a few specific flags. Note
59 # that order is significant, just as with an include path. The
60 # first build rule template which matches the files name will be
61 # used. By including these in order from most machine dependent
62 # to most machine independent, we allow a machine dependent file
63 # to be used in preference over a machine independent version
116 CFLAGS_XARCH = $(CFLAGS_XARCH_$(CLASS))
117
118 COPTFLAG_32 = $(COPTFLAG)
119 COPTFLAG_64 = $(COPTFLAG64)
120 COPTIMIZE = $(COPTFLAG_$(CLASS))
121
122 CFLAGS = $(CFLAGS_XARCH)
123 CFLAGS += $(COPTIMIZE)
124 CFLAGS += $(INLINES) -D_ASM_INLINES
125 CFLAGS += $(CCMODE)
126 CFLAGS += $(SPACEFLAG)
127 CFLAGS += $(CCUNBOUND)
128 CFLAGS += $(CFLAGS_uts)
129 CFLAGS += -xstrconst
130
131 ASFLAGS_XARCH_32 = $(i386_ASFLAGS)
132 ASFLAGS_XARCH_64 = $(amd64_ASFLAGS)
133 ASFLAGS_XARCH = $(ASFLAGS_XARCH_$(CLASS))
134
135 ASFLAGS += $(ASFLAGS_XARCH)
136
137 #
138 # Define the base directory for installation.
139 #
140 BASE_INS_DIR = $(ROOT)
141
142 #
143 # Debugging level
144 #
145 # Special knowledge of which special debugging options affect which
146 # file is used to optimize the build if these flags are changed.
147 #
148 DEBUG_DEFS_OBJ32 =
149 DEBUG_DEFS_DBG32 = -DDEBUG
150 DEBUG_DEFS_OBJ64 =
151 DEBUG_DEFS_DBG64 = -DDEBUG
152 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
153
154 DEBUG_COND_OBJ32 :sh = echo \\043
155 DEBUG_COND_DBG32 =
485 DRV_KMODS += hci1394 scsa1394
486 DRV_KMODS += av1394
487 DRV_KMODS += dcam1394
488
489 #
490 # InfiniBand pseudo drivers
491 #
492 DRV_KMODS += ib ibp eibnx eoib rdsib sdp iser daplt hermon tavor sol_ucma sol_uverbs
493 DRV_KMODS += sol_umad
494
495 #
496 # LVM modules
497 #
498 DRV_KMODS += md
499 MISC_KMODS += md_stripe md_hotspares md_mirror md_raid md_trans md_notify
500 MISC_KMODS += md_sp
501
502 #
503 # Brand modules
504 #
505 BRAND_KMODS += sn1_brand s10_brand
506
507 #
508 # Exec Class Modules (/kernel/exec):
509 #
510 EXEC_KMODS += elfexec intpexec shbinexec javaexec
511
512 #
513 # Scheduling Class Modules (/kernel/sched):
514 #
515 SCHED_KMODS += IA RT TS RT_DPTBL TS_DPTBL FSS FX FX_DPTBL SDC
516
517 #
518 # File System Modules (/kernel/fs):
519 #
520 FS_KMODS += autofs cachefs ctfs dcfs dev devfs fdfs fifofs hsfs lofs
521 FS_KMODS += mntfs namefs nfs objfs zfs zut
522 FS_KMODS += pcfs procfs sockfs specfs tmpfs udfs ufs sharefs
523 FS_KMODS += smbfs
524
525 #
526 # Streams Modules (/kernel/strmod):
527 #
528 STRMOD_KMODS += bufmod connld dedump ldterm pckt pfmod pipemod
529 STRMOD_KMODS += ptem redirmod rpcmod rlmod telmod timod
530 STRMOD_KMODS += spppasyn spppcomp
531 STRMOD_KMODS += tirdwr ttcompat
532 STRMOD_KMODS += usbkbm
533 STRMOD_KMODS += usbms
534 STRMOD_KMODS += usbwcm
535 STRMOD_KMODS += usb_ah
536 STRMOD_KMODS += drcompat
537 STRMOD_KMODS += cryptmod
538 STRMOD_KMODS += vuid2ps2
539 STRMOD_KMODS += vuid3ps2
540 STRMOD_KMODS += vuidm3p
541 STRMOD_KMODS += vuidm4p
|
24 #
25 # This makefile contains the common definitions for all intel
26 # implementation architecture independent modules.
27 #
28
29 #
30 # Machine type (implementation architecture):
31 #
32 PLATFORM = i86pc
33
34 #
35 # Everybody needs to know how to build modstubs.o and to locate unix.o.
36 # Note that unix.o must currently be selected from among the possible
37 # "implementation architectures". Note further, that unix.o is only
38 # used as an optional error check for undefines so (theoretically)
39 # any "implementation architectures" could be used. We choose i86pc
40 # because it is the reference port.
41 #
42 UNIX_DIR = $(UTSBASE)/i86pc/unix
43 GENLIB_DIR = $(UTSBASE)/intel/genunix
44 GENASSYM_DIR = $(UTSBASE)/intel/genassym
45 IPDRV_DIR = $(UTSBASE)/intel/ip
46 MODSTUBS_DIR = $(UNIX_DIR)
47 DSF_DIR = $(UTSBASE)/$(PLATFORM)/genassym
48 LINTS_DIR = $(OBJS_DIR)
49 LINT_LIB_DIR = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)
50
51 UNIX_O = $(UNIX_DIR)/$(OBJS_DIR)/unix.o
52 GENLIB = $(GENLIB_DIR)/$(OBJS_DIR)/libgenunix.so
53 MODSTUBS_O = $(MODSTUBS_DIR)/$(OBJS_DIR)/modstubs.o
54 LINT_LIB = $(UTSBASE)/i86pc/lint-libs/$(OBJS_DIR)/llib-lunix.ln
55 GEN_LINT_LIB = $(UTSBASE)/intel/lint-libs/$(OBJS_DIR)/llib-lgenunix.ln
56
57 #
58 # Include the makefiles which define build rule templates, the
59 # collection of files per module, and a few specific flags. Note
60 # that order is significant, just as with an include path. The
61 # first build rule template which matches the files name will be
62 # used. By including these in order from most machine dependent
63 # to most machine independent, we allow a machine dependent file
64 # to be used in preference over a machine independent version
117 CFLAGS_XARCH = $(CFLAGS_XARCH_$(CLASS))
118
119 COPTFLAG_32 = $(COPTFLAG)
120 COPTFLAG_64 = $(COPTFLAG64)
121 COPTIMIZE = $(COPTFLAG_$(CLASS))
122
123 CFLAGS = $(CFLAGS_XARCH)
124 CFLAGS += $(COPTIMIZE)
125 CFLAGS += $(INLINES) -D_ASM_INLINES
126 CFLAGS += $(CCMODE)
127 CFLAGS += $(SPACEFLAG)
128 CFLAGS += $(CCUNBOUND)
129 CFLAGS += $(CFLAGS_uts)
130 CFLAGS += -xstrconst
131
132 ASFLAGS_XARCH_32 = $(i386_ASFLAGS)
133 ASFLAGS_XARCH_64 = $(amd64_ASFLAGS)
134 ASFLAGS_XARCH = $(ASFLAGS_XARCH_$(CLASS))
135
136 ASFLAGS += $(ASFLAGS_XARCH)
137 AS_INC_PATH += -I$(GENASSYM_DIR)/$(OBJS_DIR)
138
139 #
140 # Define the base directory for installation.
141 #
142 BASE_INS_DIR = $(ROOT)
143
144 #
145 # Debugging level
146 #
147 # Special knowledge of which special debugging options affect which
148 # file is used to optimize the build if these flags are changed.
149 #
150 DEBUG_DEFS_OBJ32 =
151 DEBUG_DEFS_DBG32 = -DDEBUG
152 DEBUG_DEFS_OBJ64 =
153 DEBUG_DEFS_DBG64 = -DDEBUG
154 DEBUG_DEFS = $(DEBUG_DEFS_$(BUILD_TYPE))
155
156 DEBUG_COND_OBJ32 :sh = echo \\043
157 DEBUG_COND_DBG32 =
487 DRV_KMODS += hci1394 scsa1394
488 DRV_KMODS += av1394
489 DRV_KMODS += dcam1394
490
491 #
492 # InfiniBand pseudo drivers
493 #
494 DRV_KMODS += ib ibp eibnx eoib rdsib sdp iser daplt hermon tavor sol_ucma sol_uverbs
495 DRV_KMODS += sol_umad
496
497 #
498 # LVM modules
499 #
500 DRV_KMODS += md
501 MISC_KMODS += md_stripe md_hotspares md_mirror md_raid md_trans md_notify
502 MISC_KMODS += md_sp
503
504 #
505 # Brand modules
506 #
507 BRAND_KMODS += sn1_brand s10_brand lx_brand
508 DRV_KMODS += lx_systrace lx_ptm lx_audio
509 STRMOD_KMODS += ldlinux
510
511 #
512 # Exec Class Modules (/kernel/exec):
513 #
514 EXEC_KMODS += elfexec intpexec shbinexec javaexec
515
516 #
517 # Scheduling Class Modules (/kernel/sched):
518 #
519 SCHED_KMODS += IA RT TS RT_DPTBL TS_DPTBL FSS FX FX_DPTBL SDC
520
521 #
522 # File System Modules (/kernel/fs):
523 #
524 FS_KMODS += autofs cachefs ctfs dcfs dev devfs fdfs fifofs hsfs lofs
525 FS_KMODS += lx_afs lx_proc mntfs namefs nfs objfs zfs zut
526 FS_KMODS += pcfs procfs sockfs specfs tmpfs udfs ufs sharefs
527 FS_KMODS += smbfs
528
529 #
530 # Streams Modules (/kernel/strmod):
531 #
532 STRMOD_KMODS += bufmod connld dedump ldterm pckt pfmod pipemod
533 STRMOD_KMODS += ptem redirmod rpcmod rlmod telmod timod
534 STRMOD_KMODS += spppasyn spppcomp
535 STRMOD_KMODS += tirdwr ttcompat
536 STRMOD_KMODS += usbkbm
537 STRMOD_KMODS += usbms
538 STRMOD_KMODS += usbwcm
539 STRMOD_KMODS += usb_ah
540 STRMOD_KMODS += drcompat
541 STRMOD_KMODS += cryptmod
542 STRMOD_KMODS += vuid2ps2
543 STRMOD_KMODS += vuid3ps2
544 STRMOD_KMODS += vuidm3p
545 STRMOD_KMODS += vuidm4p
|