
10 changed files with 82 additions and 30 deletions
@ -0,0 +1,4 @@ |
|||
Template: debian-installer/hw-accel |
|||
Type: boolean |
|||
Default: false |
|||
Description: enable directfb hardware acceleration |
@ -0,0 +1,58 @@ |
|||
#!/usr/bin/perl |
|||
use strict; |
|||
use warnings; |
|||
|
|||
die "must specify arch" if not defined $ARGV[0]; |
|||
my $arch = $ARGV[0]; |
|||
|
|||
my %template; |
|||
$template{Fields} = []; |
|||
$template{'Description-Long'} = ""; |
|||
|
|||
sub print_template { |
|||
foreach ( @{$template{Fields}} ) { |
|||
print $_ . ": "; |
|||
if ( ref $template{$_} eq "HASH" ) { |
|||
if ( defined $template{$_}->{$arch} ) { |
|||
print $template{$_}->{$arch}; |
|||
} else { |
|||
print $template{$_}->{default}; |
|||
} |
|||
} else { |
|||
print $template{$_}; |
|||
} |
|||
print "\n"; |
|||
} |
|||
print $template{'Description-Long'} . "\n"; |
|||
|
|||
%template = (); |
|||
$template{Fields} = []; |
|||
$template{'Description-Long'} = ""; |
|||
} |
|||
|
|||
while ( <STDIN> ) { |
|||
chomp; |
|||
if (m/^$/) { |
|||
print_template; |
|||
} elsif ( m/^(\w+)(\[(\w+)\])?:\s+(.*)\s*$/ ) { |
|||
if ( defined $3 ) { |
|||
if ( defined $template{$1} and ref $template{$1} ne "HASH" ) { |
|||
local $_; |
|||
$_ = $template{$1}; |
|||
$template{$1} = (); |
|||
$template{$1}->{default} = $_; |
|||
} elsif ( not defined $template{$1} ) { |
|||
push ( @{$template{Fields}}, $1 ); |
|||
} |
|||
$template{$1}->{$3} = $4; |
|||
} else { |
|||
$template{$1} = $4; |
|||
push ( @{$template{Fields}}, $1 ); |
|||
} |
|||
} else { |
|||
$template{'Description-Long'} .= $_ . "\n"; |
|||
} |
|||
} |
|||
|
|||
print_template; |
|||
|
@ -1,28 +1,9 @@ |
|||
dir = etc |
|||
|
|||
DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null) |
|||
DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null) |
|||
|
|||
# Take account of old dpkg-architecture output.
|
|||
ifeq ($(DEB_HOST_ARCH_CPU),) |
|||
DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU) |
|||
ifeq ($(DEB_HOST_ARCH_CPU),x86_64) |
|||
DEB_HOST_ARCH_CPU := amd64 |
|||
endif |
|||
endif |
|||
ifeq ($(DEB_HOST_ARCH_OS),) |
|||
DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM) |
|||
endif |
|||
|
|||
subdirs = \
|
|||
gtk-2.0 |
|||
|
|||
ifneq ($(DEB_HOST_ARCH_CPU),powerpc) |
|||
files = \
|
|||
files = \
|
|||
directfbrc |
|||
else |
|||
files = \
|
|||
directfbrc:directfbrc-powerpc |
|||
endif |
|||
|
|||
include ../../Makefile.inc |
|||
|
@ -1,2 +1,3 @@ |
|||
no-hardware |
|||
screenshot-dir=/var/log |
|||
#disable-module=linux_input #needed for touchpads to work |
|||
|
@ -1,3 +0,0 @@ |
|||
no-hardware |
|||
screenshot-dir=/var/log |
|||
#disable-module=linux_input #needed for touchpads to work |
@ -0,0 +1,5 @@ |
|||
debconf-get debian-installer/hw-accel |
|||
|
|||
if [ "$RET" = true ]; then |
|||
sed -i "s/^no-hardware/#no-hardware/" /etc/directfbrc |
|||
fi |
Loading…
Reference in new issue