Skip to contentSkip to conversation

support XSM/FLASK via Kconfig

PATCH Superseded Doug Goldstein 2 participants 3 messages Jan 6, 2016

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 support XSM/FLASK via Kconfig

In antcipation of XSM and FLASK migrating to Kconfig add support for building them via Kconfig or the existing mechanism.

---
Still untested but visually looks correct.

Changes since v2:
- Support Xen versions prior to Kconfig being integrated

---
 ts-xen-build | 5 +++++
 1 file changed, 5 insertions(+)
ts-xen-build +5 -0
index 80b1faa..8dde146 100755
@@ -55,6 +55,8 @@ sub checkout () {
 	echo >>.config KERNELS=''
 END
                (nonempty($r{enable_xsm}) ? <<END : '').
+	echo >>xen/.config CONFIG_XSM='${build_xsm}'
+	echo >>xen/.config CONFIG_FLASK='${build_xsm}'
 	echo >>.config XSM_ENABLE='${build_xsm}'
 END
                (nonempty($r{tree_qemu}) ? <<END : '').
@@ -126,6 +128,9 @@ END
 END
 #/;
     buildcmd_stamped_logged(9000, 'build', '',<<END,'');
+            if test -f xen/Kconfig; then
+                $make_prefix make -C xen olddefconfig
+            fi
             $make_prefix make $makeflags @ARGV
 END
 
Signature · 1 line
2.4.10
#1 lore raw
Quoted 9 lines · Doug Goldstein

In antcipation of XSM and FLASK migrating to Kconfig add support for building them via Kconfig or the existing mechanism.

---
Still untested but visually looks correct.

Changes since v2:
- Support Xen versions prior to Kconfig being integrated

Do we not need the gate on the first hunk as well?

A non-Kconfig aware would ignore the xen/.config but osstest will collect it later on and that might confuse folks reading the logs.

Such a Xen also won't have a .gitignore entry for xen/.config, so various git commands might show this tree as dirty. I don't think osstest would rely on such though, so maybe this doesn't really matter. I don't think xen/scripts/scmversion adds -dirty in this case either.

Quoted 19 lines

---
 ts-xen-build | 5 +++++

 1 file changed, 5 insertions(+)
ts-xen-build +0 -0
index 80b1faa..8dde146 100755
@@ -55,6 +55,8 @@ sub checkout () {

  echo >>.config KERNELS=''
 END
                (nonempty($r{enable_xsm}) ? <<END : '').

ts-xen-build +2 -0
+	echo >>xen/.config CONFIG_XSM='${build_xsm}'
+	echo >>xen/.config CONFIG_FLASK='${build_xsm}'

  echo >>.config XSM_ENABLE='${build_xsm}' END
                (nonempty($r{tree_qemu}) ? <<END : '').

ts-xen-build +0 -0
@@ -126,6 +128,9 @@ END

 END

Quoted 8 lines

 #/;
     buildcmd_stamped_logged(9000, 'build', '',<<END,''); +            if test -f xen/Kconfig; then
+                $make_prefix make -C xen olddefconfig +            fi
             $make_prefix make $makeflags @ARGV END

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

#2 lore raw
Quoted 13 lines · Ian Campbell
Quoted 9 lines · Doug Goldstein

In antcipation of XSM and FLASK migrating to Kconfig add support for building them via Kconfig or the existing mechanism.

---
Still untested but visually looks correct.

Changes since v2:
- Support Xen versions prior to Kconfig being integrated

Do we not need the gate on the first hunk as well?

Quoted 7 lines

A non-Kconfig aware would ignore the xen/.config but osstest will collect it later on and that might confuse folks reading the logs.

Such a Xen also won't have a .gitignore entry for xen/.config, so various git commands might show this tree as dirty. I don't think osstest would rely on such though, so maybe this doesn't really matter. I don't think xen/scripts/scmversion adds -dirty in this case either.

Yeah you are correct. That would be better. I'll send another update.

Quoted 28 lines
Quoted 28 lines
---
 ts-xen-build | 5 +++++
 1 file changed, 5 insertions(+)
ts-xen-build +5 -0
index 80b1faa..8dde146 100755
@@ -55,6 +55,8 @@ sub checkout () {
 	echo >>.config KERNELS=''
 END
                (nonempty($r{enable_xsm}) ? <<END : '').
+	echo >>xen/.config CONFIG_XSM='${build_xsm}'
+	echo >>xen/.config CONFIG_FLASK='${build_xsm}'
 	echo >>.config XSM_ENABLE='${build_xsm}'
 END
                (nonempty($r{tree_qemu}) ? <<END : '').
@@ -126,6 +128,9 @@ END
 END
 #/;
     buildcmd_stamped_logged(9000, 'build', '',<<END,'');
+            if test -f xen/Kconfig; then
+                $make_prefix make -C xen olddefconfig
+            fi
             $make_prefix make $makeflags @ARGV
 END
 
Signature · 1 line
Doug Goldstein

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