]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/personas/Makefile
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / tools / tests / personas / Makefile
index ba66220c8303520b4076d9dba5fbfd08eb6d27e7..14211dc70f24cd35ecf41a167f9313d5e101dbd1 100644 (file)
@@ -7,28 +7,10 @@ CODESIGN_ALLOCATE:=$(shell xcrun -sdk "$(SDKROOT)" -find codesign_allocate)
 SYMROOT?=$(shell /bin/pwd)
 
 CFLAGS := -g -O2 -isysroot $(SDKROOT) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
+CFLAGS += -Wl,-sectcreate,__INFO_FILTER,__disable,/dev/null
 
-ifdef RC_ARCHS
-    ARCHS:=$(RC_ARCHS)
-  else
-    ifeq "$(Embedded)" "YES"
-      ARCHS:=armv7 armv7s arm64
-    else
-      ARCHS:=x86_64 i386
-  endif
-endif
-
-# These are convenience functions for filtering based on substrings, as the
-# normal filter functions only accept one wildcard.
-FILTER_OUT_SUBSTRING=$(strip $(foreach string,$(2),$(if $(findstring $(1),$(string)),,$(string))))
-FILTER_SUBSTRING=$(strip $(foreach string,$(2),$(if $(findstring $(1),$(string)),$(string),)))
-
-ARCH_32:=$(call FILTER_OUT_SUBSTRING,64,$(ARCHS))
-ARCH_64:=$(call FILTER_SUBSTRING,64,$(ARCHS))
-
-ARCH_32_FLAGS := $(patsubst %, -arch %, $(ARCH_32))
-ARCH_64_FLAGS := $(patsubst %, -arch %, $(ARCH_64))
-ARCH_FLAGS := $(if $(ARCH_64), $(ARCH_64_FLAGS)) $(if $(ARCH_32), $(ARCH_32_FLAGS))
+# $(ARCH_CONFIGS) is set my Makefile.common
+ARCH_FLAGS := $(if $(ARCH_CONFIGS_64), $(ARCH_FLAGS_64)) $(if $(ARCH_CONFIGS_32), $(ARCH_FLAGS_32))
 
 DSTROOT?=$(shell /bin/pwd)