Lines Matching +full:output +full:- +full:only
1 # SPDX-License-Identifier: GPL-2.0-only
11 # O is an alias for OUTPUT
12 OUTPUT := $(O) macro
14 ifeq ($(OUTPUT),)
15 OUTPUT := $(CURDIR)/ macro
19 OUTPUT := $(OUTPUT)/$(subdir) macro
23 ifneq ($(patsubst %/,,$(lastword $(OUTPUT))),)
24 OUTPUT := $(OUTPUT)/ macro
27 RV := $(OUTPUT)rv
28 RV_IN := $(RV)-in.o
30 VERSION := $(shell sh -c "make -sC ../../.. kernelversion | grep -v make")
49 # check for dependencies only on required targets
54 ifeq ($(filter-out $(NON_CONFIG_TARGETS),$(MAKECMDGOALS)),)
66 export CFLAGS OUTPUT srctree
69 $(QUIET_LINK)$(CC) $(LDFLAGS) -o $(RV) $(RV_IN) $(EXTLIBS)
72 $(eval LDFLAGS += -static)
73 $(QUIET_LINK)$(CC) $(LDFLAGS) -o $(RV)-static $(RV_IN) $(EXTLIBS)
76 make -f $(srctree)/tools/build/Makefile.build dir=. $@
81 clean: doc_clean fixdep-clean
83 $(Q)find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete
84 $(Q)rm -f rv rv-static fixdep FEATURE-DUMP rv-*
85 $(Q)rm -rf feature