support XSM/FLASK via Kconfig
PATCH 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.
---
I have not tested this because I'm honestly not sure and I'm not sure if this is correct. I'm just trying to write something to prevent a failure once XSM/FLASK gets changed to Kconfig and education for myself on how to do these patches in the future.
--- ts-xen-build | 3 +++ 1 file changed, 3 insertions(+)
ts-xen-build +3 -0
@@ -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,7 @@ END END #/; buildcmd_stamped_logged(9000, 'build', '',<<END,''); + $make_prefix make -C xen olddefconfig $make_prefix make $makeflags @ARGV END
Signature · 1 line
2.4.10
Quoted 9 lines · Doug Goldstein
In antcipation of XSM and FLASK migrating to
Kconfigadd support for building them viaKconfigor the existing mechanism.Signed-off-by Doug Goldstein <[email protected]>---
I have not tested this because I'm honestly not sure and I'm not sure if this is correct. I'm just trying to write something to prevent a failure once XSM/FLASK gets changed toKconfigand education for myself on how to do these patches in the future.
The general shape looks plausible, but it needs to continue working even with Xen 4.6 and older.
Not sure how best to achieve that, perhaps checking for the existence of some well known piece of the Kconfig infrastructure and behaving accordingly?
Another alternative would be to add a runvar (see osstest.git/README for the terminology) which controls whether Kconfig is to be used expected, but given that this is static and per branch I'm not sure there is too much point in this case (and it would be more complex for a newcomer).
Ian J probably has an opinion.
Quoted 18 lines
---
ts-xen-build | 3 +++1 file changed, 3 insertions(+)ts-xen-build +0
-0@@ -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,7 @@ END
Quoted 7 lines
END
#/;
buildcmd_stamped_logged(9000, 'build', '',<<END,''); + $make_prefix make -C xen olddefconfig $make_prefix make $makeflags @ARGV END
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Ian Campbell writes ("Re: [OSSTEST PATCH] support XSM/FLASK via Kconfig"):
Quoted 3 lines · Doug Goldstein
Quoted 2 lines
In antcipation of XSM and FLASK migrating to
Kconfigadd support for building them viaKconfigor the existing mechanism.
...
Quoted 2 lines
The general shape looks plausible, but it needs to continue working even with Xen 4.6 and older.
Indeed.
Quoted 3 lines
Not sure how best to achieve that, perhaps checking for the existence of some well known piece of the
Kconfiginfrastructure and behaving accordingly?
Yes. This shouldn't be too hard and can probably be done entirely on the target (rather than expliictly testing in osstest and adjusting the rune).
Quoted 2 lines
Quoted 2 lines
buildcmd_stamped_logged(9000, 'build', '',<<END,''); + $make_prefix make -C xen olddefconfig
Ie,
if something; then
$make_prefix make -C xen olddefconfig
fi
Quoted 4 lines
Another alternative would be to add a runvar (see osstest.git/README for the terminology) which controls whether
Kconfigis to be used expected, but given that this is static and per branch I'm not sure there is too much point in this case (and it would be more complex for a newcomer).
I would definitely prefer not to do that.
Ian.