]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/conf/Makefile.template
xnu-4903.221.2.tar.gz
[apple/xnu.git] / osfmk / conf / Makefile.template
index a1354f4694363f20f905e3ff1e9eea0174a6e9fb..d296cb6a72917e91169b825a0dbd4e59dbca5ef6 100644 (file)
@@ -17,15 +17,13 @@ include $(MakeInc_def)
 # XXX: CFLAGS
 #
 CFLAGS+= -include meta_features.h -DMACH_KERNEL_PRIVATE -DMACH_KERNEL
+SFLAGS+= -include meta_features.h
 
 # Objects that don't want -Wcast-align warning (8474835)
 OBJS_NO_CAST_ALIGN =                   \
                atm_notification_user.o \
                model_dep.o             \
-               chud_thread.o           \
-               chud_thread_arm.o   \
                video_console.o         \
-               kern_stackshot.o                        \
                kdp_udp.o               \
                kdp_machdep.o           \
                host.o                  \
@@ -42,14 +40,12 @@ OBJS_NO_CAST_ALIGN =                        \
                cpu_threads.o           \
                cpuid.o                 \
                locks_i386.o            \
+               locks_i386_opt.o        \
                machine_task.o          \
                mp_desc.o               \
                pcb.o                   \
                pcb_native.o            \
                kdp_x86_common.o        \
-               memory_object.o         \
-               vm_apple_protect.o      \
-               vm_map.o                \
                startup64.o             \
                affinity.o              \
                sched_grrr.o            \
@@ -59,13 +55,9 @@ OBJS_NO_CAST_ALIGN =                 \
                wait_queue.o            \
                bsd_kern.o              \
                pmc.o                   \
-               default_freezer.o       \
                status.o                \
                machine_routines.o      \
                loose_ends.o            \
-               fips_sha1.o             \
-               prng_yarrow.o           \
-               sha1mod.o               \
                sleh.o                  \
                ccdigest_final_64be.o   \
                ccdigest_init.o         \
@@ -73,20 +65,17 @@ OBJS_NO_CAST_ALIGN =                        \
                cchmac_final.o          \
                cchmac_init.o           \
                ccsha1.o                \
-
+               ipc_object.o            \
+               ipc_kmsg.o              \
+               ipc_right.o
 
 # Objects that don't want -Wsign-compare warning (15294427)
-OBJS_NO_SIGN_COMPARE =                 \
+OBJS_NO_SIGN_COMPARE =         \
                atm_notification_user.o
 
 $(foreach file,$(OBJS_NO_CAST_ALIGN),$(eval $(call add_perfile_cflags,$(file),-Wno-cast-align)))
 $(foreach file,$(OBJS_NO_SIGN_COMPARE),$(eval $(call add_perfile_cflags,$(file),-Wno-sign-compare)))
 
-#
-# Do not provide CTF symbolic these files
-#
-chud_glue.o_SKIP_CTFCONVERT = 1
-
 #
 # XXX: INCFLAGS to include libsa prototypes
 #
@@ -146,13 +135,13 @@ $(SOBJS): .SFLAGS
 $(COMPONENT).filelist: $(OBJS)
        $(_v)for hib_file in ${HIB_FILES};              \
        do      \
-                $(SEG_HACK) -n __HIB -o $${hib_file}__ $${hib_file} ; \
-                mv $${hib_file}__ $${hib_file} ; \
+                $(SEG_HACK) -n __HIB -o $${hib_file}__ $${hib_file} || exit 1; \
+                mv $${hib_file}__ $${hib_file} || exit 1; \
        done
-       @echo LDFILELIST $(COMPONENT)
-       $(_v)( for obj in ${OBJS}; do   \
+       @echo "$(ColorL)LDFILELIST$(Color0) $(ColorLF)$(COMPONENT)$(Color0)"
+       $(_v)for obj in ${OBJS}; do     \
                 echo $(TARGET)/$(CURRENT_KERNEL_CONFIG)/$${obj}; \
-       done; ) > $(COMPONENT).filelist
+       done > $(COMPONENT).filelist
 
 do_all: $(COMPONENT).filelist
 
@@ -173,11 +162,11 @@ endif
 -include genassym.d
 genassym.o: .CFLAGS $(firstword $(MAKEFILE_LIST))
 genassym.o: $(SOURCE_DIR)/$(COMPONENT)/$(GENASSYM_LOCATION)/genassym.c
-       @echo GENASSYM $<
-       $(_v)${KCC} ${CFLAGS} ${CFLAGS_NOLTO_FLAG} -MD -S -o ${@} ${INCFLAGS} $<
+       @echo "[$(CMD_MC)] $(ColorH)GENASSYM$(Color0)      $(ColorLF)$<$(Color0)"
+       $(_v)${GENASSYM_KCC} ${CFLAGS} ${CFLAGS_NOLTO_FLAG} -MD -S -o ${@} ${INCFLAGS} $<
 
 assym.s: genassym.o
-       $(_v)sed -e '/#DEFINITION#/!d' -e 's/^.*#DEFINITION#//' -e 's/\$$//' -e 'p' -e 's/#//2' -e 's/[^A-Za-z0-9_]*\([A-Za-z0-9_]*\)/ \1_NUM/2' genassym.o > $@
+       $(_v)sed -e '/^[[:space:]]*DEFINITION__define__/!d;{N;s/\n//;}' -e 's/^[[:space:]]*DEFINITION__define__\([^:]*\):.*ascii.*\"[\$$]*\([-0-9\#]*\)\".*$$/#define \1 \2/' -e 'p'  -e 's/#//2' -e 's/^[[:space:]]*#define \([A-Za-z0-9_]*\)[[:space:]]*[\$$#]*\([-0-9]*\).*$$/#define \1_NUM \2/' genassym.o > $@
 
 ${SOBJS}: assym.s