mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #18423 from MrKevinWeiss/pr/disable/hashchecks
.murdock: disable hash checks of kconfig/make
This commit is contained in:
commit
2dd59236c8
51
.murdock
51
.murdock
@ -456,15 +456,23 @@ compile() {
|
|||||||
|
|
||||||
if get_supported_kconfig_board_app "${board}" "${appdir}"; then
|
if get_supported_kconfig_board_app "${board}" "${appdir}"; then
|
||||||
should_check_kconfig_hash=1
|
should_check_kconfig_hash=1
|
||||||
BOARD=${board} make -C${appdir} clean
|
# As we have some issues with occasional unrelated hash mismatches
|
||||||
CCACHE_BASEDIR="$(pwd)" BOARD=${board} TOOLCHAIN=${toolchain} RIOT_CI_BUILD=1 TEST_KCONFIG=1 \
|
# we will stop the binary checks and rely only in a module/package
|
||||||
make -C${appdir} all test-input-hash -j${JOBS:-4}
|
# check to ensure kconfig is matching make.
|
||||||
RES=$?
|
# Only nightlies will check the hash...
|
||||||
if [ $RES -eq 0 ]; then
|
# Once we figure out the problem we can check the hashes again or
|
||||||
kconfig_hashes="$(cat ${BINDIR}/test-input-hash.sha1)"
|
# better yet just finish!
|
||||||
else
|
if [ ${NIGHTLY} -eq 1 ]; then
|
||||||
kconfig_hashes="kconfig-build-failed"
|
BOARD=${board} make -C${appdir} clean
|
||||||
echo "An error occurred while compiling using Kconfig";
|
CCACHE_BASEDIR="$(pwd)" BOARD=${board} TOOLCHAIN=${toolchain} RIOT_CI_BUILD=1 TEST_KCONFIG=1 \
|
||||||
|
make -C${appdir} all test-input-hash -j${JOBS:-4}
|
||||||
|
RES=$?
|
||||||
|
if [ $RES -eq 0 ]; then
|
||||||
|
kconfig_hashes="$(cat ${BINDIR}/test-input-hash.sha1)"
|
||||||
|
else
|
||||||
|
kconfig_hashes="kconfig-build-failed"
|
||||||
|
echo "An error occurred while compiling using Kconfig";
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -474,22 +482,29 @@ compile() {
|
|||||||
make -C${appdir} all test-input-hash -j${JOBS:-4}
|
make -C${appdir} all test-input-hash -j${JOBS:-4}
|
||||||
RES=$?
|
RES=$?
|
||||||
|
|
||||||
no_kconfig_hashes="$(cat ${BINDIR}/test-input-hash.sha1)"
|
if [ ${NIGHTLY} -eq 1 ]; then
|
||||||
|
no_kconfig_hashes="$(cat ${BINDIR}/test-input-hash.sha1)"
|
||||||
|
fi
|
||||||
# test hash is used to cache test results, not for comparing binaries
|
# test hash is used to cache test results, not for comparing binaries
|
||||||
# generated with and without KConfig
|
# generated with and without KConfig
|
||||||
test_hash=$(test_hash_calc "$BINDIR")
|
test_hash=$(test_hash_calc "$BINDIR")
|
||||||
|
|
||||||
|
|
||||||
if [ ${should_check_kconfig_hash} != 0 ]; then
|
if [ ${should_check_kconfig_hash} != 0 ]; then
|
||||||
if [ "${kconfig_hashes}" != "${no_kconfig_hashes}" ]; then
|
if [ ${NIGHTLY} -eq 1 ]; then
|
||||||
echo "Hashes of binaries with and without Kconfig mismatch for ${appdir} with ${board}";
|
if [ "${kconfig_hashes}" != "${no_kconfig_hashes}" ]; then
|
||||||
echo "Please check that all used modules are modelled in Kconfig and enabled";
|
echo "Hashes of binaries with and without Kconfig mismatch for ${appdir} with ${board}";
|
||||||
echo "Input without KConfig:"
|
echo "Please check that all used modules are modelled in Kconfig and enabled";
|
||||||
echo "${no_kconfig_hashes}"
|
echo "Input without KConfig:"
|
||||||
echo "Input with KConfig:"
|
echo "${no_kconfig_hashes}"
|
||||||
echo "${kconfig_hashes}"
|
echo "Input with KConfig:"
|
||||||
|
echo "${kconfig_hashes}"
|
||||||
|
kconfig_module_packages_diff ${board} ${appdir}
|
||||||
|
RES=1
|
||||||
|
fi
|
||||||
|
else
|
||||||
kconfig_module_packages_diff ${board} ${appdir}
|
kconfig_module_packages_diff ${board} ${appdir}
|
||||||
RES=1
|
RES=$(( $RES | $? ))
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -484,11 +484,13 @@ endif
|
|||||||
|
|
||||||
# Check if programmer is supported by the board, only if PROGRAMMERS_SUPPORTED
|
# Check if programmer is supported by the board, only if PROGRAMMERS_SUPPORTED
|
||||||
# is set and if programmer is not iotlab
|
# is set and if programmer is not iotlab
|
||||||
ifneq (iotlab,$(PROGRAMMER))
|
ifneq ($(RIOT_CI_BUILD),1)
|
||||||
ifneq (,$(PROGRAMMERS_SUPPORTED))
|
ifneq (iotlab,$(PROGRAMMER))
|
||||||
ifeq (,$(filter $(PROGRAMMER),$(PROGRAMMERS_SUPPORTED)))
|
ifneq (,$(PROGRAMMERS_SUPPORTED))
|
||||||
$(info '$(PROGRAMMER)' programmer is not supported by this board. \
|
ifeq (,$(filter $(PROGRAMMER),$(PROGRAMMERS_SUPPORTED)))
|
||||||
Supported programmers: '$(PROGRAMMERS_SUPPORTED)')
|
$(info '$(PROGRAMMER)' programmer is not supported by this board. \
|
||||||
|
Supported programmers: '$(PROGRAMMERS_SUPPORTED)')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -526,7 +528,6 @@ ifeq ($(RIOT_CI_BUILD),1)
|
|||||||
# set a dummy version number
|
# set a dummy version number
|
||||||
RIOT_VERSION_CODE ?= $(RIOT_VERSION_DUMMY_CODE)
|
RIOT_VERSION_CODE ?= $(RIOT_VERSION_DUMMY_CODE)
|
||||||
ifneq ($(filter $(BOARD_INSUFFICIENT_MEMORY), $(BOARD)),)
|
ifneq ($(filter $(BOARD_INSUFFICIENT_MEMORY), $(BOARD)),)
|
||||||
$(info CI-build: skipping link step)
|
|
||||||
RIOTNOLINK:=1
|
RIOTNOLINK:=1
|
||||||
endif
|
endif
|
||||||
# be more quiet when building for CI
|
# be more quiet when building for CI
|
||||||
|
@ -24,6 +24,7 @@ config BOARD_AVR_RSS2
|
|||||||
select HAVE_SAUL_GPIO
|
select HAVE_SAUL_GPIO
|
||||||
select HAVE_BME280_I2C
|
select HAVE_BME280_I2C
|
||||||
select HAVE_AT24MAC
|
select HAVE_AT24MAC
|
||||||
|
select HAVE_MTD_AT24CXXX
|
||||||
|
|
||||||
|
|
||||||
source "$(RIOTBOARD)/common/atmega/Kconfig"
|
source "$(RIOTBOARD)/common/atmega/Kconfig"
|
||||||
|
@ -29,6 +29,7 @@ config BOARD_SAME54_XPRO
|
|||||||
select HAVE_AT24MAC
|
select HAVE_AT24MAC
|
||||||
select HAVE_SAM0_ETH
|
select HAVE_SAM0_ETH
|
||||||
select HAVE_SAM0_SDHC
|
select HAVE_SAM0_SDHC
|
||||||
|
select HAVE_MTD_AT24CXXX
|
||||||
|
|
||||||
# This specific board requires SPI_ON_QSPI for the MTD_SPI_NOR
|
# This specific board requires SPI_ON_QSPI for the MTD_SPI_NOR
|
||||||
select MODULE_PERIPH_SPI_ON_QSPI if MODULE_MTD_SPI_NOR
|
select MODULE_PERIPH_SPI_ON_QSPI if MODULE_MTD_SPI_NOR
|
||||||
|
@ -8,49 +8,3 @@
|
|||||||
config MODULE_PERIPH
|
config MODULE_PERIPH
|
||||||
bool
|
bool
|
||||||
default y
|
default y
|
||||||
|
|
||||||
if MODULE_PERIPH
|
|
||||||
|
|
||||||
config MODULE_PERIPH_WDT_SERIES0
|
|
||||||
bool
|
|
||||||
depends on CPU_EFM32_SERIES0
|
|
||||||
default MODULE_PERIPH_WDT
|
|
||||||
help
|
|
||||||
WDT driver implementation for EFM32 series 0.
|
|
||||||
|
|
||||||
config MODULE_PERIPH_WDT_SERIES1
|
|
||||||
bool
|
|
||||||
depends on CPU_EFM32_SERIES1
|
|
||||||
default MODULE_PERIPH_WDT
|
|
||||||
help
|
|
||||||
WDT driver implementation for EFM32 series 1.
|
|
||||||
|
|
||||||
config MODULE_PERIPH_RTC_SERIES0
|
|
||||||
bool
|
|
||||||
depends on CPU_EFM32_SERIES0
|
|
||||||
default MODULE_PERIPH_RTC
|
|
||||||
help
|
|
||||||
RTC driver implementation for EFM32 series 0.
|
|
||||||
|
|
||||||
config MODULE_PERIPH_RTC_SERIES1
|
|
||||||
bool
|
|
||||||
depends on CPU_EFM32_SERIES1
|
|
||||||
default MODULE_PERIPH_RTC
|
|
||||||
help
|
|
||||||
RTC driver implementation for EFM32 series 1.
|
|
||||||
|
|
||||||
config PERIPH_RTT_SERIES0
|
|
||||||
bool
|
|
||||||
depends on CPU_EFM32_SERIES0
|
|
||||||
default MODULE_PERIPH_RTT
|
|
||||||
help
|
|
||||||
RTT driver implementation for EFM32 series 0.
|
|
||||||
|
|
||||||
config PERIPH_RTT_SERIES1
|
|
||||||
bool
|
|
||||||
depends on CPU_EFM32_SERIES1
|
|
||||||
default MODULE_PERIPH_RTT
|
|
||||||
help
|
|
||||||
RTT driver implementation for EFM32 series 1.
|
|
||||||
|
|
||||||
endif # MODULE_PERIPH
|
|
||||||
|
@ -40,7 +40,7 @@ endif # MODULE_STM32_ETH
|
|||||||
config MODULE_PERIPH_ETH
|
config MODULE_PERIPH_ETH
|
||||||
bool
|
bool
|
||||||
depends on HAS_PERIPH_ETH
|
depends on HAS_PERIPH_ETH
|
||||||
select MODULE_PERIPH_ETH_COMMON
|
select MODULE_PERIPH_ETH_COMMON if CPU_STM32
|
||||||
|
|
||||||
config MODULE_PERIPH_ETH_COMMON
|
config MODULE_PERIPH_ETH_COMMON
|
||||||
bool
|
bool
|
||||||
|
@ -63,6 +63,5 @@ config MODULE_AT24CXXX
|
|||||||
bool
|
bool
|
||||||
depends on HAS_PERIPH_I2C
|
depends on HAS_PERIPH_I2C
|
||||||
depends on TEST_KCONFIG
|
depends on TEST_KCONFIG
|
||||||
select HAVE_MTD_AT24CXXX
|
|
||||||
select MODULE_PERIPH_I2C
|
select MODULE_PERIPH_I2C
|
||||||
select MODULE_XTIMER
|
select MODULE_XTIMER
|
||||||
|
@ -9,7 +9,6 @@ config MODULE_AT25XXX
|
|||||||
bool "AT25xxx SPI-EEPROMs"
|
bool "AT25xxx SPI-EEPROMs"
|
||||||
depends on HAS_PERIPH_SPI
|
depends on HAS_PERIPH_SPI
|
||||||
depends on TEST_KCONFIG
|
depends on TEST_KCONFIG
|
||||||
select HAVE_MTD_AT25XXX
|
|
||||||
select MODULE_PERIPH_SPI
|
select MODULE_PERIPH_SPI
|
||||||
select MODULE_XTIMER
|
select MODULE_XTIMER
|
||||||
help
|
help
|
||||||
|
@ -7,14 +7,12 @@
|
|||||||
|
|
||||||
config HAVE_MTD_AT24CXXX
|
config HAVE_MTD_AT24CXXX
|
||||||
bool
|
bool
|
||||||
depends on MODULE_AT24CXXX
|
|
||||||
imply MODULE_MTD_AT24CXXX if MODULE_MTD
|
imply MODULE_MTD_AT24CXXX if MODULE_MTD
|
||||||
help
|
help
|
||||||
Indicates that a at24cxxx EEPROM MTD is present
|
Indicates that a at24cxxx EEPROM MTD is present
|
||||||
|
|
||||||
config HAVE_MTD_AT25XXX
|
config HAVE_MTD_AT25XXX
|
||||||
bool
|
bool
|
||||||
depends on MODULE_AT25XXX
|
|
||||||
imply MODULE_MTD_AT25XXX if MODULE_MTD
|
imply MODULE_MTD_AT25XXX if MODULE_MTD
|
||||||
help
|
help
|
||||||
Indicates that a at25xxx SPI-EEPROM MTD is present
|
Indicates that a at25xxx SPI-EEPROM MTD is present
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
# Always use periph_gpio_irq_unmask, if available
|
# Always use periph_gpio_irq_unmask, if available
|
||||||
FEATURES_OPTIONAL += periph_gpio_ll_irq_unmask
|
ifneq (,$(filter periph_gpio_ll%,$(USEMODULE)))
|
||||||
|
FEATURES_OPTIONAL += periph_gpio_ll_irq_unmask
|
||||||
|
endif
|
||||||
|
@ -14,7 +14,10 @@ PERIPH_IGNORE_MODULES := \
|
|||||||
periph_clic \
|
periph_clic \
|
||||||
periph_common \
|
periph_common \
|
||||||
periph_coretimer \
|
periph_coretimer \
|
||||||
|
periph_eth \
|
||||||
|
periph_eth_common \
|
||||||
periph_flash \
|
periph_flash \
|
||||||
|
periph_flashpage_in_address_space \
|
||||||
periph_flexcomm \
|
periph_flexcomm \
|
||||||
periph_gpio_ll \
|
periph_gpio_ll \
|
||||||
periph_gpio_ll_irq \
|
periph_gpio_ll_irq \
|
||||||
@ -26,12 +29,16 @@ PERIPH_IGNORE_MODULES := \
|
|||||||
periph_i2c_sw \
|
periph_i2c_sw \
|
||||||
periph_init% \
|
periph_init% \
|
||||||
periph_mcg \
|
periph_mcg \
|
||||||
|
periph_mcg_lite \
|
||||||
|
periph_nvm \
|
||||||
periph_plic \
|
periph_plic \
|
||||||
periph_rtc_ms \
|
periph_rtc_ms \
|
||||||
periph_rtc_rtt \
|
periph_rtc_rtt \
|
||||||
periph_rtt_hw_rtc \
|
periph_rtt_hw_rtc \
|
||||||
periph_rtt_hw_sys \
|
periph_rtt_hw_sys \
|
||||||
periph_spi_on_qspi \
|
periph_spi_on_qspi \
|
||||||
|
periph_uart_collision \
|
||||||
|
periph_uart_rxstart_irq \
|
||||||
periph_wdog \
|
periph_wdog \
|
||||||
#
|
#
|
||||||
PERIPH_MODULES := $(filter-out $(PERIPH_IGNORE_MODULES),\
|
PERIPH_MODULES := $(filter-out $(PERIPH_IGNORE_MODULES),\
|
||||||
|
@ -11,7 +11,9 @@ config MODULE_CPP11-COMPAT
|
|||||||
depends on HAS_CPP
|
depends on HAS_CPP
|
||||||
depends on HAS_LIBSTDCPP
|
depends on HAS_LIBSTDCPP
|
||||||
|
|
||||||
|
|
||||||
select MODULE_CPP
|
select MODULE_CPP
|
||||||
|
select MODULE_LIBSTDCPP
|
||||||
select MODULE_CPP_NEW_DELETE
|
select MODULE_CPP_NEW_DELETE
|
||||||
select MODULE_XTIMER
|
select MODULE_XTIMER
|
||||||
select MODULE_TIMEX
|
select MODULE_TIMEX
|
||||||
|
@ -5,7 +5,6 @@ CONFIG_MODULE_DFPLAYER=y
|
|||||||
# enable event thread in lowest priority
|
# enable event thread in lowest priority
|
||||||
CONFIG_MODULE_EVENT=y
|
CONFIG_MODULE_EVENT=y
|
||||||
CONFIG_MODULE_EVENT_THREAD=y
|
CONFIG_MODULE_EVENT_THREAD=y
|
||||||
CONFIG_MODULE_EVENT_THREAD_LOWEST=y
|
|
||||||
|
|
||||||
# enable shell with basic commands
|
# enable shell with basic commands
|
||||||
CONFIG_MODULE_SHELL=y
|
CONFIG_MODULE_SHELL=y
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
USEMODULE += board_esp32c3-ci
|
USEMODULE += board_esp32c3-ci
|
||||||
|
|
||||||
USEMODULE += esp_idf_heap
|
USEMODULE += esp_idf_heap
|
||||||
|
USEMODULE += esp_jtag
|
||||||
USEMODULE += esp_log_startup
|
USEMODULE += esp_log_startup
|
||||||
USEMODULE += esp_log_tagged
|
USEMODULE += esp_log_tagged
|
||||||
|
|
||||||
|
@ -11,5 +11,4 @@ config APPLICATION
|
|||||||
imply MODULE_PERIPH_RTC
|
imply MODULE_PERIPH_RTC
|
||||||
imply MODULE_PERIPH_GPIO
|
imply MODULE_PERIPH_GPIO
|
||||||
imply MODULE_PERIPH_GPIO_IRQ
|
imply MODULE_PERIPH_GPIO_IRQ
|
||||||
imply MODULE_ZTIMER_NO_PERIPH_RTT if CPU_COMMON_SAM0
|
|
||||||
depends on TEST_KCONFIG
|
depends on TEST_KCONFIG
|
||||||
|
@ -19,5 +19,6 @@ config BOARD_NRF52840DK
|
|||||||
select HAVE_MTD_SPI_NOR
|
select HAVE_MTD_SPI_NOR
|
||||||
|
|
||||||
select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG
|
select MODULE_BOARDS_COMMON_NRF52XXXDK if TEST_KCONFIG
|
||||||
|
select MODULE_BOARD_NRF52840DK_QDEC if TEST_KCONFIG
|
||||||
|
|
||||||
source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig"
|
source "$(RIOTBOARD)/common/nrf52xxxdk/Kconfig"
|
@ -10,4 +10,3 @@ config APPLICATION
|
|||||||
default y
|
default y
|
||||||
imply MODULE_PERIPH_RTC_MEM
|
imply MODULE_PERIPH_RTC_MEM
|
||||||
imply MODULE_PERIPH_RTC_MS
|
imply MODULE_PERIPH_RTC_MS
|
||||||
imply MODULE_ZTIMER_NO_PERIPH_RTT
|
|
||||||
|
Loading…
Reference in New Issue
Block a user