Move all description related config options into its own section.

* debian/bin/gencontrol.py: Handle description parts.
* debian/config: Update.
* debian/lib/python/debian_linux/config.py: Recognize new section.
* debian/lib/python/debian_linux/gencontrol.py: Remove old code.

svn path=/dists/trunk/linux-2.6/; revision=14469
This commit is contained in:
Bastian Blank 2009-10-27 16:35:16 +00:00
parent 6e6c9c982b
commit e39e268dbd
22 changed files with 179 additions and 162 deletions

View File

@ -73,8 +73,12 @@ class Gencontrol(Base):
def do_flavour_setup(self, vars, makeflags, arch, featureset, flavour, extra): def do_flavour_setup(self, vars, makeflags, arch, featureset, flavour, extra):
config_base = self.config.merge('base', arch, featureset, flavour) config_base = self.config.merge('base', arch, featureset, flavour)
config_description = self.config.merge('description', arch, featureset, flavour)
config_image = self.config.merge('image', arch, featureset, flavour) config_image = self.config.merge('image', arch, featureset, flavour)
vars['class'] = config_description['hardware']
vars['longclass'] = config_description.get('hardware-long') or vars['class']
vars['localversion-image'] = vars['localversion'] vars['localversion-image'] = vars['localversion']
override_localversion = config_image.get('override-localversion', None) override_localversion = config_image.get('override-localversion', None)
if override_localversion is not None: if override_localversion is not None:
@ -106,6 +110,7 @@ class Gencontrol(Base):
headers = self.templates["control.headers"] headers = self.templates["control.headers"]
config_entry_base = self.config.merge('base', arch, featureset, flavour) config_entry_base = self.config.merge('base', arch, featureset, flavour)
config_entry_description = self.config.merge('description', arch, featureset, flavour)
config_entry_image = self.config.merge('image', arch, featureset, flavour) config_entry_image = self.config.merge('image', arch, featureset, flavour)
config_entry_relations = self.config.merge('relations', arch, featureset, flavour) config_entry_relations = self.config.merge('relations', arch, featureset, flavour)
@ -136,12 +141,12 @@ class Gencontrol(Base):
image_fields['Conflicts'].append(PackageRelationGroup([a])) image_fields['Conflicts'].append(PackageRelationGroup([a]))
image_fields['Depends'].append(l_depends) image_fields['Depends'].append(l_depends)
desc_parts = self.config.get_merge('image', arch, featureset, flavour, 'desc-parts') desc_parts = self.config.get_merge('description', arch, featureset, flavour, 'parts')
if desc_parts: if desc_parts:
desc = image_fields['Description'] desc = image_fields['Description']
for part in desc_parts[::-1]: for part in desc_parts[::-1]:
desc.append(config_entry_image['desc-long-part-' + part]) desc.append(config_entry_description['part-long-' + part])
desc.append_short(config_entry_image.get('desc-short-part-' + part, '')) desc.append_short(config_entry_description.get('part-short-' + part, ''))
packages_dummy = [] packages_dummy = []
packages_own = [] packages_own = []

View File

@ -7,14 +7,14 @@ kernel-arch: alpha
[image] [image]
suggests: aboot, fdutils suggests: aboot, fdutils
[alpha-generic_base] [alpha-generic_description]
class: Alpha hardware: Alpha
longclass: DEC Alpha systems with extended kernel start address (Wildfire, Titan, Marvel) hardware-long: DEC Alpha systems with extended kernel start address (Wildfire, Titan, Marvel)
[alpha-smp_base] [alpha-smp_description]
class: Alpha SMP hardware: Alpha SMP
longclass: DEC Alpha SMP systems with extended kernel start address (Wildfire, Titan, Marvel) hardware-long: DEC Alpha SMP systems with extended kernel start address (Wildfire, Titan, Marvel)
[alpha-legacy_base] [alpha-legacy_description]
class: Alpha Legacy hardware: Alpha Legacy
longclass: DEC Alpha systems with legacy kernel start address hardware-long: DEC Alpha systems with legacy kernel start address

View File

@ -1,8 +1,8 @@
[base] [base]
flavours: alpha flavours: alpha
[alpha_base] [alpha_description]
class: Alpha hardware: Alpha
[alpha_image] [alpha_image]
configs: alpha/config.alpha-generic configs: alpha/config.alpha-generic

View File

@ -13,12 +13,12 @@ configs:
amd64/config amd64/config
suggests: grub | lilo suggests: grub | lilo
[amd64_base] [amd64_description]
class: 64-bit PCs hardware: 64-bit PCs
longclass: PCs with AMD64 or Intel 64 processors hardware-long: PCs with AMD64 or Intel 64 processors
parts: xen
[amd64_image] [amd64_image]
configs: configs:
kernelarch-x86/config-arch-64 kernelarch-x86/config-arch-64
amd64/config.amd64 amd64/config.amd64
desc-parts: xen

View File

@ -10,48 +10,48 @@ kernel-arch: arm
[image] [image]
suggests: fdutils suggests: fdutils
[iop32x_base]
class: IOP32x
longclass: IOP32x based systems (Thecus N2100, etc)
[iop32x_build] [iop32x_build]
image-file: arch/arm/boot/zImage image-file: arch/arm/boot/zImage
[iop32x_description]
hardware: IOP32x
hardware-long: IOP32x based systems (Thecus N2100, etc)
[iop32x_image] [iop32x_image]
# Thecus N2100: 1441792 - 8 = 1441784 # Thecus N2100: 1441792 - 8 = 1441784
check-size: 1441784 check-size: 1441784
[ixp4xx_base]
class: IXP4xx
longclass: IXP4xx based systems (Linksys NSLU2, etc)
[ixp4xx_build] [ixp4xx_build]
image-file: arch/arm/boot/zImage image-file: arch/arm/boot/zImage
[ixp4xx_description]
hardware: IXP4xx
hardware-long: IXP4xx based systems (Linksys NSLU2, etc)
[ixp4xx_image] [ixp4xx_image]
# Linksys NSLU2: 1441792 - 16 - 16 = 1441760 # Linksys NSLU2: 1441792 - 16 - 16 = 1441760
check-size: 1441760 check-size: 1441760
[kirkwood_base]
class: Marvell Kirkwood
longclass: Marvell Kirkwood based systems (SheevaPlug, QNAP TS-119/TS-219, etc)
[kirkwood_build] [kirkwood_build]
image-file: arch/arm/boot/zImage image-file: arch/arm/boot/zImage
[kirkwood_description]
hardware: Marvell Kirkwood
hardware-long: Marvell Kirkwood based systems (SheevaPlug, QNAP TS-119/TS-219, etc)
[kirkwood_image] [kirkwood_image]
recommends: uboot-mkimage recommends: uboot-mkimage
# SheevaPlug: 4194304 - 8 - 64 = 4194232 # SheevaPlug: 4194304 - 8 - 64 = 4194232
# QNAP TS-119/TS-219: 2097152 - 8 - 64 = 2097080 # QNAP TS-119/TS-219: 2097152 - 8 - 64 = 2097080
check-size: 2097080 check-size: 2097080
[orion5x_base]
class: Marvell Orion
longclass: Marvell Orion 5181, 5182 and 5281 based systems (QNAP TS-109/TS-209, etc)
[orion5x_build] [orion5x_build]
image-file: arch/arm/boot/zImage image-file: arch/arm/boot/zImage
[orion5x_description]
hardware: Marvell Orion
hardware-long: Marvell Orion 5181, 5182 and 5281 based systems (QNAP TS-109/TS-209, etc)
[orion5x_image] [orion5x_image]
recommends: uboot-mkimage recommends: uboot-mkimage
# D-Link DNS-323: 1572864 - 8 - 64 = 1572792 # D-Link DNS-323: 1572864 - 8 - 64 = 1572792
@ -59,6 +59,6 @@ recommends: uboot-mkimage
# QNAP TS-109/TS-209 & TS-409: 2097152 - 8 - 64 = 2097080 # QNAP TS-109/TS-209 & TS-409: 2097152 - 8 - 64 = 2097080
check-size: 1572792 check-size: 1572792
[versatile_base] [versatile_description]
class: Versatile hardware: Versatile
longclass: Versatile systems (PB, AB, Qemu) hardware-long: Versatile systems (PB, AB, Qemu)

View File

@ -31,9 +31,11 @@ enabled: false
[featureset-xen_base] [featureset-xen_base]
enabled: false enabled: false
[image] [description]
desc-long-part-xen: This kernel also runs on a Xen hypervisor. part-long-xen: This kernel also runs on a Xen hypervisor.
It supports only unprivileged (domU) operation. It supports only unprivileged (domU) operation.
[image]
initramfs-generators: initramfs-tools initramfs-fallback initramfs-generators: initramfs-tools initramfs-fallback
type: plain type: plain

View File

@ -1,6 +1,7 @@
[description]
part-long-openvz: This kernel includes support for OpenVZ container-based virtualization.
part-short-openvz: OpenVZ support
parts: openvz
[image] [image]
depends: vzctl depends: vzctl
desc-long-part-openvz: This kernel includes support for OpenVZ container-based virtualization.
desc-parts: openvz
desc-short-part-openvz: OpenVZ support

View File

@ -1,5 +1,7 @@
[description]
part-long-vserver: This kernel includes support for Linux-VServer virtualization.
part-short-vserver: Linux-VServer support
parts: vserver
[image] [image]
desc-long-part-vserver: This kernel includes support for Linux-VServer virtualization.
desc-parts: vserver
desc-short-part-vserver: Linux-VServer support
recommends: util-vserver recommends: util-vserver

View File

@ -1,5 +1,5 @@
[image] [description]
desc-long-part-xenold: This kernel only runs on a Xen hypervisor. part-long-xenold: This kernel only runs on a Xen hypervisor.
It supports both privileged (dom0) and unprivileged (domU) operation. It supports both privileged (dom0) and unprivileged (domU) operation.
desc-parts: xenold part-short-xenold: oldstyle Xen support
desc-short-part-xenold: oldstyle Xen support parts: xenold

View File

@ -9,22 +9,26 @@ kernel-arch: parisc
[image] [image]
suggests: palo suggests: palo
[parisc_base] [parisc_description]
class: 32-bit PA-RISC hardware: 32-bit PA-RISC
[parisc-smp_base] [parisc-smp_description]
class: multiprocessor 32-bit PA-RISC hardware: multiprocessor 32-bit PA-RISC
[parisc64_base] [parisc64_base]
cflags: -fno-cse-follow-jumps cflags: -fno-cse-follow-jumps
class: 64-bit PA-RISC
override-host-type: hppa64-linux-gnu override-host-type: hppa64-linux-gnu
[parisc64_description]
hardware: 64-bit PA-RISC
[parisc64-smp_base] [parisc64-smp_base]
cflags: -fno-cse-follow-jumps cflags: -fno-cse-follow-jumps
class: multiprocessor 64-bit PA-RISC
override-host-type: hppa64-linux-gnu override-host-type: hppa64-linux-gnu
[parisc64-smp_description]
hardware: multiprocessor 64-bit PA-RISC
[relations] [relations]
gcc-4.3: gcc-4.3, binutils-hppa64, gcc-4.3-hppa64 gcc-4.3: gcc-4.3, binutils-hppa64, gcc-4.3-hppa64

View File

@ -16,42 +16,42 @@ configs:
i386/config i386/config
suggests: grub | lilo suggests: grub | lilo
[486_base] [486_description]
class: old PCs hardware: old PCs
longclass: PCs with a 486, Pentium or compatible processor hardware-long: PCs with a 486, Pentium or compatible processor
[486_image] [486_image]
configs: configs:
kernelarch-x86/config-arch-32 kernelarch-x86/config-arch-32
[686_base] [686_description]
class: modern PCs hardware: modern PCs
longclass: PCs with Intel Pentium Pro/II/III/4/4M/D/M, Xeon, Celeron, Core or Atom; AMD K6, Athlon (K7), Duron, Opteron, Sempron, Turion or Phenom; Transmeta Efficeon; VIA C3 "Nehemiah" or C7 processors hardware-long: PCs with Intel Pentium Pro/II/III/4/4M/D/M, Xeon, Celeron, Core or Atom; AMD K6, Athlon (K7), Duron, Opteron, Sempron, Turion or Phenom; Transmeta Efficeon; VIA C3 "Nehemiah" or C7 processors
[686_image] [686_image]
configs: configs:
kernelarch-x86/config-arch-32 kernelarch-x86/config-arch-32
recommends: libc6-i686 recommends: libc6-i686
[686-bigmem_base] [686-bigmem_description]
class: PCs with 4GB+ RAM hardware: PCs with 4GB+ RAM
longclass: PCs with 4-64GB RAM, using PAE (Physical Address Extension) hardware-long: PCs with 4-64GB RAM, using PAE (Physical Address Extension)
parts: xen
[686-bigmem_image] [686-bigmem_image]
configs: configs:
kernelarch-x86/config-arch-32 kernelarch-x86/config-arch-32
desc-parts: xen
recommends: libc6-i686 recommends: libc6-i686
[amd64_base] [amd64_description]
class: 64-bit PCs hardware: 64-bit PCs
longclass: PCs with AMD64 or Intel 64 processors hardware-long: PCs with AMD64 or Intel 64 processors
parts: xen
[amd64_image] [amd64_image]
configs: configs:
kernelarch-x86/config-arch-64 kernelarch-x86/config-arch-64
amd64/config amd64/config
amd64/config.amd64 amd64/config.amd64
desc-parts: xen
recommends: libc6-i686 recommends: libc6-i686

View File

@ -2,8 +2,10 @@
flavours: flavours:
686 686
[686_description]
parts: xen
[686_image] [686_image]
configs: configs:
i386/config.686-bigmem i386/config.686-bigmem
desc-parts: xen

View File

@ -12,9 +12,9 @@ flavours:
i386 i386
amd64 amd64
[686_base] [686_description]
class: modern PCs hardware: modern PCs
longclass: PCs with Intel Pentium Pro/II/III/4/4M/D/M, Xeon, Celeron, Core, Atom; AMD K6, Athlon, Duron, Opteron, Sempron, Turion, Phenom; Transmeta Efficeon; VIA C3 "Nehemiah" or C7 processors hardware-long: PCs with Intel Pentium Pro/II/III/4/4M/D/M, Xeon, Celeron, Core, Atom; AMD K6, Athlon, Duron, Opteron, Sempron, Turion, Phenom; Transmeta Efficeon; VIA C3 "Nehemiah" or C7 processors
[686_image] [686_image]
configs: configs:

View File

@ -9,8 +9,8 @@ kernel-arch: ia64
[image] [image]
suggests: elilo, fdutils suggests: elilo, fdutils
[itanium_base] [itanium_description]
class: Itanium hardware: Itanium
[mckinley_base] [mckinley_description]
class: Itanium II hardware: Itanium II

View File

@ -16,30 +16,30 @@ kernel-arch: m68k
initramfs: false initramfs: false
suggests: vmelilo, fdutils suggests: vmelilo, fdutils
[amiga_base] [amiga_description]
class: Amiga hardware: Amiga
[atari_base] [atari_description]
class: Atari hardware: Atari
[bvme6000_base] [bvme6000_description]
class: BVM BVME4000 and BVME6000 hardware: BVM BVME4000 and BVME6000
[hp_base] [hp_description]
class: HP hardware: HP
[mac_base] [mac_description]
class: Macintosh hardware: Macintosh
[mvme147_base] [mvme147_description]
class: Motorola MVME147 hardware: Motorola MVME147
[mvme16x_base] [mvme16x_description]
class: Motorola MVME162/6/7, MVME172/7 hardware: Motorola MVME162/6/7, MVME172/7
[q40_base] [q40_description]
class: Q40 and Q60 hardware: Q40 and Q60
[sun3_base] [sun3_description]
class: sun3 hardware: sun3

View File

@ -11,26 +11,26 @@ kernel-arch: mips
[image] [image]
initramfs: false initramfs: false
[r4k-ip22_base] [r4k-ip22_description]
class: SGI IP22 hardware: SGI IP22
longclass: SGI IP22 systems (Indy, Indigo2) hardware-long: SGI IP22 systems (Indy, Indigo2)
[r5k-ip32_base] [r5k-ip32_description]
class: SGI IP32 hardware: SGI IP32
longclass: SGI IP32 systems (O2) hardware-long: SGI IP32 systems (O2)
[sb1-bcm91250a_base] [sb1-bcm91250a_description]
class: BCM91250A hardware: BCM91250A
longclass: Broadcom BCM91250A systems (aka SWARM) hardware-long: Broadcom BCM91250A systems (aka SWARM)
[sb1a-bcm91480b_base] [sb1a-bcm91480b_description]
class: BCM91480B hardware: BCM91480B
longclass: Broadcom BCM91480B systems (aka BigSur) hardware-long: Broadcom BCM91480B systems (aka BigSur)
[4kc-malta_base] [4kc-malta_description]
class: MIPS Malta hardware: MIPS Malta
longclass: MIPS Malta boards hardware-long: MIPS Malta boards
[5kc-malta_base] [5kc-malta_description]
class: MIPS Malta (64-bit) hardware: MIPS Malta (64-bit)
longclass: MIPS Malta boards (64-bit) hardware-long: MIPS Malta boards (64-bit)

View File

@ -10,22 +10,22 @@ kernel-arch: mips
[image] [image]
initramfs: false initramfs: false
[r5k-cobalt_base] [r5k-cobalt_description]
class: Cobalt hardware: Cobalt
longclass: Cobalt systems (Qube, RaQ, Qube2, RaQ2) hardware-long: Cobalt systems (Qube, RaQ, Qube2, RaQ2)
[sb1-bcm91250a_base] [sb1-bcm91250a_description]
class: BCM91250A hardware: BCM91250A
longclass: Broadcom BCM91250A systems (aka SWARM) hardware-long: Broadcom BCM91250A systems (aka SWARM)
[sb1a-bcm91480b_base] [sb1a-bcm91480b_description]
class: BCM91480B hardware: BCM91480B
longclass: Broadcom BCM91480B systems (aka BigSur) hardware-long: Broadcom BCM91480B systems (aka BigSur)
[4kc-malta_base] [4kc-malta_description]
class: MIPS Malta hardware: MIPS Malta
longclass: MIPS Malta boards hardware-long: MIPS Malta boards
[5kc-malta_base] [5kc-malta_description]
class: MIPS Malta (64-bit) hardware: MIPS Malta (64-bit)
longclass: MIPS Malta boards (64-bit) hardware-long: MIPS Malta boards (64-bit)

View File

@ -10,14 +10,14 @@ kernel-arch: powerpc
[image] [image]
suggests: mkvmlinuz suggests: mkvmlinuz
[powerpc_base] [powerpc_description]
class: uniprocessor 32-bit PowerPC hardware: uniprocessor 32-bit PowerPC
[powerpc-smp_base] [powerpc-smp_description]
class: multiprocessor 32-bit PowerPC hardware: multiprocessor 32-bit PowerPC
[powerpc-smp_image] [powerpc-smp_image]
configs: powerpc/config.powerpc powerpc/config.powerpc-smp configs: powerpc/config.powerpc powerpc/config.powerpc-smp
[powerpc64_base] [powerpc64_description]
class: 64-bit PowerPC hardware: 64-bit PowerPC

View File

@ -6,41 +6,43 @@ flavours:
s390x-tape s390x-tape
kernel-arch: s390 kernel-arch: s390
[description]
part-long-reader: This kernel has support to IPL (boot) from a VM reader or DASD device.
part-long-tape: This kernel has support to IPL (boot) from a tape.
part-short-tape: IPL from tape
[image] [image]
desc-long-part-reader: This kernel has support to IPL (boot) from a VM reader or DASD device.
desc-long-part-tape: This kernel has support to IPL (boot) from a tape.
desc-short-part-tape: IPL from tape
suggests: s390-tools suggests: s390-tools
[s390_base] [s390_description]
class: IBM S/390 hardware: IBM S/390
parts: reader
[s390_image]
desc-parts: reader
[s390-tape_base] [s390-tape_base]
class: IBM S/390
modules: false modules: false
[s390-tape_description]
hardware: IBM S/390
parts: tape
[s390-tape_image] [s390-tape_image]
initramfs: false initramfs: false
desc-parts: tape
override-localversion: s390 override-localversion: s390
type: plain-s390-tape type: plain-s390-tape
[s390x_base] [s390x_description]
class: IBM zSeries hardware: IBM zSeries
parts: reader
[s390x_image]
desc-parts: reader
[s390x-tape_base] [s390x-tape_base]
class: IBM zSeries
modules: false modules: false
[s390x-tape_description]
hardware: IBM zSeries
parts: tape
[s390x-tape_image] [s390x-tape_image]
initramfs: false initramfs: false
desc-parts: tape
override-localversion: s390x override-localversion: s390x
type: plain-s390-tape type: plain-s390-tape

View File

@ -9,15 +9,15 @@ kernel-arch: sparc
[image] [image]
suggests: silo, fdutils suggests: silo, fdutils
[sparc32_base] [sparc32_description]
class: uniprocessor sparc32 (sun4m) hardware: uniprocessor sparc32 (sun4m)
[sparc32_image] [sparc32_image]
image-postproc: sparc32-image-postproc image-postproc: sparc32-image-postproc
[sparc64_base] [sparc64_description]
class: uniprocessor 64-bit UltraSPARC hardware: uniprocessor 64-bit UltraSPARC
[sparc64-smp_base] [sparc64-smp_description]
class: multiprocessor 64-bit UltraSPARC hardware: multiprocessor 64-bit UltraSPARC

View File

@ -113,9 +113,11 @@ class ConfigCoreHierarchy(ConfigCore):
'modules': SchemaItemBoolean(), 'modules': SchemaItemBoolean(),
}, },
'build': {}, 'build': {},
'description': {
'parts': SchemaItemList(),
},
'image': { 'image': {
'configs': SchemaItemList(), 'configs': SchemaItemList(),
'desc-parts': SchemaItemList(),
'initramfs': SchemaItemBoolean(), 'initramfs': SchemaItemBoolean(),
'initramfs-generators': SchemaItemList(), 'initramfs-generators': SchemaItemList(),
}, },

View File

@ -207,9 +207,6 @@ class Gencontrol(object):
def do_flavour(self, packages, makefile, arch, featureset, flavour, vars, makeflags, extra): def do_flavour(self, packages, makefile, arch, featureset, flavour, vars, makeflags, extra):
config_base = self.config.merge('base', arch, featureset, flavour) config_base = self.config.merge('base', arch, featureset, flavour)
vars['class'] = config_base['class']
vars['longclass'] = config_base.get('longclass') or vars['class']
vars['localversion'] += '-' + flavour vars['localversion'] += '-' + flavour
self.do_flavour_setup(vars, makeflags, arch, featureset, flavour, extra) self.do_flavour_setup(vars, makeflags, arch, featureset, flavour, extra)