Print this page
11866 Use -fstack-protector-strong when available
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: John Levon <john.levon@joyent.com>
Change-Id: Iaffe3e8275a3e6a06cc430743cd6539ead38f736
   1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright (c) 2018, Joyent, Inc.
  14 #
  15 
  16 UTSBASE = ../..
  17 
  18 MODULE          = qede
  19 OBJECTS         = $(QEDE_OBJS:%=$(OBJS_DIR)/%) $(QEDE_GEN_OBJS:%=$(OBJS_DIR)/%)
  20 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  21 CONF_SRCDIR     = $(UTSBASE)/common/io/qede
  22 
  23 include $(UTSBASE)/intel/Makefile.intel
  24 
  25 #
  26 # Common definitions that are used by QLogic.
  27 #
  28 CPPFLAGS        += -D__inline=inline
  29 CPPFLAGS        += -D_inline=inline
  30 CPPFLAGS        += -DILLUMOS
  31 CPPFLAGS        += -DECORE_CONFIG_DIRECT_HWFN
  32 CPPFLAGS        += -DCONFIG_ECORE_L2
  33 


  37 CPPFLAGS        += -I$(UTSBASE)/common/io/qede
  38 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore
  39 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore/hsi_repository
  40 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/
  41 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/hw
  42 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/mcp
  43 
  44 #
  45 # Temporarily gag these warnings for the moment. We'll work with
  46 # upstream to get them clean.
  47 #
  48 CERRWARN        += -_gcc=-Wno-unused-variable
  49 CERRWARN        += -_gcc=-Wno-unused-function
  50 
  51 # 3rd party module
  52 SMOFF += all_func_returns,indenting,no_if_block,deref_check,testing_index_after_use
  53 
  54 # real bug in qede_multicast()
  55 $(OBJS_DIR)/qede_gld.o := SMOFF += assign_vs_compare
  56 







  57 ALL_TARGET      = $(BINARY) $(CONFMOD)
  58 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  59 
  60 LDFLAGS         += -dy -N misc/mac
  61 
  62 .KEEP_STATE:
  63 
  64 def:            $(DEF_DEPS)
  65 
  66 all:            $(ALL_DEPS)
  67 
  68 clean:          $(CLEAN_DEPS)
  69 
  70 clobber:        $(CLOBBER_DEPS)
  71 
  72 lint:
  73 modlintlib:
  74 clean.lint:
  75 
  76 install:        $(INSTALL_DEPS)
   1 #
   2 # This file and its contents are supplied under the terms of the
   3 # Common Development and Distribution License ("CDDL"), version 1.0.
   4 # You may only use this file in accordance with the terms of version
   5 # 1.0 of the CDDL.
   6 #
   7 # A full copy of the text of the CDDL should have accompanied this
   8 # source.  A copy of the CDDL is also available via the Internet at
   9 # http://www.illumos.org/license/CDDL.
  10 #
  11 
  12 #
  13 # Copyright 2019 Joyent, Inc.
  14 #
  15 
  16 UTSBASE = ../..
  17 
  18 MODULE          = qede
  19 OBJECTS         = $(QEDE_OBJS:%=$(OBJS_DIR)/%) $(QEDE_GEN_OBJS:%=$(OBJS_DIR)/%)
  20 ROOTMODULE      = $(ROOT_DRV_DIR)/$(MODULE)
  21 CONF_SRCDIR     = $(UTSBASE)/common/io/qede
  22 
  23 include $(UTSBASE)/intel/Makefile.intel
  24 
  25 #
  26 # Common definitions that are used by QLogic.
  27 #
  28 CPPFLAGS        += -D__inline=inline
  29 CPPFLAGS        += -D_inline=inline
  30 CPPFLAGS        += -DILLUMOS
  31 CPPFLAGS        += -DECORE_CONFIG_DIRECT_HWFN
  32 CPPFLAGS        += -DCONFIG_ECORE_L2
  33 


  37 CPPFLAGS        += -I$(UTSBASE)/common/io/qede
  38 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore
  39 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/drivers/ecore/hsi_repository
  40 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/
  41 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/hw
  42 CPPFLAGS        += -I$(UTSBASE)/common/io/qede/579xx/hsi/mcp
  43 
  44 #
  45 # Temporarily gag these warnings for the moment. We'll work with
  46 # upstream to get them clean.
  47 #
  48 CERRWARN        += -_gcc=-Wno-unused-variable
  49 CERRWARN        += -_gcc=-Wno-unused-function
  50 
  51 # 3rd party module
  52 SMOFF += all_func_returns,indenting,no_if_block,deref_check,testing_index_after_use
  53 
  54 # real bug in qede_multicast()
  55 $(OBJS_DIR)/qede_gld.o := SMOFF += assign_vs_compare
  56 
  57 #
  58 # Unfortunately the default use of -fstack-protector-strong breaks the
  59 # qede module. For the time being limit its use of stack-protector to
  60 # the basic form (-fstack-protector).
  61 #
  62 STACKPROTECT=basic
  63 
  64 ALL_TARGET      = $(BINARY) $(CONFMOD)
  65 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  66 
  67 LDFLAGS         += -dy -N misc/mac
  68 
  69 .KEEP_STATE:
  70 
  71 def:            $(DEF_DEPS)
  72 
  73 all:            $(ALL_DEPS)
  74 
  75 clean:          $(CLEAN_DEPS)
  76 
  77 clobber:        $(CLOBBER_DEPS)
  78 
  79 lint:
  80 modlintlib:
  81 clean.lint:
  82 
  83 install:        $(INSTALL_DEPS)