]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/Makefile
xnu-3789.51.2.tar.gz
[apple/xnu.git] / tools / tests / Makefile
index 9080b3347b12fd8c6e0a8390dbc77813db9ec2a1..ce8f8ec547b57c8c200363aeed0b9723240b32fc 100644 (file)
@@ -32,7 +32,8 @@ COMMON_TARGETS = unit_tests \
                jitter                  \
                perf_index              \
                darwintests             \
                jitter                  \
                perf_index              \
                darwintests             \
-               unixconf
+               unixconf                \
+               testkext/pgokext.kext
 
 IPHONE_TARGETS =
 
 
 IPHONE_TARGETS =
 
@@ -52,6 +53,12 @@ all: $(BATS_TARGET) $(TARGETS)
 
 always:
 
 
 always:
 
+# NOTE: RC_ARCHES nonsense is here because code signing will fail on kexts if we include a i386 slice
+# <rdar://problem/29878263> CoreOSLobo: xnu_tests-4026 fails to codesign
+
+$(DSTSUBPATH)/testkext/pgokext.kext: always
+       xcodebuild -configuration Debug -project $(SRCROOT)/testkext/testkext.xcodeproj -target pgokext DSTROOT=$(DSTSUBPATH)/testkext SYMROOT=$(SYMROOT)/testkext SRCROOT=$(SRCROOT)/testkext OBJROOT=$(OBJROOT)/testkext SDKROOT=$(SDKROOT) RC_ARCHS="$(subst i386,,$(RC_ARCHS))" install
+
 $(DSTSUBPATH)/%: always
        $(_v)echo Building $@
        $(_v)mkdir -p $@
 $(DSTSUBPATH)/%: always
        $(_v)echo Building $@
        $(_v)mkdir -p $@