Skip to contentSkip to conversation

Fix randconfig build in travis-ci

PATCH In review Wei Liu 3 participants 7 messages Dec 5, 2016

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

cover Fix randconfig build in travis-ci

Wei Liu (2):
Kconfig: introduce allrandom.config
Travis-ci: specify KCONFIG_ALLCONFIG for randconfig

 scripts/travis-build               | 2 +-
 xen/tools/kconfig/allrandom.config | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
 create mode 100644 xen/tools/kconfig/allrandom.config
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
author
#1 lore raw

PATCH 1/2 Kconfig: introduce allrandom.config

This would be used to force selection of certain items in randconfig.

We need this to force gcov format to be autodetected in randconfig target, which would avoid generating known-incompatible combinations.

---
Cc: Doug Goldstein <[email protected]>

---
 xen/tools/kconfig/allrandom.config | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 xen/tools/kconfig/allrandom.config
xen/tools/kconfig/allrandom.config new file +1 -0
new file mode 100644
index 0000000..e49e7d6
@@ -0,0 +1 @@
+CONFIG_GCOV_FORMAT_AUTODETECT=y
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
author
#4 lore raw

PATCH 2/2 Travis-ci: specify KCONFIG_ALLCONFIG for randconfig

In reply to Wei Liu

The file provided contains symbols that must be set to certain values. This then prevents random build breakage in travis due to known-incompatible symbol selections.

---
Cc: Doug Goldstein <[email protected]>

---
 scripts/travis-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/travis-build +1 -1
index 584d008..0cb15a8 100755
@@ -4,7 +4,7 @@ $CC --version
 
 # random config or default config
 if [[ "${RANDCONFIG}" == "y" ]]; then
-    make -C xen randconfig
+    make -C xen KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config randconfig
 else
     make -C xen defconfig
 fi
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw

Re: [PATCH 1/2] Kconfig: introduce allrandom.config

In reply to Wei Liu

xen/tools/kconfig/allrandom.config

Quoted 19 lines · Wei Liu

This would be used to force selection of certain items in randconfig.

We need this to force gcov format to be autodetected in randconfig target, which would avoid generating known-incompatible combinations.

---
Cc: Doug Goldstein <[email protected]>

---
 xen/tools/kconfig/allrandom.config | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 xen/tools/kconfig/allrandom.config
xen/tools/kconfig/allrandom.config new file +0 -0
new file mode 100644
index 0000000..e49e7d6
@@ -0,0 +1 @@

I'd put a comment here saying

# Explicit option choices not subject to regular RANDCONFIG

Otherwise, Reviewed-by: Andrew Cooper <[email protected]>

xen/tools/kconfig/allrandom.config line 1

Quoted 1 line
xen/tools/kconfig/allrandom.config new file +1 -0
+CONFIG_GCOV_FORMAT_AUTODETECT=y

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Reviewed-by on v1 2/2
#5 lore raw

Re: [PATCH 2/2] Travis-ci: specify KCONFIG_ALLCONFIG for randconfig

In reply to Wei Liu
Quoted 5 lines · Wei Liu

The file provided contains symbols that must be set to certain values. This then prevents random build breakage in travis due to known-incompatible symbol selections.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Reviewed-by on v1 1/2
#3 lore raw

Re: [PATCH 1/2] Kconfig: introduce allrandom.config

In reply to Wei Liu
Quoted 20 lines · Wei Liu

This would be used to force selection of certain items in randconfig.

We need this to force gcov format to be autodetected in randconfig target, which would avoid generating known-incompatible combinations.

---
Cc: Doug Goldstein <[email protected]>

---
 xen/tools/kconfig/allrandom.config | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 xen/tools/kconfig/allrandom.config
xen/tools/kconfig/allrandom.config new file +0 -0
new file mode 100644
index 0000000..e49e7d6

xen/tools/kconfig/allrandom.config line 1

Quoted 1 line
xen/tools/kconfig/allrandom.config new file +1 -0
@@ -0,0 +1 @@
+CONFIG_GCOV_FORMAT_AUTODETECT=y

Thank you for doing this Wei. I do agree with Andrew about the explicit comment.

Signature · 1 line
Doug Goldstein

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Reviewed-by on v1 2/2
#6 lore raw

Re: [PATCH 2/2] Travis-ci: specify KCONFIG_ALLCONFIG for randconfig

In reply to Wei Liu
Quoted 17 lines · Wei Liu

The file provided contains symbols that must be set to certain values. This then prevents random build breakage in travis due to known-incompatible symbol selections.

---
Cc: Doug Goldstein <[email protected]>

---
 scripts/travis-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/travis-build +0 -0
index 584d008..0cb15a8 100755

scripts/travis-build $CC --version · line 10

Quoted 8 lines
scripts/travis-build +1 -1
@@ -4,7 +4,7 @@ $CC --version
 
 # random config or default config
 if [[ "${RANDCONFIG}" == "y" ]]; then
-    make -C xen randconfig
+    make -C xen KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config randconfig
 else
     make -C xen defconfig
 fi
Signature · 1 line
Doug Goldstein

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel