Each flavour has a human readable description in its flavour vars.
This is intended to describe the system type in words, for example as
here for powerpc:
desc="32-bit PowerPC"
desc="32-bit PowerPC SMP"
desc="64-bit PowerPC SMP"
On x86 we commonly share flavour names and there this is currently
rather unhelp:
desc="x86/x86_64"
Additionally for these shared flavours is it impossible to have an accurate
description as it must include all possible architectures, even though
the resultant description is on an architecture specific binary package.
Introduce a human_arch configuration at the archtecture level, this can
then be used as a component in the flavour description. Use this to
add descriptions for the x86 architectures:
human_arch = 64 bit x86
human_arch = 32 bit x86
Allowing descriptions as below to be specified:
desc="=HUMAN= SMP"
Resulting in full descriptions as below:
Linux kernel image for version 3.2.0 on 64 bit x86 SMP
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
12 files changed:
arch="i386 amd64"
supported="Generic"
target="Geared toward x86_64 systems."
arch="i386 amd64"
supported="Generic"
target="Geared toward x86_64 systems."
bootloader="grub-pc | grub-efi-amd64 | grub-efi-ia32 | grub | lilo (>= 19.1)"
provides="kvm-api-4, redhat-cluster-modules, ivtv-modules, ndiswrapper-modules-1.9"
bootloader="grub-pc | grub-efi-amd64 | grub-efi-ia32 | grub | lilo (>= 19.1)"
provides="kvm-api-4, redhat-cluster-modules, ivtv-modules, ndiswrapper-modules-1.9"
arch="i386"
supported="Generic"
target="Geared toward 32 bit desktop systems with more than 4GB RAM."
arch="i386"
supported="Generic"
target="Geared toward 32 bit desktop systems with more than 4GB RAM."
bootloader="grub-pc | grub | lilo (>= 19.1)"
provides="kvm-api-4, redhat-cluster-modules, ivtv-modules, ndiswrapper-modules-1.9"
bootloader="grub-pc | grub | lilo (>= 19.1)"
provides="kvm-api-4, redhat-cluster-modules, ivtv-modules, ndiswrapper-modules-1.9"
arch="armel armhf"
supported="TI OMAP3"
arch="armel armhf"
supported="TI OMAP3"
-desc="TI OMAP3-based systems"
+desc="TI OMAP3-based =HUMAN= systems"
target="Targeted towards boards such as Beagleboard, Gumstix, IGEPv2, etc."
bootloader="flash-kernel"
provides=""
target="Targeted towards boards such as Beagleboard, Gumstix, IGEPv2, etc."
bootloader="flash-kernel"
provides=""
arch="i386 amd64"
supported="Virtual"
target="Geared toward virtual appliances."
arch="i386 amd64"
supported="Virtual"
target="Geared toward virtual appliances."
+desc="=HUMAN= Virtual Guests"
bootloader="grub-pc | grub | lilo (>= 19.1)"
provides="kvm-api-4, redhat-cluster-modules, ivtv-modules, ndiswrapper-modules-1.9"
bootloader="grub-pc | grub | lilo (>= 19.1)"
provides="kvm-api-4, redhat-cluster-modules, ivtv-modules, ndiswrapper-modules-1.9"
Description: Linux kernel tools for version PKGVER-ABINUM
This package provides the architecture dependant parts for kernel
version locked tools for version PKGVER-ABINUM on
Description: Linux kernel tools for version PKGVER-ABINUM
This package provides the architecture dependant parts for kernel
version locked tools for version PKGVER-ABINUM on
build_arch = x86_64
header_arch = $(build_arch)
asm_link = x86
build_arch = x86_64
header_arch = $(build_arch)
asm_link = x86
+human_arch = ARM (soft float)
build_arch = arm
header_arch = arm
asm_link = arm
build_arch = arm
header_arch = arm
asm_link = arm
+human_arch = ARM (hard float)
build_arch = arm
header_arch = arm
asm_link = arm
build_arch = arm
header_arch = arm
asm_link = arm
build_arch = i386
header_arch = x86_64
asm_link = x86
build_arch = i386
header_arch = x86_64
asm_link = x86
+human_arch = PowerPC (32 bit userspace)
build_arch = powerpc
header_arch = $(build_arch)
asm_link = $(build_arch)
build_arch = powerpc
header_arch = $(build_arch)
asm_link = $(build_arch)
+human_arch = PowerPC (64 bit userspace)
build_arch = powerpc
header_arch = $(build_arch)
asm_link = $(build_arch)
build_arch = powerpc
header_arch = $(build_arch)
asm_link = $(build_arch)
cat $$i | sed -e 's/PKGVER/$(release)/g' \
-e 's/ABINUM/$(abinum)/g' \
-e 's/SRCPKGNAME/$(src_pkg_name)/g' \
cat $$i | sed -e 's/PKGVER/$(release)/g' \
-e 's/ABINUM/$(abinum)/g' \
-e 's/SRCPKGNAME/$(src_pkg_name)/g' \
+ -e 's/=HUMAN=/$(human_arch)/g' \
> $$new; \
done
flavours="$(wildcard $(DEBIAN)/control.d/vars.* $(DEBIAN)/sub-flavours/*.vars)";\
> $$new; \
done
flavours="$(wildcard $(DEBIAN)/control.d/vars.* $(DEBIAN)/sub-flavours/*.vars)";\
sed -e 's/PKGVER/$(release)/g' \
-e 's/ABINUM/$(abinum)/g' \
-e 's/SRCPKGNAME/$(src_pkg_name)/g' \
sed -e 's/PKGVER/$(release)/g' \
-e 's/ABINUM/$(abinum)/g' \
-e 's/SRCPKGNAME/$(src_pkg_name)/g' \
+ -e 's/=HUMAN=/$(human_arch)/g' \
>> $(DEBIAN)/control.stub; \
done
cp $(DEBIAN)/control.stub $(DEBIAN)/control
>> $(DEBIAN)/control.stub; \
done
cp $(DEBIAN)/control.stub $(DEBIAN)/control