File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -945,6 +945,7 @@ SHOW_FAIL_LOG="no"
945945SHOW_TARGET_CFG=" no"
946946INIT_TARGET_ONLY=" no"
947947LLVM=" no"
948+ PROFILE=" embedded"
948949
949950while [[ $# -gt 0 ]] ; do
950951 case $1 in
@@ -987,6 +988,7 @@ while [[ $# -gt 0 ]] ; do
987988 --cpkg) shift ; CPKG=$1 ;;
988989 -ox|--ov-extra) shift ; XOVLS+=( " $1 " );;
989990 --env) shift ; AENV=$1 ;;
991+ --profile) shift ; PROFILE=$1 ;;
990992 -L|--llvm) LLVM=" yes" ;;
991993 -A|--abis) shift ; MULTILIB_ABIS=$1 ;;
992994 --host-abi) shift ; HOST_ABI=$1 ;;
16071609# ## Create links for helper scripts ###
16081610
16091611xmkdir -p " ${EPREFIX} " /usr/${CTARGET}
1610- LLVM=" ${LLVM} " emerge-wrapper --target ${CTARGET} --init || exit 1
1612+ LLVM=" ${LLVM} " emerge-wrapper --target " ${CTARGET} " --init --profile " ${PROFILE} " || exit 1
16111613
16121614# ############################################################
16131615# ## Create directories usually created by sys-apps/baselayout
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ cross_wrap_etc()
3737 setup_warning=false
3838
3939 cp -a " ${PREFIX} " /share/crossdev/etc ${SYSROOT} / || return 1
40- ln -snf " ${MAIN_REPO_PATH} /profiles/embedded" " ${SYSROOT} /etc/portage/make.profile" || return 1
4140
4241 local confs=(
4342 ${SYSROOT} /etc/portage/make.conf
@@ -131,6 +130,7 @@ cross_wrap()
131130 if [[ -d ${SYSROOT} ]] && [[ ! -d ${SYSROOT} /etc ]] ; then
132131 cross_wrap_etc " $@ "
133132 fi
133+ PORTAGE_CONFIGROOT=${SYSROOT} eselect profile set --force " ${PROFILE} "
134134 return $?
135135}
136136
@@ -159,12 +159,18 @@ CHOST=${CHOST%-emerge}
159159CHOST=${CHOST# emerge-}
160160export CHOST
161161
162+ PROFILE=" embedded"
163+
162164if [[ $1 == " --target" ]] ; then
163165 CHOST=$2
164166 shift 2
165167fi
166168
167169if [[ $1 == " --init" ]] ; then
170+ shift
171+ if [[ $1 == " --profile" ]] ; then
172+ PROFILE=$2
173+ fi
168174 cross_init
169175 exit $?
170176fi
You can’t perform that action at this time.
0 commit comments