mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
target/metadata: set OpenWrt One as the default menuconfig target/profile
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
f342255025
commit
5c12fe45b9
@ -375,6 +375,7 @@ define BuildTargets/DumpCurrent
|
|||||||
echo 'Target-Description:'; \
|
echo 'Target-Description:'; \
|
||||||
echo "$$$$DESCRIPTION"; \
|
echo "$$$$DESCRIPTION"; \
|
||||||
echo '@@'; \
|
echo '@@'; \
|
||||||
|
$(if $(DEFAULT_PROFILE),echo 'Target-Default-Profile: $(DEFAULT_PROFILE)';) \
|
||||||
echo 'Default-Packages: $(DEFAULT_PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES))'; \
|
echo 'Default-Packages: $(DEFAULT_PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES))'; \
|
||||||
$(DUMPINFO)
|
$(DUMPINFO)
|
||||||
$(if $(CUR_SUBTARGET),$(SUBMAKE) -r --no-print-directory -C image -s DUMP=1 SUBTARGET=$(CUR_SUBTARGET))
|
$(if $(CUR_SUBTARGET),$(SUBMAKE) -r --no-print-directory -C image -s DUMP=1 SUBTARGET=$(CUR_SUBTARGET))
|
||||||
|
@ -136,6 +136,7 @@ sub parse_target_metadata($) {
|
|||||||
/^Linux-Kernel-Arch:\s*(.+)\s*$/ and $target->{karch} = $1;
|
/^Linux-Kernel-Arch:\s*(.+)\s*$/ and $target->{karch} = $1;
|
||||||
/^Default-Subtarget:\s*(.+)\s*$/ and $target->{def_subtarget} = $1;
|
/^Default-Subtarget:\s*(.+)\s*$/ and $target->{def_subtarget} = $1;
|
||||||
/^Default-Packages:\s*(.+)\s*$/ and $target->{packages} = [ split(/\s+/, $1) ];
|
/^Default-Packages:\s*(.+)\s*$/ and $target->{packages} = [ split(/\s+/, $1) ];
|
||||||
|
/^Target-Default-Profile:\s*(.+)\s*$/ and $target->{default_profile} = $1;
|
||||||
/^Target-Profile:\s*(.+)\s*$/ and do {
|
/^Target-Profile:\s*(.+)\s*$/ and do {
|
||||||
$profile = {
|
$profile = {
|
||||||
id => $1,
|
id => $1,
|
||||||
|
@ -179,7 +179,7 @@ EOF
|
|||||||
print <<EOF;
|
print <<EOF;
|
||||||
choice
|
choice
|
||||||
prompt "Target System"
|
prompt "Target System"
|
||||||
default TARGET_ath79
|
default TARGET_mediatek
|
||||||
reset if !DEVEL
|
reset if !DEVEL
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
@ -219,6 +219,14 @@ choice
|
|||||||
EOF
|
EOF
|
||||||
foreach my $target (@target) {
|
foreach my $target (@target) {
|
||||||
my $profile = $target->{profiles}->[0];
|
my $profile = $target->{profiles}->[0];
|
||||||
|
foreach my $p (@{$target->{profiles}}) {
|
||||||
|
last unless $target->{default_profile};
|
||||||
|
my $name = $p->{id};
|
||||||
|
$name =~ s/^DEVICE_//;
|
||||||
|
next unless $name eq $target->{default_profile};
|
||||||
|
$profile = $p;
|
||||||
|
last;
|
||||||
|
}
|
||||||
$profile or next;
|
$profile or next;
|
||||||
print <<EOF;
|
print <<EOF;
|
||||||
default TARGET_$target->{conf}_$profile->{id} if TARGET_$target->{conf} && !BUILDBOT
|
default TARGET_$target->{conf}_$profile->{id} if TARGET_$target->{conf} && !BUILDBOT
|
||||||
|
@ -4,6 +4,7 @@ BOARDNAME:=Filogic 8x0 (MT798x)
|
|||||||
CPU_TYPE:=cortex-a53
|
CPU_TYPE:=cortex-a53
|
||||||
DEFAULT_PACKAGES += fitblk kmod-phy-aquantia kmod-crypto-hw-safexcel wpad-basic-mbedtls uboot-envtools
|
DEFAULT_PACKAGES += fitblk kmod-phy-aquantia kmod-crypto-hw-safexcel wpad-basic-mbedtls uboot-envtools
|
||||||
KERNELNAME:=Image dtbs
|
KERNELNAME:=Image dtbs
|
||||||
|
DEFAULT_PROFILE:=openwrt_one
|
||||||
|
|
||||||
define Target/Description
|
define Target/Description
|
||||||
Build firmware images for MediaTek Filogic ARM based boards.
|
Build firmware images for MediaTek Filogic ARM based boards.
|
||||||
|
Loading…
Reference in New Issue
Block a user