Android-x86 custom build

https://groups.google.com/forum/#!msg/android-x86/yJXD4CeHWC4/RG2p3QzZlBgJ

Android-x86 Custom Build for DELL Inspiron Duo

  • Acellerometer/magnetometer(lsm303dlh) driver
  • Physical keyboard layout
  • Product Information

Get Source

$ mkdir ics-x86
$ cd ics-x86
$ repo init -u http://git.android-x86.org/manifest -b ics-x86
$ repo sync

Download patch and Extract

https://groups.google.com/group/android-x86/attach/1894d90cdda96d44/ics-x86-DellDuo-patches.tar?part=4&view=1

$ tar xvf ics-x86-DellDuo-patches.tar
$ tree -F .
.
├── device/
│   └── dell/
│   └── duo/
│   ├── AT_Translated_Set_2_keyboard.kl
│   ├── AndroidBoard.mk
│   ├── AndroidProducts.mk
│   ├── BoardConfig.mk
│   ├── duo.mk
│   ├── duo_defconfig
│   ├── duo_info
│   ├── init.duo.rc
│   ├── init.duo.sh
│   ├── io_switch/
│   │   ├── Android.mk
│   │   └── io_switch.c
│   ├── overlays/
│   │   ├── frameworks/
│   │   │   └── base/
│   │   │   └── core/
│   │   │   └── res/
│   │   │   └── res/
│   │   │   └── xml/
│   │   │   └── storage_list.xml
│   │   └── packages/
│   │   └── apps/
│   │   └── Browser/
│   │   └── res/
│   │   └── values/
│   │   └── strings.xml
│   ├── system.prop
│   ├── vendorsetup.sh
│   └── vold.fstab
├── hardware/
│   └── libsensors/
│   ├── Android.mk
│   └── lsm303dlh_a_sensor.c
└── kernel/
├── drivers/
│   └── hwmon/
│   ├── Kconfig
│   ├── Makefile
│   ├── lsm303dlh_a.c
│   └── lsm303dlh_m.c
└── include/
└── linux/
└── lsm303dlh.h

23 directories, 23 files

Build

$ make -j4 iso_img TARGET_PRODUCT=duo

Ad hoc solution 1

Downgrade Bison 3.0.2 to 2.7.1

$ sudo apt-get remove bison
$ wget https://launchpad.net/bison/head/2.7.1/+download/bison-2.7.1.tar.gz
$ tar zxvf bison-2.7.1.tar.gz
$ cd bison-2.7.1
$ ./configure
$ make -j4
$ sudo make install

Ad hoc solution 2

$ sudo ln -s /usr/include/x86_64-linux-gnu/zconf.h /usr/include