3 # Copyright (C) 2006 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
16 /^Target:\s*((.+)-(\d+\.\d+))\s*$/ and do {
22 push @target, $target;
24 /^Target-Name:\s*(.+)\s*$/ and $target->{name
} = $1;
25 /^Target-Path:\s*(.+)\s*$/ and $target->{path
} = $1;
26 /^Target-Arch:\s*(.+)\s*$/ and $target->{arch
} = $1;
27 /^Target-Features:\s*(.+)\s*$/ and do {
29 $target->{features
} = $f;
30 @
$f = split /\s+/, $1;
32 /^Target-Description:/ and do {
38 $target->{desc
} = $desc;
40 /^Linux-Version:\s*(.+)\s*$/ and $target->{version
} = $1;
41 /^Linux-Release:\s*(.+)\s*$/ and $target->{release
} = $1;
42 /^Linux-Kernel-Arch:\s*(.+)\s*$/ and $target->{karch
} = $1;
49 foreach $target (@target) {
50 my $conf = uc $target->{kernel
}.'_'.$target->{board
};
53 ifeq (\$(CONFIG_LINUX_$conf),y)
55 KERNEL:=$target->{kernel}
56 BOARD:=$target->{board}
57 LINUX_VERSION:=$target->{version}
58 LINUX_RELEASE:=$target->{release}
59 LINUX_KARCH:=$target->{karch}
65 print "\$(eval \$(call Target))\n";
This page took 0.047926 seconds and 5 git commands to generate.