2N/A# The contents of this file are subject to the terms of the 2N/A# Common Development and Distribution License (the "License"). 2N/A# You may not use this file except in compliance with the License. 2N/A# See the License for the specific language governing permissions 2N/A# and limitations under the License. 2N/A# When distributing Covered Code, include this CDDL HEADER in each 2N/A# If applicable, add the following below this CDDL HEADER, with the 2N/A# fields enclosed by brackets "[]" replaced with your own identifying 2N/A# information: Portions Copyright [yyyy] [name of copyright owner] 7034N/A# Copyright (c) 2010, 2016, Oracle and/or its affiliates. All rights reserved. 23N/A# for now, the assumption is we build any directory with a Makefile. This may 23N/A# not always be the case. If we build a new make-like tool to drive the upper 23N/A# level build, it may make different decisions and will need to include 23N/A# appropriate dependency information. 32N/A# COMPONENT_DIRS macro with a list of all directories in the workspace that 32N/A# contain a component. 32N/A @
echo "Generating component list..." 32N/A |
sed -e
's;^$(shell pwd)/;COMPONENT_DIRS += ;g' >$@
225N/A @
echo "Generating component dependencies..." 3996N/A# Walk through all of the components echoing the REQUIRED_PACKAGES for each one. 3996N/A# Pass all output through sed to drop lines with whitespace between words, 3996N/A# remove whitespace from lines, drop empty lines, and REQUIRED_PACKAGES += 3996N/A# to the lines. Pass that through sort -u 3996N/A @
echo "Generating list of required packages to build consolidation..." 3996N/A $(GSED) -e
'/\S\s\S/d' -e
's/^ //g' -e
'/^\s*$$/d' \
3996N/A -e
's/^/REQUIRED_PACKAGES += /' | \
3996N/A @
echo "Installing any missing packages..." 92N/A# turn off pkglint for the individual component builds. 1900N/A# In order to work around an IPS simultaneous publication issue and to improve 1900N/A# top level build performance, we postpone catalog and index updates until the 1900N/A# end of the build. Individual component builds postpone the updates until 1900N/A# they have published all of their packages. 2290N/A ( echo "pkglint(1) failed, please see $(WS_LOGS)/naughty-canonical-repo-actions"; \ 3468N/A# Turn userland-incorporator warnings into build failures 4561N/A # evaluation packages don't need to be incorporated 92N/A# pkglint all of the published manifests in one batch. 92N/A @
echo 'pkglinting all package manifests...'