From 32599383b3c784762539cf4bcea10c0e99d7f6e9 Mon Sep 17 00:00:00 2001 From: Jurij Smakov Date: Thu, 19 May 2005 01:01:40 +0000 Subject: [PATCH] Updated README with subarch-specific stuff. svn path=/branches/kernel-image-2.6.11/; revision=3148 --- README | 69 +++++++++++++++++++++++++++++++++++--------- debian/rules.subarch | 1 - 2 files changed, 56 insertions(+), 14 deletions(-) diff --git a/README b/README index 192f3bc75..caf0ee420 100644 --- a/README +++ b/README @@ -1,27 +1,70 @@ +Migrating to the common kernel-image package +-------------------------------------------- +Files for architecture should be placed into arch/. +Minimally, this directory should contain a control.in, config.default +and at least one flavour configuration file config.. It can +optionally contain config.common, Makefile.inc and multiple flavour +configuration files. For arches with subarches the subdirectory +arch// with the same file structure must be created +for each subarch. + Config files ------------ -All the config files live in the arch subdirectory. The config -file for a particular subarch is constructed by concatenating -the following files (any of them can be missing): +Configuration files are constructed dynamically by concatenating a number +of config files as described below. Any of the files, except the .default +and lowest-level . files, may be missing. + +For architecture without subarches: + + Configuration file for kernel-image: + + arch/config.common + arch//config.common + arch//config. + + Configuration file for kernel-headers: + + arch//config.default + +For architecture with subarches: + + y concatenating: + + arch/config.common + arch//config.common + arch///config.common + arch///config. + + Configuration file for kernel-headers: + + arch///config.default -arch/config.common - architecture-independent config file -arch//config.common - subarch-independent config file - for a particular architecture -arch//config. - subarch-specific config file. -arch//config.default - the arch-specific config file used - to build the kernel-headers. It is possible to avoid the inclusion of the arch-independent config file (handy for the transitional period) by setting the -include_common_config variable to 'no' in arch//Makefile.inc. +include_common_config variable to 'no' in Makefile.inc. + +Debian and arch/subarch specific patches +----------------------------- +This is not really settled yet. Ideally we would like to integrate all +this stuff into the kernel-source package. So for now it is probably +reasonable to assume that common-arch debian patches are going to be +in debian/patches directory. As I understand, we will not need the +kernel-tree stuff, as the source with patches is going to accompany each +upload. So we might just place them there along with the list, which will +determine the order of application. For unmerged arch/subarch specific +patches we can do the same in the arch/subarch directory: patches/ +subdir will contain patches and a list. Currently the kernel is patched +using the kernel-source package only. Control file ------------ The master control file debian/control must be generated before the package is uploaded. debian/rules contains the debian/control target, which generates the control file by concatenating the -common debian/control.in and all the arch//control.in -files, and performing the variable substitution. Currently the -following variables are going to be substituted: +common debian/control.in and all the control.in files found in +and in subdirectories of arch/, and performing the variable +substitution. Currently the following variables are going to be +substituted: @karch@ Replaced by the architecture string, identical to DEB_HOST_ARCH, as returned by dpkg-architecture. diff --git a/debian/rules.subarch b/debian/rules.subarch index 25036443b..d623efcd8 100755 --- a/debian/rules.subarch +++ b/debian/rules.subarch @@ -11,7 +11,6 @@ SHELL := sh -e debver := $(version)-$(abiname) uver := $(subst .,_,$(version)) debnum := -$(abiname) -bpkg := kernel-build-$(debver) kbpkg := kernel-kbuild-$(version)-$(abiname) kpatch := /usr/src/kernel-patches/all/$(version)/apply/debian $(version)-$(ktver) DEBIAN_UPSTREAM_VERSION := $(version)