OpenEmbedded 介紹(二)

July 18, 2007
  • 若要增加套件到openembedded repository, 我們要增加的套件是在/home/willie/packages, 而原本OpenMoko放的套件是在/home/moko/openembedded/packages目錄

我們可以在/home/moko/openembedded/conf/bitbake.conf加上一些設定值

		BBFILES := "/home/moko/openembedded/packages/*/*.bb"
		BBFILES += "/home/willie/packages/*/*.bb"

  • 若要新增硬體(machine), 可以到/home/moko/openembedded/conf/machine/下面新增一個xxx.conf, 可自行編輯所需的設定擋

例如:NEO1973手機的設定檔名稱就是fic-gta01.conf,所有機器鄉關設定都會在此設定

  • 若是要新增distribution的話, 是在/home/moko/openembedded/conf/distro/下面新增conf檔

例如: OpenMoko的distribution的conf檔

#
# Header
#
DISTRO_NAME = “OpenMoKo”
DISTRO_VERSION = “.dev-snapshot-${DATE}”
#DISTRO_TYPE = “release”
DISTRO_TYPE = “debug”require conf/distro/include/openmoko.inc# Toolchain
PREFERRED_VERSION_gcc ?= “4.1.1”
PREFERRED_VERSION_gcc-cross ?= “4.1.1”
PREFERRED_VERSION_gcc-cross-initial ?= “4.1.1”
PREFERRED_VERSION_binutils ?= “2.17.50.0.5”
PREFERRED_VERSION_binutils-cross ?= “2.17.50.0.5”
PREFERRED_VERSION_linux-libc-headers ?= “2.6.18”
# 2.5 has less bugs, but crashes dropbear :/
PREFERRED_VERSION_glibc ?= “2.4”
PREFERRED_VERSION_glibc-intermediate ?= “2.4”

PREFERRED_VERSION_lmsensors-apps ?= “2.10.1”

Read the rest of this entry »

Advertisements

Openembedded 介紹(一)

July 12, 2007

Openmoko distribution 是用Openembedded來建立, Openembedded是用Bitbake來做套件上管理與cross compile的建立. 而Bitbake是用.bb .bbclass .conf 來進行設定與管理

優點:

  1. 可以crosscompiler建立embedded system
  2. 能夠包裝成ipk, deb, rpm, tar
  3. 能run tasks 在qemu上

Read the rest of this entry »