mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
build: include the cpu type as part of the toolchain/target directory name
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38214 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -53,6 +53,7 @@ sub parse_target_metadata() {
|
||||
/^Target-Depends:\s*(.+)\s*$/ and $target->{depends} = [ split(/\s+/, $1) ];
|
||||
/^Target-Description:/ and $target->{desc} = get_multiline(*FILE);
|
||||
/^Target-Optimization:\s*(.+)\s*$/ and $target->{cflags} = $1;
|
||||
/^CPU-Type:\s*(.+)\s*$/ and $target->{cputype} = $1;
|
||||
/^Linux-Version:\s*(.+)\s*$/ and $target->{version} = $1;
|
||||
/^Linux-Release:\s*(.+)\s*$/ and $target->{release} = $1;
|
||||
/^Linux-Kernel-Arch:\s*(.+)\s*$/ and $target->{karch} = $1;
|
||||
@@ -372,6 +373,16 @@ EOF
|
||||
print "\tdefault \"".$target->{cflags}."\" if TARGET_".$target->{conf}."\n";
|
||||
}
|
||||
print "\tdefault \"-Os -pipe -funit-at-a-time\"\n";
|
||||
print <<EOF;
|
||||
|
||||
config CPU_TYPE
|
||||
string
|
||||
EOF
|
||||
foreach my $target (@target) {
|
||||
next if @{$target->{subtargets}} > 0;
|
||||
print "\tdefault \"".$target->{cputype}."\" if TARGET_".$target->{conf}."\n";
|
||||
}
|
||||
print "\tdefault \"\"\n";
|
||||
|
||||
my %kver;
|
||||
foreach my $target (@target) {
|
||||
|
||||
Reference in New Issue
Block a user