diff options
author | Gordon Ross <gordon.w.ross@gmail.com> | 2016-10-09 21:03:00 -0400 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2016-10-13 17:18:25 -0400 |
commit | 5be4a8569b33229d1900ebf9cd167a028ef30a0c (patch) | |
tree | 303b881485158c6a0d8b094d2b822de2e0952b89 /usr/src/uts/common | |
parent | d3a7c6e6e21c5e5c3738a5275e607b9db4917ac3 (diff) | |
download | illumos-gfx-drm-5be4a8569b33229d1900ebf9cd167a028ef30a0c.tar.gz |
Fix sysheaders, mapfiles; rm quickbuild
Diffstat (limited to 'usr/src/uts/common')
-rw-r--r-- | usr/src/uts/common/sys/Makefile | 37 | ||||
-rw-r--r-- | usr/src/uts/common/sys/foo.h | 15 |
2 files changed, 47 insertions, 5 deletions
diff --git a/usr/src/uts/common/sys/Makefile b/usr/src/uts/common/sys/Makefile index 414e26e..40ba9fb 100644 --- a/usr/src/uts/common/sys/Makefile +++ b/usr/src/uts/common/sys/Makefile @@ -40,11 +40,38 @@ sparc_HDRS= # Generated headers GENHDRS= -CHKHDRS= +# Normal headers +CHKHDRS= \ + foo.h -HDRS= \ - $(GENHDRS) \ - $(CHKHDRS) +HDRS= $(GENHDRS) $(CHKHDRS) + +# from Makefile.syshdrs +ROOTDIR= $(ROOT)/usr/include/sys +sparc_ROOTDIRS= +i386_ROOTDIRS= +sparc_ROOTHDRS= +i386_ROOTHDRS= + +ROOTDIRS= \ + $(ROOTDIR) \ + $($(MACH)_ROOTDIRS) + +ROOTHDRS= \ + $($(MACH)_HDRS:%=$(ROOTDIR)/%) \ + $(HDRS:%=$(ROOTDIR)/%) + +$(ROOTDIR)/%: % + $(INS.file) + +$(ROOTDIRS): + $(INS.dir) + +#end Makefile.syshdrs + +CHECKHDRS= \ + $($(MACH)_HDRS:%.h=%.check) \ + $(CHKHDRS:%.h=%.check) all_h: $(GENHDRS) @@ -52,6 +79,7 @@ install_h: \ $(ROOTDIRS) \ .WAIT \ $(ROOTHDRS) \ + $($(MACH)_ROOTHDRS) clean: $(RM) $(GENHDRS) @@ -61,4 +89,3 @@ clobber: clean check: $(CHECKHDRS) FRC: - diff --git a/usr/src/uts/common/sys/foo.h b/usr/src/uts/common/sys/foo.h index c1db064..ddc515a 100644 --- a/usr/src/uts/common/sys/foo.h +++ b/usr/src/uts/common/sys/foo.h @@ -13,9 +13,24 @@ * Copyright 2014 Nexenta Systems, Inc. All rights reserved. */ +#ifndef _SYS_FOO_H +#define _SYS_FOO_H + +#include <sys/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + #define FOO_IOC_GETCNT 1 typedef uint32_t foocnt_t; #ifndef _KERNEL extern int foo_getcnt(uint32_t *); #endif + +#ifdef __cplusplus +} +#endif + +#endif /* _SYS_FOO_H */ |