OpenEmbedded 介紹(二)

  • 若要增加套件到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”

在/home/moko/build/conf裡面有一個local.conf裡面是設定要選擇哪個machine, distribution, architecture

MACHINE = “fic-gta01”
DISTRO = “openmoko”
BUILD_ARCH = “i686”


					
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: