Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
3196 ao_gendisp use by make is racey
Browse files Browse the repository at this point in the history
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Garrett D'Amore <garrett@damore.org>
  • Loading branch information
Garrett D'Amore committed Jan 30, 2013
1 parent ff51240 commit a0900ba
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 3 deletions.
6 changes: 4 additions & 2 deletions usr/src/uts/i86xpv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
#
# This makefile drives the production of all implementation architecture
# dependent modules for the i86xpv architecture.
Expand Down Expand Up @@ -71,7 +71,8 @@ check := TARGET= check

INITIAL_TARGETS = \
genassym \
unix
unix \
cpu/scripts

def all clean clobber clean.lint: setup genassym unix .WAIT \
$(KMODS) $(CLOSED_KMODS) $(XMODS) $(CLOSED_XMODS)
Expand All @@ -96,6 +97,7 @@ genassym unix $(KMODS): FRC
@cd $@; pwd; $(MAKE) $(NO_STATE) $(TARGET)

setup: FRC
@cd cpu/scripts; pwd; $(MAKE) $(TARGET)

$(XMODS): FRC
@if [ -f $@/Makefile ]; then \
Expand Down
4 changes: 3 additions & 1 deletion usr/src/uts/i86xpv/amd_opteron/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
#

#
# Path to the base of the uts directory tree (usually /usr/src/uts).
Expand All @@ -39,7 +41,7 @@ SRCDIR = ../../i86pc/cpu/amd_opteron

AO_MCA_DISP_C = $(OBJS_DIR)/ao_mca_disp.c
AO_MCA_DISP_SRC = $(SRCDIR)/ao_mca_disp.in
AO_GENDISP = ../../i86pc/cpu/scripts/ao_gendisp
AO_GENDISP = ../cpu/scripts/ao_gendisp

#
# Include common rules.
Expand Down
46 changes: 46 additions & 0 deletions usr/src/uts/i86xpv/cpu/scripts/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#
# 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 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Copyright 2013 Nexenta Systems, Inc. All rights reserved.
#

PERLFILES= \
ao_gendisp

include ../../../Makefile.uts

.KEEP_STATE:

def all install setup: ao_gendisp.pl $(PERLFILES)

# We are sharing the ao_gendisp source with the i86pc
AO_GENDISP_PL=../../../i86pc/cpu/scripts/ao_gendisp.pl
ao_gendisp.pl: $(AO_GENDISP_PL)
$(SYMLINK) $(AO_GENDISP_PL) $@

clean clobber:
$(RM) ao_gendisp.pl $(PERLFILES)

include ../../../Makefile.targ

0 comments on commit a0900ba

Please sign in to comment.