diff options
author | Jason King <jason.brian.king@gmail.com> | 2011-11-30 00:48:33 -0500 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2011-12-07 16:52:39 -0500 |
commit | 8d136591482e6639d8b9563fcf215b17dbd6223d (patch) | |
tree | ecc1a8e2c8a4c42b7d60b9d7f6855d686139fdfb /usr/src/Makefile | |
parent | 9d633eb43f03b96fb91fca87cfbeca3cc1276b80 (diff) | |
download | illumos-joyent-8d136591482e6639d8b9563fcf215b17dbd6223d.tar.gz |
ctfstrip: Add a tool to strip CTF info and use it
The closed-bins contain CTF information long since uniquified against a
genunix no longer available to us. Add a simple tool to strip this info
(made complicated only by the necessity to preserve file permissions) and
use it during 'make closedbins'
Diffstat (limited to 'usr/src/Makefile')
-rw-r--r-- | usr/src/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/Makefile b/usr/src/Makefile index 45252e17c9..c9cccb4502 100644 --- a/usr/src/Makefile +++ b/usr/src/Makefile @@ -125,7 +125,7 @@ mapfiles: bldtools clean clobber: $(SUBDIRS) head pkg -closedbins: FRC $(ROOTDIRS) +closedbins: bldtools $(ROOTDIRS) FRC @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \ if [ "$$CLOSED_IS_PRESENT" = no ]; then \ if [ ! -d "$$CLOSED_ROOT" ]; then \ @@ -139,6 +139,9 @@ closedbins: FRC $(ROOTDIRS) (cd $$CLOSED_ROOT; \ $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \ (cd $(ROOT); $(TAR) xBpf -); \ + ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \ + ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \ + $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) ); \ fi # |