Makefile (8f98ae0c9b90bb46097e4f28e81e9ae6148e5694) Makefile (8e9b466799230bc20a029579e92d4cd526e5a2e1)
1VERSION = 4
2PATCHLEVEL = 13
3SUBLEVEL = 0
1VERSION = 4
2PATCHLEVEL = 13
3SUBLEVEL = 0
4EXTRAVERSION = -rc6
4EXTRAVERSION = -rc4
5NAME = Fearless Coyote
6
7# *DOCUMENTATION*
8# To see a list of typical targets execute "make help"
9# More info can be located in ./README
10# Comments in this file are targeted only to the developer, do not
11# expect to learn how to build the kernel reading this file.
12

--- 112 unchanged lines hidden (view full) ---

125
126ifneq ($(words $(subst :, ,$(CURDIR))), 1)
127 $(error main directory cannot contain spaces nor colons)
128endif
129
130ifneq ($(KBUILD_OUTPUT),)
131# check that the output directory actually exists
132saved-output := $(KBUILD_OUTPUT)
5NAME = Fearless Coyote
6
7# *DOCUMENTATION*
8# To see a list of typical targets execute "make help"
9# More info can be located in ./README
10# Comments in this file are targeted only to the developer, do not
11# expect to learn how to build the kernel reading this file.
12

--- 112 unchanged lines hidden (view full) ---

125
126ifneq ($(words $(subst :, ,$(CURDIR))), 1)
127 $(error main directory cannot contain spaces nor colons)
128endif
129
130ifneq ($(KBUILD_OUTPUT),)
131# check that the output directory actually exists
132saved-output := $(KBUILD_OUTPUT)
133KBUILD_OUTPUT := $(shell mkdir -p $(KBUILD_OUTPUT) && cd $(KBUILD_OUTPUT) \
134 && /bin/pwd)
133$(shell [ -d $(KBUILD_OUTPUT) ] || mkdir -p $(KBUILD_OUTPUT))
134KBUILD_OUTPUT := $(realpath $(KBUILD_OUTPUT))
135$(if $(KBUILD_OUTPUT),, \
136 $(error failed to create output directory "$(saved-output)"))
137
138PHONY += $(MAKECMDGOALS) sub-make
139
140$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
141 @:
142

--- 830 unchanged lines hidden (view full) ---

973# kernel build went well. If CONFIG_TRIM_UNUSED_KSYMS is set, this might be
974# evaluated more than once.
975PHONY += vmlinux_prereq
976vmlinux_prereq: $(vmlinux-deps) FORCE
977ifdef CONFIG_HEADERS_CHECK
978 $(Q)$(MAKE) -f $(srctree)/Makefile headers_check
979endif
980ifdef CONFIG_GDB_SCRIPTS
135$(if $(KBUILD_OUTPUT),, \
136 $(error failed to create output directory "$(saved-output)"))
137
138PHONY += $(MAKECMDGOALS) sub-make
139
140$(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
141 @:
142

--- 830 unchanged lines hidden (view full) ---

973# kernel build went well. If CONFIG_TRIM_UNUSED_KSYMS is set, this might be
974# evaluated more than once.
975PHONY += vmlinux_prereq
976vmlinux_prereq: $(vmlinux-deps) FORCE
977ifdef CONFIG_HEADERS_CHECK
978 $(Q)$(MAKE) -f $(srctree)/Makefile headers_check
979endif
980ifdef CONFIG_GDB_SCRIPTS
981 $(Q)ln -fsn `cd $(srctree) && /bin/pwd`/scripts/gdb/vmlinux-gdb.py
981 $(Q)ln -fsn $(abspath $(srctree)/scripts/gdb/vmlinux-gdb.py)
982endif
983ifdef CONFIG_TRIM_UNUSED_KSYMS
984 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \
985 "$(MAKE) -f $(srctree)/Makefile vmlinux"
986endif
987
988# standalone target for easier testing
989include/generated/autoksyms.h: FORCE

--- 242 unchanged lines hidden (view full) ---

1232PHONY += modules_install
1233modules_install: _modinst_ _modinst_post
1234
1235PHONY += _modinst_
1236_modinst_:
1237 @rm -rf $(MODLIB)/kernel
1238 @rm -f $(MODLIB)/source
1239 @mkdir -p $(MODLIB)/kernel
982endif
983ifdef CONFIG_TRIM_UNUSED_KSYMS
984 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \
985 "$(MAKE) -f $(srctree)/Makefile vmlinux"
986endif
987
988# standalone target for easier testing
989include/generated/autoksyms.h: FORCE

--- 242 unchanged lines hidden (view full) ---

1232PHONY += modules_install
1233modules_install: _modinst_ _modinst_post
1234
1235PHONY += _modinst_
1236_modinst_:
1237 @rm -rf $(MODLIB)/kernel
1238 @rm -f $(MODLIB)/source
1239 @mkdir -p $(MODLIB)/kernel
1240 @ln -s `cd $(srctree) && /bin/pwd` $(MODLIB)/source
1240 @ln -s $(abspath $(srctree)) $(MODLIB)/source
1241 @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
1242 rm -f $(MODLIB)/build ; \
1243 ln -s $(CURDIR) $(MODLIB)/build ; \
1244 fi
1245 @cp -f $(objtree)/modules.order $(MODLIB)/
1246 @cp -f $(objtree)/modules.builtin $(MODLIB)/
1247 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
1248

--- 375 unchanged lines hidden (view full) ---

1624 @echo $(KERNELVERSION)
1625
1626image_name:
1627 @echo $(KBUILD_IMAGE)
1628
1629# Clear a bunch of variables before executing the submake
1630tools/: FORCE
1631 $(Q)mkdir -p $(objtree)/tools
1241 @if [ ! $(objtree) -ef $(MODLIB)/build ]; then \
1242 rm -f $(MODLIB)/build ; \
1243 ln -s $(CURDIR) $(MODLIB)/build ; \
1244 fi
1245 @cp -f $(objtree)/modules.order $(MODLIB)/
1246 @cp -f $(objtree)/modules.builtin $(MODLIB)/
1247 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
1248

--- 375 unchanged lines hidden (view full) ---

1624 @echo $(KERNELVERSION)
1625
1626image_name:
1627 @echo $(KBUILD_IMAGE)
1628
1629# Clear a bunch of variables before executing the submake
1630tools/: FORCE
1631 $(Q)mkdir -p $(objtree)/tools
1632 $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(shell cd $(objtree) && /bin/pwd) subdir=tools -C $(src)/tools/
1632 $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objtree)) subdir=tools -C $(src)/tools/
1633
1634tools/%: FORCE
1635 $(Q)mkdir -p $(objtree)/tools
1633
1634tools/%: FORCE
1635 $(Q)mkdir -p $(objtree)/tools
1636 $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(shell cd $(objtree) && /bin/pwd) subdir=tools -C $(src)/tools/ $*
1636 $(Q)$(MAKE) LDFLAGS= MAKEFLAGS="$(tools_silent) $(filter --j% -j,$(MAKEFLAGS))" O=$(abspath $(objtree)) subdir=tools -C $(src)/tools/ $*
1637
1638# Single targets
1639# ---------------------------------------------------------------------------
1640# Single targets are compatible with:
1641# - build with mixed source and output
1642# - build with separate output dir 'make O=...'
1643# - external modules
1644#

--- 83 unchanged lines hidden ---
1637
1638# Single targets
1639# ---------------------------------------------------------------------------
1640# Single targets are compatible with:
1641# - build with mixed source and output
1642# - build with separate output dir 'make O=...'
1643# - external modules
1644#

--- 83 unchanged lines hidden ---