debian/bin/gencontrol.py: Force the existance of some values.

svn path=/dists/trunk/linux-2.6/; revision=10252
This commit is contained in:
Bastian Blank 2008-01-29 13:45:43 +00:00
parent bc6927d169
commit 0e1e2dcab9
1 changed files with 7 additions and 4 deletions

View File

@ -80,15 +80,18 @@ class Gencontrol(Base):
def do_flavour_setup(self, vars, makeflags, arch, featureset, flavour, extra):
vars.update(self.config.merge('image', arch, featureset, flavour))
for i in (
('cflags', 'CFLAGS'),
('compiler', 'COMPILER'),
('initramfs', 'INITRAMFS',),
('kernel-arch', 'KERNEL_ARCH'),
('localversion', 'LOCALVERSION'),
('type', 'TYPE'),
):
makeflags[i[1]] = vars[i[0]]
for i in (
('cflags', 'CFLAGS'),
('initramfs', 'INITRAMFS'),
('kpkg-arch', 'KPKG_ARCH'),
('kpkg-subarch', 'KPKG_SUBARCH'),
('localversion', 'LOCALVERSION'),
('override-host-type', 'OVERRIDE_HOST_TYPE'),
('type', 'TYPE'),
):
if vars.has_key(i[0]):
makeflags[i[1]] = vars[i[0]]