Skip to content

Commit

Permalink
Pass --arm64 to bsdec2-image-upload when building ARM64 AMIs.
Browse files Browse the repository at this point in the history
Future commits will allow the resulting EC2 AMIs to actually boot and
be usable.
  • Loading branch information
cperciva committed Mar 20, 2019
1 parent 4f4c322 commit cec158f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release/Makefile.ec2
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ PUBLICSNAP= --publicsnap
EC2SNSREL= ${REVISION}-${BRANCH}
EC2SNSVERS= ${EC2_SVNBRANCH}@${EC2_SVNREV}
.endif
.if ${TARGET_ARCH} != "amd64"
EC2ARCH= --${TARGET_ARCH:S/aarch64/arm64/}
.endif

CLEANFILES+= ec2ami

Expand Down Expand Up @@ -82,7 +85,8 @@ ec2ami: cw-ec2 ${CW_EC2_PORTINSTALL}
@echo "--------------------------------------------------------------"
@false
.endif
/usr/local/bin/bsdec2-image-upload ${PUBLISH} ${PUBLICSNAP} --sriov --ena \
/usr/local/bin/bsdec2-image-upload ${PUBLISH} ${PUBLICSNAP} \
${EC2ARCH} --sriov --ena \
${.OBJDIR}/ec2.raw \
"${TYPE} ${REVISION}-${BRANCH}-${TARGET}${AMINAMESUFFIX}" \
"${TYPE}/${TARGET} ${EC2_SVNBRANCH}@${EC2_SVNREV}" \
Expand Down

0 comments on commit cec158f

Please sign in to comment.