# # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. # # Hammerhead: Added hammerhead.sh as primary env file ENVFILES= \ hammerhead \ illumos include ../Makefile.tools FILEMODE= 644 CLOBBERFILES= $(ENVFILES) .KEEP_STATE: all: $(ENVFILES) install: all .WAIT $(ROOTONBLDENVFILES) clean: clobber: include ../Makefile.targ # # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License (the "License"). # You may not use this file except in compliance with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE # or http://www.opensolaris.org/os/licensing. # See the License for the specific language governing permissions # and limitations under the License. # # When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. # Copyright 2012 Joshua M. Clulow # Copyright 2015 Nexenta Systems, Inc. All rights reserved. # Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved. # Copyright 2016 RackTop Systems. # Copyright 2019 OmniOS Community Edition (OmniOSce) Association. # Copyright 2020 Joyent, Inc. # Copyright 2024 Bill Sommerfeld # Copyright 2026 Zygaena Project - Hammerhead Build System # # Hammerhead Build Environment for Zygaena (OpenIndiana cross-build host) # # For building on an OpenIndiana VM with OI-packaged GCC 14 and tools. # For building on a native Hammerhead/Zygaena host, use hammerhead.sh instead. # # - This file is sourced by "hh-env" (bldenv) and "hh-build" and # should not be executed directly. # - This script is only interpreted by ksh93 and explicitly allows the # use of ksh93 language extensions. # ----------------------------------------------------------------------------- # Parameters you are likely to want to change # ----------------------------------------------------------------------------- # Hammerhead NIGHTLY_OPTIONS: # -F Do NOT do a non-DEBUG build (DEBUG only) # -n Do not bringover from parent (use local sources) # -C Run 'make check' (cstyle/hdrchk) # -D Do a DEBUG build # -A Check for ABI discrepancies # -m Send mail on completion # -r Check ELF runpaths # -t Build and use workspace tools # # Note: -p (package creation) removed - Hammerhead uses Coral packaging export NIGHTLY_OPTIONS='-FnCDAmrt' # Some scripts optionally send mail messages to MAILTO. #export MAILTO= # CODEMGR_WS - where is your workspace at # Hammerhead repo structure: git root contains hammerhead/ subdirectory with source # If CODEMGR_WS not set, detect from git root + /hammerhead if [[ -z "$CODEMGR_WS" ]]; then _gitroot=$(git rev-parse --show-toplevel 2>/dev/null) if [[ -d "$_gitroot/base/usr/src" ]]; then # Nested structure: repo/hammerhead/usr/src export CODEMGR_WS="$_gitroot/base" elif [[ -d "$_gitroot/usr/src" ]]; then # Flat structure: repo/usr/src export CODEMGR_WS="$_gitroot" else echo "Error: Cannot find usr/src directory" >&2 return 1 fi unset _gitroot else export CODEMGR_WS fi # ----------------------------------------------------------------------------- # Compiler Configuration # ----------------------------------------------------------------------------- # # Hammerhead uses GCC 14 exclusively - no shadow compilation # # Each entry has the form ,,