-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Unify target_cpu handling #9848
Conversation
4581786
to
fe534d1
Compare
fe534d1
to
42343ee
Compare
@freqlabs would you mind taking a look at this to verify it'll work with the FreeBSD changes. |
# Suppress unused but set variable warnings often due to ASSERTs | ||
ccflags-y += $(NO_UNUSED_BUT_SET_VARIABLE) | ||
|
||
# Suppress unused-value warnings in sparc64 architecture headers |
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.
See also:
module/zcommon/Makefile.in
module/os/linux/zfs/Makefile.in
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.
I'll be able to easily resolve the conflict in config/always-arch.m4 when I do the next rebase. It even reduces our diff by one line :)
Over the years several slightly different approachs were used in the Makefiles to determine the target architecture. This change updates both the build system and Makefile to handle this in a consistent fashion. TARGET_CPU is set to i386, x86_64, powerpc, aarch6 or sparc64 and made available in the Makefiles to be used as appropriate. Signed-off-by: Brian Behlendorf <[email protected]>
42343ee
to
57d7c5b
Compare
Refreshed to update |
Codecov Report
@@ Coverage Diff @@
## master #9848 +/- ##
========================================
+ Coverage 79% 80% +<1%
========================================
Files 385 385
Lines 121644 121644
========================================
+ Hits 96587 96849 +262
+ Misses 25057 24795 -262
Continue to review full report at Codecov.
|
Over the years several slightly different approaches were used in the Makefiles to determine the target architecture. This change updates both the build system and Makefile to handle this in a consistent fashion. TARGET_CPU is set to i386, x86_64, powerpc, aarch6 or sparc64 and made available in the Makefiles to be used as appropriate. Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#9848
Motivation and Context
Resolve some technical dept which makes detecting the target
architecture for conditional Makefiles overly difficult.
Description
Over the years several slightly different approaches were used
in the Makefiles to determine the target architecture. This
change updates both the build system and Makefile to handle
this in a consistent fashion.
TARGET_CPU is set to i386, x86_64, powerpc, aarch6 or sparc64
and made available in the Makefiles to be used as appropriate.
How Has This Been Tested?
Test built on x86_64 and ppc64. Pending CI build testing for arm,
aarch64, ppc, and i386.
Types of changes
Checklist:
Signed-off-by
.