Skip to content

Commit e76f567

Browse files
committed
Warn when choosing the embedded profile unless target is bare metal
It's almost never what users want and causes issues even if they change the profile later. Closes: https://bugs.gentoo.org/748975 Signed-off-by: James Le Cuirot <[email protected]>
1 parent 6e8a0ea commit e76f567

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crossdev

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,11 @@ einfo "Stage: ${STAGE} (${STAGE_DISP[${STAGE}]})"
12241224
einfo "USE=multilib: ${MULTILIB_USE}"
12251225
[[ ${DEFAULT_ABI} != "${MULTILIB_ABIS}" ]] && def_out=" (default: ${DEFAULT_ABI})" || def_out=
12261226
einfo "Target ABIs: ${MULTILIB_ABIS}${def_out}"
1227+
if [[ ${PROFILE} == embedded && ${KPKG} != "[none]" ]]; then
1228+
ewarn "Target Profile: ${PROFILE} (NOT RECOMMENDED, consider recreating with the --profile option)"
1229+
else
1230+
einfo "Target Profile: ${PROFILE}"
1231+
fi
12271232
echo
12281233
ex_fast || {
12291234
is_s0 && {

0 commit comments

Comments
 (0)