1 |
VERSION = 1 |
VERSION = 1 |
2 |
PATCHLEVEL = 13 |
PATCHLEVEL = 17 |
3 |
SUBLEVEL = 4 |
SUBLEVEL = 1 |
4 |
EXTRAVERSION = |
EXTRAVERSION = |
5 |
NAME = Unnamed |
NAME = Unnamed |
6 |
|
|
168 |
CROSS_COMPILE := $(shell grep ^CONFIG_CROSS_COMPILER_PREFIX .config 2>/dev/null) |
CROSS_COMPILE := $(shell grep ^CONFIG_CROSS_COMPILER_PREFIX .config 2>/dev/null) |
169 |
CROSS_COMPILE := $(subst CONFIG_CROSS_COMPILER_PREFIX=,,$(CROSS_COMPILE)) |
CROSS_COMPILE := $(subst CONFIG_CROSS_COMPILER_PREFIX=,,$(CROSS_COMPILE)) |
170 |
CROSS_COMPILE := $(subst ",,$(CROSS_COMPILE)) |
CROSS_COMPILE := $(subst ",,$(CROSS_COMPILE)) |
171 |
|
#") |
172 |
endif |
endif |
173 |
|
|
174 |
# SUBARCH tells the usermode build what the underlying arch is. That is set |
# SUBARCH tells the usermode build what the underlying arch is. That is set |
358 |
# To avoid any implicit rule to kick in, define an empty command. |
# To avoid any implicit rule to kick in, define an empty command. |
359 |
scripts/basic/%: scripts_basic ; |
scripts/basic/%: scripts_basic ; |
360 |
|
|
361 |
|
# This target generates Kbuild's and Config.in's from *.c files |
362 |
|
PHONY += gen_build_files |
363 |
|
gen_build_files: $(wildcard $(srctree)/*/*.c) $(wildcard $(srctree)/*/*/*.c) |
364 |
|
$(Q)$(srctree)/scripts/gen_build_files.sh $(srctree) $(objtree) |
365 |
|
|
366 |
|
# bbox: we have helpers in applets/ |
367 |
|
# we depend on scripts_basic, since scripts/basic/fixdep |
368 |
|
# must be built before any other host prog |
369 |
|
PHONY += applets_dir |
370 |
|
applets_dir: scripts_basic gen_build_files |
371 |
|
$(Q)$(MAKE) $(build)=applets |
372 |
|
|
373 |
|
applets/%: applets_dir ; |
374 |
|
|
375 |
PHONY += outputmakefile |
PHONY += outputmakefile |
376 |
# outputmakefile generates a Makefile in the output directory, if using a |
# outputmakefile generates a Makefile in the output directory, if using a |
377 |
# separate output directory. This allows convenient use of make in the |
# separate output directory. This allows convenient use of make in the |
433 |
-include $(srctree)/arch/$(ARCH)/Makefile |
-include $(srctree)/arch/$(ARCH)/Makefile |
434 |
export KBUILD_DEFCONFIG |
export KBUILD_DEFCONFIG |
435 |
|
|
436 |
config %config: scripts_basic outputmakefile FORCE |
config %config: scripts_basic outputmakefile gen_build_files FORCE |
437 |
$(Q)mkdir -p include |
$(Q)mkdir -p include |
438 |
$(Q)$(MAKE) $(build)=scripts/kconfig $@ |
$(Q)$(MAKE) $(build)=scripts/kconfig $@ |
439 |
$(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease |
$(Q)$(MAKE) -C $(srctree) KBUILD_SRC= .kernelrelease |
446 |
ifeq ($(KBUILD_EXTMOD),) |
ifeq ($(KBUILD_EXTMOD),) |
447 |
# Additional helpers built in scripts/ |
# Additional helpers built in scripts/ |
448 |
# Carefully list dependencies so we do not try to build scripts twice |
# Carefully list dependencies so we do not try to build scripts twice |
449 |
# in parrallel |
# in parallel |
450 |
PHONY += scripts |
PHONY += scripts |
451 |
scripts: scripts_basic include/config/MARKER |
scripts: gen_build_files scripts_basic include/config/MARKER |
452 |
$(Q)$(MAKE) $(build)=$(@) |
$(Q)$(MAKE) $(build)=$(@) |
453 |
|
|
454 |
scripts_basic: include/autoconf.h |
scripts_basic: include/autoconf.h |
509 |
# with it and forgot to run make oldconfig. |
# with it and forgot to run make oldconfig. |
510 |
# If kconfig.d is missing then we are probarly in a cleaned tree so |
# If kconfig.d is missing then we are probarly in a cleaned tree so |
511 |
# we execute the config step to be sure to catch updated Kconfig files |
# we execute the config step to be sure to catch updated Kconfig files |
512 |
include/autoconf.h: .kconfig.d .config |
include/autoconf.h: .kconfig.d .config $(wildcard $(srctree)/*/*.c) $(wildcard $(srctree)/*/*/*.c) | gen_build_files |
513 |
$(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig |
$(Q)$(MAKE) -f $(srctree)/Makefile silentoldconfig |
514 |
|
|
515 |
|
include/usage.h: gen_build_files |
516 |
|
|
517 |
else |
else |
518 |
# Dummy target needed, because used as prerequisite |
# Dummy target needed, because used as prerequisite |
519 |
include/autoconf.h: ; |
include/autoconf.h: ; |
813 |
$(Q)rm -f $(MODVERDIR)/* |
$(Q)rm -f $(MODVERDIR)/* |
814 |
endif |
endif |
815 |
|
|
816 |
archprepare: prepare1 scripts_basic |
archprepare: prepare1 scripts_basic applets_dir |
817 |
|
|
818 |
prepare0: archprepare FORCE |
prepare0: archprepare FORCE |
819 |
$(Q)$(MAKE) $(build)=. |
$(Q)$(MAKE) $(build)=. |
1003 |
mrproper: clean archmrproper $(mrproper-dirs) |
mrproper: clean archmrproper $(mrproper-dirs) |
1004 |
$(call cmd,rmdirs) |
$(call cmd,rmdirs) |
1005 |
$(call cmd,rmfiles) |
$(call cmd,rmfiles) |
1006 |
|
@find -name Config.src | sed 's/.src$$/.in/' | xargs -r rm -f |
1007 |
|
@find -name Kbuild.src | sed 's/.src$$//' | xargs -r rm -f |
1008 |
|
|
1009 |
# distclean |
# distclean |
1010 |
# |
# |