diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2018-02-08 12:53:14 -0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-19 14:19:50 -0500 |
commit | 37172013fa2e527735ec9eda51a11cfea3af0ff1 (patch) | |
tree | 9ceb8516a253f60e64f9311e1239ed5f34156c72 /drivers/gpu/drm/amd/display/dc/calcs/Makefile | |
parent | 4007e92bebebb65b8a1798e6bc9e21def9a1eab9 (diff) | |
download | linux-37172013fa2e527735ec9eda51a11cfea3af0ff1.tar.gz |
amdgpu/dc/calcs: Consolidate redundant CFLAGS
Use a variable for common CFLAGS instead of specifying the same flags
for every source file.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/calcs/Makefile')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/calcs/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/calcs/Makefile b/drivers/gpu/drm/amd/display/dc/calcs/Makefile index 7959e382ed28..af0f452f3c9f 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/Makefile +++ b/drivers/gpu/drm/amd/display/dc/calcs/Makefile @@ -24,9 +24,11 @@ # It calculates Bandwidth and Watermarks values for HW programming # -CFLAGS_dcn_calcs.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_dcn_calc_auto.o := -mhard-float -msse -mpreferred-stack-boundary=4 -CFLAGS_dcn_calc_math.o := -mhard-float -msse -mpreferred-stack-boundary=4 -Wno-tautological-compare +calcs_ccflags := -mhard-float -msse -mpreferred-stack-boundary=4 + +CFLAGS_dcn_calcs.o := $(calcs_ccflags) +CFLAGS_dcn_calc_auto.o := $(calcs_ccflags) +CFLAGS_dcn_calc_math.o := $(calcs_ccflags) -Wno-tautological-compare BW_CALCS = dce_calcs.o bw_fixed.o custom_float.o |