xen: add randconfig target to Makefile
PATCH 1/2 xen: add randconfig target to Makefile
This allows us to generate a random config which can be used for build testing random configurations.
Signed-off-by Doug Goldstein <[email protected]>
---
CC: Ian Campbell <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Keir Fraser <[email protected]>
CC: Tim Deegan <[email protected]>
--- xen/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
xen/Makefile +2 -1
@@ -238,7 +238,8 @@ FORCE: $(MAKE) -f $(BASEDIR)/Rules.mk -C $* built_in.o built_in_bin.o kconfig := silentoldconfig oldconfig config menuconfig defconfig \ - nconfig xconfig gconfig savedefconfig listnewconfig olddefconfig + nconfig xconfig gconfig savedefconfig listnewconfig olddefconfig \ + randconfig .PHONY: $(kconfig) $(kconfig): $(MAKE) -f $(BASEDIR)/tools/kconfig/Makefile.kconfig ARCH=$(ARCH) SRCARCH=$(SRCARCH) $@
Signature · 1 line
2.5.4 (Apple Git-61)
PATCH 2/2 travis: add randconfig test target
Add another build target which uses randconfig to randomize the config file so that we build test more than the default config.
Signed-off-by Doug Goldstein <[email protected]>
---
CC: Ian Campbell <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Keir Fraser <[email protected]>
CC: Tim Deegan <[email protected]>
--- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+)
.travis.yml +10 -0
@@ -8,6 +8,8 @@ matrix: - compiler: gcc env: XEN_TARGET_ARCH=x86_64 - compiler: gcc + env: XEN_TARGET_ARCH=x86_64 XEN_CONFIG_EXPERT=y RANDCONFIG=y + - compiler: gcc env: XEN_TARGET_ARCH=x86_64 COMPILER=gcc-5 - compiler: gcc env: XEN_TARGET_ARCH=x86_64 debug=y
@@ -24,10 +26,14 @@ matrix: - compiler: gcc env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- - compiler: gcc + env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- XEN_CONFIG_EXPERT=y RANDCONFIG=y + - compiler: gcc env: XEN_TARGET_ARCH=arm32 CROSS_COMPILE=arm-linux-gnueabihf- debug=y - compiler: gcc env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- - compiler: gcc + env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- XEN_CONFIG_EXPERT=y RANDCONFIG=y + - compiler: gcc env: XEN_TARGET_ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- debug=y addons: apt:
@@ -69,5 +75,9 @@ before_script: - export CC=${COMPILER:-${CC}} - ${CC} --version script: + - ( [ "x${RANDCONFIG}" = "xy" ] && ( make -C xen randconfig ) + || exit 0 ) - ( ./configure --disable-tools --disable-stubdom --enable-docs && make CC="${CROSS_COMPILE}${CC}" HOSTCC="${CC}" dist ) +after_script: + - cat xen/.config
Signature · 1 line
2.5.4 (Apple Git-61)