Skip to content
Merged
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 CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ if(NOT VITASDK_FLOAT_ABI STREQUAL "hard" AND NOT VITASDK_FLOAT_ABI STREQUAL "sof
message(FATAL_ERROR "VITASDK_FLOAT_ABI must be 'hard' or 'softfp', got '${VITASDK_FLOAT_ABI}'")
endif()
if(VITASDK_FLOAT_ABI STREQUAL "softfp")
set(world_arch "vita-softfp")
set(world_arch "vita_softfp")
else()
set(world_arch "vita")
endif()
Expand Down
14 changes: 12 additions & 2 deletions cmake/Profiles.cmake
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
include_guard(GLOBAL)

# Published profile (world) names; describe rejects anything else.
set(VITASDK_PROFILES vita vita-softfp)
set(VITASDK_PROFILES vita vita_softfp)

# The float ABI each profile bakes into the toolchain. A profile is a world and
# a world is named by the architecture its packages carry, so the name is the
# same on both sides of the build.
set(VITASDK_PROFILE_FLOAT_ABI_vita hard)
set(VITASDK_PROFILE_FLOAT_ABI_vita-softfp softfp)
set(VITASDK_PROFILE_FLOAT_ABI_vita_softfp softfp)

# makepkg builds shell variable names from CARCH (depends_$CARCH), so a world
# whose name is not an identifier corrupts them and then aborts the build.
foreach(profile IN LISTS VITASDK_PROFILES)
if(NOT profile MATCHES "^[A-Za-z_][A-Za-z0-9_]*$")
message(FATAL_ERROR
"profile '${profile}' is not a valid shell identifier; makepkg "
"expands depends_${profile} and friends")
endif()
endforeach()
2 changes: 1 addition & 1 deletion scripts/validate-core-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if [[ $pkgname == vitasdk-core ]]; then
exit 1
}

# The world (vita, vita-softfp, ...) is stamped in two independent places;
# The world (vita, vita_softfp, ...) is stamped in two independent places;
# a mismatch means the build tagged the release for one world while
# actually configuring the toolchain, or makepkg, for another.
world_from_version=$(bsdtar -xOf "$package" version_info.txt |
Expand Down
4 changes: 2 additions & 2 deletions tests/ci/test-build-host-args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ run_build_host \
--host x86_64-linux-gnu --stage 1 \
--artifacts-dir "$temporary_directory/artifacts-6" --out-dir "$temporary_directory/out-6" \
--build-id sha256:test --version 0.1.1 --revision "$revision" \
--profile vita-softfp --packaged false >/dev/null 2>&1 || true
--profile vita_softfp --packaged false >/dev/null 2>&1 || true

grep -qx -- '-DVITASDK_PROFILE=vita-softfp' "$recorded" || {
grep -qx -- '-DVITASDK_PROFILE=vita_softfp' "$recorded" || {
printf 'stage 1 did not pass the profile to cmake:\n%s\n' "$(cat "$recorded")" >&2
exit 1
}
Expand Down
2 changes: 1 addition & 1 deletion tests/protocol/test-describe-lock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ second_run=$(describe --profile vita --revision "$base_rev")
base_build_id=$(field build_id <<< "$first_run")

# Changing the profile changes build_id, same revision.
softfp_build_id=$(describe --profile vita-softfp --revision "$base_rev" | field build_id)
softfp_build_id=$(describe --profile vita_softfp --revision "$base_rev" | field build_id)
[[ $base_build_id != "$softfp_build_id" ]] || {
printf 'build_id did not change when the profile changed\n' >&2
exit 1
Expand Down
Loading