Skip to content

Commit

Permalink
target/metadata: set OpenWrt One as the default menuconfig target/pro…
Browse files Browse the repository at this point in the history
…file

Signed-off-by: John Crispin <john@phrozen.org>
  • Loading branch information
blogic committed Dec 2, 2024
1 parent f342255 commit 5c12fe4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ define BuildTargets/DumpCurrent
echo 'Target-Description:'; \
echo "$$$$DESCRIPTION"; \
echo '@@'; \
$(if $(DEFAULT_PROFILE),echo 'Target-Default-Profile: $(DEFAULT_PROFILE)';) \
echo 'Default-Packages: $(DEFAULT_PACKAGES) $(call extra_packages,$(DEFAULT_PACKAGES))'; \
$(DUMPINFO)
$(if $(CUR_SUBTARGET),$(SUBMAKE) -r --no-print-directory -C image -s DUMP=1 SUBTARGET=$(CUR_SUBTARGET))
Expand Down
1 change: 1 addition & 0 deletions scripts/metadata.pm
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ sub parse_target_metadata($) {
/^Linux-Kernel-Arch:\s*(.+)\s*$/ and $target->{karch} = $1;
/^Default-Subtarget:\s*(.+)\s*$/ and $target->{def_subtarget} = $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 {
$profile = {
id => $1,
Expand Down
10 changes: 9 additions & 1 deletion scripts/target-metadata.pl
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ ()
print <<EOF;
choice
prompt "Target System"
default TARGET_ath79
default TARGET_mediatek
reset if !DEVEL
EOF
Expand Down Expand Up @@ -219,6 +219,14 @@ ()
EOF
foreach my $target (@target) {
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;
print <<EOF;
default TARGET_$target->{conf}_$profile->{id} if TARGET_$target->{conf} && !BUILDBOT
Expand Down
1 change: 1 addition & 0 deletions target/linux/mediatek/filogic/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ BOARDNAME:=Filogic 8x0 (MT798x)
CPU_TYPE:=cortex-a53
DEFAULT_PACKAGES += fitblk kmod-phy-aquantia kmod-crypto-hw-safexcel wpad-basic-mbedtls uboot-envtools
KERNELNAME:=Image dtbs
DEFAULT_PROFILE:=openwrt_one

define Target/Description
Build firmware images for MediaTek Filogic ARM based boards.
Expand Down

0 comments on commit 5c12fe4

Please sign in to comment.