Linux Audio

Check our new training course

Loading...
v6.2
 1# SPDX-License-Identifier: GPL-2.0
 2# ===========================================================================
 3# arch/um: Generic definitions
 4# ===========================================================================
 5
 6USER_SINGLE_OBJS := \
 7	$(foreach f,$(patsubst %.o,%,$(obj-y) $(obj-m)),$($(f)-objs))
 8USER_OBJS += $(filter %_user.o,$(obj-y) $(obj-m)  $(USER_SINGLE_OBJS))
 9USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
10
11$(USER_OBJS:.o=.%): \
12	c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) -include $(srctree)/include/linux/kern_levels.h -include user.h $(CFLAGS_$(basetarget).o)
13
14# These are like USER_OBJS but filter USER_CFLAGS through unprofile instead of
15# using it directly.
16UNPROFILE_OBJS := $(foreach file,$(UNPROFILE_OBJS),$(obj)/$(file))
17
18$(UNPROFILE_OBJS:.o=.%): \
19	c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(basetarget).o)
20
21$(USER_OBJS) $(UNPROFILE_OBJS): \
22	CHECKFLAGS := $(patsubst $(NOSTDINC_FLAGS),,$(CHECKFLAGS))
23
24# The stubs can't try to call mcount or update basic block data
25define unprofile
26	$(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1)))
27endef
v3.15
 
 1# ===========================================================================
 2# arch/um: Generic definitions
 3# ===========================================================================
 4
 5USER_SINGLE_OBJS := \
 6	$(foreach f,$(patsubst %.o,%,$(obj-y) $(obj-m)),$($(f)-objs))
 7USER_OBJS += $(filter %_user.o,$(obj-y) $(obj-m)  $(USER_SINGLE_OBJS))
 8USER_OBJS := $(foreach file,$(USER_OBJS),$(obj)/$(file))
 9
10$(USER_OBJS:.o=.%): \
11	c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) -include $(srctree)/include/linux/kern_levels.h -include user.h $(CFLAGS_$(basetarget).o)
12
13# These are like USER_OBJS but filter USER_CFLAGS through unprofile instead of
14# using it directly.
15UNPROFILE_OBJS := $(foreach file,$(UNPROFILE_OBJS),$(obj)/$(file))
16
17$(UNPROFILE_OBJS:.o=.%): \
18	c_flags = -Wp,-MD,$(depfile) $(call unprofile,$(USER_CFLAGS)) $(CFLAGS_$(basetarget).o)
19
20$(USER_OBJS) $(UNPROFILE_OBJS): \
21	CHECKFLAGS := $(patsubst $(NOSTDINC_FLAGS),,$(CHECKFLAGS))
22
23# The stubs can't try to call mcount or update basic block data
24define unprofile
25	$(patsubst -pg,,$(patsubst -fprofile-arcs -ftest-coverage,,$(1)))
26endef