From: Wei Liu Date: Fri, 2 Nov 2018 17:49:47 +0000 (+0000) Subject: automation: build some customised configs X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3025 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7ef789d79facf8456653933c99b0292cc6f1b68c;p=xen.git automation: build some customised configs Introduce a new directory to put in configs we care about. Modify build script to build with those configs. While we only introduce x86 configs initially, provision for non-x86 configs. Signed-off-by: Wei Liu Acked-by: Jan Beulich Acked-by: Doug Goldstein --- diff --git a/automation/configs/x86/hvm_only_config b/automation/configs/x86/hvm_only_config new file mode 100644 index 0000000000..9efbddd535 --- /dev/null +++ b/automation/configs/x86/hvm_only_config @@ -0,0 +1,3 @@ +CONFIG_HVM=y +# CONFIG_PV is not set +# CONFIG_DEBUG is not set diff --git a/automation/configs/x86/no_hvm_pv_config b/automation/configs/x86/no_hvm_pv_config new file mode 100644 index 0000000000..0bf6a8e468 --- /dev/null +++ b/automation/configs/x86/no_hvm_pv_config @@ -0,0 +1,3 @@ +# CONFIG_HVM is not set +# CONFIG_PV is not set +# CONFIG_DEBUG is not set diff --git a/automation/configs/x86/pv_only_config b/automation/configs/x86/pv_only_config new file mode 100644 index 0000000000..e9d8b4a7c7 --- /dev/null +++ b/automation/configs/x86/pv_only_config @@ -0,0 +1,3 @@ +CONFIG_PV=y +# CONFIG_HVM is not set +# CONFIG_DEBUG is not set diff --git a/automation/scripts/build b/automation/scripts/build index c463b060d4..ad848dfd00 100755 --- a/automation/scripts/build +++ b/automation/scripts/build @@ -31,3 +31,17 @@ fi ./configure "${cfgargs[@]}" make -j$(nproc) dist + +# Build all the configs we care about +case ${XEN_TARGET_ARCH} in + x86_64) arch=x86 ;; + *) exit 0 ;; +esac + +cfg_dir="automation/configs/${arch}" +for cfg in `ls ${cfg_dir}`; do + echo "Building $cfg" + rm -f xen/.config + make -C xen KBUILD_DEFCONFIG=../../../../${cfg_dir}/${cfg} XEN_CONFIG_EXPERT=y defconfig + make -j$(nproc) -C xen XEN_CONFIG_EXPERT=y +done