120 # Nothing underneath $(PDIR) should ever be managed by SCM.
121 #
122 PDIR= packages.$(PKGMACH)
123
124 #
125 # The tools proto must be specified for dependency generation.
126 # Publication from the tools proto area is managed in the
127 # publication rule.
128 #
129 $(PDIR)/developer-build-onbld.dep:= PKGROOT= $(TOOLSROOT)
130
131 PKGPUBLISHER= $(PKGPUBLISHER_REDIST)
132
133 #
134 # To get these defaults, manifests should simply refer to $(PKGVERS).
135 #
136 PKGVERS_COMPONENT= 0.$(RELEASE)
137 PKGVERS_BUILTON= $(RELEASE)
138 PKGVERS_BRANCH= 0.$(ONNV_BUILDNUM)
139 PKGVERS= $(PKGVERS_COMPONENT),$(PKGVERS_BUILTON)-$(PKGVERS_BRANCH)
140
141 #
142 # The ARCH32 and ARCH64 macros are used in the manifests to express
143 # architecture-specific subdirectories in the installation paths
144 # for isaexec'd commands.
145 #
146 # We can't simply use $(MACH32) and $(MACH64) here, because they're
147 # only defined for the build architecture. To do cross-platform
148 # packaging, we need both values.
149 #
150 i386_ARCH32= i86
151 sparc_ARCH32= sparcv7
152 i386_ARCH64= amd64
153 sparc_ARCH64= sparcv9
154
155 #
156 # macros and transforms needed by pkgmogrify
157 #
158 # If you append to this list using target-specific assignments (:=),
159 # be very careful that the targets are of the form $(PDIR)/pkgname. If
160 # you use a higher level target, or a package list, you'll trigger a
161 # complete reprocessing of all manifests because they'll fail command
162 # dependency checking.
163 #
164 PM_TRANSFORMS= common_actions publish restart_fmri facets defaults \
165 extract_metadata
166 PM_INC= transforms manifests
167
168 PKGMOG_DEFINES= \
169 i386_ONLY=$(POUND_SIGN) \
170 sparc_ONLY=$(POUND_SIGN) \
171 $(PKGMACH)_ONLY= \
172 ARCH=$(PKGMACH) \
173 ARCH32=$($(PKGMACH)_ARCH32) \
174 ARCH64=$($(PKGMACH)_ARCH64) \
175 PKGVERS_COMPONENT=$(PKGVERS_COMPONENT) \
176 PKGVERS_BUILTON=$(PKGVERS_BUILTON) \
177 PKGVERS_BRANCH=$(PKGVERS_BRANCH) \
178 PKGVERS=$(PKGVERS)
179
180 PKGDEP_TOKENS_i386= \
181 'PLATFORM=i86hvm' \
182 'PLATFORM=i86pc' \
183 'PLATFORM=i86xpv' \
184 'ISALIST=amd64' \
185 'ISALIST=i386'
186 PKGDEP_TOKENS_sparc= \
187 'PLATFORM=sun4u' \
188 'PLATFORM=sun4v' \
189 'ISALIST=sparcv9' \
190 'ISALIST=sparc'
191 PKGDEP_TOKENS= $(PKGDEP_TOKENS_$(PKGMACH))
192
193 #
194 # The package lists are generated with $(PKGDEP_TYPE) as their
195 # dependency types, so that they can be included by either an
196 # incorporation or a group package.
197 #
198 $(PDIR)/osnet-redist.mog := PKGDEP_TYPE= require
|
120 # Nothing underneath $(PDIR) should ever be managed by SCM.
121 #
122 PDIR= packages.$(PKGMACH)
123
124 #
125 # The tools proto must be specified for dependency generation.
126 # Publication from the tools proto area is managed in the
127 # publication rule.
128 #
129 $(PDIR)/developer-build-onbld.dep:= PKGROOT= $(TOOLSROOT)
130
131 PKGPUBLISHER= $(PKGPUBLISHER_REDIST)
132
133 #
134 # To get these defaults, manifests should simply refer to $(PKGVERS).
135 #
136 PKGVERS_COMPONENT= 0.$(RELEASE)
137 PKGVERS_BUILTON= $(RELEASE)
138 PKGVERS_BRANCH= 0.$(ONNV_BUILDNUM)
139 PKGVERS= $(PKGVERS_COMPONENT),$(PKGVERS_BUILTON)-$(PKGVERS_BRANCH)
140 PERL_PKGVERS.cmd= print $(PERL_VERSION) | sed 's/\.//g' | head -c 3
141 PERL_PKGVERS= $(PERL_PKGVERS.cmd:sh)
142
143 #
144 # The ARCH32 and ARCH64 macros are used in the manifests to express
145 # architecture-specific subdirectories in the installation paths
146 # for isaexec'd commands.
147 #
148 # We can't simply use $(MACH32) and $(MACH64) here, because they're
149 # only defined for the build architecture. To do cross-platform
150 # packaging, we need both values.
151 #
152 i386_ARCH32= i86
153 sparc_ARCH32= sparcv7
154 i386_ARCH64= amd64
155 sparc_ARCH64= sparcv9
156
157 #
158 # macros and transforms needed by pkgmogrify
159 #
160 # If you append to this list using target-specific assignments (:=),
161 # be very careful that the targets are of the form $(PDIR)/pkgname. If
162 # you use a higher level target, or a package list, you'll trigger a
163 # complete reprocessing of all manifests because they'll fail command
164 # dependency checking.
165 #
166 PM_TRANSFORMS= common_actions publish restart_fmri facets defaults \
167 extract_metadata
168 PM_INC= transforms manifests
169
170 PKGMOG_DEFINES= \
171 i386_ONLY=$(POUND_SIGN) \
172 sparc_ONLY=$(POUND_SIGN) \
173 $(PKGMACH)_ONLY= \
174 ARCH=$(PKGMACH) \
175 ARCH32=$($(PKGMACH)_ARCH32) \
176 ARCH64=$($(PKGMACH)_ARCH64) \
177 PKGVERS_COMPONENT=$(PKGVERS_COMPONENT) \
178 PKGVERS_BUILTON=$(PKGVERS_BUILTON) \
179 PKGVERS_BRANCH=$(PKGVERS_BRANCH) \
180 PKGVERS=$(PKGVERS) \
181 PERL_VERSION=$(PERL_VERSION) \
182 PERL_PKGVERS=$(PERL_PKGVERS)
183
184 PKGDEP_TOKENS_i386= \
185 'PLATFORM=i86hvm' \
186 'PLATFORM=i86pc' \
187 'PLATFORM=i86xpv' \
188 'ISALIST=amd64' \
189 'ISALIST=i386'
190 PKGDEP_TOKENS_sparc= \
191 'PLATFORM=sun4u' \
192 'PLATFORM=sun4v' \
193 'ISALIST=sparcv9' \
194 'ISALIST=sparc'
195 PKGDEP_TOKENS= $(PKGDEP_TOKENS_$(PKGMACH))
196
197 #
198 # The package lists are generated with $(PKGDEP_TYPE) as their
199 # dependency types, so that they can be included by either an
200 # incorporation or a group package.
201 #
202 $(PDIR)/osnet-redist.mog := PKGDEP_TYPE= require
|