-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial support for overriding profile #22
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -897,6 +897,7 @@ SHOW_FAIL_LOG="no" | |||||
SHOW_TARGET_CFG="no" | ||||||
INIT_TARGET_ONLY="no" | ||||||
LLVM="no" | ||||||
PROFILE="embedded" | ||||||
|
||||||
while [[ $# -gt 0 ]] ; do | ||||||
case $1 in | ||||||
|
@@ -939,6 +940,7 @@ while [[ $# -gt 0 ]] ; do | |||||
--cpkg) shift; CPKG=$1;; | ||||||
-ox|--ov-extra) shift; XOVLS+=( "$1" );; | ||||||
--env) shift; AENV=$1;; | ||||||
--profile) shift; PROFILE=$1;; | ||||||
-L|--llvm) LLVM="yes";; | ||||||
-A|--abis) shift; MULTILIB_ABIS=$1;; | ||||||
--host-abi) shift; HOST_ABI=$1;; | ||||||
|
@@ -1557,7 +1559,7 @@ hr | |||||
### Create links for helper scripts ### | ||||||
|
||||||
xmkdir -p "${EPREFIX}"/usr/${CTARGET} | ||||||
LLVM="${LLVM}" emerge-wrapper --target ${CTARGET} --init || exit 1 | ||||||
LLVM="${LLVM}" emerge-wrapper --target ${CTARGET} --init --profile ${PROFILE} || exit 1 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please also quote here, include CTARGET while you're at it.
Suggested change
|
||||||
|
||||||
############################################################# | ||||||
### 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() | |||||
setup_warning=false | ||||||
|
||||||
cp -a "${PREFIX}"/share/crossdev/etc ${SYSROOT}/ || return 1 | ||||||
ln -snf "${MAIN_REPO_PATH}/profiles/embedded" "${SYSROOT}/etc/portage/make.profile" || return 1 | ||||||
|
||||||
local confs=( | ||||||
${SYSROOT}/etc/portage/make.conf | ||||||
|
@@ -107,6 +106,8 @@ cross_wrap_etc() | |||||
EOF | ||||||
fi | ||||||
|
||||||
PORTAGE_CONFIGROOT=${SYSROOT} eselect profile set --force ${PROFILE} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was going to suggest setting It's slightly brittle in that it relies on profile.eselect calling But it is probably best to quote
Suggested change
|
||||||
|
||||||
return 0 | ||||||
} | ||||||
|
||||||
|
@@ -159,12 +160,18 @@ CHOST=${CHOST%-emerge} | |||||
CHOST=${CHOST#emerge-} | ||||||
export CHOST | ||||||
|
||||||
PROFILE="embedded" | ||||||
|
||||||
if [[ $1 == "--target" ]] ; then | ||||||
CHOST=$2 | ||||||
shift 2 | ||||||
fi | ||||||
|
||||||
if [[ $1 == "--init" ]] ; then | ||||||
shift | ||||||
if [[ $1 == "--profile" ]] ; then | ||||||
PROFILE=$2 | ||||||
fi | ||||||
cross_init | ||||||
exit $? | ||||||
fi | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's hard to tell in GitHub, but I think your whitespace is off here.