020-not-leak-cflags.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. --- a/src/Makefile.am
  2. +++ b/src/Makefile.am
  3. @@ -244,10 +244,7 @@ else
  4. drv_dsl_cpe_api_common_mod_cflags =
  5. endif
  6. -drv_dsl_cpe_api_common_cflags = -DLINUX -D__LINUX__ -D__KERNEL__ -DEXPORT_SYMTAB \
  7. - -pipe -Wall -Wformat -Wimplicit -Wunused -Wswitch -Wcomment -Winline \
  8. - -Wuninitialized -Wparentheses -Wsign-compare -Wreturn-type \
  9. - -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
  10. +drv_dsl_cpe_api_common_cflags = -DLINUX -D__LINUX__ -D__KERNEL__ -DEXPORT_SYMTAB
  11. if DSL_DBG_MAX_LEVEL_SET
  12. drv_dsl_cpe_api_common_cflags += -DDSL_DBG_MAX_LEVEL=$(DSL_DBG_MAX_LEVEL_PRE)
  13. @@ -257,7 +254,7 @@ endif
  14. drv_dsl_cpe_api_target_cflags = $(ADD_DRV_CFLAGS)
  15. # compile cflags
  16. -drv_dsl_cpe_api_compile_cflags = $(EXTRA_DRV_CFLAGS)
  17. +drv_dsl_cpe_api_compile_cflags =
  18. if !KERNEL_2_6
  19. # the headerfile of linux kernels 2.6.x contain to much arithmetic
  20. @@ -311,7 +308,7 @@ drv_dsl_cpe_api.ko: $(drv_dsl_cpe_api_SO
  21. @echo -e "# drv_dsl_cpe_api: Generated to build Linux 2.6.x kernel object" > $(PWD)/Kbuild
  22. @echo -e "obj-m := $(subst .ko,.o,$@)" >> $(PWD)/Kbuild
  23. @echo -e "$(subst .ko,,$@)-y := $(drv_dsl_cpe_api_OBJS)" >> $(PWD)/Kbuild
  24. - @echo -e "EXTRA_CFLAGS := $(CFLAGS) -DHAVE_CONFIG_H $(drv_dsl_cpe_api_CFLAGS) $(DSL_DRIVER_INCL_PATH) $(IFXOS_INCLUDE_PATH) -I@abs_srcdir@/include -I$(PWD)/include" >> $(PWD)/Kbuild
  25. + @echo -e "EXTRA_CFLAGS := -DHAVE_CONFIG_H $(drv_dsl_cpe_api_CFLAGS) $(DSL_DRIVER_INCL_PATH) $(IFXOS_INCLUDE_PATH) -I@abs_srcdir@/include -I$(PWD)/include" >> $(PWD)/Kbuild
  26. $(MAKE) ARCH=@KERNEL_ARCH@ -C @KERNEL_BUILD_PATH@ O=@KERNEL_BUILD_PATH@ M=$(PWD) modules
  27. clean-generic: