IASL: Enable warnings as errors
We've actually got more warnings now than when I first tested IASL warnings as errors. Because of this, I'm adding it with the option to have it disabled, in hopes that things won't get any worse as we work on fixing the IASL warnings that are currently in the codebase. - Enable IASL warnings as errors - Disable warnings as errors in mainboards that currently have warnings. - Print a really obnoxious message on those platforms when they build. ***** WARNING: IASL warnings as errors is disabled! ***** ***** Please fix the ASL for this platform. ***** Change-Id: If0da0ac709bd8c0e8e2dbd3a498fe6ecb5500a81 Signed-off-by: Martin Roth <gaumless@gmail.com> Reviewed-on: http://review.coreboot.org/10663 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
845b00ce33
commit
77c67b3d30
|
@ -196,7 +196,11 @@ cbfs-files-$(if $(2),$(2),y) += $(call strip_quotes,$(CONFIG_CBFS_PREFIX))/$(1).
|
|||
$(obj)/$(1).aml: $(src)/mainboard/$(MAINBOARDDIR)/$(1).asl $(obj)/config.h
|
||||
@printf " IASL $$(subst $(top)/,,$$(@))\n"
|
||||
$(CC_ramstage) -x assembler-with-cpp -E -MMD -MT $$(@) $$(CPPFLAGS_ramstage) -D__ACPI__ -P -include $(src)/include/kconfig.h -I$(obj) -I$(src) -I$(src)/include -I$(src)/arch/$(ARCHDIR-$(ARCH-ramstage-y))/include -I$(src)/mainboard/$(MAINBOARDDIR) $$< -o $$@
|
||||
ifeq ($(CONFIG_IASL_WARNINGS_ARE_ERRORS),y)
|
||||
cd $$(dir $$@); $(IASL) -we -p $$(notdir $$@) $$(notdir $$@)
|
||||
else
|
||||
cd $$(dir $$@); $(IASL) -p $$(notdir $$@) $$(notdir $$@)
|
||||
endif
|
||||
endef
|
||||
|
||||
#######################################################################
|
||||
|
@ -660,6 +664,10 @@ endif
|
|||
mv $@.tmp $@
|
||||
@printf " CBFSPRINT $(subst $(obj)/,,$(@))\n\n"
|
||||
$(CBFSTOOL) $@ print
|
||||
ifeq ($(CONFIG_IASL_WARNINGS_ARE_ERRORS),)
|
||||
@printf "\n***** WARNING: IASL warnings as errors is disabled! *****\n"
|
||||
@printf "***** Please fix the ASL for this platform. *****\n\n"
|
||||
endif
|
||||
|
||||
cbfs-files-$(CONFIG_BOOTSPLASH_IMAGE) += bootsplash.jpg
|
||||
bootsplash.jpg-file := $(call strip_quotes,$(CONFIG_BOOTSPLASH_FILE))
|
||||
|
|
13
src/Kconfig
13
src/Kconfig
|
@ -1067,6 +1067,19 @@ config WARNINGS_ARE_ERRORS
|
|||
bool
|
||||
default y
|
||||
|
||||
# TODO: Remove this when all platforms are fixed.
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool y
|
||||
help
|
||||
Select to Fail the build if a IASL generates a warning.
|
||||
This will be defaulted to disabled for the platforms that
|
||||
currently fail. This allows the REST of the platforms to
|
||||
have this check enabled while we're working to get those
|
||||
boards fixed.
|
||||
|
||||
DO NOT ADD TO ANY ADDITIONAL PLATFORMS INSTEAD OF FIXING
|
||||
THE ASL.
|
||||
|
||||
# The four POWER_BUTTON_DEFAULT_ENABLE, POWER_BUTTON_DEFAULT_DISABLE,
|
||||
# POWER_BUTTON_FORCE_ENABLE and POWER_BUTTON_FORCE_DISABLE options are
|
||||
# mutually exclusive. One of these options must be selected in the
|
||||
|
|
|
@ -38,4 +38,8 @@ config HAVE_ME_BIN
|
|||
bool
|
||||
default n
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_INTEL_BAYLEYBAY
|
||||
|
|
|
@ -65,4 +65,8 @@ config VGA_BIOS_ID
|
|||
string
|
||||
default "1002,9900"
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_HP_PAVILION_M6_1035DX
|
||||
|
|
|
@ -49,4 +49,8 @@ config VGA_BIOS_FILE
|
|||
string
|
||||
default "amipci_01.20"
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_IBASE_MB899
|
||||
|
|
|
@ -50,4 +50,8 @@ config MAX_CPUS
|
|||
int
|
||||
default 4
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_INTEL_D945GCLF
|
||||
|
|
|
@ -35,4 +35,8 @@ config MAX_CPUS
|
|||
int
|
||||
default 4
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_INTEL_EAGLEHEIGHTS
|
||||
|
|
|
@ -28,6 +28,10 @@ config IRQ_SLOT_COUNT
|
|||
int
|
||||
default 10
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
# This mainboard might have a higher clocked UART or might not be able to run
|
||||
# serial output at 115200 baud
|
||||
|
||||
|
|
|
@ -42,4 +42,8 @@ config VGA_BIOS_FILE
|
|||
string
|
||||
default "amipci_01.20"
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_KONTRON_986LCD_M
|
||||
|
|
|
@ -4,4 +4,8 @@ config MAINBOARD_PART_NUMBER
|
|||
string
|
||||
default "ThinkPad R400"
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif
|
||||
|
|
|
@ -51,4 +51,8 @@ config CBFS_SIZE
|
|||
hex
|
||||
default 0x200000
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_LENOVO_T400
|
||||
|
|
|
@ -73,4 +73,8 @@ config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
|
|||
hex
|
||||
default 0x21d2
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_LENOVO_T420S
|
||||
|
|
|
@ -70,4 +70,8 @@ config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
|
|||
hex
|
||||
default 0x21fb
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_LENOVO_T430S
|
||||
|
|
|
@ -73,4 +73,8 @@ config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
|
|||
hex
|
||||
default 0x21cf
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_LENOVO_T520
|
||||
|
|
|
@ -71,4 +71,8 @@ config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
|
|||
hex
|
||||
default 0x21fa
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_LENOVO_T530
|
||||
|
|
|
@ -54,4 +54,8 @@ config SEABIOS_PS2_TIMEOUT
|
|||
int
|
||||
default 3000
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif
|
||||
|
|
|
@ -48,4 +48,8 @@ config CBFS_SIZE
|
|||
hex
|
||||
default 0x200000
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_LENOVO_X200
|
||||
|
|
|
@ -49,4 +49,8 @@ config CPU_ADDR_BITS
|
|||
int
|
||||
default 36
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif
|
||||
|
|
|
@ -74,4 +74,8 @@ config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
|
|||
hex
|
||||
default 0x21db
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_LENOVO_X220
|
||||
|
|
|
@ -74,4 +74,8 @@ config MAINBOARD_PCI_SUBSYSTEM_DEVICE_ID
|
|||
hex
|
||||
default 0x21fa
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_LENOVO_X230
|
||||
|
|
|
@ -61,4 +61,8 @@ config SEABIOS_PS2_TIMEOUT
|
|||
int
|
||||
default 3000
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif
|
||||
|
|
|
@ -76,4 +76,8 @@ config SB800_AHCI_ROM
|
|||
bool
|
||||
default n
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_LIPPERT_FRONTRUNNER_AF
|
||||
|
|
|
@ -78,4 +78,8 @@ config SB800_AHCI_ROM
|
|||
bool
|
||||
default n
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_LIPPERT_TOUCAN_AF
|
||||
|
|
|
@ -110,4 +110,8 @@ config PINMUX_UART_D
|
|||
|
||||
endchoice
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_PCENGINES_APU1
|
||||
|
|
|
@ -64,4 +64,8 @@ config EARLY_PCI_MMIO_BASE
|
|||
|
||||
endif
|
||||
|
||||
# TODO: Remove this when platform ASL is fixed
|
||||
config IASL_WARNINGS_ARE_ERRORS
|
||||
def_bool n
|
||||
|
||||
endif # BOARD_SAMSUNG_LUMPY
|
||||
|
|
Loading…
Reference in New Issue