Blame SOURCES/installer-14631-ppc64le.patch

c51fa4
From 564e481e39511d214d0d26dd902022decd0d93ea Mon Sep 17 00:00:00 2001
c51fa4
From: Swapnali911 <Swapnali.Pawar1@ibm.com>
c51fa4
Date: Fri, 30 Sep 2022 05:07:55 -0400
c51fa4
Subject: [PATCH] Adding ppc64le arch for source build
c51fa4
c51fa4
---
c51fa4
 Directory.Build.props                                 | 1 +
c51fa4
 src/SourceBuild/tarball/content/Directory.Build.props | 1 +
c51fa4
 src/redist/targets/Crossgen.targets                   | 4 ++--
c51fa4
 src/redist/targets/GenerateBundledVersions.targets    | 9 ++++++---
c51fa4
 4 files changed, 10 insertions(+), 5 deletions(-)
c51fa4
c51fa4
diff --git a/Directory.Build.props b/Directory.Build.props
c51fa4
index 61cc6ff6746..860785575f7 100644
c51fa4
--- a/Directory.Build.props
c51fa4
+++ b/Directory.Build.props
c51fa4
@@ -19,6 +19,7 @@
c51fa4
     <BuildArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</BuildArchitecture>
c51fa4
     <Platform Condition="'$(Platform)' == '' AND '$(BuildArchitecture)' == 'arm64'">$(BuildArchitecture)</Platform>
c51fa4
     <Platform Condition="'$(Platform)' == '' AND '$(BuildArchitecture)' == 's390x'">$(BuildArchitecture)</Platform>
c51fa4
+    <Platform Condition="'$(Platform)' == '' AND '$(BuildArchitecture)' == 'ppc64le'">$(BuildArchitecture)</Platform>
c51fa4
     <Platform Condition="'$(Platform)' == ''">x64</Platform>
c51fa4
 
c51fa4
     <UseStableVersions Condition="'$(UseStableVersions)' == ''">false</UseStableVersions>
c51fa4
diff --git a/src/installer/Directory.Build.props b/src/installer/Directory.Build.props
c51fa4
index 15c9d27b734..b87eeccca0d 100644
c51fa4
--- a/src/installer/Directory.Build.props
c51fa4
+++ b/src/installer/Directory.Build.props
c51fa4
@@ -11,6 +11,7 @@
c51fa4
     <BuildArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</BuildArchitecture>
c51fa4
     <Architecture Condition="'$(Architecture)' == '' AND '$(BuildArchitecture)' == 'arm64'">$(BuildArchitecture)</Architecture>
c51fa4
     <Architecture Condition="'$(Architecture)' == '' AND '$(BuildArchitecture)' == 's390x'">$(BuildArchitecture)</Architecture>
c51fa4
+    <Architecture Condition="'$(Architecture)' == '' AND '$(BuildArchitecture)' == 'ppc64le'">$(BuildArchitecture)</Architecture>
c51fa4
     <Architecture Condition="'$(Architecture)' == ''">x64</Architecture>
c51fa4
   </PropertyGroup>
c51fa4
   <PropertyGroup Condition="'$(PgoInstrument)' == 'true'">
c51fa4
diff --git a/src/installer/src/redist/targets/Crossgen.targets b/src/installer/src/redist/targets/Crossgen.targets
c51fa4
index c7a7642e4eb..da7d186a152 100644
c51fa4
--- a/src/installer/src/redist/targets/Crossgen.targets
c51fa4
+++ b/src/installer/src/redist/targets/Crossgen.targets
c51fa4
@@ -1,7 +1,7 @@
c51fa4
 <Project>
c51fa4
-  
c51fa4
+  
c51fa4
   
c51fa4
-          Condition="'$(DISABLE_CROSSGEN)' == '' AND '$(Architecture)' != 's390x'"
c51fa4
+          Condition="'$(DISABLE_CROSSGEN)' == '' AND '$(Architecture)' != 's390x' AND '$(Architecture)' != 'ppc64le'"
c51fa4
           DependsOnTargets="SetSdkBrandingInfo">
c51fa4
     
c51fa4
     <PropertyGroup>
c51fa4
diff --git a/src/installer/src/redist/targets/GenerateBundledVersions.targets b/src/installer/src/redist/targets/GenerateBundledVersions.targets
c51fa4
index d1bee676355..58d1abfa720 100644
c51fa4
--- a/src/installer/src/redist/targets/GenerateBundledVersions.targets
c51fa4
+++ b/src/installer/src/redist/targets/GenerateBundledVersions.targets
c51fa4
@@ -168,6 +168,7 @@
c51fa4
           linux-bionic-arm64;
c51fa4
           linux-bionic-x64;
c51fa4
           linux-bionic-x86;
c51fa4
+          linux-ppc64le;
c51fa4
           "/>
c51fa4
 
c51fa4
       
c51fa4
@@ -176,6 +177,7 @@
c51fa4
           linux-bionic-arm64;
c51fa4
           linux-bionic-x64;
c51fa4
           linux-bionic-x86;
c51fa4
+          linux-ppc64le;
c51fa4
           " />
c51fa4
 
c51fa4
       
c51fa4
@@ -254,7 +256,8 @@
c51fa4
 
c51fa4
       <AspNetCore31RuntimePackRids Include="@(AspNetCore30RuntimePackRids)" />
c51fa4
       <AspNetCore50RuntimePackRids Include="@(AspNetCore31RuntimePackRids);linux-musl-arm;win-arm64" />
c51fa4
-      <AspNetCoreRuntimePackRids Include="@(AspNetCore50RuntimePackRids);osx-arm64;linux-s390x" />
c51fa4
+      <AspNetCore60RuntimePackRids Include="@(AspNetCore50RuntimePackRids);osx-arm64;linux-s390x" />
c51fa4
+      <AspNetCore70RuntimePackRids Include="@(AspNetCore60RuntimePackRids);linux-ppc64le" />
c51fa4
 
c51fa4
       <WindowsDesktop30RuntimePackRids Include="win-x64;win-x86" />
c51fa4
       <WindowsDesktop31RuntimePackRids Include="@(WindowsDesktop30RuntimePackRids)" />
c51fa4
@@ -444,7 +447,7 @@ Copyright (c) .NET Foundation. All rights reserved.
c51fa4
                               TargetingPackName="Microsoft.AspNetCore.App.Ref"
c51fa4
                               TargetingPackVersion="$(MicrosoftAspNetCoreAppRefPackageVersion)"
c51fa4
                               RuntimePackNamePatterns="Microsoft.AspNetCore.App.Runtime.**RID**"
c51fa4
-                              RuntimePackRuntimeIdentifiers="@(AspNetCoreRuntimePackRids, '%3B')"
c51fa4
+                              RuntimePackRuntimeIdentifiers="@(AspNetCore70RuntimePackRids, '%3B')"
c51fa4
                               RuntimePackExcludedRuntimeIdentifiers="android"
c51fa4
                               />
c51fa4
 
c51fa4
@@ -569,7 +572,7 @@ Copyright (c) .NET Foundation. All rights reserved.
c51fa4
                               TargetingPackName="Microsoft.AspNetCore.App.Ref"
c51fa4
                               TargetingPackVersion="$(_AspNet60TargetingPackVersion)"
c51fa4
                               RuntimePackNamePatterns="Microsoft.AspNetCore.App.Runtime.**RID**"
c51fa4
-                              RuntimePackRuntimeIdentifiers="@(AspNetCoreRuntimePackRids, '%3B')"
c51fa4
+                              RuntimePackRuntimeIdentifiers="@(AspNetCore60RuntimePackRids, '%3B')"
c51fa4
                               />
c51fa4
 
c51fa4