Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/Components.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ set(VITA_MAKEPKG_REPOSITORY https://github.com/vitasdk/vita-makepkg.git
set(NEWLIB_TAG 2e428297c0b6aefd830c5a75a7daa7e774562a42 CACHE STRING "newlib branch, commit id or tag")
set(SAMPLES_TAG fe8fbef570f3280586c0c20157146e3faefb2181 CACHE STRING "samples branch, commit id or tag")
set(HEADERS_TAG c00157c2abd6dfa05c126e7f2f4efb29e8431ba6 CACHE STRING "vita-headers branch, commit id or tag")
set(TOOLCHAIN_TAG 3ad9ed66aa0124df087a0cd59e185988d3acd40d CACHE STRING "vita-toolchain branch, commit id or tag")
set(TOOLCHAIN_TAG ae84811de62c02322dab23f249683f0926807e11 CACHE STRING "vita-toolchain branch, commit id or tag")
set(PTHREAD_TAG 11d2e5722d98c86f33c908fc47b2cf6e55205db5 CACHE STRING "pthread-embedded branch, commit id or tag")
set(VDPM_TAG v0.1.6 CACHE STRING "vdpm branch, commit id or tag")
set(VITA_MAKEPKG_TAG bbd1b18731cf8b6a69a18c9acdefd79a5b8c36eb CACHE STRING "vita-makepkg branch, commit id or tag")
36 changes: 29 additions & 7 deletions scripts/ci/build-host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ download_vdpm_bundle() {

# Same-runner smoke test only; a canadian cross cannot run what it built.
smoke_test_bootstrap() {
local bootstrap_archive=$1 digest install_root probe_pc version
local bootstrap_archive=$1 digest install_root probe_pc version cflags libs
# Empty for a host that runs here directly; a launcher for one that needs
# it. Unquoted on purpose, so an empty prefix contributes no argument.
local -a run=(${2:-})
Expand Down Expand Up @@ -177,17 +177,39 @@ Version: 1.0
Libs: -L${libdir} -lprobe
Cflags: -I${includedir}/probe
EOF
version=$(VITASDK="$install_root" \
PKG_CONFIG_DIR=/host/pkgconfig \
PKG_CONFIG_PATH=/host/pkgconfig \
PKG_CONFIG_SYSROOT_DIR=/host \
PKG_CONFIG_LIBDIR=/host/pkgconfig \
${run[@]+"${run[@]}"} "$install_root/bin/arm-vita-eabi-pkg-config" \
local -a pkgconfig_env=(
"VITASDK=$install_root"
PKG_CONFIG_DIR=/host/pkgconfig
PKG_CONFIG_PATH=/host/pkgconfig
PKG_CONFIG_SYSROOT_DIR=/host
PKG_CONFIG_PRELOADED_FILES=/host/preloaded
PKG_CONFIG_MSVC_SYNTAX=1
PKG_CONFIG_SYSTEM_INCLUDE_PATH=/host/include
PKG_CONFIG_SYSTEM_LIBRARY_PATH=/host/lib
PKG_CONFIG_LIBDIR=/host/pkgconfig
)
version=$(env ${pkgconfig_env[@]+"${pkgconfig_env[@]}"} ${run[@]+"${run[@]}"} \
"$install_root/bin/arm-vita-eabi-pkg-config" \
--modversion vitasdk-wrapper-probe)
[[ $version == 1.0 ]] || {
printf 'pkg-config frontend returned version %s, expected 1.0\n' "$version" >&2
exit 1
}
cflags=$(env ${pkgconfig_env[@]+"${pkgconfig_env[@]}"} ${run[@]+"${run[@]}"} \
"$install_root/bin/arm-vita-eabi-pkg-config" \
--cflags vitasdk-wrapper-probe)
[[ $cflags == -I* && $cflags == *'/arm-vita-eabi/include/probe'* ]] || {
printf 'pkg-config frontend returned non-Unix cflags: %s\n' "$cflags" >&2
exit 1
}
libs=$(env ${pkgconfig_env[@]+"${pkgconfig_env[@]}"} ${run[@]+"${run[@]}"} \
"$install_root/bin/arm-vita-eabi-pkg-config" \
--libs vitasdk-wrapper-probe)
[[ $libs == -L* && $libs == *'-lprobe'* && \
$libs != *'/libpath:'* && $libs != *'probe.lib'* ]] || {
printf 'pkg-config frontend returned non-Unix libs: %s\n' "$libs" >&2
exit 1
}
}

# Builds against $stage1_dir if set, then stages outputs plus provenance.
Expand Down
Loading