Você está na página 1de 4

#Bitbaking on Ubuntu #This worked for me on Ubuntu 10.

04 LT

sudo apt-get install bitbake python-xcbgen sed wget cvs subversion git-core c oreutils unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysq lite2 diffstat help2man make gcc build-essential g++ desktop-file-utils chrpa th libxml2-utils xmlto python-psyco

sudo mkdir /OE sudo chown $USER /OE cd /OE git clone git://gitorious.org/angstrom/angstrom-setup-scripts.git /OE ./oebb.sh config mini2440 ./oebb.sh update #While the gips are checking out: #in Yor local.conf file add: # # BUILD_CPPFLAGS += "-Wno-format-security -U_FORTIFY_SOURCE" # OESTATS_BUILDER = "StefanVoit" echo 'BUILD_CPPFLAGS += "-Wno-format-security -U_FORTIFY_SOURCE"' >> /home/$USER /OE/build/conf/local.conf echo 'OESTATS_BUILDER = "Somebody"' >> /home/$USER/OE/build/conf/local.conf #gedit local.conf and comment out the following line: # ENABLE_BINARY_LOCALE_GENERATION = "0" #This line should be commented out (# in front)

#check for linking sudo rm /bin/sh sudo ln -s /bin/bash /bin/sh #alternatively "sudo dpkg-reconfigure dash" claims to work #show your shell env grep SHELL #make sure your shell is /bin/bash # set environment variables source ~/.oe/environment sudo sysctl vm.mmap_min_addr=0 #Start building

bitbake base-image ; bitbake x11-image

#The final images will go in: # /OE/build/tmp_angstrom_2008_1/deploy/glibc/images/mini2440

################################################ Bitbaking Custom Images: ############################################### 1.)cd /OE/sources/openembedded/recipes/images 2.)cp x11-image.bb mini2440-image.bb #now you should have a copy of the x11 build which is a good image as mini244-im age.bb 3.) gedit mini244-image.bb Thats what i got into this file, Think its verymuch self explaining: #---------------------------- Start File #Angstrom X11 image ANGSTROM_EXTRA_INSTALL ?= "" XSERVER ?= "xserver-kdrive-fbdev" export IMAGE_BASENAME = "mini2440-image" DEPENDS = "task-base xf86-input-tslib " IMAGE_INSTALL = "\ ${XSERVER} \ task-base-extended \ angstrom-x11-base-depends \ angstrom-gpe-task-base \ angstrom-gpe-task-settings \ xf86-input-tslib \ gtk+ \ gtk+-demo \ ${SPLASH} \ ${ANGSTROM_EXTRA_INSTALL}" IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp" #zap root password for release images ROOTFS_POSTPROCESS_COMMAND += '${@base_conditional("DISTRO_TYPE", "release", "za p_root_password; ", "",d)}' inherit image #---------------------------- End File

############################################### my local.conf ############################################### # Where to store sources DL_DIR = "/OE/sources/downloads" INHERIT += "rm_work" # Which files do we want to parse: BBFILES := "/OE/sources/openembedded/recipes/*/*.bb" BBMASK = "" # Qemu 0.12.x is giving too much problems recently (2010.05), so disable it for users # ENABLE_BINARY_LOCALE_GENERATION = "0" # What kind of images do we want? IMAGE_FSTYPES += "jffs2" # Make use of SMP: # PARALLEL_MAKE specifies how many concurrent compiler threads are spawned per bitbake process # BB_NUMBER_THREADS specifies how many concurrent bitbake tasks will be run PARALLEL_MAKE = "-j2" BB_NUMBER_THREADS = "2" DISTRO = "angstrom-2008.1" MACHINE ?= "mini2440" PKGDIR=/OE/build # Set TMPDIR instead of defaulting it to /tmp TMPDIR = "/OE/build/tmp_angstrom_2008_1" # Don't generate the mirror tarball for SCM repos, the snapshot is enough BB_GENERATE_MIRROR_TARBALLS = "0" # Go through the Firewall #HTTP_PROXY = "http://:/" OESTATS_BUILDER = "StefanVoit" BUILD_CPPFLAGS += "-Wno-format-security -U_FORTIFY_SOURCE" DISTRO_SSH_DAEMON = "dropbear" OE_STRICT_CHECKSUMS = "" ############################################### my ~/.oe/environment ###############################################

export DISTRO="angstrom-2008.1" export DISTRO_DIRNAME="angstrom_2008_1" export OE_BUILD_DIR="/OE/build" export OE_BUILD_TMPDIR="/OE/build/tmp_angstrom_2008_1" export OE_SOURCE_DIR="/OE/sources" export OE_BASE="/OE" export PATH="/OE/sources/bitbake/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/u sr/bin:/sbin:/bin:/usr/games" export BB_ENV_EXTRAWHITE="MACHINE DISTRO GIT_PROXY_COMMAND ANGSTROMLIBC" export BBPATH="/OE/build:/OE/sources/openembedded"

Você também pode gostar