1 |
Dear All, |
2 |
|
3 |
Gentoo on Android is about running Gentoo natively in a directory prefix |
4 |
on Android devices[1,2] in parallel with native Android, mentored by |
5 |
Luca. |
6 |
|
7 |
State, finished up to three wiki pages (on sdcard for gentoo partitiion, |
8 |
how to use the bootstrap script and how to cross compile out the |
9 |
toolchain toolchain). One quick report here, final report on the entire |
10 |
SOC follows. |
11 |
|
12 |
heroxbd@×××××.com writes: |
13 |
|
14 |
> Luca Barbato <lu_zero@g.o> writes: |
15 |
> |
16 |
>> On 08/09/13 07:16, heroxbd@×××××.com wrote: |
17 |
> |
18 |
>>> As the final deadline draws near, I want to summarize all the things |
19 |
>>> that are left: |
20 |
>>> |
21 |
>>> 1. root privilege in Gentoo Prefix: a prototype is there, need |
22 |
>>> submission to portage herd. |
23 |
>> |
24 |
>> This is moderately important |
25 |
> |
26 |
> Got it. |
27 |
|
28 |
It turns out to be as easy as |
29 |
|
30 |
$ cat setcap |
31 |
#!/bin/bash |
32 |
ESCULATE="sudo" |
33 |
# ESCULATE="su -c" |
34 |
|
35 |
scriptpath=${BASH_SOURCE[0]} |
36 |
scriptname=${scriptpath##*/} |
37 |
|
38 |
IFS=':' |
39 |
|
40 |
for path in ${PATH}; do |
41 |
[[ -x ${path}/${scriptname} ]] || continue |
42 |
[[ ${path}/${scriptname} -ef ${scriptpath} ]] && continue |
43 |
|
44 |
elog "using ${ESCULATE} to execute ${path}/${scriptname} $@ as root..." |
45 |
${ESCULATE} ${path}/${scriptname} $@ |
46 |
|
47 |
exit 0 |
48 |
done |
49 |
exit 1 |
50 |
|
51 |
|
52 |
>>> 2. RAP stage3, two pieces: root and normal user. Compiling on my |
53 |
>>> cell phone, with the shiny new bootstrap script. |
54 |
>> |
55 |
>> This is important |
56 |
> |
57 |
> Got it. |
58 |
|
59 |
Done. |
60 |
|
61 |
The bonus part is that I have investigated the partition of sdcard to |
62 |
maximize Gentoo performance. Summarizing. |
63 |
|
64 |
>>> 4. Cross bootstrap arm targets. The solution is, bootstrap a native |
65 |
>>> arm toolchain, (i.e. CBUILD=x86_64-*, CHOST=CTARGET=arm*), and |
66 |
>>> then bootstrap natively on the target device. (We have patched |
67 |
>>> crossdev to work with Prefix). Ruud (redlizard) has a solution |
68 |
>>> for that toolchain. |
69 |
>> |
70 |
>> It is interesting |
71 |
> |
72 |
> Yes, I will test Ruud's solution and fill anything left. |
73 |
|
74 |
It works now, similar to canadian cross compile actually. |
75 |
|
76 |
I can not cross-compile a native toolchain into a prefix. More on the |
77 |
steps to wiki. |
78 |
|
79 |
>>> 5. GLEP-RAP to be accepted, the profiles and patches merged to |
80 |
>>> gentoo-x86. toolchain herd needs vapier's approval to accepts |
81 |
>>> RAP related patches. I think being approved by the council will |
82 |
>>> accelerate that. Hints, Luca? |
83 |
>> |
84 |
>> Start discussing on gentoo-dev, but it isn't something I expect to have |
85 |
>> in a week. Ping me about the patches. |
86 |
> |
87 |
> bug 473728, bug 474358, bug 384167. |
88 |
|
89 |
no reponse yet. |
90 |
|
91 |
Good news is that the council supports development of RAP[3]. I'll take |
92 |
more systematic way to integrate it into gentoo-x86 tree. At the same |
93 |
time training redlizard to join Gentoo for the development[4]. |
94 |
|
95 |
Cheer, |
96 |
Benda |
97 |
|
98 |
1. http://www.awa.tohoku.ac.jp/~benda/projects/android.html |
99 |
2. http://www.gentoo.org/proj/en/gentoo-alt/android |
100 |
3. https://www.gentoo.org/proj/en/council/meeting-logs/20130917-summary.txt |
101 |
4. https://bugs.gentoo.org/show_bug.cgi?id=485618 |