Makefile.build (542898c5aa5c6a3179dffb1d1606884a63f75fed) | Makefile.build (5c8166419acf468b5bc3e48f928a040485d3e0c2) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# ========================================================================== 3# Building 4# ========================================================================== 5 6src := $(obj) 7 8PHONY := __build --- 26 unchanged lines hidden (view full) --- 35# Read auto.conf if it exists, otherwise ignore 36-include include/config/auto.conf 37 38include $(srctree)/scripts/Kbuild.include 39include $(srctree)/scripts/Makefile.compiler 40 41# The filename Kbuild has precedence over Makefile 42kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) | 1# SPDX-License-Identifier: GPL-2.0 2# ========================================================================== 3# Building 4# ========================================================================== 5 6src := $(obj) 7 8PHONY := __build --- 26 unchanged lines hidden (view full) --- 35# Read auto.conf if it exists, otherwise ignore 36-include include/config/auto.conf 37 38include $(srctree)/scripts/Kbuild.include 39include $(srctree)/scripts/Makefile.compiler 40 41# The filename Kbuild has precedence over Makefile 42kbuild-dir := $(if $(filter /%,$(src)),$(src),$(srctree)/$(src)) |
43kbuild-file := $(if $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Kbuild,$(kbuild-dir)/Makefile) 44include $(kbuild-file) | 43include $(or $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Makefile) |
45 46include $(srctree)/scripts/Makefile.lib 47 48# Do not include hostprogs rules unless needed. 49# $(sort ...) is used here to remove duplicated words and excessive spaces. 50hostprogs := $(sort $(hostprogs)) 51ifneq ($(hostprogs),) 52include $(srctree)/scripts/Makefile.host --- 528 unchanged lines hidden --- | 44 45include $(srctree)/scripts/Makefile.lib 46 47# Do not include hostprogs rules unless needed. 48# $(sort ...) is used here to remove duplicated words and excessive spaces. 49hostprogs := $(sort $(hostprogs)) 50ifneq ($(hostprogs),) 51include $(srctree)/scripts/Makefile.host --- 528 unchanged lines hidden --- |