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.
17 /^Target:\s*((.+)-(\d+\.\d+))\s*$/ and do {
24 push @target, $target;
26 /^Target-Name:\s*(.+)\s*$/ and $target->{name
} = $1;
27 /^Target-Path:\s*(.+)\s*$/ and $target->{path
} = $1;
28 /^Target-Arch:\s*(.+)\s*$/ and $target->{arch
} = $1;
29 /^Target-Features:\s*(.+)\s*$/ and $target->{features
} = [ split(/\s+/, $1) ];
30 /^Target-Description:/ and do {
36 $target->{desc
} = $desc;
38 /^Linux-Version:\s*(.+)\s*$/ and $target->{version
} = $1;
39 /^Linux-Release:\s*(.+)\s*$/ and $target->{release
} = $1;
40 /^Linux-Kernel-Arch:\s*(.+)\s*$/ and $target->{karch
} = $1;
41 /^Default-Packages:\s*(.+)\s*$/ and $target->{packages
} = [ split(/\s+/, $1) ];
42 /^Target-Profile:\s*(.+)\s*$/ and do {
48 push @
{$target->{profiles
}}, $profile;
50 /^Target-Profile-Name:\s*(.+)\s*$/ and $profile->{name
} = $1;
51 /^Target-Profile-Packages:\s*(.*)\s*$/ and $profile->{packages
} = [ split(/\s+/, $1) ];
58 foreach $target (@target) {
59 my ($profiles_def, $profiles_eval);
60 my $conf = uc $target->{kernel
}.'_'.$target->{board
};
63 foreach my $profile (@
{$target->{profiles
}}) {
65 define Profile/$conf\_$profile->{id}
67 NAME:=$profile->{name}
68 PACKAGES:=".join(" ", @
{$profile->{packages
}})."
71 \$(eval \$(call Profile,$conf\_$profile->{id}))"
74 ifeq (\$(CONFIG_LINUX_$conf),y)
76 KERNEL:=$target->{kernel}
77 BOARD:=$target->{board}
78 LINUX_VERSION:=$target->{version}
79 LINUX_RELEASE:=$target->{release}
80 LINUX_KARCH:=$target->{karch}
81 DEFAULT_PACKAGES:=".join(" ", @
{$target->{packages
}})."
87 print "\$(eval \$(call Target))\n";
This page took 0.053252 seconds and 5 git commands to generate.