Introduce new default_config variable in
Makefile.inc. It can be used to specify the flavour whose config file will be used for building kernel headers. svn path=/branches/linux-kernel-2.6.12/; revision=3395
This commit is contained in:
parent
2b67fabed9
commit
e1d60eb271
|
@ -2,7 +2,7 @@
|
||||||
# This Makefile executes the unpack/build/binary targets for a single
|
# This Makefile executes the unpack/build/binary targets for a single
|
||||||
# subarch, which is passed in the subarch variable. Empty subarch
|
# subarch, which is passed in the subarch variable. Empty subarch
|
||||||
# variable means that we are building for an arch without the subarch.
|
# variable means that we are building for an arch without the subarch.
|
||||||
# Additionally, variables version, abiname and ktver are
|
# Additionally, variables version, abiname and ltver are
|
||||||
# expected to be available (need to be exported from the parent process).
|
# expected to be available (need to be exported from the parent process).
|
||||||
# It is possible to override the flavours by setting the flavours
|
# It is possible to override the flavours by setting the flavours
|
||||||
# variable. It will also be passed a list of source files
|
# variable. It will also be passed a list of source files
|
||||||
|
@ -34,7 +34,6 @@ else
|
||||||
append := $(subarch)-
|
append := $(subarch)-
|
||||||
endif
|
endif
|
||||||
|
|
||||||
default := $(basedir)/config.default
|
|
||||||
configs := $(notdir $(wildcard $(basedir)/config.*))
|
configs := $(notdir $(wildcard $(basedir)/config.*))
|
||||||
configs := $(filter-out config.common config.default, $(configs))
|
configs := $(filter-out config.common config.default, $(configs))
|
||||||
tkdir := linux-source-$(version)
|
tkdir := linux-source-$(version)
|
||||||
|
@ -94,6 +93,22 @@ ccommon += arch/$(karch)/config.common arch/$(karch)/$(subarch)/config.common
|
||||||
bdirs := $(addprefix build-$(subarch)-, $(flavours))
|
bdirs := $(addprefix build-$(subarch)-, $(flavours))
|
||||||
bstamps := $(addprefix build-stamp-$(subarch)-, $(flavours))
|
bstamps := $(addprefix build-stamp-$(subarch)-, $(flavours))
|
||||||
istamps := $(addprefix install-stamp-$(subarch)-, $(flavours))
|
istamps := $(addprefix install-stamp-$(subarch)-, $(flavours))
|
||||||
|
#
|
||||||
|
# We need to determine the default config, the one which we will
|
||||||
|
# use to build the headers with. It does not matter very much which
|
||||||
|
# one is used, but for historical reasons we will look for it like
|
||||||
|
# this:
|
||||||
|
# * If variable default_config is set (may be set in Makefile.inc)
|
||||||
|
# then config file config.$(default_config) will be used as default.
|
||||||
|
# * If the file config.default exists, it will be used as a default.
|
||||||
|
# * Otherwise, the config for the first flavour mentioned in $(flavours)
|
||||||
|
# will be used.
|
||||||
|
#
|
||||||
|
default_list := $(basedir)/config.$(default_config)
|
||||||
|
default_list += $(basedir)/config.default
|
||||||
|
default_list += $(basedir)/config.$(firstword $(flavours))
|
||||||
|
default := $(firstword $(wildcard $(default_list)))
|
||||||
|
|
||||||
#
|
#
|
||||||
# Targets
|
# Targets
|
||||||
#
|
#
|
||||||
|
@ -118,6 +133,7 @@ install-stamp-$(subarch)-%: build-$(subarch)-% build-stamp-$(subarch)-%
|
||||||
touch install-stamp-$(subarch)-$*
|
touch install-stamp-$(subarch)-$*
|
||||||
|
|
||||||
headers-stamp: $(kdir)
|
headers-stamp: $(kdir)
|
||||||
|
@echo "I: Using $(default) as the header configuration file."
|
||||||
cp $(default) $(kdir)/.config
|
cp $(default) $(kdir)/.config
|
||||||
cd $(kdir); $(kpkg_headers_cmd)
|
cd $(kdir); $(kpkg_headers_cmd)
|
||||||
cat $(kdir)/debian/files >> files
|
cat $(kdir)/debian/files >> files
|
||||||
|
|
Loading…
Reference in New Issue