FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Embedded

 
 
LinkBack Thread Tools
 
Old 09-26-2008, 08:12 AM
"devix@hitv.ru"
 
Default New patch for add support "-a" options and one stage.

Hi!!!
This patch add one stage(-s1, --stage1 Also build kernel and libc
headers) betwen 0 and 1 stage, for available this trick:

crossdev -S --ex-gdb --g 4.2.4 -v -t armv4tl-maverick-linux-gnueabi -s1
EXTRA_ECONF="--with-cpu=arm920t --with-tune=arm920t --with-fpu=maverick
--with-float-abi=softfp" crossdev -S --ex-gdb --g 4.2.4 -v -t
armv4tl-maverick-linux-gnueabi -s2
crossdev -S --ex-gdb --g 4.2.4 -v -t armv4tl-maverick-linux-gnueabi -s4
EXTRA_ECONF="--with-cpu=arm920t --with-tune=arm920t --with-fpu=maverick
--with-float-abi=softfp" crossdev -S --ex-gdb --g 4.2.4 -v -t
armv4tl-maverick-linux-gnueabi -s5

--- crossdev.orig 2008-06-23 06:09:49.000000000 +0400
+++ crossdev 2008-09-25 17:33:20.000000000 +0400
@@ -38,10 +38,11 @@
${GOOD}-P, --portage${NORMAL} opts Options to pass to emerge (see emerge(1))
Stage Options:
${GOOD}-s0, --stage0${NORMAL} Build just binutils
- ${GOOD}-s1, --stage1${NORMAL} Also build a C compiler (no libc/C++)
- ${GOOD}-s2, --stage2${NORMAL} Also build kernel headers
- ${GOOD}-s3, --stage3${NORMAL} Also build the C library (no C++)
- ${GOOD}-s4, --stage4${NORMAL} Also build a C++ compiler [default]
+ ${GOOD}-s1, --stage1${NORMAL} Also build kernel and libc headers (for next stage)
+ ${GOOD}-s2, --stage2${NORMAL} Also build a C compiler (no libc/C++)
+ ${GOOD}-s3, --stage3${NORMAL} Also build kernel headers
+ ${GOOD}-s4, --stage4${NORMAL} Also build the C library (no C++)
+ ${GOOD}-s5, --stage5${NORMAL} Also build a C++ compiler [default]
Extra Fun (must be run after above stages):
${GOOD}--ex-only${NORMAL} Skip the stage steps above
${GOOD}--ex-gcc${NORMAL} Build extra gcc targets (gcj/ada/etc...)
@@ -54,10 +55,11 @@
exit ${exit_status}
}
STAGE_BINUTILS=0
-STAGE_C_ONLY=1
-STAGE_C_KERNEL=2
-STAGE_LIBC=3
-STAGE_C_CPP=4
+STAGE_H_KERNEL_LIBC=1
+STAGE_C_ONLY=2
+STAGE_C_KERNEL=3
+STAGE_LIBC=4
+STAGE_C_CPP=5
STAGE_DEFAULT=${STAGE_C_CPP}
STAGE_DISP=( "binutils" "C compiler only" "kernel headers" "C compiler & libc" "C/C++ compiler" )

@@ -292,6 +294,7 @@
is_s3() { is_stage 3 ; }
is_s4() { is_stage 4 ; }
is_s5() { is_stage 5 ; }
+is_s6() { is_stage 6 ; }

with_headers() { [[ ${WITH_HEADERS} == "yes" ]] ; }

@@ -356,7 +359,7 @@
--without-*) eval $(set_withval $1);;
-x) SET_X="yes";;
-P|--portage) UOPTS="${UOPTS} $2"; shift;;
- -b|-d|-p|-v|-q) UOPTS="${UOPTS} $1";;
+ -b|-d|-p|-v|-q|-a) UOPTS="${UOPTS} $1";;
-pv|-vp) UOPTS="${UOPTS} -p -v";;
-h|--help) usage;;
-*) eerror "UNKNOWN OPTION: '$1'" ; usage 1;;
@@ -432,14 +435,14 @@
is_s0 && {
einfo "binutils: ${BPKG}-${BVER}"
}
-is_s1 && {
+is_s2 && {
einfo "gcc: ${GPKG}-${GVER}"
}
-is_s2 && {
+is_s3 && {
[[ ${KPKG} != "[none]" ]] &&
einfo "headers: ${KPKG}-${KVER}"
}
-is_s3 && {
+is_s4 && {
einfo "libc: ${LPKG}-${LVER}"
}
}
@@ -572,12 +575,16 @@

set_use $1 ${USE}

- if [[ ${UOPTS/-v} != ${UOPTS} || ${UOPTS/-p} != ${UOPTS} ]] ; then
- emerge cross-${CTARGET}/$1 ${EOPTS}
- 2>&1 | tee ${logfile}
+ if [[ ${UOPTS/-a} != ${UOPTS} ]]; then
+ emerge cross-${CTARGET}/$1 ${EOPTS} -v
else
- emerge cross-${CTARGET}/$1 ${EOPTS}
- >& ${logfile}
+ if [[ ${UOPTS/-v} != ${UOPTS} || ${UOPTS/-p} != ${UOPTS} ]] ; then
+ emerge cross-${CTARGET}/$1 ${EOPTS}
+ 2>&1 | tee ${logfile}
+ else
+ emerge cross-${CTARGET}/$1 ${EOPTS}
+ >& ${logfile}
+ fi
fi
local _pipestatus=${PIPESTATUS[*]}
[[ "${_pipestatus// /}" -eq 0 ]] || die "$1 failed "
@@ -616,21 +623,23 @@
USE="${LUSE} ${USE}" CROSSCOMPILE_OPTS="headers-only"
doemerge ${LPKG} ${LPKG}-headers
fi
+
+is_s2 || exit 0
USE="${GUSE} ${USE} ${GUSE_DISABLE} nocxx" CROSSCOMPILE_OPTS="bootstrap"
doemerge ${GPKG} ${GPKG}-stage1

-is_s2 || exit 0
+is_s3 || exit 0
set_eopts_on_pkg_status ${KPKG} crosscompile_opts_headers-only
USE="${KUSE} ${USE}" CROSSCOMPILE_OPTS=""
doemerge ${KPKG}

-is_s3 || exit 0
+is_s4 || exit 0
[[ -z ${LPKG} ]] && die "Invalid target '${CTARGET}': unknown libc"
set_eopts_on_pkg_status ${LPKG} crosscompile_opts_headers-only
USE="${LUSE} ${USE}" CROSSCOMPILE_OPTS=""
doemerge ${LPKG}

-is_s4 || exit 0
+is_s5 || exit 0
set_eopts_on_pkg_status ${GPKG} crosscompile_opts_bootstrap
USE="${GUSE} ${USE} ${GUSE_DISABLE_STAGE_2}"
doemerge ${GPKG} ${GPKG}-stage2
 
Old 10-26-2008, 07:16 AM
Mike Frysinger
 
Default New patch for add support "-a" options and one stage.

On Friday 26 September 2008, Ned Ludd wrote:
> On Fri, 2008-09-26 at 12:12 +0400, devix@hitv.ru wrote:
> > Hi!!!
> > This patch add one stage(-s1, --stage1 Also build kernel and libc
> > headers) betwen 0 and 1 stage, for available this trick:
>
> Can you explain a bit more what this patch is supposed to accomplish? Or
> how it came to be that you needed it? Also most code which you want
> Gentoo to take seriously will need to be submitted to bugzilla. While
> pre-testing to get to the bugzilla phase this list makes a good testing
> ground.

yeah, reading the patch and your explanation and i just dont get it ...

i'm also severely inclined to not touch the stage levels now that crossdev has
been in circulation for so long ... people seem to expect this stuff to
actually work !?
-mike
 
Old 12-23-2008, 09:51 PM
Jakub Ladman
 
Default New patch for add support "-a" options and one stage.

I do not uderstand it too.
What this patch is intended for?
What motivation?
I understand only, that it should correspond with my need for maverick enabled
crosscompiler, but i don't know in which way.

Jakub Ladman

Dne Friday 26 of September 2008 10:12:56 devix@hitv.ru napsal(a):
> Hi!!!
> This patch add one stage(-s1, --stage1 Also build kernel and libc
> headers) betwen 0 and 1 stage, for available this trick:
>
> crossdev -S --ex-gdb --g 4.2.4 -v -t armv4tl-maverick-linux-gnueabi -s1
> EXTRA_ECONF="--with-cpu=arm920t --with-tune=arm920t --with-fpu=maverick
> --with-float-abi=softfp" crossdev -S --ex-gdb --g 4.2.4 -v -t
> armv4tl-maverick-linux-gnueabi -s2
> crossdev -S --ex-gdb --g 4.2.4 -v -t armv4tl-maverick-linux-gnueabi -s4
> EXTRA_ECONF="--with-cpu=arm920t --with-tune=arm920t --with-fpu=maverick
> --with-float-abi=softfp" crossdev -S --ex-gdb --g 4.2.4 -v -t
> armv4tl-maverick-linux-gnueabi -s5
 

Thread Tools




All times are GMT. The time now is 08:15 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org