Skip to content

Commit

Permalink
first commit for Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
LexChien committed Aug 5, 2016
1 parent 5e8d4b8 commit add5b67
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ch1_setup/ch1-1_Ubuntu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Prepare]

```shell
sudo apt-get update

sudo apt-get install vim less gcc g++ make build-essential binutils wget ssh openssh-server openssh-client zip unzip perl python rsync git openssl

sudo apt-get install git gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386

sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

sudo apt-get install oracle-java6-installer
```
28 changes: 28 additions & 0 deletions ch2_download/ch2-1_Ubuntu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[Download]

```shell
cd ~
mkdir aosp
mkdir aosp/src
mkdir aosp/bin

PATH=~/aosp/bin:$PATH

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/aosp/bin/repo
chmod a+x ~/aosp/bin/repo

git config --global user.email "user@USER"
git config --global user.name "user"

cd ~/aosp/src

repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.7_r1
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.4_r2.1
repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.2_r2.1
repo init -u https://android.googlesource.com/platform/manifest -b android-4.2.2_r1.2
repo init -u https://android.googlesource.com/platform/manifest -b android-4.3_r3.1
[v] repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.4_r2

sudo sysctl -w net.ipv4.tcp_window_scaling=0
repo sync -j1
```
9 changes: 9 additions & 0 deletions ch3_build/ch3-1_Ubuntu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Build]

```shell
cd ~/aosp/src

source build/envsetup.sh
lunch
make -j4
```
1 change: 1 addition & 0 deletions ch4_flash/ch4-1_Ubuntu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Flash Image]
1 change: 1 addition & 0 deletions ch5_adb/ch5-1_Ubuntu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Build for Device]
1 change: 1 addition & 0 deletions ch6_aosp_overview/ch6-1_Ubuntu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Java Library]

0 comments on commit add5b67

Please sign in to comment.