From 01d41e6dacd6f26957b16899a553d152ff46ec0c Mon Sep 17 00:00:00 2001 From: Gordon Ross Date: Mon, 31 Oct 2016 21:33:00 -0400 Subject: 7621 Ship devfsadm.h to allow externally-built devlinks modules Reviewed by: Alexander Pyhalov Reviewed by: Hans Rosenfeld Reviewed by: Toomas Soome Approved by: Richard Lowe --- usr/src/cmd/devfsadm/Makefile | 11 ++++++++++- usr/src/pkg/manifests/system-header.mf | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/usr/src/cmd/devfsadm/Makefile b/usr/src/cmd/devfsadm/Makefile index e008e8fffb..7b2409d131 100644 --- a/usr/src/cmd/devfsadm/Makefile +++ b/usr/src/cmd/devfsadm/Makefile @@ -47,6 +47,11 @@ ROOTETCDEVFILES=$(ETCDEVFILES:%=$(ROOTETCDEV)/%) $(ROOTETCDEV) := DIRMODE= 755 $(ROOTETCDEVFILES) := FILEMODE = 0644 +USRINCLUDEFILES=devfsadm.h +ROOTUSRINCLUDE= $(ROOT)/usr/include +ROOTUSRINCLUDEFILES=$(USRINCLUDEFILES:%=$(ROOTUSRINCLUDE)/%) +$(ROOTUSRINCLUDEFILES) := FILEMODE = 0644 + .KEEP_STATE: all: $(SUBDIRS) $(ETCDEVFILES) @@ -56,7 +61,8 @@ clean lint _msg: $(SUBDIRS) clobber: $(SUBDIRS) $(RM) $(ROOTETCDEVFILES) -install: $(SUBDIRS) $(ROOTETCDEFAULTFILES) $(ROOTETCDEVFILES) +install: $(SUBDIRS) $(ROOTETCDEFAULTFILES) $(ROOTETCDEVFILES) \ + $(ROOTUSRINCLUDEFILES) $(ROOTETCDEV): $(INS.dir) @@ -64,6 +70,9 @@ $(ROOTETCDEV): $(ROOTETCDEV)/% : % $(ROOTETCDEV) $(INS.file) +$(ROOTUSRINCLUDE)/% : % + $(INS.file) + $(SUBDIRS): FRC @cd $@; pwd; $(MAKE) $(TARGET) diff --git a/usr/src/pkg/manifests/system-header.mf b/usr/src/pkg/manifests/system-header.mf index 236a7ee8f8..658ed3a1b5 100644 --- a/usr/src/pkg/manifests/system-header.mf +++ b/usr/src/pkg/manifests/system-header.mf @@ -355,6 +355,7 @@ file path=usr/include/deflt.h file path=usr/include/des/des.h file path=usr/include/des/desdata.h file path=usr/include/des/softdes.h +file path=usr/include/devfsadm.h file path=usr/include/device_info.h file path=usr/include/devid.h file path=usr/include/devmgmt.h -- cgit v1.2.3