Skip to content

Commit

Permalink
support for arm64
Browse files Browse the repository at this point in the history
with the developer preview of ARM available for 4.9, adding support in it for SNC so we can work toward having crc support for macs
  • Loading branch information
Prashanth684 committed Aug 20, 2021
1 parent de127b4 commit 8e9b7a5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion snc-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function run_preflight_checks() {

#Just warn if architecture is not supported
case $ARCH in
x86_64|ppc64le|s390x)
x86_64|ppc64le|s390x|aarch64)
echo "The host arch is ${ARCH}.";;
*)
echo "The host arch is ${ARCH}. This is not supported by SNC!";;
Expand Down
2 changes: 1 addition & 1 deletion snc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ echo "Setting OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE to ${OPENSHIFT_INSTALL_RE
# Extract openshift-install binary if not present in current directory
if test -z ${OPENSHIFT_INSTALL-}; then
echo "Extracting OpenShift baremetal installer binary"
${OC} adm release -a ${OPENSHIFT_PULL_SECRET_PATH} extract ${OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE} --command=openshift-baremetal-install --to .
${OC} adm release extract -a ${OPENSHIFT_PULL_SECRET_PATH} ${OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE} --command=openshift-baremetal-install --to .
OPENSHIFT_INSTALL=./openshift-baremetal-install
fi

Expand Down
7 changes: 6 additions & 1 deletion tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ case "${ARCH}" in
x86_64)
yq_ARCH="amd64"
SNC_GENERATE_MACOS_BUNDLE=1
SNC_GENERATE_WINDOWS_BUNDLE=1
SNC_GENERATE_WINDOWS_BUNDLE=1
;;
aarch64)
yq_ARCH="arm64"
SNC_GENERATE_MACOS_BUNDLE=1
SNC_GENERATE_WINDOWS_BUNDLE=
;;
*)
yq_ARCH=${ARCH}
Expand Down

0 comments on commit 8e9b7a5

Please sign in to comment.