-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabled build target for arm64 architecture #297
Changes from all commits
e8e735c
e93eef2
1013fd7
67f0c3d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ pack() { | |
|
||
if [[ $TARGET == "arm-unknown-linux-gnueabihf" ]]; then | ||
gcc_prefix="arm-linux-gnueabihf-" | ||
elif [[ $TARGET == "aarch64-unknown-linux-gnu" ]]; then | ||
gcc_prefix="aarch64-linux-gnu-" | ||
else | ||
gcc_prefix="" | ||
fi | ||
|
@@ -49,13 +51,20 @@ make_deb() { | |
local version | ||
local dpkgname | ||
local conflictname | ||
local gcc_prefix | ||
|
||
case $TARGET in | ||
x86_64*) | ||
architecture=amd64 | ||
gcc_prefix="" | ||
;; | ||
i686*) | ||
architecture=i386 | ||
gcc_prefix="" | ||
;; | ||
aarch64*) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this works, could we also enable this for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, i already have that prepared but i was confused whether i should include it with this pull request or create a new one as it solves a separate issue on the issues list. What do you suggest? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, a new PR sounds even better! |
||
architecture=arm64 | ||
gcc_prefix="aarch64-linux-gnu-" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it did execute successfully in my test release. |
||
;; | ||
*) | ||
echo "make_deb: skipping target '${TARGET}'" >&2 | ||
|
@@ -75,7 +84,7 @@ make_deb() { | |
|
||
# copy the main binary | ||
install -Dm755 "target/$TARGET/release/$PROJECT_NAME" "$tempdir/usr/bin/$PROJECT_NAME" | ||
strip "$tempdir/usr/bin/$PROJECT_NAME" | ||
"${gcc_prefix}"strip "$tempdir/usr/bin/$PROJECT_NAME" | ||
|
||
# manpage | ||
install -Dm644 "doc/$PROJECT_NAME.1" "$tempdir/usr/share/man/man1/$PROJECT_NAME.1" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test this? Is the prefix really
aarch64-linux-gnu-
and notaarch64-linux-gnueabihf-
or similar?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it did execute successfully in my test release.
arm-unknown-linux-gnueabihf
is forarmhf
architecture whileaarch64-unknown-linux-gnu
is for arm64.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!