projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add SimpleTech SimpleShare NAS diag support (untested; based on patch from #1352)
[openwrt.git]
/
scripts
/
metadata.pl
diff --git
a/scripts/metadata.pl
b/scripts/metadata.pl
index
d27cd8e
..
063524a
100755
(executable)
--- a/
scripts/metadata.pl
+++ b/
scripts/metadata.pl
@@
-53,6
+53,7
@@
sub parse_target_metadata() {
}
$profile->{desc} = $desc;
};
}
$profile->{desc} = $desc;
};
+ /^Target-Profile-Kconfig:/ and $profile->{kconfig} = 1;
}
foreach my $target (@target) {
@{$target->{profiles}} > 0 or $target->{profiles} = [
}
foreach my $target (@target) {
@{$target->{profiles}} > 0 or $target->{profiles} = [
@@
-148,9
+149,10
@@
sub gen_target_mk() {
define Profile/$conf\_$profile->{id}
ID:=$profile->{id}
NAME:=$profile->{name}
define Profile/$conf\_$profile->{id}
ID:=$profile->{id}
NAME:=$profile->{name}
- PACKAGES:=".join(" ", @{$profile->{packages}})."
- endef";
- $profiles_eval .= "
+ PACKAGES:=".join(" ", @{$profile->{packages}})."\n";
+ $profile->{kconfig} and $profiles_def .= " KCONFIG:=1\n";
+ $profiles_def .= " endef";
+ $profiles_eval .= "
\$(eval \$(call AddProfile,$conf\_$profile->{id}))"
}
print "
\$(eval \$(call AddProfile,$conf\_$profile->{id}))"
}
print "
@@
-298,6
+300,7
@@
config LINUX_$target->{conf}_$profile->{id}
bool "$profile->{name}"
depends LINUX_$target->{conf}
EOF
bool "$profile->{name}"
depends LINUX_$target->{conf}
EOF
+ $profile->{kconfig} and print "\tselect PROFILE_KCONFIG\n";
my %pkgs;
foreach my $pkg (@{$target->{packages}}, @{$profile->{packages}}) {
$pkgs{$pkg} = 1;
my %pkgs;
foreach my $pkg (@{$target->{packages}}, @{$profile->{packages}}) {
$pkgs{$pkg} = 1;
This page took
0.025025 seconds
and
4
git commands to generate.