v.22.7Build/Testing/Packaging Improvement

Preparation for s390x Platform Build

Preparation for building on s390x platform. #39193 (Harry Lee).