support XSM/FLASK via Kconfig
PATCH v3 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 v3:
- Wrap all hunks of code with checks for Kconfig to not dirty the tree
Changes since v2:
- Support Xen versions prior to Kconfig being integrated
--- ts-xen-build | 7 +++++++ 1 file changed, 7 insertions(+)
ts-xen-build +7 -0
@@ -55,6 +55,10 @@ sub checkout () { echo >>.config KERNELS='' END (nonempty($r{enable_xsm}) ? <<END : ''). + if test -f xen/Kconfig; then + echo >>xen/.config CONFIG_XSM='${build_xsm}' + echo >>xen/.config CONFIG_FLASK='${build_xsm}' + fi echo >>.config XSM_ENABLE='${build_xsm}' END (nonempty($r{tree_qemu}) ? <<END : '').
@@ -126,6 +130,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
Quoted 1 line · Doug Goldstein
In antcipation of XSM and FLASK migrating to
Kconfigadd support for
"anticipation"
Quoted 5 lines
building them via
Kconfigor the existing mechanism.Signed-off-by Doug Goldstein <[email protected]>---
Still untested but visually looks correct.
To me as well. I have a couple of questions though.
Quoted 17 lines
Changes since v3:
- Wrap all hunks of code with checks forKconfigto not dirty the treeChanges since v2:
- Support Xen versions prior toKconfigbeing integrated
---
ts-xen-build | 7 +++++++1 file changed, 7 insertions(+)ts-xen-build +0
-0@@ -55,6 +55,10 @@ sub checkout () {echo >>.config KERNELS=''
END
(nonempty($r{enable_xsm}) ? <<END : '').
ts-xen-build sub checkout () { · line 60
Quoted 3 lines
ts-xen-build +3
-0+ if test -f xen/Kconfig; then + echo >>xen/.config CONFIG_XSM='${build_xsm}' + echo >>xen/.config CONFIG_FLASK='${build_xsm}'
These are meaningless in a tree which has Kconfig but not yet the patches to make XSM configured that way. However the subsequent olddefconfig will just cause them to be dropped from the eventual .config.
Which then answers my second question which is: is this...
Quoted 2 lines
ts-xen-build +1
-0+ fiecho >>.config XSM_ENABLE='${build_xsm}'
... echo still needed if xen/Kconfig exists? The answer I think is yes precisely because of the window of time mention above.
I suppose it will be possible to detect of this echo is needed with "grep -q XSM_ENABLE Config.mk", but maybe that can wait for another time.
Also I conclude that this osstest patch should be a blocker for the xen.git change, since if xen.git is patched first our XSM builds will unexpectedly be non-Xsm builds.
Quoted 4 lines
END
(nonempty($r{tree_qemu}) ? <<END : '').ts-xen-build +0
-0@@ -126,6 +130,9 @@ ENDEND
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
Quoted 38 lines · Ian Campbell
Quoted 1 line · Doug Goldstein
In antcipation of XSM and FLASK migrating to
Kconfigadd support for"anticipation"
Quoted 5 lines
building them via
Kconfigor the existing mechanism.Signed-off-by Doug Goldstein <[email protected]>---
Still untested but visually looks correct.To me as well. I have a couple of questions though.
Quoted 14 lines
Changes since v3:
- Wrap all hunks of code with checks forKconfigto not dirty the treeChanges since v2:
- Support Xen versions prior toKconfigbeing integrated--- ts-xen-build | 7 +++++++ 1 file changed, 7 insertions(+)ts-xen-build +0
-0ts-xen-build sub checkout () { · line 60
Quoted 6 lines
ts-xen-build +3
-0@@ -55,6 +55,10 @@ sub checkout () { echo >>.config KERNELS='' END (nonempty($r{enable_xsm}) ? <<END : ''). + if test -f xen/Kconfig; then + echo >>xen/.config CONFIG_XSM='${build_xsm}' + echo >>xen/.config CONFIG_FLASK='${build_xsm}'These are meaningless in a tree which has
Kconfigbut not yet the patches to make XSM configured that way. However the subsequent olddefconfig will just cause them to be dropped from the eventual .config.
Quoted 7 lines
Which then answers my second question which is: is this...
ts-xen-build sub checkout () { · line 62
Quoted 2 lines
ts-xen-build +1
-0+ fi echo >>.config XSM_ENABLE='${build_xsm}'... echo still needed if xen/Kconfig exists? The answer I think is yes precisely because of the window of time mention above.
yes due to the difference between Kconfig landing and XSM changing to take advantage due to
Quoted 3 lines
I suppose it will be possible to detect of this echo is needed with "grep -q
XSM_ENABLEConfig.mk", but maybe that can wait for another time.
I thought it was harmless to include it so I didn't bother with the grep. I can roll a v4 with that if you'd prefer.
Quoted 4 lines
Also I conclude that this osstest patch should be a blocker for the xen.git change, since if xen.git is patched first our XSM builds will unexpectedly be non-Xsm builds.
Yes.
Quoted 13 lines
ts-xen-build END · line 138
Quoted 13 lines
ts-xen-build +3
-0END (nonempty($r{tree_qemu}) ? <<END : '').@@ -126,6 +130,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
So I guess my question is do I need to roll a v4 or is this ok (save for the spelling mistake in the commit msg).
Signature · 1 line
Doug Goldstein
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Doug Goldstein writes ("[OSSTEST PATCH v3] support XSM/FLASK via Kconfig"):
Quoted 6 lines
In antcipation of XSM and FLASK migrating to
Kconfigadd support for building them viaKconfigor the existing mechanism.Signed-off-by Doug Goldstein <[email protected]>---
Still untested but visually looks correct.
I think I am happy to throw this into the osstest push gate without further ad-hoc testing.
Ian.