mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
4bdd03e61b
Commit d38bd3aef ("Add -Werror compilation flag") is causing build breakage with random gcc incarnations. These look like gcc problems, but we shouldn't break the build because of a bad gcc. Fix this by adding a make flag WARNINGS_BECOME_ERRORS=1 which is the same as aic7xxx uses so ordinarily the build doesn't use -Werror Reported-by: Fengguang Wu <fengguang.wu@intel.com> Cc: Alex Iannicelli <alex.iannicelli@emulex.com> Cc: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
34 lines
1.7 KiB
Makefile
34 lines
1.7 KiB
Makefile
#/*******************************************************************
|
|
# * This file is part of the Emulex Linux Device Driver for *
|
|
# * Fibre Channel Host Bus Adapters. *
|
|
# * Copyright (C) 2004-2012 Emulex. All rights reserved. *
|
|
# * EMULEX and SLI are trademarks of Emulex. *
|
|
# * www.emulex.com *
|
|
# * *
|
|
# * This program is free software; you can redistribute it and/or *
|
|
# * modify it under the terms of version 2 of the GNU General *
|
|
# * Public License as published by the Free Software Foundation. *
|
|
# * This program is distributed in the hope that it will be useful. *
|
|
# * ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND *
|
|
# * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, *
|
|
# * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT, ARE *
|
|
# * DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD *
|
|
# * TO BE LEGALLY INVALID. See the GNU General Public License for *
|
|
# * more details, a copy of which can be found in the file COPYING *
|
|
# * included with this package. *
|
|
# *******************************************************************/
|
|
######################################################################
|
|
|
|
ccflags-$(GCOV) := -fprofile-arcs -ftest-coverage
|
|
ccflags-$(GCOV) += -O0
|
|
|
|
ifdef WARNINGS_BECOME_ERRORS
|
|
ccflags-y += -Werror
|
|
endif
|
|
|
|
obj-$(CONFIG_SCSI_LPFC) := lpfc.o
|
|
|
|
lpfc-objs := lpfc_mem.o lpfc_sli.o lpfc_ct.o lpfc_els.o lpfc_hbadisc.o \
|
|
lpfc_init.o lpfc_mbox.o lpfc_nportdisc.o lpfc_scsi.o lpfc_attr.o \
|
|
lpfc_vport.o lpfc_debugfs.o lpfc_bsg.o
|